@font-face { font-family: "Shrikhand"; src: url("fonts/shrikhand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --cotton: #fcfcfa;
  --paper: #ffffff;
  --ink: #1f2366;        /* indigo dye */
  --ink-2: #4a4c7e;
  --line: #e3e2ee;
  --soft: #f1f0f8;
  --fuchsia: #c4006e;    /* dark enough for white text */
  --turquoise: #007f87;
  --lemon: #ffc81a;
  --grape: #5b2db5;
  --btn: #1f2366;
  --btn-ink: #ffffff;
  --danger: #b00034;
  --ok: #0f7a4a;
  --radius: 18px;
  --gutter: 16px;
  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cotton: #121436; --paper: #1a1c46; --ink: #f2f1ff; --ink-2: #b9b8e0; --line: #2d2f63; --soft: #222459;
    --fuchsia: #ff5fb4; --turquoise: #3fd0d8; --btn: #ffc81a; --btn-ink: #121436; --danger: #ff6b8e; --ok: #4ade9a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cotton: #121436; --paper: #1a1c46; --ink: #f2f1ff; --ink-2: #b9b8e0; --line: #2d2f63; --soft: #222459;
  --fuchsia: #ff5fb4; --turquoise: #3fd0d8; --btn: #ffc81a; --btn-ink: #121436; --danger: #ff6b8e; --ok: #4ade9a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cotton); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cotton) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.mark { font-family: var(--display); font-size: 26px; text-decoration: none; line-height: 1; min-height: 44px; display: inline-flex; align-items: center; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; font-weight: 600; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.top nav a:hover { background: var(--soft); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 28px 0 40px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 15vw, 112px); line-height: 0.92; margin: 0 0 18px;
  letter-spacing: -0.01em; color: var(--ink); }
.hero h1.dyed { color: transparent; -webkit-background-clip: text; background-clip: text; background-size: cover; background-position: center;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.hero .tagline { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.4; max-width: 30ch; margin: 0 0 24px; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }
.bloom { position: relative; width: min(72vw, 460px); justify-self: center; }
.bloom canvas { width: 100%; aspect-ratio: 1; border-radius: 50%; display: block; background: var(--soft);
  box-shadow: 0 0 0 10px var(--paper), 0 30px 60px -30px rgba(31, 35, 102, .45); cursor: pointer; }
.bloom .redye { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap;
  background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 48px; }
}

/* ── Sections ───────────────────────────────────────────────────── */
section { scroll-margin-top: 70px; }
.block { padding: 44px 0; }
.block h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7vw, 48px); line-height: 1; margin: 0 0 10px; }
.lede { color: var(--ink-2); margin: 0 0 22px; max-width: 60ch; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 12px 14px; margin: 0 0 22px;
  color: var(--ink); max-width: 64ch; font-size: 16px; }
.note b { font-weight: 800; }

/* ── Shirt grid ─────────────────────────────────────────────────── */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { all: unset; display: block; width: 100%; cursor: pointer; border-radius: var(--radius); }
.card .ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .ph img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .card .ph img { transition: none; } .card:hover .ph img { transform: none; } }
.card .tag { position: absolute; left: 10px; top: 10px; }
.card .name { display: block; font-weight: 600; margin: 10px 2px 0; line-height: 1.3; }
.card .price { display: block; font-weight: 800; margin: 2px 2px 0; }
.card.sold .ph img { filter: grayscale(.6) opacity(.75); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 800;
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.tag.sold { background: var(--ink); color: var(--cotton); }
.tag.one { background: var(--fuchsia); color: #fff; }
.tag.sample { background: var(--lemon); color: #1f2366; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-2); }
.empty strong { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ink); margin-bottom: 6px; }

/* ── About + order ──────────────────────────────────────────────── */
.about-text { font-size: 19px; line-height: 1.6; max-width: 58ch; white-space: pre-line; margin: 0; }
.maker { margin-top: 14px; font-weight: 600; color: var(--ink-2); }
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact .btn { min-width: 140px; }
.contact .btn.ghost { min-width: 0; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 40px; color: var(--ink-2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ── Shirt sheet ────────────────────────────────────────────────── */
dialog.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--cotton); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(18, 20, 54, .55); }
dialog.sheet[open] { animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
.sheet-in { display: grid; min-height: 100%; }
.sheet-close { position: fixed; right: 12px; top: 12px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper);
  color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.gallery { position: relative; background: var(--soft); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 4px; }
.dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.dots button[aria-current="true"]::before { background: #fff; width: 22px; border-radius: 6px; }
.info { padding: 22px var(--gutter) 40px; }
.info h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 0 0 6px; }
.info .price { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.info .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.info .tags .tag { box-shadow: inset 0 0 0 1.5px var(--line); }
.info .tags .tag.one, .info .tags .tag.sold, .info .tags .tag.sample { box-shadow: none; }
.info .desc { white-space: pre-line; margin: 0 0 18px; color: var(--ink); }
.sizes { border: 0; padding: 0; margin: 0 0 20px; }
.sizes legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 46px; padding: 0 14px; border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--line); font-weight: 600; }
.chip input:checked + span { background: var(--ink); color: var(--cotton); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--grape); outline-offset: 2px; }
.actions { display: grid; gap: 10px; }
.actions .btn { width: 100%; }
.ways { display: grid; gap: 10px; margin-top: 4px; }
.ways[hidden] { display: none; }
.hint { font-size: 15px; color: var(--ink-2); margin: 10px 0 0; }
@media (min-width: 900px) {
  dialog.sheet { width: min(1040px, calc(100% - 48px)); height: auto; max-height: calc(100% - 48px); margin: auto; border-radius: 26px; overflow: auto; }
  .sheet-in { grid-template-columns: 1.05fr 1fr; min-height: 0; }
  .sheet-close { position: absolute; }
  .gallery { border-radius: 26px 0 0 26px; overflow: hidden; }
  .info { padding: 36px 34px; align-self: center; }
}

/* ── Toast ──────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--cotton);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.toast[hidden] { display: none; }
