/* ============================================================
   GROW-AI 2026 — Müller-Brockmann / Swiss-style stylesheet
   Self-hosted Jost (geometric sans) + Lora (serif).
   Light eggshell paper, black ink, blue + orange functional accents.
   ============================================================ */

/* ---- Webfonts (self-hosted, no external requests) ---- */

@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/jost-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/jost-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/jost-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/jost-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/jost-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/jost-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/lora-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/lora-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/lora-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/lora-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/lora-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/lora-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---- Tokens ---- */

:root {
  --paper:   #FAF8F2;
  --ink:     #0A0A0A;
  --blue:    #1F5C8B;
  --orange:  #D4660A;
  --ink-60:  #555555;
  --hair:    #D8D4C8;

  --sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;

  --measure: 62ch;
  --content-max: 1180px;
  --gutter: 2.5rem;
}

/* ---- Reset ---- */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; background: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
strong, b { font-weight: 700; }

body {
  font-family: var(--serif);
  font-size: 1.0625rem;          /* ~17px */
  line-height: 1.66;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;              /* nothing should overflow, but be safe */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout primitive ---- */

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Site header ---- */

.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.site-logo:hover { color: var(--blue); }

.site-nav ul { display: flex; gap: 2.25rem; list-style: none; }
.site-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--blue); border-bottom-color: var(--blue); }

/* ---- Shared bits ---- */

.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}
.rule { height: 3px; background: var(--ink); border: 0; }
.rule--blue { background: var(--blue); }
.rule--orange { background: var(--orange); }

/* ---- Home hero: full-bleed duotone skyline with the text inset
       as an eggshell cut-out box (defined in index.html) ---- */

.home-hero {
  position: relative;
  display: grid;                  /* photo + text stacked in one cell */
  min-height: clamp(440px, 52vw, 600px);
  border-bottom: 8px solid var(--orange);
  overflow: hidden;               /* clip the blend layers to the band */
}
.home-hero__photo {
  grid-area: 1 / 1;               /* fills the cell (default stretch) */
  position: relative;
  overflow: hidden;               /* clips the cropped-off top of the image */
  background: var(--ink);         /* black plate under the screen-blended img */
  isolation: isolate;             /* keep the blend self-contained */
}
.home-hero__photo img {
  position: absolute;
  left: 0; right: 0; bottom: 0;   /* anchor to the bottom … */
  width: 100%;
  height: 133%;                   /* … the extra 33% (the top) is clipped — i.e. ~25% off the top */
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.12) brightness(1.07);
  mix-blend-mode: screen;         /* over black bg → clean grayscale plate */
}
.home-hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--blue);
  mix-blend-mode: multiply;       /* tints the plate → blue duotone */
  opacity: 0.5;                   /* gentle tint, not a heavy wash */
}

.home-hero > .wrap {
  grid-area: 1 / 1;
  align-self: end;                /* anchor the cut-out to the bottom */
  position: relative;
  z-index: 1;
  padding-bottom: 2.75rem;
}
.home-hero__text {
  display: inline-block;
  max-width: min(42rem, 100%);
  background: var(--paper);       /* the "cut-out" — eggshell on the photo */
  padding: 2rem 2.5rem 2.2rem;
}
.home-hero__logo {                /* crop the logo PNG down to its artwork */
  display: block;
  width: 25rem;
  max-width: 100%;
  aspect-ratio: 2.3 / 1;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.home-hero__logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  mix-blend-mode: multiply;       /* knock out the white background */
}
.home-hero__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 0;
}
.home-hero__blue-rule { height: 6px; width: 96px; background: var(--blue); margin: 1.15rem 0; }
.home-hero__meta { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.5; }
.home-hero__meta strong { font-family: var(--sans); font-style: normal; font-weight: 500; }

/* ---- Interior page head (default "hero" block in baseof) ---- */

.page-head { padding-block: 2.75rem 0; }
.page-head .kicker { margin-bottom: 0.4rem; }
.page-head__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  padding-bottom: 0.85rem;
  border-bottom: 3px solid var(--ink);
}

/* ---- Page body / long-form content ---- */

.page-body { padding-block: 3rem 1rem; }

.page-body > * { max-width: var(--measure); }
/* full-bleed-within-column elements */
.page-body > table,
.page-body > .topics-list,
.page-body > .highlight-box,
.page-body > figure,
.page-body > img,
.page-body > hr { max-width: none; }

.page-body p { margin-bottom: 1.15rem; }
.page-body > p:first-child { font-size: 1.18rem; line-height: 1.58; }   /* lede */

.page-body h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 3.25rem 0 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--ink);
}
.page-body h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 3rem 0 1.2rem;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}
.page-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.25rem 0 0.7rem;
}
.page-body h4, .page-body h5, .page-body h6 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 1.75rem 0 0.5rem;
}

.page-body ul, .page-body ol { margin: 0 0 1.2rem 1.4rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body li::marker { color: var(--orange); }

.page-body blockquote {
  border-left: 4px solid var(--blue);
  background: #ffffff;
  font-style: italic;
  padding: 1.1rem 1.5rem;
  margin: 1.6rem 0;
}
.page-body blockquote p:last-child { margin-bottom: 0; }

.page-body hr { height: 1px; background: var(--hair); border: 0; margin: 2.5rem 0; }

.page-body img {
  margin: 1.4rem 0;
  border: 1px solid var(--hair);
}

.page-body code, .page-body kbd, .page-body samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 0.05em 0.35em;
}
.page-body pre {
  background: #fff;
  border: 1px solid var(--hair);
  border-left: 4px solid var(--ink);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.4rem 0;
}
.page-body pre code { background: none; border: 0; padding: 0; }

/* ---- Tables ---- */

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2.2rem;
  font-size: 0.95rem;
}
.page-body th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: left;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  vertical-align: bottom;
}
.page-body td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.page-body tbody tr:nth-child(even) td { background: rgba(255,255,255,0.4); }
/* first column reads as a label/time column */
.page-body td:first-child {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--orange);
}
/* single-column markdown "list tables" (| | / |-| ) — render as a plain list */
.page-body table:has(th:only-child) { font-size: 1.0625rem; }
.page-body table:has(th:only-child) th { display: none; }
.page-body table:has(td:only-child) td:first-child {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  padding-left: 0;
}

/* ---- Highlight / callout box (content class) ---- */

.highlight-box {
  background: #ffffff;
  border-left: 4px solid var(--blue);
  padding: 1.3rem 1.6rem;
  margin: 1.8rem 0;
}
.highlight-box > :last-child { margin-bottom: 0; }
.highlight-box p { font-style: italic; }

/* ---- Topics grid (content classes) ---- */

.topics-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  margin: 1.6rem 0 2rem;
}
.topic-box {
  background: var(--paper);
  padding: 1.4rem 1.3rem;
}
.topic-box strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.topic-box span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-60);
}
/* highlight every 5th tile in the field, like the mockup's accent cell */
.topic-box:nth-child(5n + 2) { background: var(--blue); }
.topic-box:nth-child(5n + 2) strong { color: #ffffff; }
.topic-box:nth-child(5n + 2) span { color: #dbe7f0; }

/* ---- Home page: below-hero content runs the full content width ---- */

.is-home .page-body { padding-block: 3.25rem 1rem; }
.is-home .page-body > * { max-width: 80%; }   /* ~80% of the content width */
.is-home .page-body > h2:first-child,
.is-home .page-body > h3:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .is-home .page-body > * { max-width: none; }
}

/* ---- Legacy hero/container classes (kept harmless) ---- */
.container { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Footer ---- */

.site-footer {
  background: var(--paper);
  border-top: 3px solid var(--ink);
  margin-top: 4.5rem;
  padding-block: 2.4rem 3rem;
}
.site-footer p {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 0.4rem;
}
.site-footer a { color: var(--blue); }

/* ---- Responsive ---- */

.hide-non-mobile {display: none;}
.hide-mobile {display: inline;}

@media (max-width: 860px) {
  :root { --gutter: 1.5rem; }
  .home-hero { min-height: clamp(360px, 78vw, 460px); }
  .home-hero > .wrap { padding-bottom: 1.75rem; }
  .home-hero__text { max-width: 100%; padding: 1.5rem 1.6rem 1.6rem; }
  .topics-list { grid-template-columns: 1fr; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav ul { flex-wrap: wrap; gap: 1.25rem; }
  .hide-non-mobile {display: inline !important;}
  .hide-mobile {display: none !important;}
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .site-nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .kicker { font-size: 0.62rem; letter-spacing: 0.16em; }
  .home-hero__title { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .home-hero__meta { font-size: 1.02rem; }
  .home-hero__logo { width: 18rem; }
  .home-hero__text { padding: 1.25rem 1.35rem 1.4rem; }
  .page-body > img { max-width: calc(100% - 1.5rem) !important; height: auto; margin: 1.4rem 1.5rem 1.4rem 0 !important; }
  .hide-non-mobile {display: inline !important;}
  .hide-mobile {display: none !important;}
}

/* ---- Print ---- */
@media print {
  .site-nav, .home-hero__photo { display: none; }
  body { background: #fff; }
  a { color: inherit; text-decoration: underline; }
}
