/* Coastal Cutie Designs — hand-tuned light + dark themes */
:root {
  --pink: #e8257f;
  --pink-deep: #c2186a;
  --aqua: #14a9a4;
  --aqua-soft: #d6f4f2;
  --sun: #ffc93c;
  --ink: #0e3442;
  --ink-soft: #3d5f6b;
  --bg: #fff6f9;
  --surface: #ffffff;
  --sand: #f6e7d3;
  --line: #f1cfe0;
  --on-pink: #ffffff;
  --shadow: 0 18px 40px -22px rgba(14, 52, 66, .45);
  --display: 'Shrikhand', 'Georgia', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink: #ff5aa5; --pink-deep: #ff7ab7; --aqua: #3fd3cb; --aqua-soft: #12414a; --sun: #ffd45e;
    --ink: #f7eef3; --ink-soft: #b9cdd3; --bg: #0c2630; --surface: #123441; --sand: #173c49;
    --line: #23505e; --on-pink: #0c2630; --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pink: #ff5aa5; --pink-deep: #ff7ab7; --aqua: #3fd3cb; --aqua-soft: #12414a; --sun: #ffd45e;
  --ink: #f7eef3; --ink-soft: #b9cdd3; --bg: #0c2630; --surface: #123441; --sand: #173c49;
  --line: #23505e; --on-pink: #0c2630; --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-deep); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 400; }
h2 { font-family: var(--display); font-size: clamp(2rem, 4.2vw, 3rem); color: var(--ink); }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.fine { font-size: .9rem; color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { font-family: var(--display); font-size: 1.6rem; color: var(--pink); line-height: 1; }
.brand-sub { font-family: 'Yellowtail', cursive; font-size: 1.35rem; color: var(--aqua); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--pink-deep); }
.nav .nav-cta { background: var(--pink); color: var(--on-pink); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--pink-deep); color: var(--on-pink); }
.theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .i-moon { fill: currentColor; stroke: none; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}
.brand, .nav-cta { white-space: nowrap; }
@media (max-width: 760px) {
  .top-inner { gap: 12px; min-height: 60px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 8px 14px; font-size: .95rem; }
  .brand-mark { font-size: 1.35rem; }
  .brand-sub { font-size: 1.15rem; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-pink { background: var(--pink); color: var(--on-pink); box-shadow: 0 6px 0 var(--pink-deep); }
.btn-pink:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--pink-deep); }
.btn-pink:active { transform: translateY(6px); box-shadow: 0 0 0 var(--pink-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { position: relative; background: var(--aqua-soft); padding: clamp(40px, 7vw, 88px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; color: var(--pink); letter-spacing: -.01em; text-wrap: balance; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-photos { position: relative; height: clamp(360px, 44vw, 540px); }
.hp { position: absolute; object-fit: cover; border-radius: 120px 120px 22px 22px; border: 6px solid var(--surface); box-shadow: var(--shadow); }
.hp-1 { width: 42%; height: 86%; left: 0; top: 8%; }
.hp-2 { width: 40%; height: 64%; left: 34%; top: 0; z-index: 2; }
.hp-3 { width: 38%; height: 82%; right: 0; top: 16%; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--bg); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 72px; }
  .hero-photos { height: 300px; max-width: 460px; }
}

/* Product strip */
.strip { padding: 6px 0 0; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.strip p { margin: 0; font-weight: 700; color: var(--ink-soft); position: relative; }
.strip p + p::before { content: ''; position: absolute; left: -17px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); transform: translateY(-50%); }

/* Work */
.work { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 24px; }
.section-head p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: 500 .95rem var(--body); padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gallery { columns: 4 240px; column-gap: 16px; }
.piece { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.piece[hidden] { display: none; }
.piece-link { display: block; }
.piece img { width: 100%; }
.piece figcaption { padding: 8px 14px 10px; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 10px; } .piece { margin-bottom: 10px; border-radius: 14px; } }

/* Name tool */
.namer { background: var(--pink); color: var(--on-pink); padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.namer h2 { color: var(--on-pink); }
.namer-grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.namer-stage { display: grid; place-items: center; }
.tumbler { width: min(100%, 300px); height: auto; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .25)); }
.tumbler .lid { fill: #f3f6f8; }
.tumbler .straw { fill: rgba(255, 255, 255, .7); }
.tname { font-family: 'Yellowtail', cursive; font-size: 92px; fill: #fff; stroke: rgba(14, 52, 66, .25); stroke-width: 1.5; paint-order: stroke; }
.namer-panel p { max-width: 36em; }
.namer-form { display: grid; gap: 18px; margin-top: 18px; }
.namer .field > span, .namer legend { color: var(--on-pink); }
.namer input[type="text"] { background: rgba(255, 255, 255, .95); color: #0e3442; border-color: transparent; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: grid; justify-items: center; gap: 4px; font-size: .82rem; font-weight: 500; cursor: pointer; }
.swatch input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 48px; height: 48px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); }
.swatch input:checked + span { border-color: #fff; box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .6); font-weight: 500; cursor: pointer; }
.seg input:checked + span { background: #fff; color: #0e3442; border-color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.namer .btn-pink { background: var(--sun); color: #0e3442; box-shadow: 0 6px 0 #c7951a; justify-self: start; }
.namer .btn-pink:hover { box-shadow: 0 4px 0 #c7951a; }
@media (max-width: 760px) {
  /* Narrow sticky preview beside the controls so the tumbler stays in view while choosing */
  .namer-grid { grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
  .namer-stage { position: sticky; top: 76px; }
  .tumbler { width: 96px; }
  .namer h2 { font-size: 1.9rem; }
  .swatches { gap: 8px 6px; }
  .swatch { font-size: .74rem; width: 58px; text-align: center; line-height: 1.2; }
  .swatch span { width: 40px; height: 40px; }
  .seg { gap: 6px; }
  .seg span { padding: 7px 12px; font-size: .92rem; }
}

/* Forms */
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 4px; }
input[type="text"], input[type="email"], select, textarea {
  font: 400 1rem var(--body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: .75; }

/* Groups */
.groups { padding: clamp(56px, 8vw, 96px) 0; }
.groups-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.tags { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--sand); padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.groups-photo { margin: 0; }
.groups-photo img { border-radius: 26px; box-shadow: var(--shadow); transform: rotate(2deg); }
@media (max-width: 760px) { .groups-grid { grid-template-columns: 1fr; } .groups-photo { max-width: 380px; } }

/* How it works */
.how { background: var(--surface); padding: clamp(56px, 8vw, 96px) 0; border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); color: var(--bg); font: 1.4rem var(--display); }
.steps p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 22px; } .steps li { padding: 0 0 0 64px; } }

/* Care */
.care { padding: clamp(48px, 6vw, 72px) 0; }
.care-inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: center; }
.care h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--aqua); }
.care ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 500; }
.care li::before { content: '✦ '; color: var(--pink); }
@media (max-width: 760px) { .care-inner { grid-template-columns: 1fr; } }

/* Order */
.order { background: var(--sand); padding: clamp(56px, 8vw, 96px) 0; }
.order-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.order-form { display: grid; gap: 16px; background: var(--surface); padding: clamp(20px, 3vw, 32px); border-radius: 24px; box-shadow: var(--shadow); }
.order-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .92rem; color: var(--ink-soft); min-height: 1.4em; }
@media (max-width: 820px) { .order-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.foot-mark { font-size: 1.5rem; margin-bottom: 4px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: start; }
.foot nav a { color: var(--ink); font-weight: 500; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 28, 36, .82); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 16px; }
.lb-cap { color: #fff; text-align: center; margin: 12px 0 0; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0e3442; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Legal / text pages */
.doc { padding: clamp(40px, 6vw, 72px) 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--pink); }
.doc h2 { font-family: var(--body); font-weight: 700; font-size: 1.3rem; margin-top: 2em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--ink-soft); }
