/* Expedited Ventures — styles.css
   Warm minimal: paper ground, warm ink, one forest accent.
   Tokens → base → layout → components → dark scheme. */

:root {
  color-scheme: light dark;

  /* palette, light */
  --paper: #f6f1e9;
  --ink: #1f221c;
  --ink-2: #5a5f54;
  --rule: #d8cfc0;
  --accent: #2e5a3c;
  --accent-ink: #f6f1e9;

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.75rem;
  --fs-s: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-m: 1.25rem;
  --fs-l: 1.5rem;
  --fs-xl: clamp(1.625rem, 1.25rem + 1.4vw, 2.25rem);
  --fs-hero: clamp(2.5rem, 1.2rem + 4.2vw, 4.75rem);
  --lh: 1.55;

  /* spacing: 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section: clamp(3.5rem, 4vw + 2rem, 7rem);

  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --measure: 62ch;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--s-6);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, dt { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

svg { display: block; }

main { flex: 1 0 auto; }

/* ---------- utilities ---------- */

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* mono label stack, shared by eyebrows and the facts table; colour is set per use */
.eyebrow, .facts-head, .facts dt {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--accent); }

.muted { color: var(--ink-2); }

/* segmented lines: each segment stays whole, separator travels with it */
.seg { white-space: nowrap; }
.seg:not(:last-child)::after {
  content: "\00b7";      /* fallback for engines without the alt-text form */
  content: "\00b7" / "";
  margin-inline: 0.5em 0.2em; /* the source whitespace after the span supplies the rest */
  color: var(--ink-2);
}
.eyebrow .seg:not(:last-child)::after { margin-inline: 0.6em 0; }

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100%;
  z-index: 10;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: var(--s-4); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-m);
  letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.mark-bg { fill: var(--accent); }
.mark-fg { fill: var(--paper); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s-1);
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 40em) {
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0 var(--s-4); justify-content: space-between; }
  .site-nav a { font-size: 0.875rem; padding-inline: 0; }
}
@media (max-width: 24em) {
  /* four labels need ~335px in one row; 360 and 320 devices get a tidy 2×2 instead of 3+1 */
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 6vw + 2rem, 9rem) clamp(4rem, 5vw + 2rem, 8rem);
}
.hero h1 {
  max-width: 17ch;
  margin-top: var(--s-5);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero .lede {
  max-width: 48ch;
  margin-top: var(--s-6);
  font-size: var(--fs-m);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero .actions, .doc-hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7);
}
@media (max-width: 40em) {
  /* phone: tighter rhythm so the facts table enters the first screen */
  .hero { padding-block: var(--s-7) var(--s-8); }
  .hero .lede { margin-top: var(--s-5); }
  .hero .actions { margin-top: var(--s-6); }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0 1.375rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-base);
  text-decoration: none;
}
.button:hover { background: var(--accent); color: var(--accent-ink); }
.button:active { transform: translateY(1px); }
.button svg { width: 16px; height: 16px; }

.quiet-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--ink-2);
}
.quiet-link:hover { color: var(--ink); }

/* at-a-glance facts: reference information, not a card.
   Row geometry is budgeted so every value stays on one line from 390px up:
   "Owner-operated software studio" needs ~223px at 15px; 12px padding + 6rem label
   track (ESTABLISHED is ~90px) + 8px gap leaves 228px at 390 and 238px at 896. */
.facts {
  margin-top: var(--s-7);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.facts-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3);
  color: var(--ink-2);
}
.facts-head span:last-child { color: var(--accent); text-align: right; }
.facts dl > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: var(--s-1) var(--s-2);
  padding: var(--s-3);
  border-top: 1px solid var(--rule);
}
.facts dt {
  color: var(--ink-2);
  padding-top: 0.2em;
}
.facts dd {
  font-size: var(--fs-s);
  line-height: 1.45;
  overflow-wrap: break-word;
}
.facts dd a {
  /* 44px+ tap target without moving the row: padding out, margin back in */
  display: inline-block;
  padding-block: var(--s-3);
  margin-block: calc(-1 * var(--s-3));
  font-weight: 500;
}
@media (max-width: 24em) {
  .facts dl > div { grid-template-columns: 1fr; }
}
@media (min-width: 56em) {
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
    column-gap: var(--s-8);
    align-items: start;
  }
  .facts {
    /* pull up by the head's padding + border so "At a glance" sits level with the eyebrow */
    margin-top: calc(-1px - var(--s-3));
  }
}
@media (min-width: 56em) and (max-width: 67.99em) {
  /* lower desktop band: 5fr would give the facts only 336–366px, which wraps the Type value;
     a fixed 23rem column with a 3rem gap keeps the text column ≥ 408px at 896 (the h1's
     widest line is 400px there, so it still breaks in three lines). */
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 23rem; column-gap: var(--s-7); }
}

/* ---------- sections ---------- */

.section {
  border-top: 1px solid var(--rule);
  padding-block: var(--section);
}
.section-grid {
  display: grid;
  gap: var(--s-6);
}
.section h2 {
  max-width: 18ch; /* measured in the heading's own font */
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: var(--s-3);
}

@media (min-width: 56em) {
  .section-grid {
    grid-template-columns: minmax(12rem, 2fr) minmax(0, 5fr);
    gap: var(--s-8);
  }
}

/* numbered item lists */
.items {
  display: grid;
  gap: var(--s-6) var(--s-6);
}
.items > li {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
}
.items .eyebrow { display: block; }
.items h3 {
  margin-top: var(--s-4);
  font-size: var(--fs-l);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.items p {
  margin-top: var(--s-3);
  max-width: 38ch;
  color: var(--ink-2);
}
@media (min-width: 40em) {
  .items.cols-2 { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-7); }
}
@media (min-width: 56em) {
  .items.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 56em) and (max-width: 63.99em) {
  /* the right track is only ~500-620px here; give the three columns the gap back */
  .items.cols-3 { gap: var(--s-6) var(--s-5); }
}

.note {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.note > span { display: block; max-width: var(--measure); }

/* ---------- contact ---------- */

.contact-list {
  display: grid;
  gap: var(--s-6);
  /* two columns only when each can hold an address on one line (20rem > support@… at its 1.5rem max) */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.contact-list dt { color: var(--ink-2); font-size: var(--fs-s); }
.contact-list dd { margin-top: var(--s-2); }

/* big mailto links: homepage contact list and the support page */
.contact-list dd a, .prose .big {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--s-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.contact-list dd a { font-size: clamp(1.125rem, 0.9rem + 1.2vw, 1.5rem); }
.prose .big { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }

.contact-foot {
  margin-top: var(--s-7);
  max-width: var(--measure);
  color: var(--ink-2);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-6) var(--s-7);
  font-size: var(--fs-s);
  color: var(--ink-2);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3) var(--s-6);
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ---------- document pages (support, privacy, 404) ---------- */

.doc-hero { padding-block: clamp(3rem, 5vw + 1rem, 7rem) clamp(2rem, 4vw, 4rem); }
.doc-hero h1 {
  margin-top: var(--s-5);
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.doc-hero .lede {
  max-width: 48ch;
  margin-top: var(--s-5);
  font-size: var(--fs-m);
  color: var(--ink-2);
}
.doc-hero .dateline { margin-top: var(--s-5); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose strong { font-weight: 600; }
.prose a { font-weight: 500; }
.checklist { counter-reset: item; }
.checklist li {
  counter-increment: item;
  position: relative;
  padding: var(--s-3) 0 var(--s-3) 2.75rem;
  border-top: 1px solid var(--rule);
}
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist li::before {
  content: "0" counter(item);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.list li {
  padding-block: var(--s-3);
  border-top: 1px solid var(--rule);
}
.list li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a { transition: color 160ms ease, border-color 160ms ease, text-decoration-thickness 160ms ease; }
  .button { transition: color 160ms ease, background-color 160ms ease, transform 160ms ease; }
}

/* ---------- dark scheme: warm charcoal ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1a17;
    --ink: #ece6da;
    --ink-2: #aaa295;
    --rule: #3a3530;
    --accent: #8fc19a;
    --accent-ink: #1c1a17;
  }
}
