:root {
  --ink: #1b1209;
  --night: #120d1f;
  --panel: #1d2747;
  --panel-edge: #2c3a66;
  --cream: #fff4dc;
  --muted: #d9c9a8;
  --gold: #ffcb3a;
  --gold-deep: #b8700f;
  --orange: #f08a1c;
  --link: #ffd36a;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); }
a:hover { color: #fff; }

h1, h2, h3, .brand {
  font-family: "Lilita One", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.15;
}

.wrap { width: min(980px, 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 13, 31, .86);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold-deep);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-size: 1.35rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--gold); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 6px 12px; border-radius: 999px;
}
.top nav a:hover, .top nav a[aria-current="page"] { background: var(--panel); color: var(--gold); }

/* Landing hero: the living kitchen loop behind the key art */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,13,31,.35), rgba(18,13,31,.85)); }
.hero .content { position: relative; z-index: 1; padding: 48px 16px; }
.hero img.art { width: min(300px, 62vw); height: auto; border-radius: 28px; border: 4px solid var(--gold); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin: 22px 0 6px; color: #fff; text-shadow: 0 4px 0 var(--ink), 0 10px 30px rgba(0,0,0,.6); }
.hero p.tag { font-size: clamp(1.05rem, 3.4vw, 1.35rem); margin: 0 auto; max-width: 36ch; color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.badge {
  display: inline-block; margin-top: 22px; padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(180deg, #ffd65a, var(--orange)); color: var(--ink);
  font-family: "Lilita One", sans-serif; font-size: 1.15rem; text-decoration: none;
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 40px 0; }
.card {
  background: linear-gradient(180deg, var(--panel-edge), var(--panel));
  border: 2px solid var(--gold-deep); border-radius: var(--radius); padding: 20px 22px;
}
.card h3 { margin: 0 0 6px; color: var(--gold); font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }

/* Document pages */
.doc { padding: 36px 0 56px; }
.doc h1 { font-size: clamp(2.1rem, 6vw, 3rem); color: var(--gold); margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 1.45rem; color: var(--gold); margin: 34px 0 8px; }
.doc h3 { font-size: 1.15rem; margin: 22px 0 6px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.doc .box {
  background: var(--panel); border: 2px solid var(--panel-edge); border-radius: var(--radius);
  padding: 16px 20px; margin: 18px 0;
}
.mail { font-family: "Lilita One", sans-serif; font-size: 1.4rem; letter-spacing: .02em; }

footer { border-top: 2px solid var(--panel-edge); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding: 22px 0 32px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .top .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
}
