/* organize.army apex, "Home Front" (round-3 STYLE.md). Mobile-first. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-600.woff2) format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/nunito-sans-400-700.woff2) format("woff2");
}
@font-face {
  font-family: "Big Shoulders Stencil";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/big-shoulders-stencil-700.woff2) format("woff2");
}

:root {
  --cream: #F7F1E8;
  --surface: #FFFBF4;
  --border: #E2D6BC;
  --ink: #3B2A20;
  --ink-muted: #6B5A4E;
  --olive: #5B6236;
  --olive-dark: #4A5029;
  --brass: #B8A06A;
  --brass-ink: #7A6636;
  --terracotta: #C4623A;
  --gold: #E3B062;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stencil: "Big Shoulders Stencil", "Big Shoulders Stencil Text", "Oswald", "Arial Narrow", sans-serif;

  --pad-x: 24px;
  --section-y: 64px;
  --shadow: 0 1px 2px rgba(59, 42, 32, .06);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }

.wrap { max-width: calc(1120px + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Focus: 2px terracotta ring, 2px offset (always on cream or surface) */
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: 8px;
  background: var(--surface); color: var(--ink); font-weight: 700;
  border: 1px solid var(--border);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- type */
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(40px, 5vw + 8px, 64px); line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 2.0833vw + 16.67px, 40px); line-height: 1.2; text-align: center; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; line-height: 1.3; }

.label {
  font: 700 13px/1.2 var(--stencil);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-ink);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 12px;
}
.label::before, .label::after { content: ""; width: 24px; height: 1px; background: var(--brass); }
.eyebrow { margin-bottom: 16px; }

.intro {
  max-width: 640px; margin: 12px auto 0;
  text-align: center; color: var(--ink-muted);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 24px;
  border-radius: 8px; border: 1.5px solid var(--olive);
  font: 700 16px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--olive); color: var(--cream); }
.btn-primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.btn-secondary { background: transparent; color: var(--olive); }
.btn-secondary:hover { background: rgba(91, 98, 54, .08); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { height: 40px; width: auto; }
.nav-desktop { display: none; }

.menu summary {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-right: -10px;
  border-radius: 8px; cursor: pointer; list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(91, 98, 54, .08); }
.menu-sheet {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 8px var(--pad-x) 24px;
}
.menu-sheet li a {
  display: flex; align-items: center; min-height: 48px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; font-weight: 600;
}
.menu-sheet .btn { width: 100%; margin-top: 16px; }

/* ---------------------------------------------------------------- hero */
.hero { overflow-x: clip; }
.hero-grid { display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 48px; }
.hero-art { order: -1; margin: 0 calc(-1 * var(--pad-x)) 24px; }
.hero-art img { width: 100%; }
.lede { margin-top: 16px; max-width: 34em; color: var(--ink); }
.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.cta .btn { width: 100%; }
.br-wide { display: none; }
.hero .eyebrow { justify-content: flex-start; }
.hero .eyebrow::before, .hero .eyebrow::after { display: none; }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--section-y) 0 0; scroll-margin-top: 72px; }
#starter-pack { padding-bottom: var(--section-y); }
.privacy, main { scroll-margin-top: 72px; }

/* Order board */
.board {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 20px;
}
.col { padding: 20px 0; }
.col + .col { border-top: 1px solid var(--border); }
.col-title {
  font: 700 14px/1.2 var(--stencil);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center; margin-bottom: 16px;
}
.tasks { display: grid; gap: 12px; }
.task {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.task-name { font-weight: 600; font-size: 16px; line-height: 1.35; }
.who { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.task.done { padding-right: 52px; }
.done-check { position: absolute; right: 16px; top: 50%; margin-top: -12px; }

/* Lanes */
.lanes {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lane {
  display: grid;
  grid-template-columns: max-content 14px 1fr;
  align-items: center;
  column-gap: 12px; row-gap: 10px;
  padding: 14px 20px;
}
.lane + .lane { border-top: 1px solid var(--border); }
.lane-name { font-weight: 700; font-size: 17px; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14px; line-height: 1.4;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
}

/* Proposal */
.proposal {
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 16px;
  max-width: 720px; margin: 32px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
}
.helper-dot {
  width: 12px; height: 12px; margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(227, 176, 98, .25);
}
.tag { font-size: 14px; line-height: 1.5; color: var(--brass-ink); }
.proposal h3 { margin-top: 2px; }
.detail { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.decision { grid-column: 1 / -1; margin-top: 16px; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions .btn { width: 100%; }
.status-row { display: flex; align-items: center; gap: 8px; }
.status { font-weight: 700; color: var(--olive); }
.status:empty { display: none; }
.status-row [data-undo] { margin-left: auto; }

/* Starter pack */
.cards { display: grid; gap: 16px; margin-top: 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.num { font: 600 28px/1 var(--serif); color: var(--olive); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink); }

/* Privacy band */
.privacy {
  background: var(--olive);
  color: var(--cream);
  padding: 72px 0;
  text-align: center;
}
.privacy-line { color: var(--cream); font-size: clamp(26px, 2.9167vw + 7.33px, 40px); line-height: 1.2; }
.privacy p { margin: 16px auto 0; max-width: 40em; color: rgba(247, 241, 232, .85); font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.foot {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-top: 32px; padding-bottom: 32px;
  text-align: center;
}
.foot-logo { width: 48px; height: 48px; }
.footer-nav ul { display: flex; flex-direction: column; align-items: center; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 600;
}
.footer-nav a:hover, .nav-links a:hover, .menu-sheet li a:hover { color: var(--olive); text-decoration: underline; text-underline-offset: 4px; }
.copy { font-size: 14px; color: var(--ink-muted); }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound p { margin-top: 16px; color: var(--ink-muted); }
.notfound .btn { margin-top: 32px; }

/* ---------------------------------------------------------------- >= 640 */
@media (min-width: 640px) {
  .label { font-size: 14px; }
  .btn { min-height: 48px; }
  .cta { flex-direction: row; }
  .cta .btn { width: auto; }
  .lane { grid-template-columns: 120px 14px 1fr; column-gap: 24px; padding: 12px 32px; }
  .chips { grid-column: auto; }
  .chip { min-width: 150px; text-align: center; }
  .actions { flex-direction: row; justify-content: flex-end; }
  .actions .btn { width: auto; min-width: 112px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------------------------------------------------------------- >= 768 */
@media (min-width: 768px) {
  :root { --section-y: 96px; }
  body { font-size: 16px; }
  .lede, .intro { font-size: 18px; }
  h3 { font-size: 20px; }
  .proposal h3 { font-size: 18px; }
  .board { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 0; }
  .col { padding: 0 24px; }
  .col + .col { border-top: 0; border-left: 1px solid var(--border); }
  .proposal { grid-template-columns: 12px 1fr auto; align-items: center; }
  .helper-dot { align-self: start; margin-top: 6px; }
  .decision { grid-column: auto; margin-top: 0; }
  .foot { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-nav ul { flex-direction: row; gap: 24px; }
  .privacy p { font-size: 18px; }
}

/* ---------------------------------------------------------------- >= 960 */
@media (min-width: 960px) {
  .bar { min-height: 72px; }
  .nav-desktop { display: flex; align-items: center; gap: 40px; }
  .nav-links { display: flex; gap: 32px; }
  .nav-links a { text-decoration: none; font-weight: 600; padding: 8px 0; }
  .menu { display: none; }
  h1 { line-height: 1.05; }
  /* Text needs ~640px for a two-line H1 at 64px; the art gains width by bleeding right */
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; column-gap: 8px;
    padding-top: 24px; padding-bottom: 0;
  }
  .hero-art { order: 0; align-self: end; margin: 0 calc(-1 * max(var(--pad-x), (100vw - 1120px) / 2)) 0 0; }
  .br-wide { display: inline; }
  .hero-text { position: relative; z-index: 1; padding: 32px 0 72px; }
  .lede { font-size: 20px; max-width: 28em; }
  .section, .privacy, main { scroll-margin-top: 80px; }
}

@media (max-width: 399px) {
  :root { --pad-x: 20px; }
}

/* ---------------------------------------------------------------- preferences */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav-links a, .footer-nav a, .menu-sheet a { transition: background-color 150ms, color 150ms, border-color 150ms; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  :focus-visible { outline-color: Highlight; }
  .helper-dot { forced-color-adjust: none; }
}
