@font-face {
  font-family: 'Shrikhand';
  src: url('../fonts/shrikhand-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Layout: retro-Florida postcard storefront. Left-aligned stacked-stripe headline beside a sunset badge, motel stripes, then a sticker-card product grid. */
  --ink: #1C2B5A;        /* Intracoastal navy: text, borders, buttons */
  --blush: #FFF1F4;      /* pink stucco: page background */
  --flamingo: #FF4F8B;   /* loud accent: fills only */
  --flamingo-ink: #C81E63; /* pink for text on light backgrounds (5:1 on blush) */
  --teal: #00A19B;       /* inlet water */
  --sun: #FFC23D;        /* Mizner tile yellow */
  --seaglass: #C9F0E8;   /* soft secondary surface */
  --panel: #F2FBF9;
  --muted: #4A5680;
  --line: rgba(28, 43, 90, .16);
  --display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --body: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.skip-link:focus { left: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--blush);
  border-bottom: 2px solid var(--ink);
}
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 68px; }
.logo { font-family: var(--display); font-size: 1.55rem; text-decoration: none; line-height: 1; }
.logo span { color: var(--flamingo-ink); }
footer.site-footer .logo span { color: var(--flamingo); }
.custom-logo { max-height: 48px; width: auto; display: block; }
.top nav { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.logo { min-width: 0; }
.top .menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.top .menu a { text-decoration: none; font-weight: 600; }
.top .menu a:hover { color: var(--flamingo-ink); }
.bag-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 10px 8px 16px; font-weight: 700; cursor: pointer;
}
.bag-btn:hover { background: var(--sun); color: var(--ink); }
.bag-count {
  min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 999px; background: var(--sun); color: var(--ink);
  display: inline-grid; place-items: center; font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.bag-btn.bump .bag-count { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Hero */
.hero { padding: 52px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7.1rem); line-height: .98;
  margin: 0 0 26px;
  text-shadow: 3px 3px 0 var(--flamingo), 6px 6px 0 var(--sun), 9px 9px 0 var(--teal);
  text-wrap: balance;
}
.hero p { font-size: 1.2rem; max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero p.hero-note { color: var(--muted); font-size: .95rem; margin: 16px 0 0; }
.hero-art svg { display: block; width: 100%; max-width: 440px; height: auto; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 12px 22px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--sun); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sun); }
.btn.block { width: 100%; }
.btn[disabled], .btn[disabled]:hover { opacity: .5; cursor: not-allowed; background: var(--ink); color: #fff; }

.stripes { height: 30px; background: linear-gradient(var(--flamingo) 0 33.3%, var(--sun) 33.3% 66.6%, var(--teal) 66.6%); border-block: 2px solid var(--ink); }

/* Shop */
.shop { padding: 48px 0 64px; scroll-margin-top: 40px; }
.admin-bar .shop { scroll-margin-top: 72px; }
.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.shop-head h2, .story h2, .page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.shop-head p { margin: 6px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 24px; }
.chips:empty { display: none; }
.aud { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.aud[hidden] { display: none; }
.aud button { border: 0; background: transparent; padding: 9px 18px; font-weight: 700; cursor: pointer; }
.aud button + button { border-left: 2px solid var(--ink); }
.aud button:hover { background: var(--seaglass); }
.aud button[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.fit { align-self: flex-start; font-size: .78rem; font-weight: 700; line-height: 1; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--seaglass); }
.fit-womensfit { background: #FFD3E1; }
.fit-kids { background: var(--sun); }
.fit-unisex { background: #E4E1F7; }
.chip {
  background: transparent; border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 15px; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--seaglass); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.grid-status { grid-column: 1 / -1; padding: 40px; text-align: center; border: 2px dashed var(--ink); border-radius: 20px; }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .art { aspect-ratio: 1 / 1; background: var(--panel); border-bottom: 2px solid var(--ink); }
.card .art svg, .card .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.name-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 1.08rem; line-height: 1.25; margin: 0; font-weight: 700; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.blurb { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.cw-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--ink); padding: 0; cursor: pointer;
}
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.pill { border: 2px solid var(--ink); border-radius: 999px; background: #fff; padding: 3px 11px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cw-name { font-size: .9rem; color: var(--muted); }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.buy-row select {
  flex: 0 0 auto; min-width: 92px; max-width: 100%;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  padding: 9px 10px; font-weight: 600; cursor: pointer;
}
.buy-row .btn { flex: 1 1 120px; padding: 10px 14px; }

/* Story + facts */
.story { background: var(--seaglass); border-block: 2px solid var(--ink); padding: 56px 0; }
.story-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.story svg { width: 100%; height: auto; display: block; }
.story p { max-width: 60ch; margin: 14px 0 0; font-size: 1.08rem; }
.facts { padding: 48px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.fact { border-top: 2px solid var(--ink); padding-top: 14px; }
.fact h3 { margin: 0 0 6px; font-size: 1.05rem; }
.fact p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Posts and pages */
.page-head { padding: 44px 0 8px; }
.entry-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.entry h1, .entry h2, .entry h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; }
.entry h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 18px; }
.entry img { height: auto; border-radius: 14px; }
.entry a { color: var(--ink); text-decoration-color: var(--flamingo); text-decoration-thickness: 2px; }
.entry-list article { border-top: 2px solid var(--ink); padding: 22px 0; }
.entry-list h2 { font-size: 1.7rem; margin: 0 0 8px; }
.entry-list h2 a { text-decoration: none; }
.nav-links { display: flex; gap: 12px; padding-top: 20px; }
.page-content { padding-bottom: 48px; }

footer.site-footer { background: var(--ink); color: #fff; padding: 36px 0; }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer.site-footer .logo { color: #fff; }
footer.site-footer small { color: #C9D0EA; font-size: .9rem; flex-basis: 100%; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-menu a:hover { text-decoration: underline; text-decoration-color: var(--sun); }

/* Bag drawer */
.scrim {
  position: fixed; inset: 0; background: rgba(28, 43, 90, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 99990;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--blush); border-left: 2px solid var(--ink);
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
  z-index: 99991; display: flex; flex-direction: column;
}
.drawer.open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.drawer[aria-busy="true"] .lines, .drawer[aria-busy="true"] .drawer-foot { opacity: .55; pointer-events: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 2px solid var(--ink); }
.drawer-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink);
  background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--sun); }
.ship { padding: 14px 20px; border-bottom: 2px solid var(--line); font-size: .95rem; }
.ship:empty { display: none; }
.ship-track { height: 10px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); margin-top: 8px; overflow: hidden; }
.ship-fill { height: 100%; background: var(--flamingo); width: 0; transition: width .3s ease; }
.lines { flex: 1; overflow-y: auto; padding: 8px 20px; display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .mini { width: 72px; height: 72px; border: 2px solid var(--ink); border-radius: 12px; background: var(--panel); overflow: hidden; }
.line .mini svg, .line .mini img { width: 100%; height: 100%; display: block; object-fit: cover; }
.line h3 { font-size: .98rem; margin: 0; }
.line .meta { font-size: .86rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 700; line-height: 1; }
.qty button:hover { background: var(--seaglass); }
.qty span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.line .lp { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.remove { background: none; border: 0; padding: 0; margin-top: 6px; font-size: .84rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.bag-empty { margin: auto; text-align: center; padding: 30px 10px; }
.bag-empty p { color: var(--muted); }
.drawer-foot { border-top: 2px solid var(--ink); padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.drawer-foot[hidden] { display: none; }
.sum { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.fine { font-size: .85rem; color: var(--muted); margin: 0; }

/* Modal + toast */
.modal-wrap { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; padding: 20px; background: rgba(28, 43, 90, .5); }
.modal-wrap[hidden] { display: none; }
.modal { background: var(--blush); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); max-width: 480px; width: 100%; padding: 24px; }
.modal h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0 0 10px; }
.modal p { margin: 0 0 12px; }
.modal code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 99996;
  transform: translate(-50%, calc(100% + 48px)); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 20px;
  font-weight: 600; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .25s ease, visibility 0s; }

@media (max-width: 420px) {
  .top .wrap { gap: 8px 10px; padding: 8px 14px; flex-wrap: wrap; }
  .logo { font-size: min(1.22rem, 6.2vw); }
  .bag-btn { padding: 6px 7px 6px 12px; gap: 7px; }
  .hero h1 { font-size: min(3.2rem, 13.5vw); }
  .wrap { padding: 0 14px; }
}
@media (max-width: 520px) {
  .aud { width: 100%; }
  .aud button { flex: 1; padding: 9px 8px; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art svg { margin: 0 auto; max-width: 320px; }
  .top .menu { display: none; }
}
@media (max-width: 700px) {
  .story-grid { grid-template-columns: 1fr; }
  .story svg { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
