/* YardClerk home page styles. Fonts are self-hosted at /fonts/fontsource-5.3.0/ (latin subset, woff2). */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fontsource-5.3.0/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fontsource-5.3.0/atkinson-hyperlegible-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fontsource-5.3.0/barlow-semi-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fontsource-5.3.0/barlow-semi-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fontsource-5.3.0/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fontsource-5.3.0/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fontsource-5.3.0/ibm-plex-mono-600.woff2") format("woff2");
}

/* Layout: a yard's stock tag beside the pitch, then one grid of what YardClerk does (6 columns on desktop: wide pairs and rows of three);
   one centred 70rem column, with a full-width band for early access.
   Palette: the web app's neutral base (near-black primary, quiet greys, 0.5rem radius) tilted slightly toward steel,
   plus one paint-marker yellow, the colour yards write stock numbers in. */
:root {
  --paper: #F5F6F7;
  --surface: #FFFFFF;
  --band: #E9ECEF;
  --ink: #15181C;
  --ink-soft: #4F5862;
  --line: #D9DEE3;
  --line-strong: #A3ACB6;
  --hatch: #E2E6EA;
  --marker: #F2C12E;
  --on-marker: #15181C;
  --primary: #15181C;
  --on-primary: #F8F9FA;
  --primary-hover: #2C3238;
  --shadow: 0 1px 2px rgba(21, 24, 28, 0.06), 0 14px 34px -14px rgba(21, 24, 28, 0.22);

  --font-display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.55rem + 4.2vw, 4.25rem);

  --radius: 0.5rem;
  --measure: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111417;
    --surface: #191D21;
    --band: #1C2126;
    --ink: #E9ECEF;
    --ink-soft: #A2ABB5;
    --line: #2A3036;
    --line-strong: #4F5862;
    --hatch: #262C32;
    --marker: #E9B825;
    --on-marker: #15181C;
    --primary: #E9ECEF;
    --on-primary: #111417;
    --primary-hover: #FFFFFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -16px rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #111417;
  --surface: #191D21;
  --band: #1C2126;
  --ink: #E9ECEF;
  --ink-soft: #A2ABB5;
  --line: #2A3036;
  --line-strong: #4F5862;
  --hatch: #262C32;
  --marker: #E9B825;
  --on-marker: #15181C;
  --primary: #E9ECEF;
  --on-primary: #111417;
  --primary-hover: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -16px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.site-header { position: relative; }
.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -100vh;
  z-index: 20;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 0.75rem; }
.skip:focus-visible { outline-color: var(--marker); outline-width: 3px; }

.label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: 0.005em;
  line-height: 1;
}
.brand-mark-body { fill: var(--ink); }
.brand-mark-band { fill: var(--marker); stroke: var(--paper); stroke-width: 1.5; paint-order: stroke; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.75rem 0.25rem 0.625rem;
  background: var(--surface);
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 0 0 1.5px var(--ink);
  flex: none;
}

/* Hero */
.hero .wrap {
  display: grid;
  gap: 2.75rem;
  padding-block: 1.75rem 3.5rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 4rem;
    padding-block: 3rem 5rem;
  }
}
.hero-text {
  min-width: 0;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  max-width: 14ch;
}
.mark {
  text-decoration-line: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
}
.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: 1.5px solid var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover { background: var(--band); }
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* The example stock tag */
.tag {
  position: relative;
  width: 100%;
  max-width: 25rem;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 56rem) {
  .tag { transform: rotate(-1.25deg); justify-self: end; }
}
.tag-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
}
.hole {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  flex: none;
}
.stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1.5px dashed var(--line-strong);
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
}
.tag-sku {
  background: var(--marker);
  color: var(--on-marker);
  padding: 0.75rem 1.125rem 0.875rem;
  display: grid;
  gap: 0.125rem;
}
.tag-sku-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-sku-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.tag dl {
  margin: 0;
  padding: 0.375rem 1.125rem 0.25rem;
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
}
.tag dt, .tag dd {
  margin: 0;
  padding-block: 0.625rem;
  border-bottom: 1px dashed var(--line);
}
.tag dl > :nth-last-child(-n+2) { border-bottom: 0; }
.tag dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.8rem;
}
.tag dd {
  font-size: 1rem;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tag .mono { font-family: var(--font-mono); font-size: 0.9375rem; }
.sub { color: var(--ink-soft); font-size: 0.875rem; }
.thumbs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.thumb {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, var(--hatch) 0 4px, var(--surface) 4px 8px);
  flex: none;
}
.thumbs-count { margin-left: 0.25rem; }
.tag-foot {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.875rem 1.125rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.tag-foot svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: 0.0625rem; color: var(--ink); }
.tag-foot strong { color: var(--ink); }

/* Sections */
.section .wrap {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
}
@media (min-width: 56rem) {
  .section .wrap { padding-block: 4.5rem; }
}
.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}
.section h2, .early h2 {
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.section-head p { color: var(--ink-soft); max-width: var(--measure); }
.rule-top { border-top: 1px solid var(--line); }

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 42rem) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .feature-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feature { grid-column: span 2; }
  .feature.wide { grid-column: span 3; }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.375rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.875rem;
  row-gap: 0.75rem;
  align-items: center;
  align-content: start;
  min-width: 0;
}
.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex: none;
}
.icon-box svg { width: 1.5rem; height: 1.5rem; }
.feature h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
}
.feature p { grid-column: 1 / -1; color: var(--ink-soft); max-width: var(--measure); }

/* Early access band */
.early { background: var(--band); }
.early .wrap {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
  align-items: start;
}
@media (min-width: 56rem) {
  .early .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
    padding-block: 4.5rem;
  }
}
.early-text { display: grid; gap: 1rem; min-width: 0; }
.early-text p { max-width: var(--measure); }
.early-text .soft { color: var(--ink-soft); }

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.375rem;
  display: grid;
  gap: 0.875rem;
  min-width: 0;
}
.addr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.addr {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.addr:hover { text-decoration-thickness: 2px; }
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.copy-row .btn { min-height: 2.5rem; padding-block: 0.5rem; font-size: 0.9375rem; }
#copy-status { font-size: 0.9375rem; color: var(--ink); min-height: 1.5em; }

/* Not-found page (404.html) */
.notfound .wrap {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  padding-block: 3rem 5rem;
}
@media (min-width: 56rem) {
  .notfound .wrap { padding-block: 5rem 7rem; }
}
.notfound h1 {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.notfound .section-head { gap: 1rem; }

/* Footer */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-footer .brand-word { font-size: 1.25rem; color: var(--ink); }
.foot-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot-brand svg { width: 1.5rem; height: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: background-color 120ms ease, border-color 120ms ease; }
}
