/* fallowcrew.si. Design tokens: Docs/fallowcrew-site.md, Design */
:root {
  --paper: #f3eee2;
  --paper-2: #e8e0cc;
  --ink: #1e1b16;
  --ink-2: #4a443a;
  --line: #cbbfa4;
  --rye: #3d5a1c;
  --rye-soft: #c9d7a8;
  --people: #1e1b16;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --step-3: clamp(2.5rem, 1.4rem + 5.2vw, 5.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius: 2px;
  --measure: 62ch;
  --page: 72rem;
  --fast: 120ms;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f;
    --paper-2: #1f1d17;
    --ink: #ede6d5;
    --ink-2: #b5ac98;
    --line: #3a3529;
    --rye: #a9c66d;
    --rye-soft: #34421f;
    --people: #ede6d5;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step-0)/1.6 var(--sans);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rye); outline-offset: 3px; border-radius: var(--radius); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0; max-width: var(--measure); }

.skip {
  position: absolute; left: var(--space-3); top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius);
  z-index: 1;
}
.skip:focus { top: var(--space-3); }

/* FS-15: under-construction notice on every page */
.notice {
  margin: 0; max-width: none;
  background: var(--ink); color: var(--paper);
  padding: var(--space-2) var(--space-4);
  text-align: center; font-size: var(--step--1);
}

/* Page frame */
.top, main > section, .foot, .legal {
  width: min(100% - 2 * var(--space-4), var(--page));
  margin-inline: auto;
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  flex-wrap: wrap;
  padding-block: var(--space-4);
}
.mark {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--serif); font-size: var(--step-1); font-weight: 600;
  text-decoration: none; letter-spacing: -0.01em;
}
.mark-rows { stroke: var(--line); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.mark-sprout { stroke: var(--rye); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.top-mail { font-size: var(--step--1); color: var(--ink-2); }

/* Furrows: the section divider, ploughed rows */
main > section + section {
  border-top: 0;
  padding-top: var(--space-6);
  position: relative;
}
main > section + section::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 13px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 6px);
}
main > section { padding-bottom: var(--space-6); }

/* Hero */
.hero { padding-top: var(--space-6); }
.eyebrow {
  font-family: var(--mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--rye);
  margin-bottom: var(--space-4);
}
.hero h1 { font-size: var(--step-3); letter-spacing: -0.02em; max-width: 15ch; }
.lede { font-size: var(--step-1); line-height: 1.5; margin-top: var(--space-4); color: var(--ink-2); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.button {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 0.8rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
  transition: background-color var(--fast) ease;
}
.button:hover { background: var(--rye); color: var(--paper); }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 600; }

/* One day strip, the signature */
.label {
  font-family: var(--mono); font-size: var(--step--1); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2);
}
.day figure { margin: var(--space-4) 0 0; }
.strip {
  position: relative; height: 4.5rem;
  background: var(--paper-2);
}
.strip span { position: absolute; top: 0.5rem; bottom: 0.5rem; }
.strip .people { background: var(--people); }
.strip .crew { background: repeating-linear-gradient(45deg, var(--rye) 0 3px, var(--rye-soft) 3px 9px); }
/* hour h sits at h / 24: crew 00:00-07:30, 12:15-12:45, 18:45-19:45, 21:15-24:00 */
.s1 { left: 0; width: 31.25%; }
.s2 { left: 51.04%; width: 2.08%; }
.s3 { left: 78.13%; width: 4.17%; }
.s4 { left: 88.54%; width: 11.46%; }
/* people 08:00-12:00, 13:00-18:30, 20:00-21:00 */
.s5 { left: 33.33%; width: 16.67%; }
.s6 { left: 54.17%; width: 22.92%; }
.s7 { left: 83.33%; width: 4.17%; }
.axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: var(--step--1); color: var(--ink-2);
  margin-top: var(--space-2);
}
.day figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3); font-size: var(--step--1); color: var(--ink-2);
}
.day figcaption > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.key { display: inline-block; width: 1.25rem; height: 0.75rem; vertical-align: middle; }
.key-people { background: var(--people); }
.key-crew {
  background: repeating-linear-gradient(45deg, var(--rye) 0 3px, var(--rye-soft) 3px 9px);
}
.note { margin-top: var(--space-4); }

/* How a run goes */
.rows { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.row-no { font-family: var(--mono); font-size: var(--step-1); color: var(--rye); line-height: 1.25; }
.rows p { margin-top: var(--space-2); color: var(--ink-2); }

/* Crew roster */
.section-lede { margin-top: var(--space-3); color: var(--ink-2); }
.roster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0 var(--space-5);
  margin: var(--space-5) 0 0;
}
.roster div { padding-block: var(--space-3); border-top: 1px solid var(--line); }
.roster dt { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); }
.roster dd { margin: var(--space-1) 0 0; color: var(--ink-2); }

/* Who it is for */
.fit-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
}

/* How it is set up */
.facts { margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
.facts div { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: var(--space-3); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }

/* Contact */
.contact p { margin-top: var(--space-3); }
.mail {
  font-family: var(--serif); font-size: var(--step-2); font-weight: 600;
  color: var(--rye); overflow-wrap: anywhere;
}

.foot {
  border-top: 1px solid var(--line);
  padding-block: var(--space-5) var(--space-6);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font-size: var(--step--1); color: var(--ink-2);
}

/* Legal pages (German) */
.legal { padding-block: var(--space-5) var(--space-6); }
.legal > * { max-width: var(--measure); }
.legal h1 { font-size: var(--step-2); }
.legal h2 { font-size: var(--step-1); margin-top: var(--space-5); }
.legal p, .legal ul { margin-top: var(--space-3); }
.legal ul { padding-left: var(--space-4); }
.legal-date { color: var(--ink-2); font-size: var(--step--1); }

.foot-nav { display: flex; gap: var(--space-4); }

@media (max-width: 40rem) {
  .rows li { grid-template-columns: 1fr; gap: var(--space-1); }
  .facts div { grid-template-columns: 1fr; gap: var(--space-1); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
