:root {
  --paper: #f3ecdf;
  --paper-2: #fffaf3;
  --ink: #1c1712;
  --muted: #5e564c;
  --line: #e2d6c4;
  --clay: #c4491d;
  --clay-dark: #9b3412;
  --pine: #1d4a38;
  --pine-dark: #143628;
  --gold: #e6b15a;
  --shadow: 0 16px 40px rgba(58, 36, 16, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Gill Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; padding-bottom: 76px; }
img { max-width: 100%; display: block; }
a { color: var(--pine); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.005em; line-height: 1.2; margin: 0 0 0.5rem; font-kerning: normal; font-feature-settings: "kern" 1, "liga" 1; text-rendering: optimizeLegibility; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.12; letter-spacing: 0.01em; }
h2 { font-size: 1.7rem; line-height: 1.2; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4, h5, h6 { font-size: 1.1rem; line-height: 1.3; }
.word strong { font-kerning: normal; font-feature-settings: "kern" 1; letter-spacing: 0.005em; }
p { margin: 0 0 0.8rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: white; padding: 8px 12px; z-index: 5; }

.mast, .block, .wizard, .hero, .posting, .prose, .banner { width: min(1080px, calc(100% - 28px)); margin-inline: auto; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.word { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.word strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.word small { color: var(--muted); }
.mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); }
.desk { display: none; gap: 18px; align-items: center; }
.desk a { text-decoration: none; color: inherit; }
.desk a.on { text-decoration: underline; text-underline-offset: 4px; }
.desk a:not(.btn):hover, .acct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.desk a:not(.btn):focus-visible, .acct a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.acct { display: flex; align-items: center; }
.acct a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--pine); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.banner { background: #efe2c4; border: 1px solid #e2c98a; border-radius: 14px; padding: 10px 14px; font-size: 0.92rem; }
.hero { padding: 18px 0 8px; }
.lede { font-size: 1.12rem; max-width: 38rem; color: var(--ink); }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--clay); margin: 0 0 0.4rem; }
.hero-actions, .wizard-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.hero-actions form, .wizard-actions form, .inline form { display: inline-flex; margin: 0; }
/* Buttons: one system. Primary = .btn-pine, secondary = .btn-ghost, tertiary = .btn-text, destructive = .btn-danger.
   All share height, padding, radius, type, and alignment; only fill, border color, and text color change. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 46px; padding: 0 20px; margin: 0; border-radius: 999px; border: 1px solid transparent; background: transparent; font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn.btn-pine, .btn.btn-clay { background: var(--pine); border-color: var(--pine); color: #f6f3ea; }
.btn.btn-pine:hover, .btn.btn-clay:hover { background: var(--pine-dark); border-color: var(--pine-dark); }
.btn.btn-ghost { background: transparent; border-color: var(--pine); color: var(--pine); }
.btn.btn-ghost:hover { background: rgba(29, 74, 56, 0.08); }
.btn.btn-text { background: transparent; border-color: transparent; color: var(--pine); text-decoration: underline; text-underline-offset: 4px; }
.btn.btn-text:hover { color: var(--pine-dark); }
.btn.btn-danger { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; }
.btn.btn-danger:hover { background: #7f2a0e; border-color: #7f2a0e; }
.btn:focus-visible, .textlink:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.textlink { background: none; border: 0; color: var(--pine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

.block { padding: 22px 0; }
.split { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cards, .choice-grid, .stack { display: grid; gap: 12px; }
.choice-grid { grid-template-columns: 1fr 1fr; }
.choice-grid.tight { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-height: 72px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice:has(input:checked), .choice:focus-within { border-color: var(--pine); outline: 2px solid var(--pine); }
.choice span, .fine, .meta { color: var(--muted); font-size: 0.92rem; }
.choice.check { flex-direction: row; align-items: center; }
.card { display: block; background: var(--paper-2); border-radius: 18px; padding: 16px; text-decoration: none; color: inherit; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card.static { cursor: default; }
.card h3 { font-size: 1.4rem; }
.card-top, .facts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0; margin: 0 0 8px; list-style: none; }
.badge { background: #efe2c4; border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; }
.payline strong { font-family: var(--serif); font-size: 1.35rem; }
.business { margin: 0; }

.results { width: min(1080px, calc(100% - 28px)); margin: 0 auto 20px; display: grid; gap: 16px; }
.search { display: flex; gap: 8px; margin-top: 12px; }
.search .grow { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chip { background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 999px; padding: 8px 12px; min-height: 40px; }
.chip.quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
label, .label { display: grid; gap: 6px; font-size: 0.92rem; margin: 10px 0; }
input, select, textarea { width: 100%; background: white; border: 1px solid #cfc3b0; border-radius: 12px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 120px; }
fieldset { border: 0; padding: 0; margin: 10px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wizard { padding: 8px 0 24px; }
.progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.progress li { flex: 1; background: #e7dccb; border-radius: 999px; text-align: center; padding: 6px 0; font-size: 0.8rem; }
.progress li.on, .progress li.done { background: var(--pine); color: #f6f3ea; }
.notice, .devcode, .error, .empty, .safety { border-radius: 14px; padding: 12px 14px; }
.notice { background: #e7f0ea; }
.devcode { background: #fff4d8; }
.error { background: #fde4da; color: #6d2410; }
.empty { background: var(--paper-2); }
.safety { background: #fff7ea; border: 1px solid var(--gold); margin: 16px 0; }
.posting { padding-bottom: 24px; }
.prose { padding: 12px 0 32px; max-width: 42rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.post-grid { display: grid; gap: 18px; }
.preview { background: var(--paper-2); border-radius: 18px; padding: 16px; border: 1px dashed #c8b79d; }
.suggest { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.split-fields { display: grid; gap: 10px; }
.alert-cta { background: var(--paper-2); border-radius: 18px; padding: 16px; border: 1px solid var(--line); }

.ad { display: block; position: relative; border-radius: 16px; overflow: hidden; margin: 8px 0 16px; text-decoration: none; }
.ad img { width: 100%; height: 120px; object-fit: cover; }
.ad-sidebar img { height: 220px; }
.ad span { position: absolute; top: 8px; left: 8px; background: rgba(255,250,243,0.9); border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; color: var(--ink); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fffaf3; border-top: 1px solid var(--line); z-index: 3; }
.tabbar a { text-align: center; text-decoration: none; color: var(--ink); padding: 12px 4px 16px; min-height: 52px; }
.tabbar a.on { color: var(--pine); font-weight: 700; }
.foot { width: min(1080px, calc(100% - 28px)); margin: 20px auto 12px; color: var(--muted); font-size: 0.92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inline { display: flex; gap: 12px; }
.turnstile { margin: 16px 0 20px; min-height: 72px; max-width: 100%; clear: both; }
.turnstile .cf-turnstile { min-height: 65px; }

@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .desk { display: flex; }
  .acct { display: none; }
  .tabbar { display: none; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .results { grid-template-columns: 1fr 280px; align-items: start; }
  .post-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .preview { position: sticky; top: 16px; }
  .split-fields { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 36px; }
  .ad img { height: 160px; }
}
