/* Fonts served from this site (T-066), no third party: Inter and Source Serif 4, SIL Open Font License 1.1
   (fonts/OFL-*.txt), from the fontsource packages. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/inter-latin-400-normal.woff2) format("woff2");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/inter-latin-600-normal.woff2) format("woff2");
  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: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-opsz-normal.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;
}

/* Landing approach D (D-091, D-094): one stylesheet for d-solo, d-company and the index.
   Clean and minimal: near-white or calm dark, one narrow column, colour only as accents.
   Accent hues are the office palette's (docs/brand/art-direction/recipe.md section 2): teal #1fa39a, amber #f7b52c,
   coral #ef5b4c, blue #3b6fd4, violet #7a55c7. Each has a text-safe tone per theme (WCAG AA, checked; see README). */
:root {
  /* surfaces and ink */
  --color-bg: #fcfbf9; --color-surface: #f4f2ee; --color-text: #211c26; --color-muted: #5c5563; --color-line: #e3dfd9;
  /* accents: text-safe tone (links, rules, icon strokes) and the palette hue (icon fills only) */
  --teal: #0e7069;  --teal-hue: #1fa39a;
  --amber: #8f5208; --amber-hue: #f7b52c;
  --coral: #b8402f; --coral-hue: #ef5b4c;
  --blue: #2f5fbf;  --blue-hue: #3b6fd4;
  --violet: #6a46b5; --violet-hue: #7a55c7;
  --fill-alpha: .18;
  /* action */
  --color-action: var(--teal); --color-on-action: #ffffff; --color-focus: #0e7069;
  /* type: Source Serif 4 for titles, Inter for text; scale 1.25 on 17 px */
  --font-title: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --size-xs: 13px; --size-sm: 15px; --size-md: 17px; --size-lg: 21px; --size-h3: 21px;
  --size-h2: clamp(23px, 2.6vw, 27px); --size-h1: clamp(31px, 4.4vw, 42px);
  /* space: 8 px grid; 16 px gutters */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px;
  --gutter: 16px; --measure: 640px; --wide: 1040px; --radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-text); font-size: var(--size-md); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; margin: 0; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--size-h1); line-height: 1.15; }
h2 { font-size: var(--size-h2); }
p { margin: 0; }
a { color: var(--color-action); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.name { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.col { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); padding-bottom: var(--s3); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 600; font-size: 21px; color: var(--color-text); text-decoration: none; letter-spacing: -0.01em; }
.mark svg { width: 28px; height: 28px; flex: none; }
.top nav { display: flex; align-items: center; gap: var(--s1); }
.quiet { font: inherit; font-size: var(--size-sm); background: transparent; color: var(--color-muted); border: 1px solid var(--color-line); border-radius: 6px;
  min-height: 44px; padding: 0 14px; cursor: pointer; }
.quiet:hover { color: var(--color-text); border-color: var(--color-muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  background: var(--color-action); color: var(--color-on-action); border: 0; border-radius: 6px; padding: 12px 20px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.small { font-size: var(--size-sm); padding: 0 14px; }

/* hero */
.hero { padding-top: var(--s8); padding-bottom: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.hero .why { font-size: var(--size-lg); line-height: 1.5; color: var(--color-text); }
.hero .sub { color: var(--color-muted); }
.hero .actions { padding-top: var(--s1); }
.hues { display: flex; gap: 6px; margin-top: var(--s4); }
.hues i { display: block; height: 3px; width: 28px; border-radius: 2px; }

/* sections */
.block { margin-top: var(--s12); display: flex; flex-direction: column; gap: var(--s2); }
.block .icon { width: 44px; height: 44px; margin-bottom: var(--s1); }
.block .icon svg { width: 44px; height: 44px; display: block; }
.block .under { font-size: var(--size-sm); color: var(--color-muted); border-left: 2px solid var(--hue); padding-left: var(--s2); margin-top: var(--s1); }
.p1 { --hue: var(--teal); --hue-fill: var(--teal-hue); }
.p2 { --hue: var(--amber); --hue-fill: var(--amber-hue); }
.p3 { --hue: var(--coral); --hue-fill: var(--coral-hue); }
.p4 { --hue: var(--blue); --hue-fill: var(--blue-hue); }
.pf { --hue: var(--violet); --hue-fill: var(--violet-hue); }
.icon { color: var(--hue); }
.icon .f { fill: var(--hue-fill); fill-opacity: var(--fill-alpha); }
.icon .s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .d { fill: currentColor; }

/* screenshots: plain, thin border, one caption */
.shot { margin: var(--s6) auto 0; max-width: calc(880px + 2 * var(--gutter)); }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--color-line); border-radius: var(--radius); }
.shot figcaption { font-size: var(--size-xs); color: var(--color-muted); margin-top: var(--s1); }

/* early access */
.early { position: relative; margin-top: var(--s12); padding-top: var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.early::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--color-line); }
form.ask { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: flex-end; padding-top: var(--s1); }
form.ask label { display: flex; flex-direction: column; gap: 6px; font-size: var(--size-sm); font-weight: 600; flex: 1 1 260px; }
input[type="email"], textarea { font: inherit; font-size: 16px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-muted); border-radius: 6px; padding: 10px 12px; width: 100%; min-height: 44px; }
input[type="email"]:focus, textarea:focus { outline: 3px solid var(--color-focus); outline-offset: 1px; }
textarea { min-height: 96px; resize: vertical; }
.privacy { font-size: var(--size-sm); color: var(--color-muted); }
.privacy .ph { display: inline-block; border: 1px dashed var(--color-muted); border-radius: 4px; padding: 0 6px; margin-right: 4px; font-weight: 600; }
.after { display: flex; flex-direction: column; gap: var(--s2); }
.after .row { display: flex; flex-wrap: wrap; gap: var(--s1); }
form.one { display: flex; flex-direction: column; gap: var(--s1); }
form.one label { font-weight: 600; }
.thanks { font-family: var(--font-title); font-size: var(--size-lg); font-weight: 600; }
.thanks:focus, .done:focus { outline: none; }
.done { color: var(--color-muted); }
[hidden] { display: none !important; }

/* footer and the draft tag */
footer { margin-top: var(--s12); border-top: 1px solid var(--color-line); }
footer .wrap { padding-top: var(--s3); padding-bottom: var(--s8); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s3); font-size: var(--size-sm); color: var(--color-muted); }
footer .mark { font-size: 17px; }
footer .mark svg { width: 22px; height: 22px; }
.tag { position: fixed; right: 12px; bottom: 12px; z-index: 10; background: var(--color-text); color: var(--color-bg); font-size: var(--size-xs); font-weight: 600;
  border-radius: 4px; padding: 4px 8px; text-decoration: none; }

/* index */
.list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s4); }
.item { display: block; text-decoration: none; color: var(--color-text); border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.item:hover { border-color: var(--color-muted); }
.item b { display: block; font-family: var(--font-title); font-size: var(--size-lg); font-weight: 600; color: var(--color-action); }
.item span { color: var(--color-muted); font-size: var(--size-sm); }
.note { color: var(--color-muted); border-left: 2px solid var(--violet); padding-left: var(--s2); }

/* phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: var(--s4); gap: var(--s2); }
  .hero .why { font-size: 19px; }
  .block, .early, footer { margin-top: var(--s8); }
  .shot { margin-top: var(--s4); }
  .shot img { border-radius: 6px; }
  .top .quiet { padding: 0 10px; }
}
