/*
VOICE: quiet, confident, editorial. One sentence does the talking.
IDEA: a type specimen sheet: one large statement set on a strict 12-column grid.
PICTURE: the statement itself, plus a portrait slot (placeholder until the photo is ready).
COLOUR and TYPE: warm paper #efefe7 and black ink; Figtree Light, with the name in Figtree Italic.
LAYOUT: nav top left, statement across 8 columns, portrait in columns 10 to 12, all on a 64px margin.
*/

:root {
  color-scheme: light dark;
  --bg: light-dark(#efefe7, #131311);
  --ink: light-dark(#000000, #ecebe4);
  --muted: light-dark(rgba(0, 0, 0, 0.55), rgba(236, 235, 228, 0.6));
  --slot: light-dark(#d9d9d9, #2a2a27);

  --margin: clamp(20px, 4.45vw, 64px);
  --gutter: clamp(12px, 1.67vw, 24px);

  /* Statement size: 64px on a 1440 screen. Change the last value to resize. */
  --statement: clamp(34px, 4.45vw, 64px);

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.2 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }

/* ---------- Page grid ---------- */
.page {
  min-height: 100%;
  padding: var(--margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: start;
}

/* ---------- Nav ---------- */
.page > nav { grid-column: 1 / -1; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav li { display: flex; align-items: center; gap: 14px; }
.nav a {
  display: inline-block;
  padding-block: 12px; /* 44px tap target */
  font-size: 16px;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.nav a:hover,
.nav a[aria-current="page"] { text-decoration-line: underline; }
.star { width: 11px; height: 11px; fill: currentColor; flex: none; }

/* ---------- Statement ---------- */
.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: clamp(64px, 11vw, 161px);
  align-items: start;
}

.statement {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: var(--statement);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.statement em {
  font-style: italic;
  font-weight: 400;
}
.statement a {
  text-decoration-line: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.12em;
  transition: font-style 0s, text-decoration-color 0.2s;
}
.statement a:hover { font-style: italic; }
.statement a[data-pending] { cursor: default; text-decoration-style: dotted; }
.statement a[data-pending]:hover { font-style: normal; }

.subtext {
  grid-column: 1 / span 8;
  grid-row: 2;
  margin: clamp(24px, 2.8vw, 40px) 0 0;
  font-size: 18px;
  line-height: 1.4;
}
.subtext a {
  display: inline-block;
  padding-block: 10px; /* 44px tap target */
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.subtext a:hover { color: var(--ink); }

.portrait {
  grid-column: 10 / span 3;
  grid-row: 1 / span 2;
  aspect-ratio: 316 / 390;
  background: var(--slot);
  margin-top: calc(var(--statement) * -0.14);
}
.portrait { overflow: hidden; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- About page ---------- */
.about-note {
  grid-column: 1 / span 6;
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Load motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .statement, .portrait, .about-note {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .portrait { animation-delay: 0.12s; }
  .about-note { animation-delay: 0.08s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1000px) {
  .statement { grid-column: 1 / span 9; }
  .portrait { grid-column: 10 / span 3; }
}
@media (max-width: 720px) {
  .hero { margin-top: 56px; row-gap: 40px; }
  .statement { grid-column: 1 / -1; }
  .subtext { grid-column: 1 / -1; grid-row: auto; margin-top: -16px; }
  .subtext a { white-space: nowrap; }
  .portrait { grid-column: 1 / span 7; grid-row: auto; margin-top: 0; }
  .about-note { grid-column: 1 / -1; }
}
