:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #5f6368;
  --subtle: #7b7470;
  --bg: #faf7f2;
  --paper: #fffdfa;
  --surface: #ffffff;
  --line: #e8e1d8;
  --line-strong: #d8ccc0;
  --accent: #7a1f2b;
  --accent-2: #275c64;
  --accent-soft: #f4e7e2;
  --accent-2-soft: #e5efef;
  --shadow: 0 24px 70px rgba(36, 23, 16, 0.09);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1160px;
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Inter", "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 31, 43, 0.08), transparent 30rem),
    linear-gradient(180deg, #fbf8f4 0%, var(--bg) 42%, #fffdf9 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: rgba(122,31,43,0.38); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
img, svg { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: #fff; padding: .6rem .9rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(232,225,216,0.8);
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: #faf7f2; border: 1px solid var(--line-strong);
  box-shadow: 0 10px 28px rgba(36,23,16,.14);
}
.mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: .98rem; letter-spacing: -.01em; }
.brand-text span { color: var(--muted); font-size: .82rem; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; font-size: .92rem; }
.nav-links a { text-decoration: none; color: #3b3835; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.nav-cta {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .58rem .9rem;
  background: rgba(255,255,255,.65);
}
.menu-button { display: none; }

main { min-height: 70vh; }
.hero {
  padding: clamp(64px, 8vw, 112px) 0 54px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(320px, .72fr);
  gap: clamp(32px, 6vw, 74px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .48; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 7rem); max-width: 880px; }
h2 { font-size: clamp(2.1rem, 4.4vw, 4.25rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
.lede { font-size: clamp(1.12rem, 1.8vw, 1.38rem); color: #3e3b38; max-width: 720px; line-height: 1.58; margin: 1.35rem 0 0; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  border-radius: 999px; padding: .72rem 1.05rem; text-decoration: none; font-weight: 700;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 18px 42px rgba(122,31,43,.18); }
.button:hover { transform: translateY(-1px); }

.profile-card {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,253,250,.9));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.profile-card::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 170px; height: 170px;
  border-radius: 0 0 0 100%; background: rgba(122,31,43,.08);
}
.portrait-placeholder {
  aspect-ratio: 4 / 3; border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 54% 34%, rgba(39,92,100,.14), transparent 17rem),
    linear-gradient(145deg, #ffffff, #f1e7dd);
  display: grid; place-items: center; margin-bottom: 1.4rem; position: relative; overflow: hidden;
}
.portrait-placeholder .initials {
  font-family: var(--serif); font-size: clamp(3.8rem, 8vw, 5.8rem); letter-spacing: -.08em; color: rgba(122,31,43,.92);
}
.portrait-placeholder .line-art {
  position: absolute; left: 14%; right: 14%; bottom: 16%; height: 42px;
  background: url('/assets/trace.svg') center / contain no-repeat; opacity: .5;
}
.card-list { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.card-list li { display: flex; gap: .65rem; color: #36322f; }
.card-list li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); margin-top: .62rem; opacity: .72; }
.crest-frame {
  aspect-ratio: 1 / 1; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(145deg, #fffdf9, #f1e7dd);
  display: grid; place-items: center; margin-bottom: 1.4rem; position: relative; overflow: hidden;
}
.crest-frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.25), transparent 42%);
  pointer-events: none;
}
.crest-frame img {
  width: min(92%, 520px); height: auto; display: block;
  mix-blend-mode: multiply; filter: contrast(1.02);
}
.crest-card { padding: clamp(14px, 2vw, 18px); }
.sidebar-crest { display: block; width: 100%; border-radius: 18px; mix-blend-mode: multiply; }

.section { padding: clamp(56px, 7vw, 92px) 0; }
.section.tight { padding-top: 34px; }
.section-head { display: grid; grid-template-columns: minmax(0, .78fr) minmax(280px, .46fr); gap: 2rem; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { color: var(--accent); font-weight: 750; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .75rem; }
.muted { color: var(--muted); }
.text-large { font-size: clamp(1.05rem, 1.65vw, 1.28rem); color: #3e3b38; }

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78);
  padding: clamp(20px, 3vw, 30px); box-shadow: 0 14px 40px rgba(36,23,16,.05);
}
.card h3 { font-size: 1.55rem; margin-bottom: .7rem; letter-spacing: -.025em; }
.card p { margin: 0; color: #45413d; }
.card .meta { margin-top: 1rem; color: var(--muted); font-size: .92rem; }

.fact-band {
  border-block: 1px solid var(--line); background: rgba(255,255,255,.45);
}
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fact { padding: 28px clamp(16px, 3vw, 28px); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.03em; }
.fact span { color: var(--muted); font-size: .92rem; }

.callout {
  border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(135deg, #241016, #482027 58%, #183f44); color: #fff;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(260px, .45fr); gap: 2rem; align-items: center;
  box-shadow: 0 28px 76px rgba(49, 21, 27, .18);
}
.callout h2, .callout p { color: inherit; }
.callout p { color: rgba(255,255,255,.78); margin: 1rem 0 0; }
.callout .button { background: #fff; color: #2b1116; border-color: #fff; }
.callout .button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }

.page-hero { padding: clamp(52px, 7vw, 92px) 0 36px; }
.page-hero h1 { font-size: clamp(2.75rem, 7vw, 5.8rem); max-width: 980px; }
.content { display: grid; grid-template-columns: minmax(0, .72fr) minmax(260px, .28fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.prose { font-size: 1.05rem; }
.prose p, .prose ul, .prose ol { color: #3f3b37; }
.prose p { margin: 0 0 1.15rem; }
.prose h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); margin: 2.8rem 0 1rem; }
.prose h3 { font-size: 1.45rem; margin: 2rem 0 .65rem; }
.prose li { margin-bottom: .45rem; }
.sidebar { position: sticky; top: 96px; }
.sidebar .card + .card { margin-top: 1rem; }
.link-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.link-list a::after { content: "→"; color: var(--accent); }

.article-list { display: grid; gap: 1rem; }
.article-item { text-decoration: none; color: inherit; display: block; }
.article-item .card { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.article-item:hover .card { border-color: rgba(122,31,43,.38); transform: translateY(-2px); box-shadow: 0 18px 48px rgba(36,23,16,.08); }
.article-item h3::after { content: " →"; color: var(--accent); font-family: var(--sans); font-size: .9em; }

.notice {
  border: 1px solid #ead4d0; background: #fff5f3; color: #542129;
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-top: 1.2rem;
}

.site-footer { border-top: 1px solid var(--line); padding: 38px 0; background: rgba(255,255,255,.48); }
.footer-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(250px, .35fr); gap: 2rem; }
.footer-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1rem; justify-content: flex-end; font-size: .94rem; }
.footer-links a { text-decoration: none; color: #3d3936; }

@media (max-width: 880px) {
  .container { width: min(100% - 28px, var(--max)); }
  .menu-button { display: inline-flex; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .55rem .8rem; font-weight: 700; }
  .nav { min-height: 64px; }
  .nav-links {
    position: absolute; inset: 64px 14px auto 14px; display: none; flex-direction: column; align-items: stretch;
    background: #fffdfa; border: 1px solid var(--line); border-radius: 20px; padding: .7rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .8rem; border-radius: 12px; }
  .nav-cta { text-align: center; }
  .hero-grid, .section-head, .callout, .content, .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.6rem, 17vw, 4.2rem); }
  .brand-text span { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .button { width: 100%; }
  .hero { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
