:root {
  color-scheme: dark;
  --bg: #080705;
  --bg-soft: #12100c;
  --panel: rgba(36, 28, 20, 0.76);
  --panel-strong: rgba(45, 34, 24, 0.94);
  --text: #fff4df;
  --muted: #d6c6aa;
  --soft: #a99677;
  --line: rgba(245, 214, 160, 0.18);
  --line-strong: rgba(245, 214, 160, 0.32);
  --hearth: #efb45f;
  --ember: #c96f3a;
  --green: #9fbf9d;
  --ink: #16100b;
  --shadow: rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background:
    radial-gradient(circle at 50% -12%, rgba(239, 180, 95, 0.28), transparent 34rem),
    radial-gradient(circle at 18% 18%, rgba(201, 111, 58, 0.18), transparent 25rem),
    radial-gradient(circle at 82% 8%, rgba(159, 191, 157, 0.12), transparent 28rem),
    linear-gradient(180deg, #090705 0%, #120d09 42%, #070605 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 244, 223, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 223, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.hero {
  min-height: 760px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 70% 70%, rgba(239, 180, 95, 0.16), transparent 24rem),
    linear-gradient(145deg, rgba(44, 32, 22, 0.94), rgba(16, 12, 9, 0.88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 86px);
  border-radius: 38px;
  box-shadow: 0 36px 110px var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "✦";
  position: absolute;
  right: 12%;
  top: 16%;
  color: rgba(239, 180, 95, 0.24);
  font-size: 15rem;
  line-height: 1;
  filter: blur(0.2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -28% 18%;
  height: 420px;
  background: radial-gradient(circle, rgba(239, 180, 95, 0.2), transparent 63%);
  pointer-events: none;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.brand, .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--hearth), #f7d99f);
  box-shadow: 0 10px 30px rgba(239, 180, 95, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 750;
  background: rgba(255, 244, 223, 0.03);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: 56px;
  align-items: end;
  min-height: 640px;
  padding: 86px 20px 24px;
  position: relative;
  z-index: 1;
}

.hero-copy { max-width: 820px; }

.eyebrow, .card-kicker, .artifact-label {
  margin: 0 0 16px;
  color: var(--hearth);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 850;
}

h1, h2, h3 { margin-top: 0; }

h1 {
  margin-bottom: 0;
  max-width: 820px;
  font-size: clamp(3.65rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 680;
}

h2 {
  margin-bottom: 14px;
  letter-spacing: -0.04em;
  font-size: clamp(1.7rem, 2.8vw, 3.05rem);
  line-height: 1.04;
  font-weight: 660;
}

h3 {
  margin-bottom: 12px;
  letter-spacing: -0.035em;
  font-size: clamp(1.36rem, 1.8vw, 1.8rem);
  line-height: 1.08;
}

.lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.26rem, 2vw, 1.62rem);
  line-height: 1.62;
}

.reassurance {
  max-width: 780px;
  margin: 24px 0 0;
  color: #ead9bc;
  font-size: clamp(1rem, 1.36vw, 1.16rem);
  line-height: 1.78;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.actions a {
  color: var(--ink);
  background: linear-gradient(135deg, var(--hearth), #f3d09a);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  padding: 15px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(239, 180, 95, 0.2);
}

.actions a.secondary {
  color: var(--text);
  background: rgba(255, 244, 223, 0.045);
  border: 1px solid var(--line);
  box-shadow: none;
}

.inn-sign, .keepsake-card {
  padding: 26px;
  border: 1px solid rgba(239, 180, 95, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(19, 14, 10, 0.78), rgba(12, 9, 7, 0.62)),
    rgba(8, 7, 5, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.06);
}

.inn-sign ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inn-sign li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.inn-sign li:first-child { border-top: 0; padding-top: 0; }
.inn-sign li:last-child { padding-bottom: 0; }

.threshold p {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.32rem, 2.25vw, 1.88rem);
  line-height: 1.52;
  letter-spacing: -0.028em;
}

.panel, article, .section-heading {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.16);
}

.panel { margin-top: 24px; }

article p, .panel p, .section-heading p, li {
  color: var(--muted);
  line-height: 1.72;
}

.split-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.large-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.agent-card {
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 180, 95, 0.12), transparent 18rem),
    var(--panel-strong);
}

.owner-card {
  background:
    radial-gradient(circle at 80% 18%, rgba(159, 191, 157, 0.12), transparent 18rem),
    rgba(33, 29, 25, 0.82);
}

.section-heading {
  margin: 36px 0 20px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 8px 4px 0;
  max-width: 820px;
}

.section-heading p:last-child {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 24px;
}

.cards article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 244, 223, 0.045), rgba(255, 244, 223, 0.018)),
    var(--panel);
}

.cards article:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(159, 191, 157, 0.08), rgba(255, 244, 223, 0.018)),
    var(--panel);
}

.cards article:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(201, 111, 58, 0.08), rgba(255, 244, 223, 0.018)),
    var(--panel);
}

.more-rooms, .souvenir {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 32px;
  align-items: start;
}

.more-rooms {
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 180, 95, 0.12), transparent 20rem),
    rgba(24, 18, 13, 0.78);
}

.souvenir {
  background: var(--panel-strong);
}

.owner-note-label { margin-top: 22px; }

.artifact-note {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1.28fr);
  gap: 32px;
  align-items: start;
  background:
    radial-gradient(circle at 90% 10%, rgba(159, 191, 157, 0.09), transparent 22rem),
    var(--panel-strong);
}

.small-note {
  color: var(--soft) !important;
  font-size: 0.95rem;
}

.code-stack { min-width: 0; }

pre {
  overflow-x: auto;
  margin: 0 0 15px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(159, 191, 157, 0.2);
  background: #070604;
  box-shadow: inset 0 1px 0 rgba(255, 244, 223, 0.04);
}

pre:last-child { margin-bottom: 0; }

code {
  color: #b9dbc0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.62;
}

blockquote {
  margin: 0;
  padding: 20px;
  border-left: 4px solid var(--hearth);
  background: rgba(239, 180, 95, 0.08);
  color: var(--text);
  line-height: 1.68;
  border-radius: 14px;
}

.prompt-card pre { margin-top: 18px; }

.house-rules ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.muted { background: rgba(13, 10, 8, 0.7); }

.not-section p {
  max-width: 900px;
  margin-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  color: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

footer p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .split-story,
  .more-rooms,
  .souvenir,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid { min-height: auto; padding-top: 70px; }
  .cards { grid-template-columns: 1fr; }
  .cards article, .large-card { min-height: auto; }
  .house-rules ul { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
  .hero { border-radius: 24px; padding: 20px; min-height: auto; }
  .hero::before { font-size: 8rem; right: -2%; top: 12%; }
  .hero-grid { padding: 54px 0 0; gap: 34px; }
  .topline { align-items: flex-start; }
  .nav-links { flex-direction: column; align-items: flex-end; }
  .nav-link { padding: 8px 11px; font-size: 0.82rem; }
  h1 {
    font-size: clamp(3rem, 14vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }
  h2 { font-size: clamp(1.72rem, 9vw, 2.45rem); }
  .panel, article { padding: 23px; border-radius: 22px; }
  .section-heading { padding: 6px 0 0; }
  pre { padding: 15px; }
  code { font-size: 0.82rem; }
  footer { flex-direction: column; }
}
