/* Dead Guy Fashion — bone paper, black ink, one red. Old (blackletter) meets new (plain sans). */
@font-face { font-family: "Old London"; src: url("/fonts/OldLondon.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Passion One"; src: url("/fonts/PassionOne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Passion One"; src: url("/fonts/PassionOne-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Passion One"; src: url("/fonts/PassionOne-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --bone: #e6e0d2;
  --bone-dim: #d9d2c2;
  --ink: #141414;
  --ink-soft: #4a4642;
  --red: #ff3030;
  --rule: rgba(20, 20, 20, .18);
  --old: "Old London", "UnifrakturMaguntia", serif;
  --loud: "Passion One", Impact, "Arial Narrow", sans-serif;
  --plain: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone) radial-gradient(ellipse at 20% 0%, rgba(0,0,0,.06), transparent 55%),
              var(--bone) radial-gradient(ellipse at 90% 100%, rgba(0,0,0,.08), transparent 50%);
  color: var(--ink);
  font-family: var(--plain);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .01em;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 400; margin: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* dingy: a film of grain over everything */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.25rem .6rem;
  max-width: var(--max); margin: 0 auto;
}
.wordmark { font-family: var(--old); font-size: 1.9rem; line-height: 1; white-space: nowrap; }
.wordmark:hover { text-decoration: none; color: var(--red); }
.nav { display: flex; gap: 1.1rem; margin-left: auto; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.nav-link.is-active { border-bottom: 1px solid var(--ink); }
.nav-bag { color: var(--red); }

.page { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

/* type bits */
.eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-soft); margin: 0 0 1rem; }
.page-title { font-family: var(--old); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; margin: .5rem 0 1.5rem; }
.muted { color: var(--ink-soft); font-family: var(--plain); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.lede { font-size: 1.15rem; max-width: 42rem; }
.fineprint { font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; }

.btn {
  display: inline-block; cursor: pointer;
  background: var(--ink); color: var(--bone); border: 1px solid var(--ink);
  font-family: var(--loud); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem 1.4rem; border-radius: 0;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--bone); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: transparent; color: var(--red); }

/* hero */
.hero { text-align: center; padding: 2.5rem 0 3.5rem; }
.hero-skull { width: clamp(140px, 22vw, 240px); margin: 0 auto .5rem; filter: grayscale(.15) contrast(1.05); }
.hero-title { font-family: var(--old); font-size: clamp(2.6rem, 10vw, 8rem); line-height: .95; overflow-wrap: anywhere; }
.hero-season { font-family: var(--loud); color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: 1.1rem; margin: .8rem 0 .2rem; }
.hero-line { color: var(--ink-soft); margin: 0 0 1.6rem; }

.section { padding: 2rem 0; border-top: 1px solid var(--rule); }
.manifesto { max-width: 40rem; }
.manifesto p:first-child { font-family: var(--old); font-size: 1.8rem; line-height: 1.1; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid, .grid-4 { grid-template-columns: 1fr 1fr; gap: 1rem .75rem; } }

.card { display: block; }
.card:hover { text-decoration: none; }
.card-art { background: #fff; border: 1px solid var(--rule); aspect-ratio: 1; overflow: hidden; }
.card-art .art { width: 100%; height: 100%; transition: transform .35s ease; }
.card:hover .art { transform: scale(1.04) rotate(-.6deg); }
.card-meta { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; padding: .55rem 0; font-size: .78rem; line-height: 1.35; }
.card-sku { grid-column: 1 / -1; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.card-name { font-family: var(--loud); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.card-price { font-family: var(--loud); font-size: 1.05rem; text-align: right; }
.card-garment { color: var(--ink-soft); grid-column: 1; }
.is-soldout .card-art { opacity: .55; }
.is-soldout .card-price { color: var(--red); }

/* product page */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product-art { position: static; } }
.product-art { background: #fff; border: 1px solid var(--rule); aspect-ratio: 1; position: sticky; top: 1rem; }
.product-art .art { width: 100%; height: 100%; }
.product-name { font-family: var(--loud); font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; line-height: 1; letter-spacing: .02em; }
.product-price { font-family: var(--loud); font-size: 1.4rem; margin: .5rem 0 1rem; }
.product-blurb { max-width: 36rem; }
.buy { margin: 1.5rem 0; }
.sizes { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.sizes legend { padding: 0; margin-bottom: .5rem; }
.size input { position: absolute; opacity: 0; }
.size span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--ink); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.size input:checked + span { background: var(--ink); color: var(--bone); }
.size input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.buy-note { font-size: .8rem; color: var(--red); min-height: 1.2em; margin: .6rem 0 0; }
.soldout-note { font-family: var(--loud); color: var(--red); text-transform: uppercase; }
.details { list-style: none; padding: 0; margin: 1.5rem 0; font-size: .8rem; color: var(--ink-soft); border-top: 1px solid var(--rule); }
.details li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }

/* prose / about */
.prose { max-width: 44rem; }
.prose h2 { font-family: var(--old); font-size: 2rem; margin: 2rem 0 .5rem; }
.archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.5rem 0; }
.archive img { aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.9); border: 1px solid var(--rule); }
.archive img:hover { filter: grayscale(.2) contrast(1.05); }

/* bag */
.bag-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.bag-table th { text-align: left; font-weight: 400; font-size: .65rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-soft); padding: .5rem 0; border-bottom: 1px solid var(--ink); }
.bag-table td { padding: .75rem .5rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.bag-table .num, .bag-table td.num { text-align: right; }
.bag-item { font-family: var(--loud); text-transform: uppercase; font-size: 1rem; }
.bag-item small { display: block; font-family: var(--plain); text-transform: none; color: var(--ink-soft); font-size: .72rem; }
.qty { display: inline-flex; border: 1px solid var(--ink); }
.qty button { background: none; border: 0; width: 1.8rem; cursor: pointer; }
.qty button:hover { background: var(--ink); color: var(--bone); }
.qty span { min-width: 1.8rem; text-align: center; line-height: 1.8rem; }
.remove { background: none; border: 0; cursor: pointer; color: var(--ink-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.remove:hover { color: var(--red); }
.totals { max-width: 24rem; margin: 1.5rem 0 0 auto; font-size: .85rem; }
.totals > div { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.totals .grand { font-family: var(--loud); font-size: 1.2rem; text-transform: uppercase; border-bottom: 1px solid var(--ink); margin-bottom: 1rem; }
.totals .btn { width: 100%; text-align: center; margin-top: .5rem; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.checkout label { display: block; margin-bottom: 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.checkout label small { text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.checkout input[type=text], .checkout input:not([type]), .checkout input[type=email] {
  display: block; width: 100%; margin-top: .3rem; padding: .55rem .6rem;
  background: rgba(255,255,255,.35); border: 1px solid var(--ink); border-radius: 0; font-size: .95rem; letter-spacing: 0; text-transform: none;
}
.checkout input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.payment { border: 1px solid var(--ink); padding: 1rem; margin: 1.5rem 0; }
.payment legend { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; padding: 0 .4rem; }
.payment label { display: flex; gap: .6rem; align-items: baseline; text-transform: none; letter-spacing: 0; font-size: .9rem; margin: .5rem 0; cursor: pointer; }
.checkout-summary { border: 1px solid var(--ink); padding: 1.25rem; position: sticky; top: 1rem; }
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.checkout-summary .totals { margin-left: 0; max-width: none; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* thanks + dead */
.thanks, .dead { text-align: center; max-width: 36rem; margin: 2rem auto; }
.thanks .lede, .dead .lede { margin-left: auto; margin-right: auto; }
.dead-skull { margin: 0 auto 1rem; filter: grayscale(1) contrast(1.2); animation: tilt 6s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.dead-cause { font-family: var(--loud); text-transform: uppercase; color: var(--red); }
.is-dead { background-color: #d8d1c0; }

/* footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--ink); font-size: .75rem; color: var(--ink-soft); }
.footer-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-skull { filter: grayscale(1); opacity: .7; }
.footer-blurb { margin: 0; }
.footer-links a { text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; }
.footer-links a:hover { color: var(--red); }
.footer-copy { font-size: .66rem; margin: 0; }
