/* ChoreBounty — wanted-poster styles */

:root {
  --parchment:     #F8EED8;
  --parchment-dim: #F0E2C2;
  --paper:         #FFFBF0;
  --ink:           #2A1E14;
  --ink-soft:      #6B5842;
  --red:           #C2402A;
  --red-dark:      #A0321F;
  --gold:          #D9A21B;
  --teal:          #1F7A6D;
  --plum:          #B04A7A;
  --orange:        #E08A1E;
  --line:          #E0CFA6;
  --kid-color:     #C2402A;
  --radius:        14px;
  --radius-sm:     9px;
  --container:     1120px;
  --shadow:        4px 4px 0 var(--ink);
  --shadow-sm:     3px 3px 0 var(--ink);
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--parchment); color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1, h2, .brand, .bounty-wanted, .big-number, .bounty-reward {
  font-family: "Alfa Slab One", "Rockwell", Georgia, serif; font-weight: 400; letter-spacing: .01em;
}
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
h3 { font-size: 19px; font-weight: 800; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font: 800 15px "Nunito", sans-serif;
  border: 2.5px solid var(--ink); cursor: pointer; background: var(--paper); color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
  box-shadow: 0 3px 0 var(--ink); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: var(--paper); }
.btn-ghost:hover { background: var(--parchment-dim); }
.btn-danger { background: #fff; color: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 3px 0 var(--red-dark); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; box-shadow: 0 2px 0 var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; margin: 0; }
.link-arrow { font-weight: 800; color: var(--red-dark); border-bottom: 2px solid transparent; }
.link-arrow:hover { border-color: var(--red-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--parchment); border-bottom: 3px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.main-nav > a:not(.btn):hover { color: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 2.5px solid var(--ink); border-radius: 10px; padding: 6px; color: var(--ink); cursor: pointer; }
.kid-chip { background: var(--kid-color); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 800; border: 2.5px solid var(--ink); }

.flash-wrap { padding-top: 18px; }
.alert { padding: 13px 18px; border-radius: var(--radius-sm); border: 2.5px solid var(--ink); font-weight: 700; margin-bottom: 12px; }
.alert-error { background: #FBD9D2; }
.alert-success { background: #D5EEDC; }
.alert-info { background: #FFF1C9; }

/* Posters (cards) */
.poster { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.poster-sm { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; }
.info-card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin-bottom: 6px; }

/* Layout */
.page-shell { max-width: var(--container); margin: 0 auto; padding: 34px 22px 60px; }
.page-shell.narrow { max-width: 720px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.page-sub { color: var(--ink-soft); margin-top: 8px; font-size: 17px; max-width: 62ch; }
.block { margin-top: 34px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.block-title { margin-bottom: 14px; font-size: 24px; }
.muted-title { font-size: 18px; color: var(--ink-soft); }
.section-label { font-size: 18px; margin: 18px 0 8px; font-family: "Nunito", sans-serif; font-weight: 800; }
.grid { display: grid; gap: 18px; }
.kid-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bounty-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.idea-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 22px; }
.tool-grid, .steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.center-items { align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

.empty-state { text-align: center; padding: 34px 20px; border: 3px dashed var(--ink-soft); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }
.empty-state.poster { border-style: solid; }

/* Avatars & kid cards */
.avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--kid-color); border: 2.5px solid var(--ink); font-size: 22px; flex-shrink: 0; }
.avatar.lg { width: 54px; height: 54px; font-size: 28px; }
.avatar.xl { width: 68px; height: 68px; font-size: 36px; }
.avatar.xxl { width: 92px; height: 92px; font-size: 50px; }
.kid-title { display: flex; align-items: center; gap: 16px; }
.kid-card { display: block; background: var(--paper); border: 2.5px solid var(--ink); border-top: 8px solid var(--kid-color); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease); }
.kid-card:hover { transform: translateY(-3px); }
.kid-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.add-card { display: grid; place-items: center; border-style: dashed; border-top-style: dashed; min-height: 150px; font-weight: 800; color: var(--ink-soft); background: transparent; box-shadow: none; }

/* Jars */
.jars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jar { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; border: 2.5px solid var(--ink); background: var(--jar-bg, #fff); text-align: center; }
.jar-spend { --jar-bg: #FCE3BE; } .jar-save { --jar-bg: #CDEBE3; } .jar-give { --jar-bg: #F6D5E5; }
.jar-emoji { font-size: 24px; line-height: 1; }
.jar-label { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.jar-amount { font-weight: 800; font-size: 18px; }

/* Claims */
.claim-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.claim-main { display: flex; align-items: center; gap: 12px; }
.claim-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.claim-actions form { margin: 0; }
.reward { font-weight: 800; font-size: 18px; color: var(--teal); }
.count-pill { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 11px; font: 800 16px "Nunito", sans-serif; vertical-align: middle; }

/* Bounty cards */
.bounty-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; padding-top: 22px; overflow: hidden; }
.bounty-wanted { font-size: 13px; letter-spacing: .3em; color: var(--red-dark); border-bottom: 2px solid var(--ink); padding-bottom: 4px; width: 100%; }
.bounty-desc { color: var(--ink-soft); font-size: 14.5px; }
.bounty-reward { font-size: 34px; color: var(--red-dark); line-height: 1.1; }
.bounty-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bounty-card form { width: 100%; }
.bounty-card .btn-row { justify-content: center; }
.tag { background: var(--parchment-dim); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-size: 12.5px; font-weight: 700; }
.tag-sm { font-size: 11px; padding: 0 7px; color: var(--ink-soft); border-color: var(--line); }
.state-tag { font-size: 13.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.state-tag-available { background: #D5EEDC; }
.state-tag-claimed { background: #FFF1C9; }
.state-tag-submitted { background: #DDE9F6; }
.state-tag-done { background: var(--parchment-dim); }
.bounty-card.state-done, .bounty-card.state-claimed:not(.kid-bounty) { opacity: .9; }
.is-boss { background: linear-gradient(180deg, #FFF3C4, var(--paper) 55%); border-color: var(--ink); }
.boss-ribbon { position: absolute; top: 0; left: 0; right: 0; background: var(--ink); color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: .15em; padding: 3px 0; }
.is-boss .bounty-wanted { margin-top: 12px; }
.kid-bounty h3 { font-size: 20px; margin-top: 8px; }

/* Forms */
.form-group { margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 800; margin-bottom: 6px; font-size: 15px; padding: 0; }
.form-control { width: 100%; padding: 11px 14px; font: 600 16px "Nunito", sans-serif; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: var(--radius-sm); }
textarea.form-control { resize: vertical; }
.form-control:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.narrow-input { max-width: 180px; }
.form-hint { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-inline .form-control { flex: 1 1 110px; width: auto; padding: 8px 12px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: grid; place-items: center; width: 48px; height: 48px; font-size: 26px; border: 2.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.pick input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold); }
.pick input:focus-visible + span { outline: 3px solid var(--gold); }
.swatch span { border-radius: 50%; border-color: var(--ink); }
.danger-zone { margin-top: 26px; text-align: center; }
.invite-box { margin: 14px 0; }
.pin-input { text-align: center; font-size: 28px; letter-spacing: .5em; max-width: 200px; margin: 0 auto; }

/* Auth */
.auth-shell { display: flex; justify-content: center; padding: 48px 20px 70px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 32px; margin-bottom: 6px; }
.auth-sub { color: var(--ink-soft); margin-bottom: 22px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--ink-soft); }
.auth-foot a { font-weight: 800; color: var(--red-dark); text-decoration: underline; }

.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; border: 2px solid var(--ink); }
.badge-ok { background: #D5EEDC; } .badge-warn { background: #FFF1C9; }

/* Goals & progress */
.goal-card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.goal-head, .goal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.progress { height: 16px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress span { display: block; height: 100%; background: var(--teal); }
.action-box { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius-sm); padding: 4px 14px; margin-bottom: 10px; }
.action-box summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.action-box[open] { padding-bottom: 12px; }

/* Ledger table */
.table-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius-sm); }
.ledger th, .ledger td { padding: 9px 12px; border-bottom: 1.5px solid var(--line); text-align: left; }
.ledger th { background: var(--parchment-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.pos { color: var(--teal); } .neg { color: var(--red-dark); }

/* Kid mode */
.kid-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.kid-home .btn-lg { font-size: 18px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-top: 26px; max-width: 760px; margin-left: auto; margin-right: auto; }
.picker-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 12px; background: var(--paper); border: 3px solid var(--ink); border-top: 10px solid var(--kid-color); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 20px; transition: transform .15s var(--ease); }
.picker-card:hover { transform: translateY(-4px); }
.growth-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.growth-row div { display: flex; flex-direction: column; }
.growth-label { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.growth-row strong { font-size: 22px; color: var(--teal); }

/* Landing */
.hero { padding: 54px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.eyebrow { font-weight: 800; color: var(--red-dark); letter-spacing: .06em; text-transform: uppercase; font-size: 13.5px; margin-bottom: 12px; }
.accent { color: var(--red); }
.lead { font-size: 19px; color: var(--ink-soft); margin: 18px 0 24px; max-width: 56ch; }
.hero-copy .btn-row { margin-bottom: 14px; }
.hero-poster { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; transform: rotate(2deg); }
.hero-poster .bounty-reward { font-size: 54px; }
.fake-btn { background: var(--red); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 10px 28px; font-weight: 800; box-shadow: 0 3px 0 var(--ink); }
.section { padding: 56px 0; }
.section.alt { background: var(--parchment-dim); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title.left { text-align: left; }
.step { position: relative; padding-top: 30px; }
.step-n { position: absolute; top: -18px; left: 18px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); border: 2.5px solid var(--ink); border-radius: 50%; font-family: "Alfa Slab One", serif; font-size: 18px; }
.step p { color: var(--ink-soft); margin-top: 6px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li::before { content: "★ "; color: var(--gold); -webkit-text-stroke: 1px var(--ink); }
.tool-card { display: block; transition: transform .15s var(--ease); }
.tool-card:hover { transform: translateY(-3px); }
.tool-card p { color: var(--ink-soft); margin-top: 6px; }
.cta-band { text-align: center; display: grid; gap: 12px; justify-items: center; margin-top: 36px; }
.cta-band p { color: var(--ink-soft); }
.idea-list { list-style: none; margin: 0; padding: 0; }
.idea-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1.5px dashed var(--line); }
.idea-list li:last-child { border-bottom: 0; }
.idea-list .link-arrow { white-space: nowrap; font-size: 14px; }
.big-number { font-size: 54px; color: var(--red-dark); margin: 6px 0; }

/* Printable chart */
.chart-sheet { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; margin-top: 26px; }
.chart-title { text-align: center; margin-bottom: 16px; }
.chart-table { width: 100%; border-collapse: collapse; }
.chart-table th, .chart-table td { border: 2px solid var(--ink); padding: 10px 6px; text-align: center; }
.chart-table th { background: var(--parchment-dim); font-size: 13px; }
.chart-table .chore-col { text-align: left; width: 34%; padding-left: 12px; font-weight: 700; }
.chart-table .box { display: inline-block; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 5px; }
.chart-foot { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--parchment); border-top: 4px solid var(--gold); padding: 44px 0 22px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font: 800 13px "Nunito", sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 4px; }
.footer-col a { color: rgba(248,238,216,.8); } .footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: rgba(248,238,216,.7); margin-top: 10px; max-width: 32ch; }
.brand-light { color: var(--parchment); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(248,238,216,.2); font-size: 14px; color: rgba(248,238,216,.65); }
.footer-bottom a { text-decoration: underline; }

/* Modal confirm */
.modal-overlay { position: fixed; inset: 0; background: rgba(42,30,20,.55); display: grid; place-items: center; z-index: 200; padding: 20px; }
.modal-dialog { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-width: 420px; width: 100%; }
.modal-dialog p { margin: 10px 0 20px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-inner, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero-poster { transform: none; max-width: 360px; margin: 0 auto; }
  .nav-toggle { display: inline-flex; }
  .site-header .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--parchment); border-bottom: 3px solid var(--ink); padding: 16px 22px; gap: 14px; }
  .site-header .main-nav.open { display: flex; }
  body.kid-mode .site-header .main-nav { display: flex; position: static; flex-direction: row; border: 0; padding: 0; gap: 8px; background: none; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .kid-hero { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  body.kid-mode .kid-chip { display: none; }
  .jar-amount { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .kid-card, .picker-card, .tool-card { transition: none; }
  .btn:hover, .kid-card:hover, .picker-card:hover, .tool-card:hover { transform: none; }
}

/* Print: only the chart */
@media print {
  .no-print, .site-header, .site-footer { display: none !important; }
  body { background: #fff; }
  .page-shell { padding: 0; max-width: none; }
  .chart-sheet { border: 0; margin: 0; padding: 0; }
  .chart-table th, .chart-table td { padding: 14px 6px; }
}
