/* Wisdom and AI: Seeds of Renaissance look (design system tokens, life-itself/design projects/sor-design-system/system/tokens.css),
   kept as clean and spare as full-stack-alignment.ai. Polyamine, Restora (licensed) and Apfel Grotezk are self-hosted in /fonts; Bricolage from Google Fonts. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..700&display=swap");

@font-face { font-family: "Polyamine"; font-weight: 400; font-display: swap; src: url("/fonts/Polyamine-Regular.woff2") format("woff2"); }
@font-face { font-family: "Restora"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/Restora-Light.woff2") format("woff2"); }
@font-face { font-family: "Restora"; font-weight: 300; font-style: italic; font-display: swap; src: url("/fonts/Restora-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "Restora"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Restora-Regular.woff2") format("woff2"); }
@font-face { font-family: "Restora"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/Restora-Italic.woff2") format("woff2"); }
@font-face { font-family: "Restora"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Restora-Medium.woff2") format("woff2"); }
@font-face { font-family: "Apfel Grotezk"; font-weight: 500; font-display: swap; src: url("/fonts/ApfelGrotezk-Mittel.otf") format("opentype"); }

:root {
  --paper: #fbfaf6;
  --sunlight: #fbefc4;
  --night: #171613;
  --ink: #1b1916;
  --muted: #5d584f;
  --rule: #e0dacf;
  --chalk: #ece7dc;
  --night-muted: #a49e93;
  --night-rule: #38342e;
  --red: #e5201c;
  --wa-display: "Polyamine", "Fraunces", Georgia, serif;
  --wa-quote: "Restora", "Fraunces", Georgia, serif;
  --wa-body: "Bricolage Grotesque", system-ui, sans-serif;
  --wa-label: "Apfel Grotezk", "Hanken Grotesk", system-ui, sans-serif;
  --wa-gutter: clamp(16px, 4vw, 56px);
  --wa-section: clamp(44px, 7vw, 96px);
  --wa-measure: 680px;

  /* Flowershow theme: one light brand world; dark mode keeps the same paper look. */
  --color-l-background: var(--paper);
  --color-l-foreground: var(--ink);
  --color-l-accent: var(--ink);
  --color-d-background: var(--paper);
  --color-d-foreground: var(--ink);
  --color-d-accent: var(--ink);
  --font-heading: var(--wa-display);
  --font-body: var(--wa-body);
  --radius: 0;
}

body { background: var(--paper); color: var(--ink); }

/* Headings in running text: Fraunces at a light weight, as the system sets display type. */

/* ── Home and about (layout: plain) ─────────────────────────── */
.wa { font-family: var(--wa-body); color: var(--ink); font-size: 17px; line-height: 1.55; }
.wa * { box-sizing: border-box; }
.wa-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--wa-gutter); }
.wa-narrow { max-width: var(--wa-measure); margin: 0 auto; padding: 0 var(--wa-gutter); }
.wa-label { font-family: var(--wa-label); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.wa p { margin: 0 0 1em; }
.wa a { color: inherit; }

.wa-hero { text-align: center; padding: clamp(56px, 11vw, 140px) 0 var(--wa-section); }
.wa-hero h1 { font-family: var(--wa-display); font-weight: 400; font-size: clamp(48px, 9vw, 112px); line-height: .95; letter-spacing: -0.02em; margin: 22px 0 28px; color: var(--ink); }
.wa-hero h1 em { font-family: var(--wa-quote); font-style: italic; font-weight: 300; }
.wa-standfirst { font-family: var(--wa-quote); font-weight: 300; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.3; max-width: 30ch; margin: 0 auto 18px !important; }
.wa-intro { color: var(--muted); max-width: 52ch; margin: 0 auto 36px !important; }

.wa-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.wa-btn { display: inline-block; font-family: var(--wa-label); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important; padding: 15px 26px; border: 1.5px solid var(--ink); }
.wa-btn-ink, .wa-btn-line { background: var(--ink); color: var(--paper) !important; }
.wa-btn-ink:hover, .wa-btn-line:hover { background: var(--paper); color: var(--ink) !important; }
.wa-night .wa-btn-line { background: var(--chalk); border-color: var(--chalk); color: var(--night) !important; }
.wa-night .wa-btn-line:hover { background: var(--night); color: var(--chalk) !important; }

.wa-plate { margin: 0 auto; max-width: 1040px; padding: 0 var(--wa-gutter); }
.wa-plate img { display: block; width: 100%; height: auto; margin: 0; }
.wa-plate figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.wa-plate figcaption em { font-style: italic; }

/* The one night section: an echo of the book's dark cover. */
.wa-night { background: var(--night); color: var(--chalk); padding: var(--wa-section) 0; margin-top: var(--wa-section); }
.wa-night .wa-label { color: var(--night-muted); }
.wa-night h2 { font-family: var(--wa-display); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; margin: 14px 0 12px; color: var(--chalk); }
.wa-night .wa-lede { font-family: var(--wa-quote); font-weight: 300; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--chalk); max-width: 34ch; }

/* Four questions: label, title, answer and link line up across the columns (subgrid rows). */
.wa-qs { list-style: none; margin: 48px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-top: 1px solid var(--night-rule); }
.wa-qs li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; padding: 26px 0 30px; border-bottom: 1px solid var(--night-rule); margin: 0; }
.wa-qs .wa-n { font-family: var(--wa-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--night-muted); }
.wa-qs h3 { font-family: var(--wa-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; margin: 0; color: var(--chalk); }
.wa-qs p { color: var(--night-muted); font-size: 15px; line-height: 1.5; margin: 0; }
.wa-qs .wa-more { align-self: end; justify-self: start; font-family: var(--wa-label); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--chalk); text-decoration: none; padding: 11px 16px; border: 1.5px solid var(--chalk); background: var(--chalk); color: var(--night); }
.wa-qs .wa-more:hover { background: var(--night); color: var(--chalk); }
.wa-left { justify-content: flex-start; }
@media (max-width: 960px) { .wa-qs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wa-qs { grid-template-columns: 1fr; } }

.wa-contact { padding: var(--wa-section) 0 0; text-align: center; }
.wa-contact h2 { font-family: var(--wa-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 18px; color: var(--ink); }
.wa-contact p { max-width: 46ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.wa-credit { font-size: 14px; color: var(--muted); text-align: center; padding: 40px var(--wa-gutter) 8px; }

/* About: one essay at reading width. */
.wa-article { padding: clamp(48px, 8vw, 104px) 0 0; }
.wa-article h1 { font-family: var(--wa-display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.015em; margin: 16px 0 28px; color: var(--ink); }
.wa-article h2 { font-family: var(--wa-quote); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 44px 0 12px; color: var(--ink); }
.wa-article p, .wa-article li { font-size: 19px; line-height: 1.65; }
.wa-article ul { padding-left: 1.2em; margin: 0 0 1em; }
.wa-article li { margin: 0 0 .5em; }
.wa-article a { text-decoration-color: var(--red); text-underline-offset: 3px; }
.wa-article .wa-lead { font-family: var(--wa-quote); font-weight: 300; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.4; }

@media (max-width: 560px) {
  .wa-btn { width: 100%; text-align: center; }
}

/* Flowershow frame: navbar and footer in the label face, as on seedsofrenaissance.org; the site title stays in Polyamine as a wordmark. */
.site-navbar-link, .site-footer, .site-footer p, .site-footer a { font-family: var(--wa-label); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.site-footer-copyright { color: var(--muted); }

/* The paper (default layout): meta line, contents, plates. */
.wa-paper-meta { font-family: var(--wa-label); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wa-paper-meta a { color: inherit; }
.wa-contents { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0 8px; margin: 28px 0 40px; }
.wa-contents .wa-label { font-family: var(--wa-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.wa-contents ol { margin: 0 0 12px; }
.wa-fig { margin: 24px 0 32px; }
.wa-fig img { display: block; width: 100%; height: auto; margin: 0; }
.wa-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.page-header-title { font-family: var(--wa-display); font-weight: 400; color: var(--ink); font-size: clamp(44px, 6vw, 66px); line-height: 1; }
.page-header-description { font-family: var(--wa-quote); font-weight: 300; font-style: normal; text-transform: none; letter-spacing: 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--ink); }

/* ── Reading style: Markdown prose in SoR type ──────────────────
   Ported from sor-website src/styles/site.css "Markdown prose" (Rufus, 2026-10-25): body 19px/1.65, a 43rem measure,
   Restora heads set close to their text (Polyamine keeps the page title), Restora quotes, compact lists, notes under a rule,
   red note marks. Flowershow wraps page Markdown in .rendered-mdx (.is-plain on layout: plain pages), as the SoR site did. */
.rendered-mdx:not(.is-plain) { font-family: var(--wa-body); font-size: 19px; line-height: 1.65; color: var(--ink); max-width: 43rem; overflow-wrap: anywhere; hyphens: auto; }
.rendered-mdx:not(.is-plain) :is(strong, b) { font-weight: 600; }
.rendered-mdx:not(.is-plain) p, .rendered-mdx:not(.is-plain) ul, .rendered-mdx:not(.is-plain) ol { margin-block: 1.25em; }
.rendered-mdx:not(.is-plain) p { text-wrap: pretty; }
.rendered-mdx:not(.is-plain) :is(h2, h3, h4) { font-family: var(--wa-quote); font-weight: 400; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); text-transform: none; }
/* Scale on 19px body: h2 ~2.1x, h3 ~1.4x, h4 ~1.1x; space above a head is about three times the space below. */
.rendered-mdx:not(.is-plain) h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.1; letter-spacing: -.015em; margin-block: 80px 18px; }
.rendered-mdx:not(.is-plain) h3 { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin-block: 48px 10px; }
.rendered-mdx:not(.is-plain) h4 { font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin-block: 36px 6px; }
.rendered-mdx:not(.is-plain) :is(h2, h3, h4) + * { margin-top: 0; }
.rendered-mdx:not(.is-plain) :is(h2, h3, h4) a { text-decoration: none; font-weight: inherit; }
.rendered-mdx:not(.is-plain) a { color: var(--ink); font-weight: 500; text-decoration-line: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.rendered-mdx:not(.is-plain) blockquote { font-family: var(--wa-quote); font-style: italic; font-size: 24px; line-height: 1.3; border-left: 0; padding: 0; margin: 32px 0 28px; font-weight: 300; color: var(--ink); hyphens: manual; }
.rendered-mdx:not(.is-plain) blockquote > p { margin-block: 0 10px; }
.rendered-mdx:not(.is-plain) hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }
.rendered-mdx:not(.is-plain) img { height: auto; }
.rendered-mdx:not(.is-plain) :is(ul, ol) { padding-left: 1.625em; }
.rendered-mdx:not(.is-plain) li { margin-block: .25em; padding-left: .375em; }
.rendered-mdx [data-footnotes], .rendered-mdx .footnotes { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.45; }
.rendered-mdx sup a { text-decoration: none; color: var(--red); font-family: var(--wa-label); font-size: 11px; font-weight: 700; }
.rendered-mdx table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rendered-mdx :is(th, td) { border-bottom: 1px solid var(--rule); padding: 8px 12px 8px 0; text-align: left; vertical-align: top; }

/* Paper devices (after sor-website papers.css): the executive summary's answer as the standfirst, figures, the pager. */
.rendered-mdx:not(.is-plain) > :first-child { margin-top: 0; }
.rendered-mdx:not(.is-plain) h2#executive-summary + p { font-family: var(--wa-quote); font-weight: 300; font-size: 22px; line-height: 1.5; }
.rendered-mdx .wa-label { font-family: var(--wa-label); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.rendered-mdx .wa-label + h3 { margin-top: 0; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; font-weight: 400; }
.rendered-mdx .wa-read { margin: 1.5em 0 4.5em; }
.rendered-mdx .wa-read a { display: inline-block; font-family: var(--wa-label); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 13px 22px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); }
.rendered-mdx .wa-read a:hover { background: var(--paper); color: var(--ink); }
.wa-pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); margin-top: 3em; padding-top: 14px; }
.wa-pager a { font-family: var(--wa-label); font-size: 12px; font-weight: 500 !important; letter-spacing: .14em; text-transform: uppercase; text-decoration: none !important; }

/* Breadcrumb and reading time: small sans labels, not display type. */
.page-header-breadcrumbs, .page-header-breadcrumb-link, .page-header-breadcrumb-item, .page-header-reading-time { font-family: var(--wa-label); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.page-header-breadcrumb-link { text-decoration: none; }
.page-header-breadcrumb-link:hover { color: var(--ink); }

/* Hero (showHero: true; the paper pages): title and buttons beside the essay's plate, on paper, like a paper's title page. */
.page-hero-container { background: var(--paper); border-bottom: 1px solid var(--rule); }
.page-hero, .page-hero.has-image { max-width: 1180px !important; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--wa-gutter); display: flex !important; flex-direction: row; gap: clamp(28px, 5vw, 64px); align-items: center; text-align: left; }
.page-hero > * { flex: 1 1 0; min-width: 0; width: auto !important; }
.page-hero-content-container, .page-hero-content { padding: 0; margin: 0; max-width: none; text-align: left; }
.page-hero-title { font-family: var(--wa-display); font-weight: 400; font-size: clamp(48px, 6.6vw, 88px); line-height: .98; letter-spacing: -.01em; color: var(--ink); margin: 0 0 22px; text-wrap: balance; }
.page-hero-description { font-family: var(--wa-quote); font-weight: 300; font-style: normal; text-transform: none; letter-spacing: 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--ink); margin: 0 0 32px; max-width: 30ch; }
.page-hero-ctas-container { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
/* Hero buttons: the theme styles the first and second differently; both are pinned here (selector weight plus !important). */
.page-hero .page-hero-ctas-container .page-hero-cta { display: inline-block !important; font-family: var(--wa-label) !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.2 !important; letter-spacing: .12em !important; text-transform: uppercase !important; text-decoration: none !important; padding: 15px 24px !important; margin: 0 !important; border: 1.5px solid var(--ink) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--ink) !important; }
.page-hero .page-hero-ctas-container .page-hero-cta:first-child { background: var(--ink) !important; color: var(--paper) !important; }
.page-hero .page-hero-ctas-container .page-hero-cta:hover { background: var(--ink) !important; color: var(--paper) !important; }
.page-hero .page-hero-ctas-container .page-hero-cta:first-child:hover { background: #000 !important; }
.page-hero-image-container { display: block !important; margin: 0; padding: 0; width: 100%; }
.page-hero-image { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; object-position: center; border-radius: 0; box-shadow: none; }
@media (max-width: 860px) {
  .page-hero, .page-hero.has-image { flex-direction: column; align-items: stretch; }
  .page-hero-image-container { order: -1; }
  .page-hero-image { max-height: 360px; }
}

/* Headings never hyphenate or break inside a word (the reading text's hyphens: auto is inherited otherwise); balance their lines instead. */
.rendered-mdx :is(h1, h2, h3, h4, h5, h6), .page-header-title, .page-hero-title, .page-header-description, .page-hero-description, .wa-hero h1, .wa-night h2, .wa-qs h3, .wa-contact h2, .wa-article h1, .wa-article h2 { hyphens: manual !important; overflow-wrap: normal !important; word-break: normal !important; text-wrap: balance; }
