/* aethrovia.com — the brand page. Paper, ink and one copper accent
   (Cyprus gave copper its Latin name). The products keep their own
   colours: garage yellow, appointments green. Never indigo or blue-violet.
   Fonts are self-hosted (SIL OFL), cut down to what this page uses
   (README → Fonts): no Google Fonts request, no cookies. */

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/commissioner-latin.woff2") format("woff2-variations");
  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: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/commissioner-latin-ext.woff2") format("woff2-variations");
  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: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/commissioner-greek.woff2") format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Arial resized to Commissioner's width, so the swap doesn't move the
   layout. Measured with fontTools: English letter frequencies for Latin,
   the Greek page's own text for Greek (Commissioner's Greek is 6% wider
   than Arial's). The Greek face comes second so it wins for Greek. */
@font-face {
  font-family: "Commissioner fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 100.94%;
  ascent-override: 100.75%;
  descent-override: 20.41%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Commissioner fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 106.34%;
  ascent-override: 95.64%;
  descent-override: 19.37%;
  line-gap-override: 0%;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2-variations");
  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: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2-variations");
  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: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url("fonts/jetbrains-mono-greek.woff2") format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --sheet: #fffdf8;
  --ink: #171513;
  --text: #37332e;
  --muted: #625c53;
  --rule: #ddd6c9;
  --rule-strong: #c2b9a8;
  --copper: #9c4a1b;          /* 5.5:1 on paper */
  --copper-on-ink: #e08a4f;   /* 6.9:1 on ink */
  --on-ink: #f4f1ea;
  --on-ink-muted: #b9b2a6;
  --rule-on-ink: #34302b;
  --garage: #facc15;
  --appointments: #315d49;
  --live: #1f7a3f;
  --bad: #f08c7e;             /* 7.4:1 on ink */

  --font: "Commissioner", "Commissioner fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 620;
  font-variation-settings: "FLAR" 100;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
::selection { background: #f0d6c3; color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* The fonts have no arrow glyph, so it's drawn. */
.arrow { display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.25em; vertical-align: -0.12em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; background: var(--ink); color: var(--on-ink); border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.wordmark {
  color: var(--ink); text-decoration: none;
  font-size: 1.4rem; font-weight: 640; letter-spacing: -0.02em;
  font-variation-settings: "FLAR" 100;
}
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 0.95rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.site-nav .lang { color: var(--ink); font-weight: 600; }
.nav-short { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.hero-copy { position: sticky; top: 48px; }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 4.35rem); line-height: 1.02; letter-spacing: -0.028em; }
.hero h1 .stop { color: var(--copper); }
.lede { margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 34ch; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--on-ink); border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.btn:hover { background: #2c2824; color: var(--on-ink); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-ink); }
.text-link { font-weight: 600; padding: 12px 0; }

/* The example day: real wording, example names. */
.log { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 8px; }
.log-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px;
  padding: 14px 22px; border-bottom: 1px solid var(--rule-strong);
  font-size: 0.85rem; color: var(--muted);
}
.log-head strong { color: var(--ink); font-weight: 600; }
.log-item { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 14px; padding: 18px 22px 20px; }
.log-item + .log-item { border-top: 1px solid var(--rule); }
.log-item time { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); padding-top: 3px; }
.log-from { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 0.98rem; }
.log-from::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px;
  background: var(--marker, var(--ink));
}
.is-garage { --marker: var(--garage); }
.is-garage .log-from::before { box-shadow: inset 0 0 0 1px rgba(23, 21, 19, 0.35); }
.is-appointments { --marker: var(--appointments); }
.log-text {
  margin: 6px 0 8px;
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.55; color: var(--ink);
  overflow-wrap: anywhere;
}
.log-meta { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.log-foot { padding: 14px 22px; border-top: 1px solid var(--rule-strong); font-size: 0.82rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 6vw, 88px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.section-head p { max-width: 48ch; font-size: 1.1rem; }

/* Products */
.product {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--rule-strong);
}
.product-id { display: flex; align-items: center; gap: 16px; }
.product-id img { width: 56px; height: 56px; border-radius: 12px; }
.product-id h3 { font-size: 2rem; }
.product-addr { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.9rem; color: var(--muted); }
.product-lede { margin-top: 14px; max-width: 46ch; }
.facts { margin-top: 20px; display: grid; gap: 6px; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 26px; font-weight: 600; }
.product-cta a { display: inline-block; padding: 8px 0; }

.sends-title { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.sends { border-top: 1px solid var(--ink); }
.sends div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.sends dt { color: var(--ink); font-weight: 600; }
.sends dd { color: var(--muted); }

.next-trade {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 6vw, 88px);
  padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule-strong);
}
.next-trade h3 { font-size: 1.5rem; }
.next-trade p { max-width: 50ch; }

/* The same rules in every product */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.split-head { position: sticky; top: 48px; }
.split-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.split-head p { margin-top: 18px; max-width: 36ch; font-size: 1.1rem; }
.rules div { padding: 24px 0 28px; border-top: 1px solid var(--rule-strong); }
.rules div:last-child { border-bottom: 1px solid var(--rule-strong); }
.rules dt { color: var(--ink); font-size: 1.25rem; font-weight: 620; font-variation-settings: "FLAR" 100; letter-spacing: -0.01em; line-height: 1.25; }
.rules dd { margin-top: 8px; max-width: 46ch; }

/* Got a text from us? — for the people who receive the messages */
.texts { background: var(--ink); color: var(--on-ink-muted); border-top: 0; }
.texts h2, .texts dt { color: var(--on-ink); }
.texts a { color: var(--copper-on-ink); }
.texts :focus-visible { outline-color: var(--copper-on-ink); }
.texts .section-head p { color: var(--on-ink-muted); }
/* Columns, not a grid: the link check is taller than the other answers. */
.answers { columns: 2; column-gap: clamp(28px, 6vw, 88px); }
.answers > div { break-inside: avoid; padding: 26px 0 30px; border-top: 1px solid var(--rule-on-ink); }
.answers dt { font-size: 1.2rem; font-weight: 620; font-variation-settings: "FLAR" 100; line-height: 1.25; }
.answers dd { margin-top: 8px; max-width: 46ch; }

/* The link check: which part of the address to read. */
.link-check { margin-top: 16px; display: grid; gap: 8px; }
.link-check li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 11px 14px; background: #221f1c; border: 1px solid var(--rule-on-ink); border-radius: 6px;
}
.link-check .verdict { font-size: 0.82rem; font-weight: 600; }
.link-check .is-ours .verdict { color: var(--on-ink); }
.link-check .is-not .verdict { color: var(--bad); }
/* Break at the <wbr>s (after https://, before the path); mid-word only as a last resort. */
.link-check code { font-family: var(--mono); font-size: 0.84rem; color: var(--on-ink-muted); overflow-wrap: break-word; }
.link-check b { font-weight: 600; white-space: nowrap; }
.link-check .is-ours b { color: var(--copper-on-ink); }
.link-check .is-not b { color: var(--bad); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.contact-intro { margin-top: 18px; max-width: 40ch; font-size: 1.1rem; }
.email-big {
  display: inline-block; font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 600;
  font-variation-settings: "FLAR" 100; letter-spacing: -0.02em;
  text-decoration-thickness: 2px; text-underline-offset: 0.2em; overflow-wrap: anywhere;
}
.contact-notes { margin-top: 30px; }
.contact-notes li { padding: 16px 0; border-top: 1px solid var(--rule); max-width: 52ch; }
.contact-notes strong { color: var(--ink); font-weight: 600; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule-strong); padding: 26px 0 40px; font-size: 0.9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; }
.site-foot ul { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; }
.site-foot li { padding: 6px 0; }
.site-foot a { display: inline-block; padding: 4px 0; color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

/* Privacy pages */
.policy-page { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.policy-wrap { max-width: 800px; }
.policy-back { margin-bottom: 28px; font-weight: 600; }
.policy-page h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.policy-lede { margin-top: 22px; font-size: 1.2rem; line-height: 1.5; }
.policy-updated { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.policy-page section { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--rule-strong); }
.policy-page h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.policy-page section p + p { margin-top: 14px; }
.policy-links { margin-top: 14px; display: grid; gap: 8px; }
.policy-links li { padding-left: 20px; position: relative; }
.policy-links li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }

/* 404 */
.lost { padding: clamp(64px, 12vw, 160px) 0; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
.lost p { margin-top: 18px; max-width: 46ch; font-size: 1.1rem; }
.lost ul { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.lost ul a { display: inline-block; padding: 8px 0; }
.lost-el { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero-grid, .section-head, .product, .next-trade, .contact-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .split-head { position: static; }
  .section-head { align-items: start; }
  .answers { columns: 1; }
}
@media (max-width: 640px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .site-nav .hide-sm { display: none; }
  .log-head, .log-item, .log-foot { padding-left: 16px; padding-right: 16px; }
  .log-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .log-item time { padding-top: 0; }
  .log-item:nth-child(n+3) { display: none; }
  .sends div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .product-id h3 { font-size: 1.7rem; }
  .link-check li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .link-check code { font-size: 0.78rem; }
}
