/* Shared base for the v6 family (v6a–v6d): limestone ground, carob ink, one sun-gold for rays.
   Each variant sets its own fonts, scale and spacing through the custom properties below, then adds its own layout. */
:root {
  --stone: #ead5b0;
  --stone-deep: #dfc49a;
  --ink: #26150b;
  --ink-soft: #563520;
  --rule: #b8915f;
  --gold: #e8783a;      /* the name stays: it is the accent role (sun, "pays off"), burnt orange since 2026-10-13 */
  --shade: #2c2416;
  --night: #1b1d33;     /* the night painting's sky: dusk close */
  --paper: #f8f2e8;     /* the morning report card */
  --ink-hover: #43281a;
  --glass: color-mix(in srgb, var(--stone) 95%, transparent); /* cards over the painting / 3D */

  --serif: Georgia, serif;
  --stencil: ui-monospace, monospace;
  --stencil-weight: 600;
  --stencil-ls: .16em;
  --stencil-size: .75rem;

  --fs-body: 1.125rem;
  --lh-body: 1.6;
  --fs-h1: clamp(2.75rem, 7vw, 5.75rem);
  --lh-h1: 1.02;
  --fw-h1: 400;
  --ls-h1: -.02em;
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --lh-h2: 1.08;
  --fw-h2: 400;
  --section-pad: clamp(64px, 9vw, 128px);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

html[lang="en"] .t-el, html[lang="el"] .t-en { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--serif);
  font-optical-sizing: auto;
  overflow-x: clip;
}
/* page-wide fine grain so the limestone isn't flat */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .18  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* blending a full-screen layer over the 3D canvas every frame is costly on a phone; this faint, the grain looks the same without it */
@media (max-width: 719.98px) { body::after { mix-blend-mode: normal; } }
h1, h2, h3, p, blockquote, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* stencil lettering, like the painted marks on the old carob warehouses */
.stencil {
  font: var(--stencil-weight) var(--stencil-size)/1.35 var(--stencil);
  letter-spacing: var(--stencil-ls); text-transform: uppercase; color: var(--ink);
}
.leader { display: inline-flex; align-items: center; gap: .75em; }
.leader::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .7; }

/* nav */
.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 500 1.5rem/1 var(--serif); letter-spacing: -.01em; }
.brand-seed { width: 15px; height: 20px; }
.nav-links { display: flex; gap: 4px; margin-left: 24px; }
.nav-links a, .foot-links a, .nav-signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: var(--stencil-weight) var(--stencil-size)/1 var(--stencil); letter-spacing: var(--stencil-ls); text-transform: uppercase;
  text-decoration: none;
}
.nav-links a:hover, .foot-links a:hover, .nav-signin:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--rule); }
.lang button {
  min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink-soft); cursor: pointer;
  font: var(--stencil-weight) var(--stencil-size)/1 var(--stencil); letter-spacing: .12em;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--stone); }

/* buttons: square, flat, sun-gold */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--gold); color: var(--ink); border: 1px solid var(--gold);
  font: 700 .8125rem/1.2 var(--stencil); letter-spacing: var(--stencil-ls); text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: background-color .2s ease-out, color .2s ease-out;
}
@media (hover: hover) { .btn:hover { background: var(--ink); color: var(--stone); border-color: var(--ink); } } /* a tap on a phone would leave it stuck */
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .75rem; }

/* hero copy sits above the image */
.hero { position: relative; padding: 0; }
.hero-copy {
  position: relative; z-index: 3;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(32px, 3.5vw, 48px);
}
h1 { max-width: 11ch; font: var(--fw-h1) var(--fs-h1)/var(--lh-h1) var(--serif); letter-spacing: var(--ls-h1); text-wrap: balance; }
h2 { font: var(--fw-h2) var(--fs-h2)/var(--lh-h2) var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.lede { max-width: 36rem; margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.cta-note { max-width: 22rem; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); }

section { padding: var(--section-pad) 0; }
.prose { max-width: 38rem; }
.prose p { font-size: clamp(1.125rem, 1.5vw, 1.25rem); }
.dropcap::first-letter { float: left; font: 400 4.4em/.8 var(--serif); color: var(--ink); margin: .06em .1em -.04em 0; }

/* thin diagonal light-shaft rule */
.ray { display: block; height: 2px; background: var(--gold); transform-origin: left center; }
mark.sun { background: none; color: inherit; box-shadow: inset 0 -.18em 0 var(--gold); padding: 0 .08em; }
.seed-bullet { width: 12px; height: 16px; flex: none; }
.dash { width: 22px; height: 1px; background: var(--ink-soft); }
.fig { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.fig-word { font-style: italic; font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* accordion */
details { border-bottom: 1px dashed var(--rule); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0;
  font: 450 clamp(1.125rem, 1.6vw, 1.3rem)/1.35 var(--serif);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
              linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
  transition: transform .25s ease-out;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; max-width: 40rem; color: var(--ink-soft); }

/* footer */
.foot { border-top: 1px solid var(--ink); padding: 20px 0 28px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.foot-mark { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }
.foot-links { display: flex; flex-wrap: wrap; }
.foot-links a { padding: 0 10px; }
.foot .stencil { margin-left: auto; color: var(--ink-soft); }

@media (max-width: 720px) {
  .nav { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .nav-links, .nav .btn-sm { display: none; }
  .nav-end { gap: 2px; }
  .nav-signin { padding: 0 6px; letter-spacing: .08em; white-space: nowrap; } /* tighter, so Register fits beside Sign in */
  .hero-copy { padding-top: 28px; }
  .foot .stencil { margin-left: 0; }
}
@media (max-width: 374.98px) { .nav { padding-left: 16px; padding-right: 16px; } .nav-signin { padding: 0 3px; } }
@media (max-width: 349.98px) { .brand > span { display: none; } } /* the mark alone: the smallest phones can't fit the name too */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
