/* Whole Human Productions — shared styles for every page.
   Colors come from the logo: night black, champagne gold, and the teal of the inner rings.
   Dark bands (header, hero, footer) frame warm paper sections for reading. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --night: #08090b;
  --night-2: #101317;
  --night-line: #262a30;
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --card: #fbf9f5;
  --rule: #d9d1c2;
  --ink: #17181b;
  --ink-2: #3b3a37;
  --muted: #625d55;          /* secondary text on paper */
  --muted-dark: #a9a397;     /* secondary text on night */
  --soft-dark: #d8d2c6;
  --gold: #c9ab6e;           /* accent on night */
  --gold-text: #7b5f2c;      /* gold for text on paper */
  --teal: #5fa19c;
  --teal-deep: #2c6265;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--gold); color: var(--night); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text); margin: 0 0 14px;
}
.on-night .kicker { color: var(--gold); }
.lede { font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.on-night .lede { color: var(--soft-dark); }

/* Header */
.site-header { background: var(--night); color: var(--paper); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand img { width: 62px; height: auto; }
.brand span { font-family: var(--serif); font-size: 20px; line-height: 1.1; letter-spacing: .01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a { display: block; padding: 7px 13px; color: var(--soft-dark); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 999px; }
.site-nav a:hover { color: var(--paper); background: rgba(255,255,255,.07); }
.site-nav a[aria-current="page"] { color: var(--night); background: var(--gold); }

/* Night sections */
.on-night { background: var(--night); color: var(--paper); }
.on-night a { color: var(--gold); }
.on-night a:hover { color: var(--paper); }

/* Home hero */
.hero { position: relative; overflow: hidden; text-align: center; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(1100px, 150vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(95,161,156,.20), rgba(95,161,156,.06) 55%, transparent 72%);
  animation: breathe 9s ease-in-out infinite; pointer-events: none;
}
@keyframes breathe { 0%,100% { opacity: .7; transform: translate(-50%,-50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .wrap { position: relative; }
.hero-mark { width: min(440px, 78vw); margin: 0 auto clamp(24px, 4vw, 40px); }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.04; letter-spacing: -.01em; font-weight: 350; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.hero .lede { margin: 22px auto 0; max-width: 36em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--night) !important; }
.btn-gold:hover { background: #dcc18c; }
.btn-line { border-color: rgba(201,171,110,.55); color: var(--paper) !important; }
.btn-line:hover { border-color: var(--gold); background: rgba(201,171,110,.08); }
.btn-ink { background: var(--ink); color: var(--paper) !important; }
.btn-ink:hover { background: var(--teal-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink) !important; }
.btn-outline:hover { background: var(--ink); color: var(--paper) !important; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46em; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.005em; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 40em; }
.on-night .section-head p { color: var(--soft-dark); }

/* Ventures */
.ventures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.ventures > .venture { grid-column: span 2; }
.ventures > .venture.wide { grid-column: span 3; }
@media (max-width: 980px) { .ventures > .venture, .ventures > .venture.wide { grid-column: span 3; } }
@media (max-width: 640px) { .ventures > .venture, .ventures > .venture.wide { grid-column: 1 / -1; } }
.venture {
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); background: var(--card); border: 1px solid var(--rule);
  border-radius: 6px; overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.venture:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(23,24,27,.45); border-color: #c9bfae; }
@media (prefers-reduced-motion: reduce) { .venture, .venture:hover { transition: none; transform: none; } }
.venture-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.venture-art img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; }
.venture-art.fill img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venture.wide .venture-art { aspect-ratio: 21 / 9; }
@media (max-width: 980px) { .venture.wide .venture-art { aspect-ratio: 16 / 9; } }
.art-paper { background: var(--paper-2); }
.art-night { background: var(--night); }
.art-blue { background: #1a4883; }
.venture-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.venture-body h3 { font-size: 26px; line-height: 1.15; }
.venture-body p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0; }
.venture-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--teal-deep); }
.venture:hover .venture-link { color: var(--gold-text); }

/* Split feature (image + text) */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.15fr; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 6px; width: 100%; }
.split-text h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin-bottom: 18px; }
.split-text p { color: var(--ink-2); font-size: 18px; }
.on-night .split-text p { color: var(--soft-dark); }
.split-text .btn { margin-top: 12px; }
@media (max-width: 820px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* Book */
.book-cover { max-width: 340px; margin-inline: auto; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 2px 0 rgba(0,0,0,.08); border-radius: 2px; }
.book-sub { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--muted); margin: -6px 0 20px; }
.on-night .book-sub { color: var(--muted-dark); }
.epigraph { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; max-width: 30em; margin: 0 auto; text-align: center; color: var(--ink-2); }
.epigraph cite { display: block; margin-top: 14px; font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--gold-text); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Founder / about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 6vw, 88px); }
.about h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; }
.about-text p { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.6; color: var(--soft-dark); }
.about-text p:first-child::first-letter { font-size: 3.1em; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--gold); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin-bottom: 18px; }
.contact-email { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 30px); overflow-wrap: anywhere; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.contact-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; font-weight: 350; letter-spacing: -.01em; }
.page-hero .lede { margin-top: 20px; }
.loft-wordmark { width: min(620px, 88vw); margin-bottom: 26px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 5px; background: var(--night-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 14px; font-weight: 500;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.gallery .wide { grid-column: span 6; }
.gallery .wide img { aspect-ratio: 21 / 9; }
.gallery .half { grid-column: span 3; }
.gallery .third { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery .half, .gallery .third { grid-column: span 6; }
  .gallery .wide img { aspect-ratio: 16 / 9; }
}

/* Uses list */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.use { border-top: 1px solid var(--rule); padding-top: 18px; }
.use h3 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.use p { color: var(--ink-2); font-size: 16.5px; }

/* Prose pages */
.prose { max-width: 42em; }
.prose h2 { font-size: 28px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--night); color: var(--muted-dark); font-size: 15px; }
.site-footer a { color: var(--soft-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 56px 40px; }
.foot-brand img { width: 92px; margin-bottom: 14px; }
.foot-brand p { max-width: 24em; font-family: var(--serif); font-size: 17px; color: var(--soft-dark); }
.foot-col h3 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-base { border-top: 1px solid var(--night-line); padding-block: 20px 28px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot-base nav { display: flex; gap: 18px; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.split-text h1 { margin-bottom: 22px; }
