/* Site design layer: loaded after the compiled Tailwind CSS. Class names are prefixed to avoid collisions. */
:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --ink: #12161c;
  --ink-soft: #2b323c;
  --slate: #566070;
  --line: #dfe4ea;
  --accent: #115da1;
  --accent-deep: #0b4478;
  --btn: #115da1;
  --btn-hover: #0b4478;
  --header-bg: rgb(247 248 250 / .88);
  color-scheme: light;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.hd { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.hd-mark { font-weight: 650; font-size: 1.15rem; letter-spacing: -.01em; }
.hd-nav { display: none; gap: 2rem; }
.hd-link { color: var(--slate); font-size: .975rem; font-weight: 500; transition: color .15s; }
.hd-link:hover { color: var(--ink); }
.hd-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.hd-toggle svg { width: 1.35rem; height: 1.35rem; }
.hd-menu { border-top: 1px solid var(--line); padding: .5rem 0 1rem; display: flex; flex-direction: column; }
.hd-menu a { padding: .75rem 0; font-size: 1.05rem; font-weight: 500; }
@media (min-width: 768px) { .hd-nav { display: flex; } .hd-toggle, .hd-menu { display: none; } }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2rem; }
.hero-photo { order: -1; width: 6.5rem; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.hero-name { margin: 0; font-size: clamp(3.4rem, 12vw, 7.25rem); line-height: .92; letter-spacing: -.045em; font-weight: 700; color: var(--ink); }
.hero-name span { display: block; }
.hero-lede { margin: 1.75rem 0 0; max-width: 30ch; font-size: clamp(1.25rem, 3.2vw, 1.6rem); line-height: 1.35; letter-spacing: -.01em; color: var(--ink-soft); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.btn-solid { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.4rem; background: var(--btn); color: #fff; border-radius: 10px; font-weight: 600; font-size: 1rem; transition: background .15s; }
.btn-solid:hover { background: var(--btn-hover); }
.link-plain { font-weight: 600; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; transition: border-color .15s, color .15s; }
.link-plain:hover { border-color: var(--accent); color: var(--accent); }
.hero-facts { display: grid; gap: 1.25rem 2rem; margin: 3.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--slate); font-size: .9rem; margin: 0 0 .25rem; }
.hero-facts dd { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
@media (min-width: 820px) {
  .hero { padding: 5.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .hero-photo { order: 0; width: 100%; max-width: 21rem; justify-self: end; }
  .hero-photo img { aspect-ratio: 4 / 5; object-position: 50% 15%; border-radius: 22px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise > *:nth-child(2) { animation-delay: .08s; } .rise > *:nth-child(3) { animation-delay: .16s; }
.hero-photo { animation: rise .9s cubic-bezier(.2,.7,.2,1) .12s both; }
@media (prefers-reduced-motion: reduce) { .rise > *, .hero-photo { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.sec { padding: 4rem 0; border-top: 1px solid var(--line); }
.sec-white { background: var(--surface); }
.sec-grid { display: grid; gap: 1.25rem; }
.sec-title { margin: 0; font-size: 2.25rem; line-height: 1.05; letter-spacing: -.03em; font-weight: 650; color: var(--ink); }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.5; color: var(--ink); margin: 0 0 1.25rem; max-width: 40rem; }
.lede:last-child { margin-bottom: 0; }
.topic { display: grid; gap: .6rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.topic-title { margin: 0; font-size: 1.1rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.topic-body p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 1rem; max-width: 38rem; }
.topic-body p:last-child { margin-bottom: 0; }
@media (min-width: 820px) {
  .sec { padding: 6rem 0; }
  .sec-grid { grid-template-columns: 13rem minmax(0, 1fr); column-gap: 3rem; }
  .topic { grid-template-columns: 13rem minmax(0, 1fr); column-gap: 3rem; }
  .sec-title { font-size: 2.5rem; }
  .sec-start { grid-column: 2; }
  .topics { grid-column: 1 / -1; margin-top: 2.5rem; }
}

/* Connect list */
.links { margin-top: 2rem; border-bottom: 1px solid var(--line); }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .25rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.link-name { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; transition: color .15s, transform .2s; }
.link-desc { grid-column: 1; color: var(--slate); font-size: 1rem; }
.link-act { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); font-weight: 600; border-bottom: 1.5px solid transparent; transition: border-color .15s; }
.link-row:hover .link-name { color: var(--accent); transform: translateX(4px); }
.link-row:hover .link-act { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .link-row:hover .link-name { transform: none; } }

/* Footer */
.ft { border-top: 1px solid var(--line); padding: 2rem 0; }
.ft-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ft p { margin: 0; color: var(--slate); font-size: .9rem; }
.ft-icons { display: flex; gap: 1.25rem; }
.ft-icons a { color: var(--slate); transition: color .15s; }
.ft-icons a:hover { color: var(--accent); }
.ft-icons svg { width: 1.25rem; height: 1.25rem; }

/* Headings: the compiled CSS sets font-family on h1-h6 directly, so set it on the classes. */
.hero-name, .sec-title, .topic-title { font-family: var(--display); }

/* Dark theme: opt-in via the header switch; the default is always light. */
:root[data-theme="dark"] {
  --paper: #0e1217;
  --surface: #131920;
  --ink: #eef1f5;
  --ink-soft: #c4ccd6;
  --slate: #9aa5b3;
  --line: #263039;
  --accent: #6db3f2;
  --accent-deep: #9ccbf6;
  --btn: #1f6fc0;
  --btn-hover: #2a7fd6;
  --header-bg: rgb(14 18 23 / .85);
  color-scheme: dark;
}
:root[data-theme="dark"] .hero-photo img { border-color: var(--line); }
body, .hd, .sec-white, .ft { transition: background-color .25s, color .25s, border-color .25s; }
@media (prefers-reduced-motion: reduce) { body, .hd, .sec-white, .ft { transition: none; } }

/* Theme switch */
.hd-right { display: flex; align-items: center; gap: 1.5rem; }
.hd-theme { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; border: 0; background: transparent; color: var(--slate); cursor: pointer; transition: color .15s; }
.hd-theme:hover { color: var(--ink); }
.hd-theme svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 767px) { .hd-right { gap: .25rem; } }
