/* Self-hosted fonts (keeps CSP strict 'self'; no Google Fonts request).
   Regenerate the woff2 files with: npm run fonts  (scripts/fetch-fonts.mjs) */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-700.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-italic-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-italic-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-sc-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya SC"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-sc-500.woff2") format("woff2"); }

/* Fifty Three & Co — one stylesheet, no framework.
   Mobile-first: base styles target <=720px; the (min-width: 721px) block is desktop.
   Typography: Alegreya + Alegreya SC only. Colour tokens below. */

:root {
  --paper: #F7F4EE;   /* background */
  --ink: #1A1A1A;     /* text, rules */
  --muted: #5A5650;   /* labels, secondary text */
  --soft: #3D3A35;    /* footer text */
  --hairline: #CFC8BC;/* light rules */
  --accent: #BC521D;  /* ampersand, link underline, link hover, button, focus */
  --accent-hover: #A3461A;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --smallcaps: "Alegreya SC", "Alegreya", Georgia, serif;

  --measure: 1200px;        /* content band */
  --pad: 24px;              /* side padding (mobile) */
  --hero-gap: 40px;         /* space under hero logo (mobile) */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hanging-punctuation: first allow-end last;
  text-rendering: optimizeLegibility;
}

/* ---- Links ---- */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}
a:hover { color: var(--accent); }

/* ---- Focus ---- */
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; height: auto; }

/* ---- Layout container ---- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---- Skip link ---- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo { display: inline-flex; }
.site-header__logo img { height: 22px; width: auto; }
.nav-contact {
  font-family: var(--smallcaps);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-contact:hover { color: var(--accent); }

/* ---- Hero ---- */
.hero { text-align: center; padding-top: 104px; padding-bottom: 88px; }
.hero__logo {
  width: 252px;
  max-width: 84%;
  height: auto;
  margin: 0 auto;
}
.hero__tagline {
  font-style: italic;
  font-size: 23px;
  line-height: 1.35;
  max-width: 300px;
  margin: var(--hero-gap) auto 0;
}

.hero h1 { margin: 0; font-weight: 400; line-height: 1; }

/* ---- Ventures (commented out in HTML until ready; styles live here so switching on needs no CSS) ---- */
.ventures__list { list-style: none; margin: 24px 0 0; padding: 0; }
.ventures__item { border-top: 1px solid var(--hairline); padding: 20px 0; }
.ventures__item:first-child { border-top: 0; padding-top: 0; }
.ventures__name { font-size: 28px; font-weight: 500; margin: 0 0 4px; line-height: 1.2; }
.ventures__line { font-style: italic; margin: 0; }
.ventures__link { font-size: 19px; }
.ventures__more { font-style: italic; color: var(--muted); margin: 24px 0 0; }

/* ---- Ampersand divider ---- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.divider__rule { width: 56px; height: 1px; background: var(--ink); flex: 0 0 auto; }
.divider__amp { width: 26px; height: 28px; flex: 0 0 auto; display: block; }

/* ---- Generic section grid ---- */
.section { padding-top: 76px; padding-bottom: 76px; }
.grid { display: block; }
.label {
  font-family: var(--smallcaps);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.2;
}
.prose { margin: 0; }
.about__text { font-size: 24px; line-height: 1.42; margin: 0; }

/* ---- Contact ---- */
.contact { border-top: 1px solid var(--ink); }
.contact__intro { font-size: 22px; line-height: 1.45; margin: 0 0 36px; max-width: 52ch; }
.contact__intro p { margin: 0 0 16px; }
.contact__intro p:last-child { margin-bottom: 0; }
.contact__intro em { font-style: italic; }

.form-field { margin-bottom: 24px; }
.form-field > label {
  display: block;
  font-family: var(--smallcaps);
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  min-height: 44px;
  padding: 8px 0;
  -webkit-appearance: none;
  appearance: none;
}
textarea.input {
  border: 1px solid var(--ink);
  min-height: 180px;
  padding: 12px;
  resize: vertical;
}
.input::placeholder { color: var(--muted); opacity: 1; }

/* Honeypot: visually hidden, off the tab order */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.form-turnstile { margin: 4px 0 24px; }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.btn {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;              /* white needed for AA contrast on --accent */
  background: var(--accent);
  border: 0;
  border-radius: 0;
  padding: 13px 34px;
  min-height: 52px;
  width: 100%;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.form-note { font-size: 17px; color: var(--muted); margin: 0; text-align: center; }

/* ---- Burbank coda (full-bleed ridgeline) ---- */
.coda { padding: 72px 0 56px; overflow: hidden; }
.coda__ridge { width: 100%; display: block; }
.coda__ridge svg { display: block; width: 200%; height: auto; transform: translateX(-25%); }
.coda__caption {
  font-family: var(--smallcaps);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
  margin: 18px 0 0;
}

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--ink); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 17px;
  color: var(--soft);
}
.site-footer a { color: var(--soft); }

/* ---- Centred message pages (404, thanks, sorry) ---- */
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page__body { flex: 1 0 auto; display: flex; align-items: center; }
.message { text-align: center; padding: 72px 0; width: 100%; }
.message__label {
  font-family: var(--smallcaps);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 20px;
}
.message__line { font-style: italic; font-size: 30px; line-height: 1.3; margin: 0 0 28px; }
.message__back { font-size: 20px; }

/* ---- Privacy ---- */
.privacy__meta { margin: 0 0 40px; }
.privacy__meta .label { margin-bottom: 8px; }
.privacy__meta .date { font-style: italic; color: var(--muted); margin: 0; }
.privacy h1 { font-size: 42px; font-weight: 700; line-height: 1.15; margin: 0 0 24px; }
.privacy__intro { font-size: 24px; line-height: 1.4; margin: 0 0 8px; }
.privacy h2 {
  font-family: var(--smallcaps);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  margin: 36px 0 12px;
}
.privacy p { margin: 0 0 16px; }

/* =====================================================================
   DESKTOP  (>= 721px)
   ===================================================================== */
@media (min-width: 721px) {
  :root {
    --pad: 64px;
    --hero-gap: 64px;
    --measure: calc(1200px + 128px); /* 1200 content band + 2 x 64 padding, border-box */
  }

  body { font-size: 21px; }

  .site-header .container { min-height: 72px; }
  .site-header__logo img { height: 30px; }

  .hero { padding-top: 176px; padding-bottom: 144px; }
  .hero__logo { width: 384px; max-width: 90%; }
  .hero__tagline { font-size: 30px; max-width: none; }

  .divider { gap: 28px; }
  .divider__rule { width: 96px; }
  .divider__amp { width: 34px; height: 36px; }

  .section { padding-top: 112px; padding-bottom: 120px; }

  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
  }
  .grid .label { grid-column: 1 / 4; margin-bottom: 0; }
  .grid .prose { grid-column: 4 / 12; }
  /* Align the small label to the first line of body text (baseline), so the
     About and Get-in-touch labels sit identically despite different body sizes. */
  .section:not(.privacy) .grid { align-items: baseline; }

  .about__text { font-size: 31px; }
  .contact__intro { font-size: 24px; }

  /* Name + Email side by side, Message full width */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .form-field--full { grid-column: 1 / -1; }
  .input { font-size: 21px; }

  .form-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
  }
  .btn { width: auto; }
  .form-note { text-align: left; }

  .coda { padding: 96px 0 64px; }
  .coda__ridge svg { width: 100%; transform: none; }

  .message__line { font-size: 40px; }

  .privacy .grid .privacy__meta { grid-column: 1 / 4; }
  .privacy .grid .privacy__article { grid-column: 4 / 11; }
  .privacy h1 { font-size: 52px; }
  .privacy__intro { font-size: 26px; }
}
