/* Fall Together in Front Royal. 70s road trip: sunset arcs, stripes, Shrikhand + Gabarito. Single light look, phone first. */
:root {
  color-scheme: light;
  --peach: #FBE9D0;
  --card: #FFF6E8;
  --ink: #3B1D12;
  --brown: #5C2A1A;
  --rust: #A63A1F;
  --orange: #D9662B;
  --gold: #E8A33D;
  --green: #4B6B32;
  --sage: #8FA65A;
  --focus: #2F5FD0;
  --display: Shrikhand, Georgia, "Times New Roman", serif;
  --ui: Gabarito, "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--brown); }
body { margin: 0; background: var(--brown); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.5; }
a { color: var(--brown); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.page { max-width: 480px; margin: 0 auto; background: var(--peach); overflow-x: clip; min-height: 100vh; }
@media (min-width: 520px) { .page { box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 30px 80px rgba(0,0,0,.4); } }

/* hero */
.hero { position: relative; padding: calc(32px + env(safe-area-inset-top, 0px)) 20px 0; text-align: center; }
.arcs { position: relative; height: 170px; overflow: hidden; }
.arcs i { position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%); }
.a0 { width: 340px; height: 340px; bottom: -170px; background: var(--sage); }
.a1 { width: 288px; height: 288px; bottom: -144px; background: var(--gold); }
.a2 { width: 236px; height: 236px; bottom: -118px; background: var(--orange); }
.a3 { width: 184px; height: 184px; bottom: -92px; background: var(--rust); }
.a4 { width: 132px; height: 132px; bottom: -66px; background: var(--brown); }
.a5 { width: 80px; height: 80px; bottom: -40px; background: var(--peach); }
.hero h1 { margin: -6px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 15vw, 64px); line-height: .95; color: var(--brown); text-shadow: 3px 3px 0 var(--gold); }
.where { margin: 10px 0 0; font-family: var(--display); font-size: 22px; color: var(--orange); }
.when { margin: 6px 0 0; font-weight: 700; letter-spacing: .02em; }
.count { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: 14px; margin: 0; width: 92px; height: 92px; border-radius: 50%; background: var(--gold); color: var(--brown); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(12deg); box-shadow: 0 0 0 4px var(--peach), 0 0 0 6px var(--brown); text-align: center; }
.count b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.count span { font-size: 12px; font-weight: 800; line-height: 1.1; }

.polaroid { margin: 32px 24px 0; background: var(--card); padding: 10px 10px 14px; transform: rotate(-2deg); box-shadow: 0 10px 24px -14px rgba(92,42,26,.6); }
.polaroid img { display: block; width: 100%; height: 230px; object-fit: cover; }
.polaroid figcaption { margin-top: 12px; text-align: center; font-family: var(--display); font-size: 18px; color: var(--rust); }

.stripes { display: flex; flex-direction: column; margin-top: 40px; }
.stripes i { display: block; height: 10px; }
.s-green { background: var(--sage); } .s-gold { background: var(--gold); } .s-orange { background: var(--orange); }
.s-rust { background: var(--rust); } .s-brown { background: var(--brown); }

/* sections */
.sec { padding: 56px 20px 0; }
.sec h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--brown); }
.sec h2:has(+ .sub) { margin-bottom: 8px; }
.sub { margin: 0 0 18px; font-size: 15px; }
#plan { padding-top: 36px; }

/* plan */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tabs button { min-height: 48px; border-radius: 999px; cursor: pointer; font-family: var(--display); font-size: 17px; border: 3px solid var(--brown); background: var(--card); color: var(--brown); }
.tabs button[aria-selected="true"] { background: var(--orange); color: var(--card); }
.day { margin-top: 18px; background: var(--card); border: 3px solid var(--brown); border-radius: 22px; padding: 20px 18px; }
.sh-gold { box-shadow: 6px 6px 0 var(--gold); } .sh-green { box-shadow: 6px 6px 0 var(--green); } .sh-rust { box-shadow: 6px 6px 0 var(--rust); }
.day-name { margin: 0 0 12px; font-family: var(--display); font-size: 24px; color: var(--rust); }
.wx { margin: -4px 0 14px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 12px; border-radius: 999px; background: rgba(232,163,61,.2); font-size: 14px; font-weight: 600; }
.wx b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--brown); }
.day dl { margin: 0; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px 12px; }
.day dt { font-family: var(--display); font-size: 17px; color: var(--orange); }
.day dd { margin: 0; }
.day dd b, .day dd span { display: block; }
.day dd span { font-size: 14px; }

/* teams */
.teams { display: flex; flex-direction: column; gap: 16px; }
.team { border-radius: 22px; overflow: hidden; }
.team img { display: block; width: 100%; height: 150px; object-fit: cover; }
.team > div { padding: 16px 18px 20px; }
.team h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.team p { margin: 4px 0 0; font-size: 15px; }
.team-trail { background: var(--green); color: var(--peach); }
.team-trail h3 { color: var(--gold); }
.team-trail a { color: var(--peach); text-decoration-color: var(--gold); }
.team-chill { background: var(--gold); color: var(--ink); }
.team-chill h3 { color: var(--brown); }
.links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* potluck board */
.loading, .board-msg { margin: 0; font-weight: 600; }
.meal { margin-top: 18px; background: var(--card); border: 3px solid var(--brown); border-radius: 22px; overflow: hidden; }
.meal:first-child { margin-top: 0; }
.meal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; color: var(--card); }
.meal-h h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }
.meal-h span { flex: none; font-weight: 800; font-size: 13px; background: rgba(255,246,232,.22); border-radius: 999px; padding: 3px 10px; }
.m-0 .meal-h { background: var(--orange); }
.m-1 .meal-h { background: var(--rust); }
.m-2 .meal-h { background: var(--green); }
.items { list-style: none; margin: 0; padding: 0; }
.items li + li { border-top: 2px dotted var(--gold); }
.item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px 10px 16px; background: transparent; border: 0; text-align: left; cursor: pointer; }
.item:hover { background: rgba(232,163,61,.12); }
.item-t { flex: 1 1 auto; min-width: 0; }
.item-t b { display: block; font-weight: 700; }
.item-t small { display: block; font-size: 13px; color: #6B4636; line-height: 1.35; }
.opt { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; color: var(--green); border: 1.5px solid var(--green); border-radius: 999px; padding: 0 6px; vertical-align: 2px; }
.pill { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.pill-open { border: 2px dashed var(--orange); color: var(--rust); font-family: var(--display); font-weight: 400; font-size: 15px; }
.h-West-Williams { background: var(--brown); color: var(--card); }
.h-West-Carters { background: var(--green); color: var(--card); }
.h-West-Suggs { background: var(--orange); color: var(--card); }
.item.saving { opacity: .55; pointer-events: none; }
.err { margin: 0; padding: 8px 16px 12px; font-size: 14px; font-weight: 700; color: var(--rust); }
.note { margin: 14px 0 0; font-size: 13px; }

/* crew */
.crew { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 10px; justify-content: center; }
.crew li { display: flex; align-items: center; justify-content: center; min-width: 96px; height: 54px; padding: 0 16px; border-radius: 999px; font-family: var(--display); font-size: 18px; line-height: 1; box-shadow: 3px 3px 0 rgba(59,29,18,.35); }
.crew li:nth-child(1) { transform: rotate(-4deg); } .crew li:nth-child(2) { transform: rotate(3deg); }
.crew li:nth-child(3) { transform: rotate(-2deg); } .crew li:nth-child(4) { transform: rotate(5deg); }
.crew li:nth-child(5) { transform: rotate(-3deg); } .crew li:nth-child(6) { transform: rotate(2deg); }
.crew li:nth-child(7) { transform: rotate(-5deg); }
.crew li:nth-child(8) { transform: rotate(4deg); } .crew li:nth-child(9) { transform: rotate(-3deg); }
.c-gold { background: var(--gold); color: var(--ink); } .c-orange { background: var(--orange); color: var(--card); }
.c-green { background: var(--green); color: var(--card); } .c-rust { background: var(--rust); color: var(--card); }
.c-brown { background: var(--brown); color: var(--peach); }

/* pack */
.pack { background: var(--card); border: 3px solid var(--green); border-radius: 22px; padding: 6px 18px; }
.pack label { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }
.pack label + label { border-top: 2px dotted var(--gold); }
.pack input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }

/* footer */
.foot { margin-top: 64px; }
.foot .stripes { margin-top: 0; }
.foot-in { background: var(--brown); color: var(--peach); padding: 28px 20px calc(32px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.sig { margin: 0; font-family: var(--display); font-size: 26px; color: var(--gold); }
.credits { margin: 14px 0 0; font-size: 11px; line-height: 1.5; }

/* household sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; background: rgba(59,29,18,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--peach); border-radius: 26px 26px 0 0; border-top: 4px solid var(--brown); padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.sheet-k { margin: 0; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--rust); }
.sheet h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--brown); }
.sheet-amt { margin: 6px 0 16px; font-size: 14px; }
.sheet-btns { display: flex; flex-direction: column; gap: 10px; }
.sheet-btns button { min-height: 56px; border-radius: 999px; border: 3px solid var(--brown); font-family: var(--display); font-size: 19px; cursor: pointer; }
.sheet-btns button.mine { outline: 3px solid var(--gold); outline-offset: 3px; }
.sheet-release, .sheet-cancel { display: block; width: 100%; min-height: 48px; margin-top: 10px; border: 0; background: transparent; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sheet-release { color: var(--rust); }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: up .22s ease-out; }
  @keyframes up { from { transform: translateY(40px); opacity: .4; } }
}
