/* Taken over from S01's earlier shop (097-assignment-an-online-shop), trimmed to the fake-door pages.
   Colours live only here, as variables. */
:root {
  --bg: #0b0b0b;
  --panel: #151515;
  --ink: #ffffff;
  --muted: #a8a8a8;
  --accent: #e2231a;
  --line: #262626;
  --header: #000;
  --nav: #050505;
  --error: #ff6b63;
  --hero-gradient: linear-gradient(110deg, #5a2d14 0%, #3a1c0d 45%, #150a05 100%);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: inherit; }
.site-header { background: var(--header); }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1rem 1.5rem; }
.menu-button { grid-column: 1; grid-row: 1; display: none; cursor: pointer; width: 1.5rem; height: 1.1rem; position: relative; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.menu-button::before { top: 0; }
.menu-button span { top: 50%; }
.menu-button::after { bottom: 0; }
.header-title { grid-column: 2; grid-row: 1; text-align: center; }
.brand { font-weight: 700; font-size: 1.4rem; text-decoration: none; letter-spacing: 0.02em; }
.tagline { margin: 0.2rem 0 0; font-size: 0.7rem; color: var(--muted); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-nav { background: var(--nav); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; max-width: 80rem; }
.site-nav li { border-left: 1px solid var(--line); }
.site-nav li:last-child { border-right: 1px solid var(--line); }
.site-nav a { display: block; padding: 0.8rem 1.6rem; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
main { margin: 0 auto; padding: 0 0 3rem; }
.hero { position: relative; min-height: 22rem; display: flex; align-items: center; overflow: hidden; padding: 2rem 8%; background: var(--hero-gradient); }
.hero-art { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); height: 80%; width: auto; max-width: 45%; }
.hero-text { position: relative; z-index: 1; max-width: 36rem; }
.hero-label { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; }
.hero-label::before { content: ""; width: 4rem; border-top: 1px solid var(--ink); }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 6vw, 3.5rem); text-transform: uppercase; letter-spacing: 0.15em; line-height: 1.2; }
.hero p { margin: 0 0 1.5rem; color: var(--ink); }
.button { display: inline-block; background: #000; color: var(--ink); padding: 0.6rem 1.4rem; font: inherit; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; border: 1px solid #000; cursor: pointer; }
.button:hover, .button:focus-visible { background: var(--accent); border-color: var(--accent); }
.catalog { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem 0; }
.section-title { display: flex; align-items: center; gap: 1rem; margin: 0; text-align: center; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.4rem; }
.section-title::before, .section-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.section-subtitle { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 0.5rem 0 2rem; }
.product-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); max-width: 56rem; }
.product-card { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 1.25rem; display: flex; flex-direction: column; }
.tag { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.45rem; }
.product-name { margin: 0 0 0.25rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.product-description { margin: 0.25rem 0; color: var(--muted); font-size: 0.85rem; flex: 1; }
.product-price { margin: 0.75rem 0; font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.features { max-width: 56rem; margin: 2rem auto 0; background: var(--panel); border: 1px solid var(--line); padding: 1.5rem; }
.features ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.features li { margin: 0.3rem 0; }
.features code, .panel code { color: var(--ink); }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 1.5rem; max-width: 36rem; margin: 2rem auto 0; }
.panel h1 { margin-top: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.4rem; }
.panel p { color: var(--muted); }
.panel a:not(.button) { color: var(--accent); }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: 0.3rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.form-field input { width: 100%; padding: 0.6rem 0.7rem; background: #000; color: var(--ink); border: 1px solid var(--line); font: inherit; }
.form-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-hint { margin: 0.3rem 0 0; font-size: 0.75rem; color: var(--muted); }
.form-error { margin: 0 0 1rem; font-size: 0.85rem; color: var(--error); border: 1px solid var(--accent); padding: 0.6rem 0.8rem; }
.panel .button { width: 100%; padding: 0.7rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { max-width: 56rem; margin: 3rem auto 0; padding: 1rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; text-align: center; }
.site-footer a { color: var(--muted); }
@media (max-width: 700px) {
  .header-bar { grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 1rem; }
  .menu-button { display: block; }
  .header-title { text-align: left; }
  .site-nav { display: none; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav li, .site-nav li:last-child { border: 0; border-top: 1px solid var(--line); }
  .hero { min-height: 18rem; padding: 2rem 1.5rem; }
  .hero-art { right: 0; left: 0; margin: 0 auto; height: 70%; max-width: 100%; opacity: 0.25; }
  .product-grid { grid-template-columns: 1fr; }
  .panel, .features { margin: 1rem; }
}
@media (max-width: 480px) { .tagline { display: none; } }
