/* Fifth & Found shared styles: light agave look (cream, agave green, brass). */
:root {
  --bg: #f6f0e6;
  --panel: #fffaf2;
  --ink: #23362b;
  --muted: #5f6b58;
  --agave: #2f4a3a;
  --sage: #8fa58a;
  --brass: #9d763b;
  --brass-soft: #ead9bb;
  --line: #e0d4bf;
  --chip: #efe5d3;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17221c; --panel: #1f2d25; --ink: #efe6d6; --muted: #b3bba8; --agave: #cfe0c8;
    --sage: #7f977a; --brass: #d3ac6a; --brass-soft: #4a3d27; --line: #34463b; --chip: #2a3a31;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--agave); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Top bar and footer, shared by every page */
.site-nav { max-width: 1080px; margin: 0 auto; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.site-nav .brand { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--agave); text-decoration: none; letter-spacing: .01em; }
.site-nav .brand span { color: var(--brass); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 500; }
.site-nav ul a { text-decoration: none; color: var(--ink); }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--brass); }
.site-foot { max-width: 1080px; margin: 48px auto 0; padding: 20px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.site-foot p { margin: 0; }

/* Shared type */
.page { max-width: 1080px; margin: 0 auto; padding-top: 32px; display: flex; flex-direction: column; gap: 40px; }
.mark { font-family: var(--display); color: var(--brass); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6.5vw, 60px); line-height: 1.04; margin: 0; color: var(--agave); text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 0; color: var(--agave); text-wrap: balance; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); margin: 0; font-weight: 600; }
.lede { margin: 0; max-width: 60ch; color: var(--muted); font-size: 18px; }
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid var(--brass); background: var(--brass); color: #fffaf2; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--brass); }

/* Home */
.hero { display: flex; flex-direction: column; gap: 16px; padding: 24px 0 8px; }
.hero .rule { width: 64px; height: 2px; background: var(--brass); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--brass); }
.card p { margin: 0; color: var(--muted); }
.card .go { margin-top: auto; font-weight: 600; color: var(--brass); }
.boards { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.boards li { background: var(--chip); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

/* Checklist */
.guestpick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.guestpick h3 { width: 100%; }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { font: inherit; font-weight: 600; min-width: 48px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.gchip[aria-pressed="true"] { background: var(--agave); border-color: var(--agave); color: var(--panel); }
.gchip:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.gcustom { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.gcustom input { width: 84px; font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.section { display: flex; flex-direction: column; gap: 14px; }
.checks { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.checks li { border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 18px; cursor: pointer; }
.checks input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--agave); flex: none; }
.checks .what { display: flex; flex-direction: column; }
.checks .what b { font-weight: 600; }
.checks .what span { color: var(--muted); font-size: 14px; }
.checks .what b span { color: inherit; font-size: inherit; }
.checks input:checked + .what b { text-decoration: line-through; text-decoration-color: var(--brass); }
.callout { margin: 0; background: var(--chip); border-radius: 10px; padding: 14px 18px; font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.jump { margin: 0; font-size: 15px; color: var(--muted); }
.setups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: start; }
.setup { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; }
.setup > p { margin: 0; color: var(--muted); font-size: 15px; }
.setup .checks { border: 0; background: transparent; }
.setup .checks label { padding: 10px 0; }
.setup:target, .section:target { box-shadow: 0 0 0 3px var(--brass); }
#glasses { scroll-margin-top: 16px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }

@media print {
  .site-nav ul, .toolbar, .guestpick, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 12px; }
  .checks, .card { background: #fff; }
  .page { gap: 18px; padding-top: 8px; }
  .section { break-inside: avoid; }
}
