/* Freshform website, brand "Lot" (brand/round3). Contrast rules (WCAG 2.2 AA):
   sienna --accent only for graphics and text >= 24 px; small sienna text uses --accent-text.
   The hachure relief never sits behind text. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-VF.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --ground: #F7F7F4;      /* map paper */
  --ink: #241E1A;         /* 15.3:1 on ground */
  --ink-2: #57504B;       /* 7.6:1 */
  --rule: #241E1A;
  --rule-soft: #CFCBC4;
  --accent: #A6603A;      /* contour sienna: graphics, large text */
  --accent-text: #8A4B28; /* 6.3:1, small text and links */
  --sans: "IBM Plex Sans", "IBM Plex Sans JP", "IBM Plex Sans KR", "IBM Plex Sans SC", "IBM Plex Sans TC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15151D;    /* Imhof night shadow */
    --ink: #E9E8E2;
    --ink-2: #D3D1CA;
    --rule: #E9E8E2;
    --rule-soft: #3A3A44;
    --accent: #EAB084;
    --accent-text: #EAB084;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.6 var(--sans); }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.dark-only { display: none; }
@media (prefers-color-scheme: dark) { .light-only { display: none; } .dark-only { display: block; } }

/* sheet edge: coordinates in the margin, like a survey sheet */
.sheet { font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); letter-spacing: 0.02em; }
.sheet-line { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }

header { border-bottom: 2px solid var(--rule); }
header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.mark img { height: 34px; width: auto; }
header nav { margin-left: auto; display: flex; gap: 22px; font-size: 15.5px; }
header nav a { color: var(--ink); text-decoration: none; }
header nav a:hover, header nav a[aria-current] { text-decoration: underline; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.1; margin: 0 0 22px; }
h2 { font-size: clamp(25px, 2.8vw, 32px); line-height: 1.2; margin: 0 0 16px; }
.label { font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; }

.intro { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.intro p { color: var(--ink-2); max-width: 32em; margin: 0 0 14px; }
.intro p.sub { color: var(--ink); font-size: 21px; line-height: 1.5; }
.status { font-size: 15px; }
.cta { margin: 28px 0 0; }
.button { display: inline-block; background: var(--ink); color: var(--ground); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 3px; }
.button:hover { background: var(--accent-text); color: var(--ground); }

/* app screenshots: the unchanged app screens in a ruled frame with a sheet caption */
figure.screen { margin: 0; }
figure.screen img { border: 1px solid var(--rule); border-radius: 30px; }
figure.screen figcaption { margin-top: 12px; }

.relief { padding-bottom: 8px; }
.relief img { width: 100%; }
.relief p { margin: 10px 0 0; }

section { border-top: 2px solid var(--rule); padding: 64px 0; }
.lede { color: var(--ink-2); max-width: 36em; margin: 0 0 40px; }

.day { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 56px; }
.day figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-top: 4px; }
.day figcaption span { display: block; font-size: 16px; color: var(--ink-2); }
.first { margin: 40px 0 0; color: var(--ink-2); font-size: 16px; }

/* "What it calculates" reads like a map legend: a hachure swatch per entry */
dl.terms { display: grid; grid-template-columns: 250px 1fr; margin: 0; max-width: 880px; border-bottom: 1px solid var(--rule-soft); }
dl.terms dt, dl.terms dd { padding: 16px 0; border-top: 1px solid var(--rule-soft); margin: 0; }
dl.terms dt { font-weight: 600; font-size: 18px; padding-right: 24px; display: flex; gap: 12px; align-items: baseline; }
dl.terms dt::before { content: ""; flex: none; width: 14px; height: 14px; transform: translateY(2px);
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 5px); border: 1px solid var(--accent); }
dl.terms dd { color: var(--ink-2); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two p { color: var(--ink-2); margin: 0 0 14px; }
.narrow { max-width: 760px; }
.narrow p { color: var(--ink-2); }
.note .sig { color: var(--ink-2); font-size: 16px; margin-top: 20px; }

.doc { max-width: 720px; padding: 40px 24px 88px; margin: 0 auto; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc .meta { color: var(--ink-2); font-size: 15px; }
details { border-top: 1px solid var(--rule-soft); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule-soft); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-2); }
dl.imprint { grid-template-columns: 220px 1fr; margin: 8px 0 32px; }
dl.imprint dt { font-size: 16px; }
dl.imprint dt::before { display: none; }
dl.imprint dd { color: var(--ink); }

footer { border-top: 2px solid var(--rule); padding: 22px 0 44px; font-size: 14.5px; color: var(--ink-2); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
footer a { color: var(--ink-2); }
footer .end { margin-left: auto; }
footer .fine { font-size: 13px; line-height: 1.5; margin: 16px 0 0; max-width: 62em; }

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .intro figure.screen { max-width: 300px; }
  .day { grid-template-columns: 1fr; gap: 48px; }
  .day figure { max-width: 300px; }
  .two { grid-template-columns: 1fr; gap: 40px; }
  dl.terms, dl.imprint { grid-template-columns: 1fr; }
  dl.terms dd { border-top: 0; padding-top: 0; }
  .sheet-line span:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  header .wrap { gap: 14px; }
  .mark img { height: 26px; }
  header nav { gap: 14px; font-size: 14.5px; }
  footer .end { margin-left: 0; }
}
