﻿/* GLY - Good Life Youth. Black, quiet, products first. */
:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #fff;
  --mute: #9b9b9b;
  --line: rgba(255, 255, 255, .22);
  --panel: #0c0c0c;
  --err: #ff6b6b;

  --display: "Orbitron", "Arial Rounded MT Bold", sans-serif;
  --body: Helvetica, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(14px, 3vw, 40px);
  --header-h: 64px;
  --maxw: 1180px;
  --gap: clamp(8px, 2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 14px; line-height: 1.5; color: var(--fg); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: .02em; color: var(--fg); }
.link { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border: 1px solid var(--fg); border-radius: 2px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); opacity: 1; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.bar { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.icon-btn { background: none; border: 0; padding: 8px; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.menu-btn { justify-self: start; margin-left: -8px; }
.cart-btn { justify-self: end; margin-right: -8px; }
.cart-n { font-size: 12px; font-weight: 600; min-width: 1ch; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .wordmark { height: 24px; width: auto; display: block; }
.mnav { display: none; padding: 4px var(--gutter) 22px; max-width: var(--maxw); margin-inline: auto; }
.mnav.open { display: grid; gap: 2px; }
.mnav a, .mnav button { background: none; border: 0; padding: 9px 0; text-align: left; text-decoration: none; font-size: 14px; }
.mnav a:hover, .mnav button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- rack ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px) var(--gap); padding-top: clamp(8px, 2vw, 24px); }
.card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.card .thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 8px; background: #fff; }
.card .thumb > img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }
.card .thumb > img.photo.alt { opacity: 0; transition: opacity .25s ease; }
.card:hover .thumb > img.photo.alt { opacity: 1; }
@media (hover: none) { .card .thumb > img.photo.alt { display: none; } }
.card .name { font-size: 12px; text-decoration: none; }
.card .name:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .price { font-size: 12px; font-variant-numeric: tabular-nums; }
.was { color: var(--mute); font-weight: 400; margin-right: 6px; text-decoration-thickness: 1px; }
.now { font-weight: 400; }
.card.is-sold .thumb > img { opacity: .45; }

/* ---------- sections ---------- */
.sec { padding-top: clamp(64px, 10vw, 130px); }
.sec > h2 { font-size: clamp(30px, 4.4vw, 52px); text-align: center; margin-bottom: clamp(20px, 3vw, 36px); }
.look { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.look figure { margin: 0; aspect-ratio: 4 / 5; background: var(--panel); overflow: hidden; }
.look img { width: 100%; height: 100%; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.contact-list { display: grid; gap: 10px; font-size: 16px; justify-items: start; }
.contact-list a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
label small { font-weight: 400; color: var(--mute); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fg); padding: 13px 14px; border-radius: 2px; border: 1px solid var(--line); background: var(--bg); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #6d6d6d; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--fg); }
.err { color: var(--err); font-size: 13px; font-weight: 500; }
.err:empty { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { display: grid; justify-items: center; gap: 18px; padding: clamp(56px, 8vw, 100px) var(--gutter) 40px; font-size: 12px; text-align: center; }
.site-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; }
.site-footer a, .site-footer button { background: none; border: 0; padding: 0; text-decoration: none; font: inherit; }
.site-footer a:hover, .site-footer button:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .copy { color: var(--mute); }
.sticker { flex: none; display: block; width: 56px; height: 56px; border-radius: 50%; background: #fff url("../assets/art/art-logo.jpg") center / 82% no-repeat; transform: rotate(-9deg); transition: transform .25s ease; }
.sticker:hover { transform: rotate(6deg) scale(1.06); }
.done .sticker { width: 96px; height: 96px; }

/* ---------- dialogs: cart drawer, policy ---------- */
dialog { border: 1px solid var(--line); padding: 0; color: var(--fg); background: var(--bg); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.x-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 16px; line-height: 1; }
.x-btn:hover { background: var(--fg); color: var(--bg); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100vw); height: 100dvh; display: none; border-width: 0 0 0 1px; }
.drawer[open] { display: flex; flex-direction: column; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; }
.drawer .lines { flex: 1; overflow: auto; padding: 4px 20px; }
.drawer .empty { padding: 40px 0; text-align: center; color: var(--mute); display: grid; gap: 16px; justify-items: center; }
.drawer footer { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; flex: none; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .t { display: block; width: 72px; aspect-ratio: 4 / 5; position: relative; background: #fff; overflow: hidden; }
.line .t > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.line h4 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line .sub { font-size: 13px; color: var(--mute); }
.line .rm { background: none; border: 0; padding: 0; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.line .amt { font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; margin-top: 8px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 18px; }
.qty button:hover { background: var(--fg); color: var(--bg); }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.row.total { font-weight: 700; font-size: 18px; }
.muted { color: var(--mute); font-size: 13px; }
.policy { width: min(520px, calc(100vw - 24px)); margin: auto; padding: 30px; }
.policy h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 12px; line-height: 1; }
.policy p { color: #cfcfcf; }
.policy .btn { margin-top: 22px; }

/* ---------- size / colour picker ---------- */
.sizes { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.sizes legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.sizes label { display: block; }
.sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sizes span { display: grid; place-items: center; min-width: 50px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; font-weight: 600; cursor: pointer; transition: all .12s ease; }
.sizes span:hover { border-color: var(--fg); }
.sizes input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sizes input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.sizes input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.sizes.shake span { border-color: var(--err); }
.stock-note { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.stock-note:empty { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 2px; font-weight: 600; z-index: 200; transition: all .25s ease; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(8px, 2vw, 24px) 0 clamp(48px, 6vw, 90px); align-items: start; }
.pdp .gallery { position: sticky; top: calc(var(--header-h) + 8px); display: grid; gap: 12px; }
.pdp .stage { position: relative; aspect-ratio: 4 / 5; background: #fff; }
.pdp .stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs button { padding: 0; aspect-ratio: 4 / 5; border: 1px solid transparent; overflow: hidden; background: #fff; opacity: .7; transition: opacity .15s ease; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-pressed="true"] { border-color: var(--fg); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: grid; gap: 20px; }
.pdp-info h1 { font-size: 22px; font-weight: 400; line-height: 1.2; }
.pdp-price { font-size: 16px; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy-row .btn { flex: 1 1 160px; padding-block: 16px; }
.buy-row .qty { margin: 0; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details ul { margin: 12px 0 0; padding-left: 18px; color: #cfcfcf; display: grid; gap: 4px; }
details p { margin-top: 10px; color: #cfcfcf; }
.related { padding-bottom: clamp(40px, 6vw, 90px); }
.related h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 32px); text-align: center; margin-bottom: 16px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp .gallery { position: static; } }

/* ---------- checkout ---------- */
.co { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(16px, 3vw, 40px) 0 clamp(56px, 7vw, 100px); align-items: start; }
.co h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(18px, 3vw, 30px); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1; margin-bottom: 18px; }
.summary { position: sticky; top: calc(var(--header-h) + 8px); display: grid; gap: 4px; }
.pay { display: grid; gap: 12px; }
.pay label { grid-template-columns: auto 1fr; align-items: start; gap: 14px; padding: 16px; border: 1px solid var(--line); cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--fg); }
.pay input { width: 20px; height: 20px; accent-color: #fff; margin-top: 2px; padding: 0; }
.pay b { display: block; font-size: 15px; }
.pay small { font-weight: 400; color: var(--mute); font-size: 13px; }
.done { text-align: center; padding: clamp(36px, 6vw, 80px) 0; display: grid; gap: 18px; justify-items: center; }
.done h1 { margin: 0; }
.done .code { font-family: var(--display); font-size: clamp(24px, 4vw, 38px); padding: 10px 22px; border: 1px solid var(--fg); }
.qr { display: grid; gap: 10px; justify-items: center; padding: 18px; background: #fff; color: #000; max-width: 340px; }
.qr .muted { color: #444; }
.qr img { width: 100%; max-width: 280px; }
.empty-state { text-align: center; padding: clamp(60px, 10vw, 140px) 0; display: grid; gap: 18px; justify-items: center; }
.empty-state h1 { margin: 0; }
@media (max-width: 860px) { .co { grid-template-columns: 1fr; } .summary { position: static; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* ---------- entry page ---------- */
.gate { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 32px 16px; text-decoration: none; text-align: center; }
.gate-word { width: clamp(240px, 62vw, 760px); height: auto; display: block; }
.gate-shapes { width: clamp(150px, 26vw, 280px); height: auto; display: block; margin-top: clamp(14px, 3vw, 30px); }
.gate-sub { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute); }
.gate-enter { margin-top: clamp(18px, 4vw, 40px); padding: 14px 40px; border: 1px solid var(--fg); border-radius: 2px; font-weight: 600; font-size: 14px; transition: background .15s ease, color .15s ease; }
.gate:hover .gate-enter, .gate:focus-visible .gate-enter { background: var(--fg); color: var(--bg); }



