/* ─────────────────────────────────────────────────────────────────
   Lymel — first cut, dusk palette
   The site stays one shade darker than the cream Atelier Box GUI
   so the instrument reads as a bright "poster" against the bench.
   ───────────────────────────────────────────────────────────────── */

:root {
  --dusk:        #1B1410;   /* base background — warm charcoal */
  --dusk-rise:   #221A14;   /* subtle lift for surfaces */
  --dusk-soft:   #2A2018;   /* cards & wells */
  --cream:       #E8D5B0;   /* primary type */
  --cream-bright:#F2E2C1;   /* Atelier Box GUI cream — shared with the plug-in */
  --paper:       #E5D2A8;
  --brass:       #D4A85C;
  --brass-deep:  #A87E40;
  --persimmon:   #D67849;   /* sparing accent */
  --ink-dim:     #9A8870;
  --rule:        rgba(232, 213, 176, 0.14);
  --max:         1080px;
  --pad:         32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--dusk);
  color: var(--cream);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(ellipse 1200px 800px at 50% -200px,
                    rgba(212, 168, 92, 0.08), transparent 70%),
    radial-gradient(ellipse 900px 600px at 50% 100%,
                    rgba(214, 120, 73, 0.05), transparent 70%);
  min-height: 100vh;
  position: relative;
}

/* fine paper-grain noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  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='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  z-index: 1;
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

a {
  color: var(--cream);
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
  transition: color 140ms ease;
}
a:hover { color: var(--brass); }

em { font-style: italic; color: var(--brass); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark { color: var(--brass); font-style: normal; }
.brand-name { color: var(--cream); }

.primary-nav { display: flex; gap: 28px; }
.primary-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink-dim);
  font-weight: 400;
}
.primary-nav a:hover { color: var(--cream); }

/* ── Section scaffolding ────────────────────────────────────── */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px var(--pad);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}

.section-head { margin-bottom: 56px; max-width: 60ch; }
.section-head h2 {
  font-size: 46px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.section-lede {
  font-size: 20px;
  color: var(--cream);
  opacity: 0.78;
  max-width: 56ch;
}

/* ── Hero (full-bleed map background) ───────────────────────── */
.hero {
  position: relative;
  max-width: none;
  width: 100%;
  padding: 0;
  text-align: center;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-map {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-map.png');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  filter: saturate(0.85) brightness(0.72);
  z-index: 0;
}

.hero-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at center,
                    rgba(27, 20, 16, 0.22) 0%,
                    rgba(27, 20, 16, 0.45) 60%,
                    rgba(27, 20, 16, 0.78) 100%),
    linear-gradient(180deg,
                    var(--dusk) 0%,
                    transparent 18%,
                    transparent 80%,
                    var(--dusk) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: 96px 32px;
  margin: 0 auto;
}

.manifesto {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 48px;
}

.hero .display {
  font-size: 72px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-bottom: 40px;
  color: var(--cream);
}

.hero .display em {
  font-style: italic;
  color: var(--brass);
  font-weight: 500;
}

.hero-sub {
  font-size: 21px;
  color: var(--cream);
  opacity: 0.75;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 80px;
  line-height: 1.5;
}

.hero-film {
  margin: 0 auto;
  max-width: 820px;
  aspect-ratio: 21 / 9;
  background:
    linear-gradient(180deg, rgba(212,168,92,0.05), rgba(0,0,0,0.2)),
    var(--dusk-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
}

.hero-film::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(212,168,92,0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(214,120,73,0.06), transparent 60%);
  pointer-events: none;
}

.film-meta { position: relative; }
.film-meta .kicker { margin-bottom: 6px; }
.film-line {
  font-size: 19px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.85;
}

.film-stamp {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--dusk);
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 0 0 1px var(--brass-deep);
}

/* ── Workshop — poster grid ─────────────────────────────────── */
.catalog {
  display: grid;
  gap: 64px;
}

.poster {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

/* poster art = the plug-in shown as a paper card */
.poster-art {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.45),
    0 2px 6px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Atelier Box poster — cream paper, brass type */
.atelier-box {
  background:
    linear-gradient(180deg, var(--cream-bright), var(--paper));
  color: #2A1C12;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.atelier-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.paper {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.paper-mark {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8A6938;
}

.paper-title {
  font-size: 64px;
  font-style: italic;
  font-weight: 500;
  line-height: 0.95;
  color: #2A1C12;
  letter-spacing: -0.02em;
}

.paper-rule {
  height: 1px;
  background: rgba(150,108,52,0.4);
  margin: 18px 0 14px;
}

.paper-line {
  font-size: 15px;
  font-style: italic;
  color: #5A4126;
  line-height: 1.4;
}

/* RoomLite poster — dark acoustic-blueprint feel,
   contrasts with Atelier Box's cream paper but stays in brand family */
.roomlite {
  background: linear-gradient(180deg, #110D09 0%, #1A130E 100%);
  color: var(--cream);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(232, 213, 176, 0.06);
}

.roomlite::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  mix-blend-mode: screen;
  pointer-events: none;
}

.slate {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.slate-mark {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.slate-title {
  font-size: 56px;
  font-weight: 300;
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.018em;
}

.slate-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0 14px;
}
.slate-rules span {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brass) 50%, transparent);
}
.slate-rules span:nth-child(1) { opacity: 0.55; }
.slate-rules span:nth-child(2) { opacity: 0.38; }
.slate-rules span:nth-child(3) { opacity: 0.22; }
.slate-rules span:nth-child(4) { opacity: 0.10; }

.slate-line {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.72;
  line-height: 1.5;
}

/* muted poster (placeholder for sketch slots) */
.poster-art.muted {
  background: var(--dusk-soft);
  border: 1px dashed var(--rule);
  display: grid;
  place-items: center;
  box-shadow: none;
}

.muted-line {
  font-size: 56px;
  font-style: italic;
  color: var(--ink-dim);
}

.poster-body { padding-top: 12px; }

.poster-title {
  font-size: 40px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.poster-title.muted { color: var(--ink-dim); }

.poster-tag {
  font-size: 19px;
  margin-bottom: 16px;
  max-width: 56ch;
  color: var(--cream);
  opacity: 0.88;
}
.poster-tag.muted { opacity: 0.6; }

.poster-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.poster-meta .dot { padding: 0 8px; opacity: 0.5; }

/* ── Email capture ──────────────────────────────────────────── */
.email-capture {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  max-width: 520px;
}

.capture-line {
  font-size: 16px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.82;
  margin-bottom: 14px;
}

.capture-row {
  display: flex;
  gap: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--brass-deep);
  background: var(--dusk-soft);
}

.capture-row input {
  flex: 1;
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--cream);
}
.capture-row input::placeholder { color: var(--ink-dim); font-style: italic; }
.capture-row input:focus { outline: none; }

.capture-row button {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 22px;
  background: var(--brass);
  color: var(--dusk);
  border: none;
  cursor: pointer;
  transition: background 140ms ease;
}
.capture-row button:hover { background: var(--brass-deep); color: var(--cream); }
.capture-row button:disabled { background: var(--ink-dim); cursor: default; }

.thanks {
  font-size: 15px;
  font-style: italic;
  color: var(--brass);
  margin-top: 12px;
}

.capture-fine {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.buy-row {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  max-width: 520px;
}

.buy-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--brass);
  color: var(--dusk);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.buy-btn:hover {
  background: var(--brass-deep);
  color: var(--cream);
}

.buy-fine {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* ── Empty state (Plug-ins shelf) ───────────────────────────── */
.empty-state {
  border: 1px dashed var(--rule);
  border-radius: 4px;
  padding: 88px 32px;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}
.empty-mark {
  font-family: 'EB Garamond', serif;
  font-size: 56px;
  font-style: italic;
  color: var(--brass-deep);
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}
.empty-line {
  font-size: 22px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.78;
  margin-bottom: 8px;
}
.empty-fine {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

/* ── Workbench (devlog) ─────────────────────────────────────── */
.post-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.post-item {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: baseline;
}
.post-item:last-child { border-bottom: 1px solid var(--rule); }

.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 6px;
}

.post-item h3 {
  font-size: 30px;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.post-item p:not(.post-meta) {
  font-size: 18px;
  color: var(--cream);
  opacity: 0.78;
  max-width: 56ch;
}

/* ── Music shelf ────────────────────────────────────────────── */
.music-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.record {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-art {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dusk-soft), var(--dusk-rise));
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: var(--brass);
  position: relative;
  overflow: hidden;
}
.record-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at center,
                              rgba(212,168,92,0.08) 0 1px,
                              transparent 1px 12px);
  opacity: 0.6;
  pointer-events: none;
}
.record-art.muted { color: var(--ink-dim); }
.record-art.muted::after { opacity: 0.2; }

.record-title {
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
}

.record-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-transform: lowercase;
}

.music-footer {
  font-size: 17px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.78;
}

/* ── Maker / about ──────────────────────────────────────────── */
.maker-body {
  max-width: 60ch;
  font-size: 21px;
  line-height: 1.6;
}

.maker-body p { margin-bottom: 22px; }
.maker-body em { color: var(--brass); }

.signature {
  font-size: 24px;
  font-style: italic;
  color: var(--brass);
  margin-top: 36px !important;
  letter-spacing: 0.02em;
}

/* ── Legal pages (privacy etc.) ─────────────────────────────── */
.legal-body {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.65;
}

.legal-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 28px;
}

.legal-body h3 {
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--brass);
  letter-spacing: -0.005em;
}

.legal-body p,
.legal-body ul {
  margin-bottom: 14px;
  color: var(--cream);
  opacity: 0.85;
}

.legal-body ul {
  padding-left: 22px;
  list-style: disc;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body b { color: var(--cream); opacity: 1; font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 48px var(--pad) 64px;
  border-top: 1px solid var(--rule);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.footer-brand {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--cream);
}
.footer-brand .brand-mark { color: var(--brass); font-style: normal; margin-right: 6px; }
.footer-brand .muted { font-style: italic; color: var(--ink-dim); }

.footer-meta a { color: var(--ink-dim); text-decoration-color: var(--brass-deep); }
.footer-meta a:hover { color: var(--cream); }
.footer-meta .dot { padding: 0 10px; opacity: 0.5; }

.footer-fine {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  section { padding: 80px 24px; }
  .hero { min-height: 64vh; padding: 0; }
  .hero-content { padding: 64px 24px; }
  .hero .display { font-size: 44px; }
  .section-head h2 { font-size: 32px; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
  }
  .primary-nav { gap: 18px; flex-wrap: wrap; }

  .poster {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .poster-art { width: 220px; aspect-ratio: 4/5; }
  .paper-title { font-size: 44px; }
  .poster-title { font-size: 32px; }

  .footer-row { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { min-height: 56vh; }
  .hero .display { font-size: 36px; }
  .hero-map::after {
    /* darken more on mobile so text reads against the busier crop */
    background:
      radial-gradient(ellipse 80% 70% at center,
                      rgba(27, 20, 16, 0.45) 0%,
                      rgba(27, 20, 16, 0.70) 60%,
                      rgba(27, 20, 16, 0.92) 100%),
      linear-gradient(180deg,
                      var(--dusk) 0%,
                      transparent 15%,
                      transparent 80%,
                      var(--dusk) 100%);
  }
}
