/* ==========================================================================
   Self-Hosted Local Fonts
   Variable Latin WOFF2 subsets served directly from ./fonts/
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-italic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

/* ==========================================================================
   Design Tokens — Gallery Monograph Style
   A tactile, centered stationery sheet resting on a warm stone backdrop,
   adapting cleanly to system dark mode.
   Zero JavaScript, self-hosted local fonts, zero trackers.
   ========================================================================== */
:root {
  /* Light theme: warm stone outer mat & crisp archival paper sheet */
  --bg-outer: #e8e7e2;
  --bg-sheet: #fbfbf9;
  --bg-mat: #f0efe9;

  --ink-primary: #111315;
  --ink-secondary: #494e56;
  --ink-muted: #767c85;

  --rule: rgba(17, 19, 21, 0.11);
  --rule-strong: rgba(17, 19, 21, 0.2);

  /* Logo stamp always preserves its signature matte obsidian look */
  --logo-tile-bg: #111315;
  --logo-tile-fg: #f2f3f5;
  --logo-tile-border: rgba(17, 19, 21, 0.14);

  /* Primary action button */
  --btn-bg: #111315;
  --btn-bg-hover: #272b30;
  --btn-fg: #f2f3f5;

  --sheet-shadow:
    0 1px 2px rgba(17, 19, 21, 0.04),
    0 24px 60px rgba(17, 19, 21, 0.08);

  /* Rounded geometry echoing the logo's soft corner radius */
  --radius-sheet: 24px;
  --radius-mat: 20px;
  --radius-photo: 13px;
  --radius-control: 12px;

  /* Typography: self-hosted Inter paired with JetBrains Mono labels */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco,
               Consolas, "Liberation Mono", monospace;
}

/* Automatic Dark Mode — switches smoothly to matte obsidian stationery */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-outer: #090a0c;
    --bg-sheet: #111315;
    --bg-mat: #171a1e;

    --ink-primary: #f2f3f5;
    --ink-secondary: #a8aeb9;
    --ink-muted: #747b87;

    --rule: rgba(255, 255, 255, 0.09);
    --rule-strong: rgba(255, 255, 255, 0.18);

    --logo-tile-bg: #1a1d22;
    --logo-tile-fg: #f2f3f5;
    --logo-tile-border: rgba(255, 255, 255, 0.1);

    --btn-bg: #f2f3f5;
    --btn-bg-hover: #dfe2e6;
    --btn-fg: #111315;

    --sheet-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 28px 70px rgba(0, 0, 0, 0.5);
  }
}

/* ==========================================================================
   Base Reset & Outer Canvas
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-outer);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size-adjust: from-font;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--bg-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3.25rem) clamp(0.85rem, 3.5vw, 2rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Centered Editorial Folio Sheet
   ========================================================================== */
.folio {
  width: 100%;
  max-width: 900px;
  background-color: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
  box-shadow: var(--sheet-shadow);
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
}

/* ==========================================================================
   Top Masthead — Logo Stamp, Domain & Quiet Navigation Hook
   ========================================================================== */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1.35rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

/* Compact obsidian emblem tile anchoring the top-left corner */
.logo-stamp {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background-color: var(--logo-tile-bg);
  border: 1px solid var(--logo-tile-border);
  color: var(--logo-tile-fg);
  display: grid;
  place-items: center;
}

.logo-stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}

.domain-label {
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.domain-label span {
  color: var(--ink-muted);
}

.masthead-note {
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Hero Spread — Asymmetric Typographic Intro + Framed Monochrome Portrait
   ========================================================================== */
.hero-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 260px);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.name {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink-primary);
}

.bio {
  margin: 1.35rem 0 0;
  max-width: 46ch;
  font-size: 1.03125rem;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* Action Row: Direct Email Button + Unhurried Invitation */
.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-control);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color 0.2s ease;
}

.cta-button .arrow {
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
  background-color: var(--btn-bg-hover);
}

.cta-button:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}

.cta-button:focus-visible {
  outline: 2px solid var(--ink-primary);
  outline-offset: 3px;
}

.cta-hint {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Gallery Print Mat around the Black-and-White Portrait */
.portrait-mat {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-mat);
  background-color: var(--bg-mat);
  border: 1px solid var(--rule);
}

.portrait-window {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background-color: var(--bg-outer);
  display: grid;
  place-items: center;
}

.portrait-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Optical crop keeping face and glasses centered inside the 4:5 frame */
  object-position: 50% 30%;
  filter: grayscale(100%) contrast(1.04);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ==========================================================================
   Horizontal Ledger — "Lately" 4-Column Catalog Strip
   ========================================================================== */
.ledger-section {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ledger-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Subtle tri-bar proportion indicator echoing the main emblem */
.mini-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
}

.mini-bars span {
  display: block;
  width: 3px;
  border-radius: 1px;
  background-color: var(--ink-primary);
  opacity: 0.7;
}

.mini-bars span:nth-child(1),
.mini-bars span:nth-child(3) {
  height: 6px;
}

.mini-bars span:nth-child(2) {
  height: 12px;
}

.ledger-meta {
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.ledger-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.ledger-col {
  padding: 0 1.25rem;
  border-left: 1px solid var(--rule);
}

.ledger-col:first-child {
  padding-left: 0;
  border-left: none;
}

.ledger-col:last-child {
  padding-right: 0;
}

.ledger-col dt {
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 0.55rem;
}

.ledger-col dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-primary);
}

/* ==========================================================================
   Quiet Colophon Footer
   ========================================================================== */
.colophon {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.colophon-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.colophon-brand svg {
  width: 15px;
  height: 15px;
  display: block;
  color: var(--ink-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 780px) {
  .hero-spread {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Keep the framed portrait modest and balanced on stacked layouts */
  .portrait-mat {
    max-width: 240px;
    order: -1;
  }

  .ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 0;
  }

  .ledger-col {
    padding: 0 1.25rem;
  }

  .ledger-col:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }

  .ledger-col:nth-child(even) {
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .folio {
    border-radius: 18px;
    padding: 1.35rem;
  }

  .masthead-note {
    display: none;
  }

  .portrait-mat {
    max-width: 190px;
  }

  .cta-button {
    width: 100%;
    justify-content: space-between;
  }

  .ledger-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ledger-col {
    padding: 0.95rem 0;
    border-left: none;
    border-top: 1px solid var(--rule);
  }

  .ledger-col:first-child {
    padding-top: 0;
    border-top: none;
  }

  .ledger-col:last-child {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-button,
  .cta-button .arrow {
    transition: none;
  }

  .cta-button:hover .arrow {
    transform: none;
  }
}
