/* yardrelay.app: plain static CSS, light only. Converted from the approved
   mockup "E · Ship-this-week minimal". Kept in its own file (not inline) so
   the CSP can say style-src 'self' without 'unsafe-inline'. */

/* Fonts are served from this site (site/fonts/), not Google, so a visit sends
   nothing to a third party. Geist is a variable font (one file covers every
   weight); these are Google Fonts' latin and latin-ext subsets of Geist and
   the latin subset of Geist Mono. SIL Open Font License: site/fonts/OFL.txt. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.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: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/geist-mono-latin.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;
}

:root {
  --accent: #2E6B45;
  --ink: #161A16;
  --ink-2: #4A514A;   /* 7.9:1 on --bg */
  --muted: #6A716A;   /* 4.85:1 on --bg */
  --rule: #DADDD6;
  --bg: #FBFBF9;
  --on-ink: #FFFFFF;
  --field-border: #858C85; /* 3.45:1 on white (WCAG 1.4.11); mockup's #C9CEC6 was 1.5:1 */
  --error: #A3341F;        /* 6.6:1 on --bg */
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  z-index: 1;
}
.skip-link:focus { top: 16px; color: var(--on-ink); }

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header { padding-top: 96px; }

main {
  flex: 1 0 auto;
  padding-top: 72px;
  padding-bottom: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }

.mark {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.lede {
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
}

.beta { margin-top: 44px; }

.beta-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
}

.beta-form,
.beta-fallback { margin: 0; }

[hidden] { display: none !important; }

.beta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.beta-input {
  flex: 1 1 240px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
}
.beta-input::placeholder { color: var(--muted); opacity: 1; }
.beta-input[aria-invalid="true"] { border-color: var(--error); }

.button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.button:disabled { opacity: 0.6; cursor: progress; }

/* Room for two lines is reserved, so a message never moves the page. */
.beta-status {
  min-height: 2.8em;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
}
.beta-status.is-success { color: var(--accent); }
.beta-status.is-error { color: var(--error); }

.beta-note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.beta-note a { color: inherit; }
.beta-note a:hover { color: var(--accent); }

.visually-hidden,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hp { left: -10000px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
}
.button:hover { background: var(--accent); color: var(--on-ink); }

.facts {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  font-size: 15px;
  line-height: 1.5;
}

.facts > div {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.facts dt {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.facts dd { margin: 0; }

.site-footer {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer p { margin: 0; }

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* Privacy policy and terms */
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); }

.doc-meta {
  margin: 12px 0 0;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.doc .doc-meta { margin-top: 12px; font-size: 12px; color: var(--muted); }
.doc h1 + .doc-meta + p { margin-top: 32px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* 404 */
.notfound-code {
  margin: 0 0 12px;
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .site-header { padding-top: 56px; }
  main { padding-top: 48px; }
  .lede { font-size: 17px; }
  .button { width: 100%; }
}
