/* Trevor Aleo — Shared Stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #F5F1EA;
  --deep:  #EDE7DC;
  --ink:   #1A1614;
  --soft:  #4A423D;
  --muted: #8A8078;
  --rule:  #D9CFC0;
  --ox:    #6B1F1F;
  --serif: 'Newsreader', Georgia, serif;
  --mono:  'JetBrains Mono', monospace;
  --max:   1160px;
  --gap:   clamp(24px, 5vw, 56px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

/* ── Header ───────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--rule);
}

.hdr {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--gap);
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}

.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 16px; color: var(--ink); white-space: nowrap; flex-shrink: 0;
}

.wordmark .ox { color: var(--ox); font-style: normal; }

.nav { display: flex; align-items: center; gap: 32px; }

.nav a {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--soft); transition: color 0.15s; white-space: nowrap;
}

.nav a:hover { color: var(--ox); }
.nav a[aria-current="page"] { color: var(--ox); }

.nav-pill {
  color: var(--ox) !important;
  border: 1px solid var(--ox); padding: 7px 16px;
  transition: background 0.15s, color 0.15s !important;
}

.nav-pill:hover { background: var(--ox) !important; color: var(--bg) !important; }

.nav-btn {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px; flex-shrink: 0;
}

.nav-btn span { display: block; width: 20px; height: 1px; background: var(--ink); }

/* ── Page hero (inner pages) ────────────────────────── */
.page-hero {
  border-bottom: 1px solid var(--rule);
  padding: clamp(52px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
}

.page-eyebrow {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}

.page-eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--rule); flex-shrink: 0;
}

.page-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95; letter-spacing: -0.02em; max-width: 700px;
}

.page-title em { font-style: italic; color: var(--ox); }

.page-sub {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7; color: var(--soft);
  max-width: 560px; margin-top: 24px;
}

/* ── Hero (homepage) ──────────────────────────────────── */
#hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gap) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: 1fr 320px;
  gap: 0 72px; align-items: start;
}

.hero-eyebrow {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}

.hero-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--rule); flex-shrink: 0;
}

.hero-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 8.5vw, 108px);
  line-height: 0.92; letter-spacing: -0.03em; margin-bottom: 40px;
}

.hero-name em { display: block; font-style: italic; color: var(--ox); }

.hero-name .deg {
  display: block; font-style: normal;
  font-size: clamp(30px, 4.5vw, 58px);
  color: var(--soft); letter-spacing: -0.02em;
}

.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.action-text {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--soft); display: inline-flex; align-items: center;
  gap: 8px; transition: color 0.15s, gap 0.2s;
}

.action-text::before {
  content: ''; width: 18px; height: 1px;
  background: currentColor; transition: width 0.2s; flex-shrink: 0;
}

.action-text:hover { color: var(--ink); gap: 12px; }
.action-text:hover::before { width: 30px; }

.action-btn {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ox); border: 1px solid var(--ox);
  padding: 10px 22px; transition: background 0.15s, color 0.15s; display: inline-block;
}

.action-btn:hover { background: var(--ox); color: var(--bg); }

.hero-photo {
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--deep); position: relative;
}

.hero-photo::before {
  content: 'T·A'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  font-size: 56px; color: var(--rule); pointer-events: none;
}

.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 8%; display: block;
  position: relative; z-index: 1; filter: contrast(1.04);
}

.hero-affils { margin-top: 0; border: 1px solid var(--rule); border-top: none; }

.affil { padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.affil:last-child { border-bottom: none; }

.affil-org {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ox); margin-bottom: 2px;
}

.affil-role { font-family: var(--serif); font-size: 12px; line-height: 1.35; color: var(--soft); }

/* ── Bio ──────────────────────────────────────────────── */
#bio { border-top: 1px solid var(--rule); padding: clamp(52px, 6vw, 88px) 0; }

.bio-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gap);
  display: grid; grid-template-columns: 180px 1fr;
  gap: 0 72px; align-items: start;
}

.bio-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.20em;
  color: var(--muted); padding-top: 8px;
}

.bio-text {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65; color: var(--ink); max-width: 680px;
}

.bio-text em { font-style: italic; color: var(--ox); }

/* ── Section header (§ pattern) ───────────────────────── */
.sh {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 0 40px; margin-bottom: 52px;
}

.sh-num {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ox); padding-top: 8px;
}

.sh-num .prefix { color: var(--muted); }

.sh-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15; max-width: 640px;
}

.sh-title em { color: var(--ox); }

/* ── Cards ────────────────────────────────────────────── */
#work { border-top: 1px solid var(--rule); padding: clamp(52px, 6vw, 88px) 0; }

.card-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); }

.card {
  padding: 36px 32px; min-height: 240px; border: 1px solid var(--rule);
  background: var(--bg); transition: background 0.2s;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
}

.card:hover { background: var(--deep); }

.card-kind {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ox);
}

.card-title { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.2; }

.card-desc { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--soft); flex: 1; }

.card-cta {
  font-family: var(--mono); font-size: 10px; color: var(--ox);
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; transition: gap 0.2s;
}

.card-cta::before {
  content: ''; width: 16px; height: 1px;
  background: var(--ox); transition: width 0.2s; flex-shrink: 0;
}

.card:hover .card-cta::before { width: 32px; }
.card:hover .card-cta { gap: 12px; }

/* ── Consulting ───────────────────────────────────────── */
#consulting {
  background: var(--deep);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(52px, 6vw, 88px) 0;
}

.consulting-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; margin-bottom: 52px; align-items: start;
}

.consulting-hed { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; }
.consulting-hed em { color: var(--ox); }

.consulting-lede {
  font-family: var(--serif); font-size: 16px;
  line-height: 1.72; color: var(--soft); padding-top: 6px; margin-bottom: 20px;
}

.consulting-note {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); padding-top: 16px; border-top: 1px solid var(--rule);
}

.services {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  margin-bottom: 44px;
}

.svc {
  padding: 30px 34px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--bg); transition: background 0.2s;
}

.svc:hover { background: var(--deep); }

.svc-num {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ox); margin-bottom: 10px;
}

.svc-title {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  color: var(--ink); margin-bottom: 8px; line-height: 1.25;
}

.svc-desc { font-family: var(--serif); font-size: 13px; line-height: 1.65; color: var(--soft); }

.consulting-footer {
  padding-top: 36px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

.consulting-footer-txt { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--soft); }

.cta-solid {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--bg); background: var(--ox);
  padding: 13px 26px; transition: opacity 0.15s;
  white-space: nowrap; flex-shrink: 0;
}

.cta-solid:hover { opacity: 0.85; }

/* ── Publications ─────────────────────────────────────── */
#scholarship { border-top: 1px solid var(--rule); padding: clamp(52px, 6vw, 88px) 0; }

.pub-list { border-top: 1px solid var(--rule); }

.pub-entry {
  display: grid; grid-template-columns: 68px 1fr;
  gap: 0 36px; padding: 28px 0; border-bottom: 1px solid var(--rule);
}

.pub-yr {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; padding-top: 3px; flex-shrink: 0;
}

.pub-title {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  line-height: 1.35; color: var(--ink); margin-bottom: 6px;
}

.pub-badge {
  display: inline-block; font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ox); border: 1px solid var(--ox);
  padding: 2px 6px; margin-left: 8px;
  vertical-align: middle; font-style: normal; line-height: 1.4;
}

.pub-meta { font-family: var(--serif); font-size: 13px; color: var(--muted); line-height: 1.5; }
.pub-meta em { font-style: italic; }

.pub-footer {
  padding-top: 32px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

.pub-footer-note { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }

.arrow-link {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ox); display: inline-flex; align-items: center;
  gap: 10px; transition: gap 0.2s; flex-shrink: 0;
}

.arrow-link::before {
  content: ''; width: 16px; height: 1px;
  background: var(--ox); transition: width 0.2s; flex-shrink: 0;
}

.arrow-link:hover::before { width: 32px; }
.arrow-link:hover { gap: 14px; }

/* ── Contact ──────────────────────────────────────────── */
#contact { border-top: 1px solid var(--rule); padding: clamp(52px, 6vw, 88px) 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contact-hed {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.8vw, 50px); line-height: 1.05; margin-bottom: 20px;
}

.contact-hed em { color: var(--ox); }

.contact-lede { font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--soft); margin-bottom: 28px; }

.email-link {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--ox); border-bottom: 1px solid var(--ox);
  padding-bottom: 3px; display: inline-block; transition: opacity 0.15s;
}

.email-link:hover { opacity: 0.65; }

.nl-panel { background: var(--deep); border: 1px solid var(--rule); padding: 36px; }

.nl-title { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 10px; }

.nl-desc { font-family: var(--serif); font-size: 14px; line-height: 1.65; color: var(--soft); margin-bottom: 26px; }

.nl-form { display: flex; flex-direction: column; gap: 14px; }

.nl-input {
  background: transparent; border: none; border-bottom: 1px solid var(--ink);
  padding: 10px 0; font-family: var(--serif); font-size: 15px;
  color: var(--ink); outline: none; width: 100%;
}

.nl-input::placeholder { color: var(--muted); }

.nl-btn {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ox); background: none; border: none; cursor: pointer;
  padding: 0; display: flex; align-items: center; gap: 10px; transition: gap 0.2s;
}

.nl-btn::before {
  content: ''; width: 16px; height: 1px;
  background: var(--ox); transition: width 0.2s; flex-shrink: 0;
}

.nl-btn:hover::before { width: 32px; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--deep); border-top: 1px solid var(--rule);
  padding: 36px var(--gap) 52px;
}

.footer-in {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
}

.footer-links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.footer-link {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 7px;
}

.footer-link:hover { color: var(--ox); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; border-top: 1px solid var(--rule); padding-top: 20px; flex-wrap: wrap;
}

.footer-col { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }
.footer-col a { color: var(--muted); border-bottom: 1px solid var(--rule); }

.footer-copy {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--muted); white-space: nowrap; flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-right-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
  .hero-photo { aspect-ratio: 3 / 4; }
  .hero-affils { border: 1px solid var(--rule); border-left: none; border-top: 1px solid var(--rule); }
  .sh { grid-template-columns: 1fr; gap: 16px; }
  .bio-in { grid-template-columns: 1fr; gap: 20px; }
  .consulting-top { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 24px var(--gap); gap: 18px;
  }
  .nav-pill { width: fit-content; }
  .nav-btn { display: flex; }
  .hero-right-wrap { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-affils { border: 1px solid var(--rule); border-top: none; }
  .card-grid { grid-template-columns: 1fr; }
  .pub-entry { grid-template-columns: 1fr; gap: 6px; }
  .pub-yr { padding-top: 0; }
  .consulting-footer { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
