/* Crafty Hosts Club — editorial app styles */
:root {
  --cream: #ffeed9; --navy: #1d2142; --pink: #f8c6d8; --yellow: #f5e380; --blue: #d9effd;
  --burgundy: #6c150e; --gold: #a7812c; --muted: #4a4d68; --line: #fbe3c8; --soft: #fff4e6;
  --top: calc(env(safe-area-inset-top, 0px) + 20px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --disp: 'Coolvetica', 'Bricolage Grotesque', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --script: 'Momo Signature', cursive;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #e9dccb; overscroll-behavior: none; }
body { color: var(--navy); font-family: 'Quicksand', system-ui, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--burgundy); }
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
input, textarea, select { font-size: 16px; } /* 16px stops iOS from zooming in on focus */
* { scrollbar-width: none; } *::-webkit-scrollbar { display: none; }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 2px; }

.app { position: fixed; inset: 0; max-width: 520px; margin: 0 auto; background: var(--cream); overflow: hidden; }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px rgba(29,33,66,.08), 0 20px 60px rgba(29,33,66,.15); } }
.scroller { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--top) 20px calc(120px + var(--bottom)); display: flex; flex-direction: column; gap: 18px; }
.scroller > * { flex-shrink: 0; }

/* type */
.disp { margin: 0; font-family: var(--disp); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.disp-xl { font-size: 46px; line-height: .95; letter-spacing: -0.03em; }
.disp-xxl { font-size: 50px; line-height: .95; letter-spacing: -0.03em; }
.s { font-family: var(--serif); font-weight: 400; }
em.s, .it { font-style: italic; }
.script { font-family: var(--script); font-size: 17px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr { position: absolute; left: -9999px; }
p { margin: 0; }

/* header bands */
.band { margin: calc(-1 * var(--top)) -20px 0; padding: calc(var(--top) + 8px) 18px 22px; border-radius: 0 0 32px 32px; }
.band-lg { padding: calc(var(--top) + 14px) 22px 24px; border-radius: 0 0 34px 34px; display: flex; flex-direction: column; gap: 14px; }
.h-cng { background: url(img/checker.jpg) center/cover; }
.h-ging { background-color: var(--cream); background-image: linear-gradient(90deg, rgba(248,198,216,.6) 50%, transparent 50%), linear-gradient(rgba(248,198,216,.6) 50%, transparent 50%); background-size: 24px 24px; }
.h-dots { background: var(--pink) radial-gradient(var(--cream) 2.4px, transparent 2.9px) 0 0/20px 20px; }
.h-ydots { background: var(--yellow) radial-gradient(var(--cream) 2.4px, transparent 2.9px) 0 0/20px 20px; }
.h-check { background-color: var(--cream); background-image: linear-gradient(45deg, var(--pink) 25%, transparent 25%, transparent 75%, var(--pink) 75%), linear-gradient(45deg, var(--pink) 25%, transparent 25%, transparent 75%, var(--pink) 75%); background-size: 28px 28px; background-position: 0 0, 14px 14px; }
.h-stripe { background: repeating-linear-gradient(90deg, var(--blue) 0 22px, var(--cream) 22px 38px); }
.grain { background-image: url(img/grain.png), linear-gradient(165deg, #f8c6d8 0%, #f9d3c9 35%, #f5e380 62%, #d9effd 100%); background-size: 240px 240px, 100% 100%; }
.p-ging { background: linear-gradient(150deg, #f8c6d8, #f3b3c9); }
.p-ydots { background: linear-gradient(150deg, #f5e380, #efd36a); }
.p-stripe { background: linear-gradient(150deg, #d9effd, #bfe0f6); }
.p-check { background: linear-gradient(150deg, #f3b3c9, #f5e380); }
.p-dots { background: linear-gradient(150deg, #e4c98f, #a7812c); }

/* pieces */
.hello { position: relative; background: var(--cream); border: 2px solid var(--navy); border-radius: 28px; padding: 16px 18px 18px; box-shadow: 5px 5px 0 var(--navy); display: flex; flex-direction: column; gap: 8px; }
.sticker { align-self: flex-start; background: var(--burgundy); color: var(--cream); border: 2px solid var(--navy); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transform: rotate(-3deg); }
.avatar-btn { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: var(--navy); color: var(--pink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.dark-card { background: var(--navy); color: var(--cream); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card { background: #fff; border-radius: 24px; }
.btn { border: 0; border-radius: 999px; min-height: 52px; font-weight: 700; font-size: 16px; padding: 0 18px; }
.btn-pink { background: var(--pink); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.link-btn { align-self: flex-start; border: 0; background: none; color: var(--burgundy); font-weight: 700; padding: 0; min-height: 44px; font-size: 15px; }
.field { border: 0; border-radius: 16px; padding: 13px 14px; font-weight: 700; background: #fff; color: var(--navy); width: 100%; }
.field-soft { background: var(--soft); font-weight: 600; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.hscroll { display: flex; gap: 14px; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scroll-snap-type: x proximity; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.chip { border: 1.5px solid var(--navy); border-radius: 999px; padding: 6px 14px; min-height: 40px; font-size: 15px; }
.photo-label { font-family: var(--serif); font-style: italic; font-size: 13px; background: rgba(255,238,217,.85); border-radius: 999px; padding: 3px 10px; }
.bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.75); display: block; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--navy); }
.tick { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--cream); font-weight: 700; font-size: 14px; padding: 0; }
.list-row { text-align: left; border: 0; background: none; padding: 14px 6px; min-height: 56px; display: flex; align-items: center; gap: 12px; color: var(--navy); border-bottom: 1px solid var(--line); width: 100%; font-size: 15px; }
.list-row:last-child { border-bottom: 0; }
.sub { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); font-weight: 400; }
.toggle { width: 46px; height: 28px; border-radius: 999px; position: relative; flex: none; }
.toggle > span { position: absolute; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }

/* tab bar */
.dock { position: absolute; z-index: 20; left: 16px; right: 16px; bottom: calc(14px + var(--bottom)); height: 66px; border-radius: 33px; background: var(--navy); display: flex; align-items: center; justify-content: space-around; padding: 0 10px; box-shadow: 0 12px 30px rgba(29,33,66,.3); }
.dock-btn { border: 0; background: none; width: 52px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.dock-dot { width: 5px; height: 5px; border-radius: 50%; }
.fab { border: 3px solid var(--cream); width: 62px; height: 62px; margin-top: -26px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(29,33,66,.25); }

/* overlays */
.scrim { position: absolute; z-index: 45; inset: 0; border: 0; background: rgba(29,33,66,.35); width: 100%; }
.sheet { position: absolute; z-index: 46; left: 12px; right: 12px; bottom: calc(14px + var(--bottom)); background: var(--cream); border-radius: 32px; padding: 20px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100% - var(--top) - 20px); overflow-y: auto; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.qa { text-align: left; border: 0; border-radius: 22px; padding: 16px; min-height: 56px; font-size: 16px; font-weight: 700; color: var(--navy); }
.toast { position: absolute; z-index: 55; top: calc(var(--top) + 30px); left: 20px; right: 20px; background: var(--navy); color: var(--cream); border-radius: 999px; padding: 12px 16px; font-weight: 700; font-size: 14px; text-align: center; animation: up .2s ease-out; }
.notif { position: absolute; z-index: 60; top: calc(var(--top) - 8px); left: 10px; right: 10px; text-align: left; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 0; border-radius: 22px; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(29,33,66,.25); color: var(--navy); animation: up .2s ease-out; }
.step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 14px; }
.step-n { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--navy); color: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.share-ic { display: inline-flex; vertical-align: -5px; width: 26px; height: 26px; border-radius: 7px; background: var(--blue); align-items: center; justify-content: center; margin: 0 2px; }
textarea.field { min-height: 140px; resize: vertical; font-weight: 600; line-height: 1.4; }
