/* charcoal room, copper lamp, vinyl disc */

:root {
  --char: #141210;
  --panel: #211e1b;
  --cream: #f3ece3;
  --copper: #c4844a;
  --copper-hot: #e0a56a;
  --hairline: rgba(243, 236, 227, 0.16);
  --dust: #b7aea3;
  --blush: #f0c2b4;
  --gutter: 1.4rem;
  --serif: "Instrument Serif", "Palatino Linotype", Palatino, serif;
  --text: "DM Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html,
body { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--char);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

button,
input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--copper-hot);
  outline-offset: 3px;
}

.page {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter) 2.6rem;
}

.sleeve { padding-top: 0.85rem; }

.barline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.05rem;
}

.nav a {
  color: var(--dust);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover { color: var(--cream); }

.sleeve-grid {
  display: grid;
  grid-template-columns: minmax(150px, 280px) minmax(0, 1fr);
  gap: 1.1rem 1.6rem;
  align-items: end;
  min-height: 62vh;
  padding: 1.2rem 0 1.6rem;
}

.disc {
  width: min(280px, 100%);
  aspect-ratio: 1;
  justify-self: start;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f0c79a 0 2.4%, #2a2118 2.6% 8%, transparent 8.3%),
    repeating-radial-gradient(circle at 50% 50%, #2c2926 0 1px, #0c0b0a 2px 6px);
  box-shadow:
    inset 0 0 0 1px rgba(224, 165, 106, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.38);
  position: relative;
}

.disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 38%, rgba(224, 165, 106, 0.2) 49%, transparent 60%);
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--copper-hot);
  font-size: 0.92rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5.15rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

h1 em {
  display: block;
  margin-top: 0.12em;
  color: var(--copper-hot);
  font-style: italic;
  font-weight: 400;
}

.lead {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: #e7dfd4;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 1.4rem 1.8rem;
  align-items: start;
  padding: 1.3rem 0 1.6rem;
  border-top: 1px solid var(--hairline);
}

.station {
  padding: 1.15rem 1.15rem 1.25rem;
  border-left: 3px solid var(--copper);
  background: var(--panel);
  scroll-margin-top: 0.6rem;
}

.station h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.02;
}

.station .blurb {
  margin: 0 0 0.9rem;
  color: var(--dust);
}

.field { display: block; }

.field span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--copper);
  background: transparent;
  color: var(--cream);
}

.field input::placeholder { color: rgba(183, 174, 163, 0.85); }

.btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  border: 0;
  background: var(--copper);
  color: #1a120c;
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled { opacity: 0.55; cursor: wait; }

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  color: var(--dust);
  font-size: 0.92rem;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--copper);
}

.consent a { color: var(--copper-hot); }

.err {
  min-height: 1.3em;
  margin: 0.55rem 0 0;
  color: var(--blush);
  font-weight: 600;
}

.story h2 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.story p { margin: 0 0 0.75rem; max-width: 40rem; }

.story p:last-child { margin-bottom: 0; }

.log { padding-bottom: 0.4rem; scroll-margin-top: 0.6rem; }

.log h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 400;
}

.log .hint {
  margin: 0.35rem 0 0.7rem;
  color: var(--dust);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--copper);
  color: var(--dust);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 0.9rem 0.45rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

td.num {
  width: 3.2rem;
  color: var(--copper-hot);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}

.notes { padding-top: 0.4rem; }

.fn {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline);
}

.fn b {
  color: var(--copper-hot);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.fn p { margin: 0; }

.foot {
  padding: 1.2rem 0 0.2rem;
  color: var(--dust);
  font-size: 0.92rem;
}

.foot p {
  max-width: 62rem;
  margin: 0 0 0.4rem;
  overflow-wrap: anywhere;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
}

.foot a { color: var(--cream); font-weight: 600; }

.prose {
  max-width: 40rem;
  padding: 1.5rem 0 2rem;
}

.prose h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 0.95;
}

.prose a { color: var(--copper-hot); }

.prose p { overflow-wrap: anywhere; }

.cookie {
  position: fixed;
  z-index: 30;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  width: min(34rem, calc(100% - 2rem));
  padding: 0.75rem 0.85rem;
  background: var(--cream);
  color: #1a120c;
}

.cookie[hidden] { display: none; }

.cookie p { margin: 0; font-size: 0.92rem; }

.cookie a { color: #1a120c; font-weight: 700; }

.cookie button {
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 0;
  background: var(--copper);
  color: #1a120c;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.toast {
  position: fixed;
  z-index: 32;
  right: 1rem;
  bottom: 5.4rem;
  width: min(18rem, calc(100% - 2rem));
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--copper);
  background: var(--panel);
  color: var(--cream);
}

.toast[hidden] { display: none; }

.toast strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.toast p { margin: 0.25rem 0 0; color: var(--dust); }

@media (max-width: 800px) {
  :root { --gutter: 1.25rem; }

  .barline { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .sleeve-grid,
  .split { grid-template-columns: 1fr; min-height: 0; }
  .disc { width: 148px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
}

@media (max-width: 700px) {
  .log thead { display: none; }
  .log table,
  .log tbody,
  .log tr,
  .log td { display: block; width: auto; }
  .log tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--hairline);
  }
  .log td { padding: 0.15rem 0; border-bottom: 0; }
}

@media (max-width: 420px) {
  .cookie { align-items: stretch; flex-direction: column; }
  .cookie button { width: 100%; }
}
