@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #10192B;
  --ink-card: #17233D;
  --paper: #EDEAE2;
  --paper-2: #E3DFD3;
  --brass: #A67C33;
  --brass-light: #C9A15C;
  --slate: #6B7686;
  --text-on-ink: #F2EFE9;
  --text-on-ink-dim: #B9C0CE;
  --text-on-paper: #1B2436;
  --text-on-paper-dim: #566072;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-paper);
  background: var(--paper);
  line-height: 1.55;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.nav {
  background: var(--ink);
  color: var(--text-on-ink);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.nav-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-ink);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-on-ink-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--brass-light); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 64px 0 56px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero-subhead {
  font-size: 1.08rem;
  color: var(--text-on-ink-dim);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 8px;
}
.hero-copy {
  flex: 1 1 420px;
  min-width: 280px;
}
.hero-photo {
  flex: 0 0 220px;
  width: 220px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(201,161,92,0.45);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
@media (max-width: 760px) {
  .hero-top { flex-direction: column; gap: 28px; }
  .hero-photo { width: 150px; flex-basis: auto; }
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost {
  border: 1px solid rgba(242,239,233,0.28);
  color: var(--text-on-ink);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* ---------- Instrument panel ---------- */
.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(242,239,233,0.14);
  border: 1px solid rgba(242,239,233,0.14);
  border-radius: 4px;
  overflow: hidden;
}
.plate {
  background: var(--ink-card);
  padding: 22px 20px;
}
.plate-value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--brass-light);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.plate-label {
  font-size: 0.8rem;
  color: var(--text-on-ink-dim);
  line-height: 1.35;
}

/* ---------- Section shell ---------- */
section.band { padding: 68px 0; }
.band-alt { background: var(--paper-2); }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 40px;
}

/* ---------- Career log ---------- */
.log-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid rgba(27,36,54,0.12);
}
.log-entry:last-child { border-bottom: 1px solid rgba(27,36,54,0.12); }
.log-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
  padding-top: 4px;
}
.log-role h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.log-role .role-title {
  color: var(--text-on-paper-dim);
  font-size: 0.95rem;
  margin: 0 0 14px;
  display: block;
}
.log-role ul { margin: 0; padding-left: 20px; }
.log-role li { margin-bottom: 6px; font-size: 0.96rem; }

@media (max-width: 640px) {
  .log-entry { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Credential plates ---------- */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.cred-plate {
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-on-paper);
  background: var(--paper);
}

/* ---------- Book teaser ---------- */
.book {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.book-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass-light);
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 14px;
}
.book h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 10px;
  max-width: 30ch;
}
.book p { max-width: 50ch; color: var(--text-on-paper-dim); }

/* ---------- About ---------- */
.about p {
  font-size: 1.05rem;
  max-width: 62ch;
  color: var(--text-on-paper);
  white-space: pre-line;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--text-on-ink-dim);
  padding: 40px 0;
  font-size: 0.9rem;
}
.footer a { color: var(--brass-light); text-decoration: none; }
.footer-links { display: flex; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.post-list-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 0;
  border-top: 1px solid rgba(27,36,54,0.12);
}
.post-list-item:last-child { border-bottom: 1px solid rgba(27,36,54,0.12); }
.post-list-thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(27,36,54,0.06);
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-list-content { flex: 1 1 auto; min-width: 0; }
.post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  display: block;
  margin-bottom: 8px;
}
.post-list-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.post-list-item h3 a { text-decoration: none; }
.post-list-item h3 a:hover { color: var(--brass); }
.post-excerpt { color: var(--text-on-paper-dim); margin: 0; }

@media (max-width: 560px) {
  .post-list-item { flex-direction: column; }
  .post-list-thumb { width: 100%; height: 160px; }
}

.post-featured-image { margin: 0 0 8px; }
.post-featured-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
}

.post-body {
  max-width: 68ch;
  font-size: 1.05rem;
}
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  color: var(--text-on-paper);
}
.post-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  color: var(--text-on-paper);
}
.post-body p { margin-bottom: 1.3em; }
.post-body ul,
.post-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}
.post-body li { margin-bottom: 0.5em; }
.post-body li > ul,
.post-body li > ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}
.post-body blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--brass);
  color: var(--text-on-paper-dim);
  font-style: italic;
  font-size: 1.05em;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--text-on-paper); }
.post-body a {
  color: var(--brass);
  text-decoration: underline;
  text-decoration-color: rgba(166,124,51,0.4);
}
.post-body a:hover { text-decoration-color: var(--brass); }
.post-body hr {
  border: none;
  border-top: 1px solid rgba(27,36,54,0.15);
  margin: 2.5em 0;
}
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin: 2em 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}
.post-body code {
  font-family: var(--font-mono);
  background: rgba(27,36,54,0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-header {
  padding: 56px 0 40px;
}
.post-header .post-date { font-size: 0.85rem; margin-bottom: 14px; }
.post-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0;
  max-width: 20ch;
}

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
/* ---------- Contact form ---------- */
.contact-form {
  max-width: 480px;
}
.hp-field {
  position: absolute;
  left: -5000px;
}
.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-on-paper-dim);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid rgba(27,36,54,0.24);
  border-radius: 3px;
  background: var(--paper);
  color: var(--text-on-paper);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.contact-form button[type="submit"] {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
/* ---------- Career page ---------- */
.subnav {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,239,233,0.16);
}
.subnav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-ink-dim);
}
.subnav a:hover { color: var(--brass-light); }

.bio-intro {
  font-size: 1.1rem;
  max-width: 68ch;
  margin-bottom: 32px;
}
.panel-light {
  background: rgba(27,36,54,0.06);
  border-color: rgba(27,36,54,0.1);
  margin-bottom: 44px;
}
.plate-light {
  background: transparent;
}
.plate-light .plate-value { color: var(--brass); }
.plate-light .plate-label { color: var(--text-on-paper-dim); }

.bio-section { max-width: 68ch; margin-bottom: 30px; }
.bio-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 10px;
}
.bio-section p { margin: 0; }
.bio-credentials {
  max-width: 68ch;
  color: var(--text-on-paper-dim);
  font-size: 0.95rem;
  margin: 30px 0;
  padding-top: 24px;
  border-top: 1px solid rgba(27,36,54,0.12);
}

.resume-summary { max-width: 68ch; margin-bottom: 30px; }
.resume-subhead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 48px 0 18px;
}
.log-location {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-on-paper-dim);
  font-weight: 400;
}
.job-summary {
  color: var(--text-on-paper-dim);
  font-size: 0.94rem;
  margin: 0 0 12px;
}
.plain-list {
  margin: 0;
  padding-left: 20px;
}
.plain-list li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .subnav { flex-wrap: wrap; gap: 14px; }
}
.contact-note {
  max-width: 52ch;
  font-size: 1.02rem;
  color: var(--text-on-paper-dim);
  margin: -8px 0 28px;
}
.location-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--brass);
  margin: 0 0 18px;
}
.resume-download {
  display: inline-block;
  margin-bottom: 20px;
}

/* ---------- Post reactions ---------- */
.post-reactions {
  max-width: 68ch;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(27,36,54,0.12);
}
.reactions-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-paper-dim);
  margin: 0 0 14px;
}
.reactions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(27,36,54,0.16);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-on-paper);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.reaction-btn:hover {
  border-color: var(--brass);
  transform: translateY(-1px);
}
.reaction-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.reaction-btn.is-active {
  background: rgba(166,124,51,0.12);
  border-color: var(--brass);
}
.reaction-emoji {
  font-size: 1.1rem;
  line-height: 1;
}
.reaction-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-on-paper-dim);
  min-width: 1ch;
}
.reaction-btn.is-active .reaction-count {
  color: var(--brass);
}
