/* My Taste, Your Style — THE POSTCARD identity (Jac's pick, Aug 6 2026).
   OST-kit spinoff: cream paper, espresso ink, french-blue pop (powder deepened),
   powder fills, one butter sunshine chip. Light + playful everywhere; espresso
   is the ink, never the room. Retheme lives in this :root block. */
:root {
  --paper: #FCF9EF;        /* cream paper (from butter) */
  --ink: #2E2620;          /* espresso ink */
  --ink-soft: rgba(46, 38, 32, .68);
  --line: rgba(46, 38, 32, .2);
  --accent: #3F6FA8;       /* french blue pop (powder, deepened) */
  --accent-ink: #FFFDF4;   /* text on accent */
  --fill: #DCE9F2;         /* powder fill: chips, highlights, photo mats */
  --fill-ink: #33566F;     /* text on powder */
  --butter: #F6E3A1;       /* the sunshine chip */
  --butter-ink: #6B5620;
  --dark-bg: #2E2620;      /* legacy inverted screens (unused since v0.3) */
  --dark-ink: #FCF9EF;
  --font-display: "Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --font-wide: "Futura", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --font-script: "Snell Roundhand", "Savoye LET", "Segoe Script", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --maxw: 30rem;
  --card-bg: #FFFDF6;
  --chip-bg: var(--butter);
  --chip-ink: var(--butter-ink);
  --btn-shadow: 4px 4px 0 var(--ink);
}

/* ---- THE VIBES: user-selectable skins (Jac, Aug 6 2026). Same bones,
   four bloodlines. postcard = :root default. ---- */
body[data-theme="lipstick"] {
  --paper: #FBF5EC; --ink: #33211F;
  --ink-soft: rgba(51, 33, 31, .68); --line: rgba(51, 33, 31, .2);
  --accent: #C13A5C; --accent-ink: #FFFDF4;
  --fill: #F6DBE2; --fill-ink: #7A2A40;
  --chip-bg: #F6DBE2; --chip-ink: #7A2A40;
  --card-bg: #FFFDF6;
}
body[data-theme="gallery"] {
  --paper: #FCFAF5; --ink: #16130F;
  --ink-soft: rgba(22, 19, 15, .66); --line: rgba(22, 19, 15, .2);
  --accent: #16130F; --accent-ink: #FCFAF5;
  --fill: #EAE3D6; --fill-ink: #6B6053;
  --chip-bg: #EAE3D6; --chip-ink: #6B6053;
  --card-bg: #FFFFFF;
}
body[data-theme="noir"] {
  --paper: #261D18; --ink: #F4ECE0;
  --ink-soft: rgba(244, 236, 224, .66); --line: rgba(244, 236, 224, .24);
  --accent: #F4ECE0; --accent-ink: #261D18;
  --fill: #3A2E26; --fill-ink: #D8CCBC;
  --chip-bg: #3A2E26; --chip-ink: #D8CCBC;
  --card-bg: #322822;
  --btn-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
}
body.dark { background: var(--dark-bg); color: var(--dark-ink); }
body.dark { --line: rgba(250, 246, 239, .25); --ink-soft: rgba(250, 246, 239, .72); }

main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }

.chrome {
  display: flex; justify-content: space-between; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: .8rem 1.25rem; font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); opacity: .9;
}
.chrome.bottom { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.chrome a { color: inherit; }

h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2.3rem; line-height: 1.08; letter-spacing: -.01em; margin: 1.2rem 0 .4rem;
}
h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: 0 0 .6rem; }
.mono { font-family: var(--font-mono); }
.script-accent {
  font-family: var(--font-script);
  color: var(--accent); font-size: 1.7rem; margin: 0 0 1rem;
}
body.dark .script-accent { color: var(--fill); }
.script-accent.big { font-size: 2.6rem; margin-bottom: .5rem; }

/* The masthead lockup: wide bold caps + script + editorial serif, one place */
.masthead-wide {
  font-family: var(--font-wide); font-weight: 800; text-transform: uppercase;
  letter-spacing: .13em; font-size: 2rem; line-height: 1.05; margin: 1.2rem 0 0;
}
.masthead-wide .dot { color: var(--accent); }
.masthead-script {
  font-family: var(--font-script); color: var(--accent); font-size: 2.6rem;
  line-height: .9; margin: -.2rem 0 0 .2rem; transform: rotate(-2deg);
  display: inline-block;
}
.masthead-serif {
  font-family: var(--font-display); font-style: italic;
  color: var(--fill-ink); font-size: 1.05rem; margin: .5rem 0 0;
}
.chip-beta {
  display: inline-block; font-size: .6rem; font-weight: 700;
  letter-spacing: .14em; background: var(--chip-bg); color: var(--chip-ink);
  border-radius: 999px; padding: .3rem .75rem; transform: rotate(-1.5deg);
  margin: 1.4rem 0 0;
}
mark.hl { background: linear-gradient(transparent 55%, var(--fill) 55%); color: inherit; }
.sub { color: var(--ink-soft); font-size: .95rem; margin: .3rem 0 1rem; }
.sub.strong { color: inherit; font-weight: 600; }
.micro {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .07em;
  line-height: 1.7; color: var(--ink-soft); margin-top: 1.6rem;
}
.micro.center { text-align: center; }
.kicker { font-size: .62rem; letter-spacing: .12em; color: var(--ink-soft);
  text-transform: uppercase; margin: .8rem 0 0; }
.kicker a { color: inherit; }
.error { color: var(--accent); font-size: .85rem; font-weight: 600; }
body.dark .error { color: #e8a582; }
.flash { background: var(--fill); color: var(--fill-ink);
  border-radius: var(--radius);
  padding: .6rem 1rem; font-size: .85rem; margin: .8rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block; width: 100%; text-align: center; cursor: pointer;
  font-family: var(--font-wide); font-weight: 800; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius); padding: .9rem 1.4rem; margin-top: .6rem;
  box-shadow: var(--btn-shadow);
}
.btn.ghost { background: transparent; border: 1.5px solid currentColor; color: inherit;
  box-shadow: none; }
.btn.accent { background: var(--paper); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost:active { box-shadow: none; }

/* The vibe picker (landing + Taste File): four skins, one tap */
.vibes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.6rem; }
.vibes .vibes-lbl { font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .12em; color: var(--ink-soft); margin-right: .2rem; }
.vibe { display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em;
  color: var(--ink-soft); text-decoration: none; text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .32rem .7rem; }
.vibe i { width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(0, 0, 0, .18); }
.vibe.on { border-color: var(--accent); color: var(--ink); font-weight: 700; }

/* Landing / hero screens */
.hero { padding-top: 2.5rem; text-align: left; }
.invite-form input[type=text], .invite-form input[type=email],
.invite-form input[type=password] {
  width: 100%; margin-top: 1.2rem; padding: .85rem 1.1rem; font-size: 1rem;
  font-family: var(--font-mono); border: 2px solid var(--ink);
  border-radius: var(--radius); background: var(--card-bg); color: inherit;
}
.consent { display: flex; gap: .55rem; align-items: flex-start;
  font-size: .78rem; color: var(--ink-soft); margin-top: .9rem; }
.consent input { margin-top: .2rem; }

/* Quiz */
.quiz { padding-top: .8rem; }
.prog { display: flex; gap: 4px; }
.prog i { height: 3px; flex: 1; background: var(--line); border-radius: 2px; }
.prog i.on { background: var(--accent); }
.stepcount { font-size: .62rem; letter-spacing: .12em; color: var(--ink-soft); }
.step h2 { margin-top: 1rem; font-family: var(--font-wide); font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; }
.opt {
  display: flex; align-items: center; gap: .7rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card-bg);
  padding: .8rem 1rem; margin: .55rem 0; font-size: .95rem; font-weight: 500;
}
.opt:has(input:checked) { border-color: var(--accent); background: var(--fill); }
.opt input { accent-color: var(--accent); }
.opt .sw { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.swatchrow { display: flex; gap: 4px; margin: 1rem 0; }
.swatch { flex: 1; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; height: 44px; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent; }
.swatch input:checked + span { border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.freetext {
  width: 100%; padding: .85rem 1.1rem; font-size: 1rem; color: inherit;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: transparent; margin: .4rem 0;
}
.freetext-label { display: block; margin-top: 1rem; }
.step-actions { display: flex; flex-direction: column; gap: .2rem; margin-top: 1.4rem; }

/* Quick-core additions (v0.1) */
.freetext.area { border-radius: var(--radius); font-family: var(--font-body);
  resize: vertical; }
.sizegrid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; }
.sizefield { display: flex; flex-direction: column; gap: .35rem; }
.sizelabel { font-size: .6rem; letter-spacing: .12em; color: var(--ink-soft); }
.sizefield select {
  padding: .75rem .9rem; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: transparent; color: inherit; appearance: none;
}
.photodrop {
  display: block; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 2rem 1rem; margin: 1rem 0 .4rem; font-size: .62rem;
  letter-spacing: .1em; color: var(--ink-soft);
}
.photodrop input[type=file] { width: 100%; font-size: .75rem; }
.photodrop:has(input:valid) { border-style: solid; }
.step.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* The Taste File (sharper sections) */
.profilepage .btn { margin-bottom: 1rem; }
.sharper { border-top: 1px solid var(--line); padding: 1.2rem 0 .8rem; }
.sharper .ffield { margin-bottom: 1rem; }
.sharper .sub.strong { margin-bottom: .35rem; }

/* The edit */
.edit .intro { font-size: 1rem; font-weight: 500; margin-bottom: 1.6rem; }
.outfit { border-top: 1px solid var(--line); padding: 1rem 0 .6rem; }
.tag { display: inline-block; font-size: .6rem; letter-spacing: .18em;
  background: var(--ink); color: var(--paper); font-weight: 700;
  border-radius: 7px; padding: .28rem .65rem; margin-bottom: .5rem; }
.edit-item { margin: 0 0 1rem; }
.edit-item .p, .outfit .p { font-size: .95rem; font-weight: 600; margin: 0; }
.edit-item a { color: inherit; text-decoration-color: var(--accent); }

/* Photo cards (v0.2): image-led picks; text-only entries keep the old layout */
.edit-item.has-photo {
  display: grid; grid-template-columns: 7.2rem 1fr; gap: .9rem;
  align-items: start; border: 2px solid var(--ink);
  border-radius: var(--radius); padding: .8rem; background: var(--card-bg);
  box-shadow: 5px 5px 0 var(--fill); transform: rotate(-.4deg);
  margin-bottom: 1.2rem;
}
.edit-item.has-photo .p { font-family: var(--font-wide); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.edit-photo { border-radius: calc(var(--radius) - 6px); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--fill); }
.edit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edit-photo-fallback { display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--ink); background: var(--card-bg); }
.edit-photo-fallback .see-style { font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .08em; text-align: center;
  padding: .5rem; text-decoration: none; color: var(--ink); }
.edit-photo-fallback .see-style:hover { text-decoration: underline; }
.fb .another { opacity: .65; }
.fb .another:hover { opacity: 1; }
.edit-item.has-photo .fb { flex-wrap: wrap; }
@media (max-width: 420px) {
  .edit-item.has-photo { grid-template-columns: 5.6rem 1fr; gap: .7rem; }
}
.why { font-size: .85rem; color: var(--ink-soft); margin: .15rem 0 .4rem; }

/* v2 looks (Aug 13): multiple complete looks, every piece with its price alt */
.look-formula { font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .04em; color: var(--ink-soft); margin: -.2rem 0 .8rem; }
.price { font-size: .68rem; letter-spacing: .05em; color: var(--ink-soft);
  margin-left: .45rem; white-space: nowrap; }
.alt-line { border-left: 3px solid var(--accent); background: var(--fill);
  border-radius: 0 8px 8px 0; padding: .45rem .6rem .5rem;
  margin: .1rem 0 .55rem; font-size: .8rem; }
.alt-tier { font-size: .6rem; letter-spacing: .14em; font-weight: 700;
  color: var(--accent); margin-right: .35rem; }
.alt-line a { color: inherit; text-decoration-color: var(--accent); }
.alt-note { font-size: .75rem; color: var(--ink-soft); margin: .25rem 0 0; }
.fb { display: flex; gap: .45rem; }
.fb button {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 999px; padding: .3rem .7rem; cursor: pointer;
}
.fb button.picked { border-color: var(--accent); color: var(--accent); }
.fb button:disabled { opacity: .55; cursor: default; }
.fb button.picked:disabled { opacity: 1; }
.cta { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: .5rem; }
.nomatch h1 { margin-top: 2.5rem; }

/* Admin */
.admin { font-size: .85rem; }
.admin section { margin: 1.6rem 0; }
.admin table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.admin th, .admin td { text-align: left; padding: .4rem .5rem;
  border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.admin td.answers { max-width: 22rem; word-break: break-word;
  font-family: var(--font-mono); font-size: .62rem; }
.admin { max-width: none; }
main:has(.admin) { max-width: 68rem; }

@media (min-width: 600px) {
  h1 { font-size: 2.9rem; }
  .step-actions { flex-direction: row-reverse; justify-content: flex-start; gap: .8rem; }
  .step-actions .btn { width: auto; padding-inline: 2.2rem; }
}

/* composing wait page */
.compose-dots { display: flex; gap: .5rem; justify-content: center; margin: 1.6rem 0; }
.compose-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); opacity: .25;
  animation: compose-pulse 1.4s infinite ease-in-out;
}
.compose-dots span:nth-child(2) { animation-delay: .2s; }
.compose-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes compose-pulse { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* v0.7 swap flow */
.swapq { border: 2px solid var(--ink); background: var(--fill);
  padding: 10px 12px; margin-top: 10px; }
.swapq-ask { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.swapq-wait { animation: swappulse 1.6s infinite; margin-bottom: 0;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px;
  letter-spacing: .08em; }
@keyframes swappulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .swapq-wait { animation: none; } }
.swapq-done { margin-bottom: 4px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px;
  letter-spacing: .1em; }
.swapq-why { margin: 0; font-size: 12.5px; line-height: 1.45; }
.swapq-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.swapq-chips button { font-family: inherit; font-size: 12.5px;
  border: 1.5px solid var(--ink); background: var(--card-bg, #fff);
  color: var(--ink); padding: 5px 10px; cursor: pointer; }
.swapq-chips button:hover { background: var(--butter); }
.swapq-chips button.ghosty { border-style: dashed; opacity: .75; }

/* --- the beauty layer (Sep 14 2026) --- */
.beauty-layer .beauty-intro { margin: .2rem 0 .8rem; }
.beauty-section { margin: 1rem 0 .4rem; }
.beauty-section h4.look-name { margin: .6rem 0 0; }
.beauty-item .role { font-size: .7rem; letter-spacing: .08em; opacity: .7; margin: 0 0 .15rem; }
.beauty-item .retailer { font-size: .72rem; opacity: .65; margin: .25rem 0 0; }
.beauty-note { margin: .8rem 0 0; }
.beauty-note .mono { font-size: .72rem; letter-spacing: .06em; opacity: .75; }
