/* EDIGO — site stylesheet. Light "paper" theme first, dark theme via prefers-color-scheme.
   Fonts are self-hosted (OFL, see assets/fonts/). No external requests. Palette: brand/BRAND.md */

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-display-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-italic-400.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos-text-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light dark;
  /* Light theme (default) */
  --paper: #F6F1E7;      /* page background */
  --paper-2: #ECE4D4;    /* oat: quiet bands, illustration fills */
  --card: #FFFDF8;       /* raised surfaces */
  --ink: #1E1C18;        /* text, 15.1:1 on paper */
  --ink-2: #58524A;      /* secondary text, 6.9:1 on paper */
  --accent: #1F5641;     /* pine: links, the mark, 7.6:1 on paper */
  --accent-strong: #163F30;
  --clay: #A4492A;       /* the one warm note: reminder dot, status, focus, 5.2:1 on paper */
  --line: #D8CFBD;       /* hairlines (decorative only) */

  --serif: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161512;
    --paper-2: #211F1A;
    --card: #211F1A;
    --ink: #EEE8DC;
    --ink-2: #B3AB9C;
    --accent: #8CC7A8;
    --accent-strong: #ABD8BF;
    --clay: #E39A78;
    --line: #3A362E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  font-kerning: normal;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 1.3rem + 5.2vw, 5.25rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.08; }
h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.2; margin: 0 0 .5em; }
h4 { font-size: 1rem; font-weight: 600; margin: 0 0 .25em; }
p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 62ch; }
strong { font-weight: 600; }
em { font-family: var(--serif); font-style: italic; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }

.skip {
  position: absolute; left: 1rem; top: -6rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

/* ---------- Header ---------- */
.site-header { padding: 1.25rem 0; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.brand { display: inline-block; line-height: 0; }
.brand img { width: 118px; height: 36px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; font-size: .9688rem; }
.nav-links a { color: var(--ink); text-decoration: none; padding: .3rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--accent); border-bottom-color: currentColor; }
.lang { color: var(--ink-2); text-decoration: none; font-size: .9688rem; padding: .3rem 0 .3rem 1.25rem; border-left: 1px solid var(--line); order: 2; }
.lang:hover { color: var(--accent); }
.site-header nav { order: 3; width: 100%; }
@media (min-width: 48rem) {
  .site-header nav { order: 2; width: auto; margin-left: auto; }
  .lang { order: 3; margin-left: -.5rem; }
}
@media (max-width: 30rem) { .nav-links { gap: .1rem 1.1rem; } }

/* ---------- Grid ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2rem; }
@media (min-width: 60rem) {
  .cols { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.5rem; }
  .c-head { grid-column: 1 / span 4; }
  .c-body { grid-column: 5 / span 8; }
  .c-body-narrow { grid-column: 6 / span 6; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 var(--space); }
.hero h1 { max-width: 13ch; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.hero-text p { font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3rem); line-height: 1.55; max-width: 34ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.75rem; font-weight: 500; }
.hero-figure { margin: 1rem 0 0; }
.hero-figure svg { display: block; width: 100%; max-width: 34rem; }
@media (min-width: 60rem) {
  .hero h1 { grid-column: 1 / span 11; }
  .hero-text { grid-column: 1 / span 5; }
  .hero-figure { grid-column: 6 / span 7; margin: -1rem 0 0; }
  .hero-figure svg { margin-left: auto; }
}

/* Illustration: line drawing, themable */
.ill-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill-fill { fill: var(--paper-2); }
.ill-card { fill: var(--card); }
.ill-accent { fill: var(--accent); }
.ill-paper { fill: var(--paper); }
.ill-dot { fill: var(--clay); }
.ill-ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1 9; stroke-linecap: round; }
.ill-text { fill: var(--ink); font-family: var(--sans); }
.ill-text-2 { fill: var(--ink-2); font-family: var(--sans); }
.ill-sign { fill: var(--ink); font-family: var(--serif); font-style: italic; }

/* ---------- Sections ---------- */
.section { padding: 0 0 var(--space); }
.section > .wrap > .cols { border-top: 1px solid var(--ink); padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.c-head h2 { margin-bottom: 1rem; }
.intro { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.55; }
.status { font-family: var(--serif); font-style: italic; color: var(--clay); margin: 0 0 1.5rem; }

/* Two parts of one idea */
.parts { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 44rem) { .parts { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.part { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.more { font-weight: 500; }

/* Where a reminder can live */
.bind { margin: 1rem 0 2.75rem; }
.bind div { border-top: 1px solid var(--line); padding: .9rem 0; }
.bind div:last-child { border-bottom: 1px solid var(--line); }
.bind dt { font-weight: 600; }
.bind dd { margin: .15rem 0 0; color: var(--ink-2); max-width: 52ch; }
@media (min-width: 40rem) {
  .bind div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; }
  .bind dd { margin: 0; }
}

.principles { list-style: none; padding: 0; margin: 1rem 0 2.5rem; }
.principles li { border-top: 1px solid var(--line); padding: .9rem 0; }
.principles span { display: block; max-width: 62ch; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles strong { display: block; }
.principles span { color: var(--ink-2); }

/* Shop band */
.band { background: var(--paper-2); padding: var(--space) 0; margin-bottom: var(--space); }
.band .cols { align-items: end; }
.band h2 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.5rem); line-height: 1; margin: 0 0 1.5rem; }
.band p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); }
.go { display: inline-block; font-weight: 600; font-size: 1.0625rem; margin-top: .5rem; }
@media (min-width: 60rem) {
  .band .c-head { grid-column: 1 / span 6; }
  .band .c-body { grid-column: 7 / span 6; }
}

/* Contact */
.email { font-family: var(--serif); font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem); line-height: 1.1; margin: .25rem 0 2.5rem; letter-spacing: -0.01em; }
.email a { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.75rem; margin: 0; }
.details dt { color: var(--ink-2); }
.details dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 26rem) { .details { grid-template-columns: minmax(0, 1fr); gap: 0; } .details dd { margin-bottom: .6rem; } }
.h-small { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; }

/* Simple pages (privacy, 404) */
.page { padding: clamp(2.5rem, 7vw, 6rem) 0 var(--space); min-height: 55vh; }
.page h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); }
.page h2 { margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9375rem; color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; }
.footer-mark { width: 40px; height: 40px; display: block; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 2.5rem; flex: 1 1 20rem; }
.footer-legal p { margin: 0; max-width: none; }
.footer-legal .legal-name { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .ill-line, .ill-ring { stroke: CanvasText; }
}
@media (max-width: 40rem) { .footer-legal { flex-direction: column; } }
