/* shop.erfanzarnani.com : paper, ink and lime.
   References: teenage engineering (spec-sheet grid, tiny lowercase labels), Atomato (black + lime, pills, live UI mock),
   Vibe (ticker strip, loud type, oval outlined button), Lee Holmes (huge type, (mono) labels). System fonts only (CSP). */
:root {
  --paper: #f3f1ea; --ink: #0b0b0c; --ink-2: #3a3a3f; --muted: #6d6d73; --line: #0b0b0c1f; --hair: #0b0b0c;
  --lime: #d6ff3a; --lilac: #d9b3ff; --white: #ffffff;
  --display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", "Segoe UI Variable", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; text-transform: uppercase; }
.lbl::before { content: "("; } .lbl::after { content: ")"; }

/* ticker (Vibe) */
.ticker { background: var(--lime); color: var(--ink); border-bottom: 1px solid var(--hair); overflow: hidden; white-space: nowrap; }
.ticker .track { display: inline-flex; animation: roll 38s linear infinite; }
.ticker span { padding: 7px 28px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* header: icon tiles with micro text (teenage engineering) */
header.site { background: var(--paper); border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 12px 0; text-decoration: none; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.brand img { width: 34px; height: 34px; }
nav.site { display: flex; }
nav.site a { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; text-decoration: none; border-left: 1px solid var(--line); min-width: 120px; }
nav.site a:hover { background: var(--ink); color: var(--paper); }
nav.site img { width: 22px; height: 22px; margin-top: 1px; }
nav.site b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.1; }
nav.site small { display: block; font-size: .66rem; line-height: 1.25; color: var(--muted); }
nav.site a:hover small { color: #bdbdc2; }
@media (max-width: 860px) { nav.site small { display: none; } nav.site a { min-width: 0; padding: 12px 10px; } .brand span { display: none; } }
@media (max-width: 560px) { nav.site b { display: none; } nav.site a { padding: 12px; } }

/* hero (Lee Holmes + Vibe) */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap > *:not(.stack) { position: relative; z-index: 1; }
.hero .lbl { display: inline-block; margin-bottom: 18px; }
.hero h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 10.5vw, 8.5rem); line-height: .88; letter-spacing: -.045em; margin: 0; max-width: 11ch; }
.hero h1 mark { background: linear-gradient(transparent 52%, var(--lime) 52% 94%, transparent 94%); color: inherit; padding: 0 .04em; }
.hero p.lead { max-width: 34rem; font-size: 1.2rem; color: var(--ink-2); margin: 22px 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stack { position: absolute; right: 0; top: 8%; z-index: 0; width: min(34vw, 420px); aspect-ratio: 1; pointer-events: none; }
.stack img { position: absolute; width: 46%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); }
.stack .s1 { left: 0; top: 4%; transform: rotate(-12deg); }
.stack .s2 { right: 0; top: 0; transform: rotate(9deg); width: 52%; }
.stack .s3 { left: 12%; bottom: 0; transform: rotate(7deg); width: 50%; }
.stack .s4 { right: 4%; bottom: 8%; transform: rotate(-8deg); width: 40%; }
@media (max-width: 1100px) { .stack { position: static; width: min(70vw, 320px); margin: 36px auto 0; } .stack img { position: absolute; } .stack { position: relative; } }
@media (prefers-reduced-motion: no-preference) { .stack img { animation: bob 6s ease-in-out infinite; } .stack .s2 { animation-delay: -1.5s; } .stack .s3 { animation-delay: -3s; } .stack .s4 { animation-delay: -4.5s; } }
@keyframes bob { 50% { translate: 0 -10px; } }

/* buttons: black pill (Lee Holmes / Atomato) and oval outline (Vibe) */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--lime); color: var(--ink); }
.btn.oval { background: var(--lime); color: var(--ink); border-radius: 50%/60%; padding: 13px 30px; }
.btn.oval:hover { background: var(--ink); color: var(--lime); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.on-dark { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink); cursor: default; }
.btn[aria-disabled="true"]:hover { background: transparent; color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: .9rem; }

/* section heads */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hair); padding-top: 14px; margin-top: 8px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }

/* product tiles (teenage engineering grid) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); margin-top: 18px; }
.tile { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; text-decoration: none; background: var(--paper); min-height: 380px; }
.tile .art { flex: 1; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 14px 14px; }
.tile .art img { width: min(62%, 170px); transition: transform .25s ease; }
.tile:hover .art img { transform: scale(1.08) rotate(-4deg); }
.tile .info { padding: 14px 16px 16px; border-top: 1px solid var(--hair); display: grid; gap: 6px; }
.tile h3 { margin: 0; font-size: 1.15rem; font-weight: 600; text-transform: lowercase; letter-spacing: -.01em; line-height: 1.1; }
.tile p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.tile .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.tile:hover { background: var(--ink); color: var(--paper); }
.tile:hover p { color: #cfcfd4; } .tile:hover .art { background-image: radial-gradient(circle at 1px 1px, #ffffff2b 1px, transparent 1.5px); }
.tile:hover .info { border-color: #ffffff3d; }
.badge { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--lime); color: var(--ink); white-space: nowrap; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 320px; } }

/* dark band with live UI mock (Atomato) */
.dark { background: var(--ink); color: var(--paper); margin-top: 72px; padding: 72px 0; }
.dark .sec-head { border-color: #ffffff3d; }
.dark .sec-head h2 em { font-style: normal; color: var(--lime); }
.how { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; margin-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; border-top: 1px solid #ffffff3d; padding-top: 16px; }
.steps .n { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--lime); }
.steps b { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.steps span { color: #c9c9ce; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }
.mock { background: #1a1a1d; border: 1px solid #ffffff2e; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); color: var(--paper); }
.mock .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #232327; font-size: .8rem; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #55555c; }
.mock .bar img { width: 16px; height: 16px; margin-left: 4px; }
.mock .tabs { display: flex; gap: 6px; padding: 12px 14px 0; font-size: .82rem; }
.mock .tabs span { padding: 6px 12px; border-radius: 999px; background: #2b2b30; color: #c9c9ce; }
.mock .tabs span.on { background: var(--lime); color: var(--ink); font-weight: 700; }
.mock .list { padding: 12px 14px 16px; display: grid; gap: 8px; }
.mock .item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: #232327; border-radius: 10px; padding: 10px 12px; }
.mock .item img { width: 32px; height: 32px; }
.mock .item b { display: block; font-size: .92rem; line-height: 1.2; }
.mock .item small { color: #9a9aa2; font-size: .74rem; }
.mock .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 6px; }
.mock .dot.off { background: #ff6b6b; }
.tog { width: 40px; height: 22px; border-radius: 999px; background: #55555c; position: relative; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.tog.on { background: var(--lime); } .tog.on::after { left: 21px; background: var(--ink); }

/* merch strip */
.merch { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; border: 1px solid var(--hair); padding: 22px; margin-top: 18px; background: var(--lilac); }
.merch img { width: 64px; height: 64px; }
.merch h3 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; letter-spacing: -.03em; }
.merch p { margin: 2px 0 0; }
@media (max-width: 640px) { .merch { grid-template-columns: 1fr; } }
.notice { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; margin-top: 18px; color: var(--muted); }

/* product page */
.pp { padding: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--hair); margin-top: 28px; }
.pp .art { display: grid; place-items: center; min-height: 420px; background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 14px 14px; border-right: 1px solid var(--hair); }
.pp .art img { width: min(60%, 260px); }
.pp .copy { padding: 28px; display: grid; gap: 14px; align-content: start; }
.pp h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .92; letter-spacing: -.04em; margin: 0; }
.pp .lead { font-size: 1.15rem; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .pp { grid-template-columns: 1fr; } .pp .art { border-right: 0; border-bottom: 1px solid var(--hair); min-height: 260px; } }
.spec { display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--hair); margin-top: 24px; }
.spec > div { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.spec .k { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; color: var(--muted); padding-right: 12px; }
.spec ul { margin: 0; padding-left: 1.1rem; }
.crumb { padding-top: 24px; }
.crumb a { text-decoration: none; }

/* prose pages */
.prose { max-width: 46rem; padding: 48px 0 0; }
.prose h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 6vw, 4rem); line-height: .92; letter-spacing: -.04em; margin: 0 0 20px; }
.prose li { margin: 6px 0; }

/* footer: giant wordmark */
footer.site { margin-top: 88px; background: var(--ink); color: var(--paper); padding: 44px 0 28px; overflow: hidden; }
footer.site .big { font-family: var(--display); text-transform: uppercase; font-size: clamp(3rem, 14vw, 11rem); line-height: .85; letter-spacing: -.05em; color: var(--lime); margin: 0 0 28px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #bdbdc2; font-size: .88rem; }
footer.site a { color: #e8e8ec; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
