/* Chroma Chaos: publisher site. No web fonts, no trackers: everything here is local. */
:root {
  --bg: #120e0b;
  --bg-2: #19130f;
  --card: #211913;
  --card-2: #2a2019;
  --line: rgba(239, 228, 208, 0.12);
  --text: #efe4d0;
  --muted: #b8a78e;
  --amber: #f0a640;
  --amber-2: #ffc46b;
  --chroma: linear-gradient(90deg, #9b3cf5, #ff3d8a 35%, #ffae2b 65%, #2ee6ff);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-2); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #120e0b; padding: 0.6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 14, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); }
@media (max-width: 560px) { .nav a.hide-sm { display: none; } .brand span { font-size: 1.1rem; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a120b; }
.btn-primary:hover { background: var(--amber-2); color: #1a120b; }
.btn-ghost { color: var(--text); border-color: rgba(239, 228, 208, 0.35); background: rgba(18, 14, 11, 0.35); }
.btn-ghost:hover { border-color: var(--text); color: #fff; }
.btn .arrow { font-size: 1.1em; line-height: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 14, 11, 0.92) 0%, rgba(18, 14, 11, 0.6) 45%, rgba(18, 14, 11, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 14, 11, 0) 35%);
}
.hero .wrap { padding: 7rem 0 5.5rem; }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero > img { object-position: 70% 50%; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 2%, rgba(18, 14, 11, 0.82) 45%, rgba(18, 14, 11, 0.45) 100%); }
  .hero .wrap { padding: 9rem 0 3.5rem; }
}
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; border-radius: 3px; background: var(--chroma); vertical-align: middle; margin-right: 0.6rem; }
.lede { font-size: 1.2rem; color: #e2d4bb; max-width: 560px; }
.chroma-text { background: var(--chroma); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* sections */
section { padding: 5.5rem 0; }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* featured pack */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 2rem; } }
.feature-img { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.tag.new { color: #1a120b; background: var(--amber); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1.6rem 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; }
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; margin: 0 0 1rem; }
.price small { font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-left: 0.4rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--card-2); border: 1px solid var(--line); }
.card .icon svg { width: 22px; height: 22px; stroke: var(--amber-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* image strip / gallery */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
@media (max-width: 800px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.strip a, .gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.strip img, .gallery img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform 0.35s ease; }
.strip a:hover img, .gallery a:hover img { transform: scale(1.04); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); padding: 0.45rem 0.2rem 0; }

/* about */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about-mark { max-width: 380px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(155, 60, 245, 0.45); }
.about-mark img { width: 100%; }

/* support */
.support { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
@media (max-width: 900px) { .support { grid-template-columns: 1fr; } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; align-self: start; }
.contact-card .mail { display: inline-block; font-size: 1.1rem; font-weight: 650; word-break: break-all; margin: 0.3rem 0 1rem; }
.contact-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; margin-bottom: 0.7rem; }
details[open] { background: var(--card-2); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber-2); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: 0.4rem; }

/* pack page */
.crumbs { font-size: 0.9rem; color: var(--muted); padding-top: 1.6rem; }
.crumbs a { color: var(--muted); }
.pack-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; padding: 1.5rem 0 4rem; }
@media (max-width: 950px) { .pack-top { grid-template-columns: 1fr; } .pack-top .buy-box { order: -1; position: static; } }
.buy-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: sticky; top: 84px; }
.buy-box h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.buy-box .btn { width: 100%; justify-content: center; margin-bottom: 0.7rem; }
.facts { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; }
.contents { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.contents .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.contents .card h3 b { font-family: var(--sans); font-size: 0.9rem; color: #1a120b; background: var(--amber); border-radius: 999px; padding: 0.1rem 0.6rem; }
.spec { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--muted); font-weight: 500; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.feature > * { min-width: 0; }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: auto; }
  .spec th { border-bottom: 0; padding-bottom: 0.1rem; font-size: 0.85rem; }
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--chroma); -webkit-mask: radial-gradient(circle, transparent 35%, #000 37%); mask: radial-gradient(circle, transparent 35%, #000 37%); }
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: rgba(8, 6, 4, 0.94); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 6, 4, 0.92); }
.lightbox .lb-inner { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4.5rem 1.2rem; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lightbox p { color: var(--text); margin: 0.8rem 0 0; }
.lb-btn { position: absolute; background: rgba(33, 25, 19, 0.85); color: var(--text); border: 1px solid var(--line); width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--card-2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .lb-inner { padding: 4rem 0.6rem 1rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: 0.85rem; }

/* plain text pages */
.prose { max-width: 760px; padding: 3rem 0 5rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose p, .prose li { color: #dccdb3; }
