:root {
  --ink: #f6efe2;
  --muted: #d7cbb6;
  --gold: #e4b15a;
  --gold-deep: #a86a2d;
  --water: #061416;
  --panel: rgba(7, 20, 22, 0.62);
  --line: rgba(228, 177, 90, 0.38);
  --danger: #f0c2b4;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--water);
}

button,
input {
  font: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 42% at 50% 38%, rgba(255, 214, 150, 0.55), transparent 58%),
    linear-gradient(180deg, #140e0b 0%, #3c2416 16%, #c56d34 33%, #f0cf96 41%, #1c5560 42.2%, #0c2c31 68%, #061416 100%);
}

.scene__dawn {
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  transform: translate(-50%, -40%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff4d2 0%, #f0b15a 42%, rgba(240, 177, 90, 0) 70%);
  filter: blur(2px);
}

.scene__mist {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(244, 228, 196, 0.28), transparent);
  filter: blur(8px);
}

.scene__water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 10px,
      rgba(255, 236, 200, 0.05) 10px 11px
    );
  mask-image: linear-gradient(180deg, transparent, #000 18%);
}

.scene__reeds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 28vh;
  fill: none;
  stroke: rgba(18, 42, 28, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.panel {
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel--wide {
  width: min(100%, 64rem);
}

html[data-boot="cabin"] #stub,
html[data-boot="cabin"] #auth {
  display: none;
}

html[data-boot="cabin"] #cabin {
  display: block;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.85rem;
}

.lead,
.note,
.hint,
.card p,
.field span {
  color: var(--muted);
}

.lead {
  max-width: 34rem;
  margin: 1rem 0 1.6rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.note,
.hint {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.hint__cred {
  color: var(--ink);
  font-weight: 600;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: #24160c;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.btn:hover {
  background: #f0c57a;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(228, 177, 90, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.85rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(246, 239, 226, 0.22);
  border-radius: 0.8rem;
  background: rgba(4, 12, 14, 0.45);
  color: var(--ink);
}

input:focus {
  border-color: var(--gold);
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.error {
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.cabin__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.15rem 1.15rem 1.3rem;
  border: 1px solid rgba(246, 239, 226, 0.12);
  border-radius: 1rem;
  background: rgba(255, 244, 220, 0.04);
}

.card p {
  margin: 0;
  line-height: 1.5;
}

.card__kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .cabin__head {
    flex-direction: column;
  }

  h1 {
    font-size: 3.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
