/* Door Draft site. No external fonts, no scripts. */
:root {
  --night: #07110d;
  --emerald-950: #0a1712;
  --emerald-900: #0e2019;
  --emerald-800: #133024;
  --emerald-700: #1b4433;
  --tile-green: #1f5a40;
  --cream: #efe5c9;
  --cream-dim: #c9bf9f;
  --brass: #d6ab54;
  --brass-hi: #f3d48b;
  --brass-lo: #8f6b2a;
  --lamp: #f5c766;
  --wood: #5a2f1c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 1.125rem/1.6 var(--serif);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lamp); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-hi); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--cream); color: var(--night); padding: .5rem 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 600 .75rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* A brass rule with a small diamond, as on the room cards */
.rule {
  display: flex; align-items: center; gap: .75rem;
  color: var(--brass); margin: 0 0 1.25rem;
}
.rule::before, .rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--brass-lo) 30%, var(--brass)); }
.rule::after { background: linear-gradient(270deg, transparent, var(--brass-lo) 30%, var(--brass)); }
.rule span { width: .5rem; height: .5rem; transform: rotate(45deg); background: var(--brass); flex: none; }
.rule.left::before { display: none; }

/* Checkered tile strip used between sections */
.tiles-strip {
  height: 14px;
  background: repeating-conic-gradient(var(--cream) 0 25%, var(--tile-green) 0 50%) 0 0 / 14px 14px;
  opacity: .5;
  border-block: 1px solid var(--brass-lo);
}

/* ---------- Header ---------- */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--cream); text-decoration: none; font: 600 1.2rem/1 var(--serif); letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--brass-lo); }
.top nav { display: flex; gap: 1.5rem; font: 500 .9rem/1 var(--sans); }
.top nav a { color: var(--cream-dim); text-decoration: none; padding: .5rem 0; }
.top nav a:hover { color: var(--lamp); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 40rem at 78% 30%, rgba(245, 199, 102, .13), transparent 60%),
    radial-gradient(50rem 40rem at 10% 100%, rgba(31, 90, 64, .45), transparent 70%),
    linear-gradient(180deg, var(--emerald-950), var(--night));
}
.hero::before { /* faint diamond floor under everything */
  content: ""; position: absolute; inset: 40% -20% -40%; z-index: -1;
  background: repeating-conic-gradient(rgba(239, 229, 201, .05) 0 25%, transparent 0 50%) 0 0 / 64px 64px;
  transform: perspective(600px) rotateX(55deg);
  mask-image: linear-gradient(180deg, transparent, #000 50%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  letter-spacing: -.01em;
  color: var(--brass-hi);
  margin: .9rem 0 .3rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
.tagline { font-size: clamp(1.45rem, 3vw, 2rem); font-style: italic; color: var(--cream); line-height: 1.25; }
.lede { margin-top: 1.4rem; max-width: 34rem; color: var(--cream-dim); font-size: 1.15rem; }
.cta { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; align-items: center; margin-top: 2rem; }

.soon {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .7rem 1.25rem .7rem .9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1a17, #0b0b0a);
  border: 1px solid var(--brass-lo);
  box-shadow: inset 0 1px 0 rgba(243, 212, 139, .25), 0 10px 30px -12px rgba(0, 0, 0, .8);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.1;
}
.soon svg { width: 22px; height: 22px; flex: none; color: var(--brass-hi); }
.soon small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.soon strong { font-size: 1.05rem; font-weight: 600; }
.free {
  font: 600 .95rem/1.2 var(--sans);
  color: var(--night);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  padding: .55rem .95rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(245, 199, 102, .6);
}
.facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font: 500 .85rem/1.3 var(--sans); color: var(--cream-dim); }
.facts li { display: flex; align-items: center; gap: .45rem; }
.facts li::before { content: ""; width: .38rem; height: .38rem; transform: rotate(45deg); background: var(--brass); }

/* Arched glasshouse window holding the estate art */
.window { position: relative; margin: 0 auto; width: min(100%, 27rem); }
.window .glow {
  position: absolute; inset: -12% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 199, 102, .35), rgba(245, 199, 102, .08) 60%, transparent);
  animation: lamp 7s ease-in-out infinite alternate;
}
.arch {
  border-radius: 999px 999px 18px 18px;
  padding: 10px;
  background: linear-gradient(160deg, var(--brass-hi), var(--brass) 35%, var(--brass-lo) 70%, var(--brass) 100%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
}
.arch-inner {
  position: relative;
  border-radius: 999px 999px 10px 10px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55);
}
.arch-inner img { width: 100%; height: 100%; object-fit: cover; }
.arch-inner::after { /* glazing bars */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(214, 171, 84, .55) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(180deg, transparent 32%, rgba(214, 171, 84, .5) 32% calc(32% + 3px), transparent calc(32% + 3px));
  box-shadow: inset 0 -80px 80px -40px rgba(7, 17, 13, .8);
  pointer-events: none;
}

/* Room cards, as drawn in the game */
.fan { position: absolute; left: -8%; right: -8%; bottom: -9%; display: flex; justify-content: center; }
.card {
  width: 31%;
  margin: 0 -2.5%;
  padding: 6px 6px 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #17382a, #0d2219);
  border: 1.5px solid var(--brass);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(243, 212, 139, .3);
  transform-origin: 50% 120%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.card img { border-radius: 7px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.card span { display: block; text-align: center; font: 600 .82rem/1.1 var(--serif); color: var(--cream); padding: .5rem .2rem .6rem; }
.fan .card:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.fan .card:nth-child(2) { transform: translateY(-8px); z-index: 1; }
.fan .card:nth-child(3) { transform: rotate(9deg) translateY(10px); }
.window:hover .fan .card:nth-child(1) { transform: rotate(-12deg) translate(-6px, 4px); }
.window:hover .fan .card:nth-child(2) { transform: translateY(-18px); }
.window:hover .fan .card:nth-child(3) { transform: rotate(12deg) translate(6px, 4px); }

@keyframes lamp { from { opacity: .75; } to { opacity: 1; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--brass-hi); margin-top: .7rem; }
.section-head p { margin-top: 1rem; color: var(--cream-dim); }

/* How a day goes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); }
.step { display: flex; flex-direction: column; }
.step figure { margin: 0 0 1.4rem; position: relative; }
.step figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 160px 160px 10px 10px; border: 1.5px solid var(--brass-lo); }
.numeral {
  position: absolute; left: 50%; bottom: -1.2rem; transform: translateX(-50%);
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  color: var(--night); font: 700 1rem/1 var(--serif);
  box-shadow: 0 0 0 4px var(--night), 0 6px 14px rgba(0, 0, 0, .6);
}
.step h3 { font-size: 1.5rem; text-align: center; margin-top: .6rem; color: var(--cream); }
.step p { margin-top: .6rem; color: var(--cream-dim); text-align: center; }

/* Screens band on a checkered floor */
.screens {
  background: linear-gradient(180deg, var(--night), var(--emerald-900) 30%, var(--emerald-900) 70%, var(--night));
  overflow: hidden;
  isolation: isolate;
}
.screens::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-conic-gradient(rgba(239, 229, 201, .07) 0 25%, transparent 0 50%) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.shots {
  list-style: none; margin: 0; padding: .5rem var(--gutter) 1.5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 15rem);
  gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  scrollbar-width: thin; scrollbar-color: var(--brass-lo) transparent;
}
.shots li { scroll-snap-align: start; }
.shots img {
  width: 100%; aspect-ratio: 1320 / 2868; border-radius: 18px;
  box-shadow: 0 0 0 1px var(--brass-lo), 0 24px 40px -20px rgba(0, 0, 0, .9);
  background: var(--emerald-800);
}
.shots-note { text-align: center; font: 500 .85rem/1.4 var(--sans); color: var(--cream-dim); margin-top: .5rem; }

/* Features */
.lead-feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(245, 199, 102, .1), transparent 60%),
    linear-gradient(160deg, var(--emerald-800), var(--emerald-950));
  border: 1px solid var(--brass-lo);
  box-shadow: inset 0 1px 0 rgba(243, 212, 139, .15);
}
.lead-feature h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--brass-hi); margin: .7rem 0 1rem; }
.lead-feature > div > p { color: var(--cream-dim); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; align-items: start; }
.ticks svg { width: 1.6rem; height: 1.6rem; color: var(--lamp); margin-top: .1rem; }
.offer { display: flex; justify-content: center; gap: .9rem; }
.offer .card { width: 33%; margin: 0; transform: none; }
.offer .card.keeps { border-color: var(--lamp); box-shadow: 0 0 0 3px rgba(245, 199, 102, .25), 0 18px 30px -12px rgba(0, 0, 0, .85); transform: translateY(-10px); }
.offer .card i { display: flex; justify-content: center; align-items: center; gap: .3rem; font: 600 .68rem/1 var(--sans); font-style: normal; color: var(--lamp); padding-bottom: .6rem; letter-spacing: .03em; }
.offer .card i svg { width: .9rem; height: .9rem; }

.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.feature {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 68, 51, .55), rgba(14, 32, 25, .55));
  border: 1px solid rgba(143, 107, 42, .55);
}
.feature svg.icon { width: 2.4rem; height: 2.4rem; color: var(--brass); }
.feature h3 { font-size: 1.45rem; color: var(--cream); margin: 1rem 0 .55rem; }
.feature p { color: var(--cream-dim); font-size: 1.05rem; }
.feature.with-art { display: grid; grid-template-columns: 1fr 9rem; gap: 1.25rem; align-items: center; }
.feature.with-art img { border-radius: 12px; border: 1px solid var(--brass-lo); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* Orrery */
.orrery { text-align: center; padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; }
.orrery .ring-art { position: relative; width: min(16rem, 70vw); margin: 0 auto 2rem; }
.orrery .ring-art::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 199, 102, .3), transparent);
  animation: lamp 6s ease-in-out infinite alternate;
}
.orrery .ring-art img { border-radius: 50%; border: 2px solid var(--brass); box-shadow: 0 0 0 10px rgba(214, 171, 84, .08), 0 0 0 11px rgba(214, 171, 84, .35), 0 30px 60px -20px #000; }
.orrery h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--brass-hi); margin-top: .7rem; }
.orrery p { max-width: 34rem; margin: 1rem auto 0; color: var(--cream-dim); }

/* Free part */
.price {
  max-width: 52rem; margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border-radius: 6px;
  background:
    linear-gradient(var(--emerald-900), var(--emerald-900)) padding-box,
    linear-gradient(160deg, var(--brass-hi), var(--brass-lo), var(--brass), var(--brass-lo)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 0 6px var(--night), 0 0 0 7px var(--brass-lo), 0 40px 80px -40px #000;
}
.price h2 { font-size: clamp(2.3rem, 6vw, 3.6rem); color: var(--brass-hi); margin: .7rem 0 1rem; }
.price > p { color: var(--cream); }
.nos { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; font: 500 .9rem/1 var(--sans); }
.nos li { padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--brass-lo); color: var(--cream); background: rgba(7, 17, 13, .5); }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(143, 107, 42, .6); }
.faq details:first-of-type { border-top: 1px solid rgba(143, 107, 42, .6); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem .25rem;
  font: 600 1.2rem/1.3 var(--serif); color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .6rem; height: .6rem;
  border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--brass-hi); }
.faq details p { padding: 0 .25rem 1.4rem; color: var(--cream-dim); max-width: 40rem; }

/* Footer */
footer { border-top: 1px solid rgba(143, 107, 42, .5); padding: 2.5rem 0 3rem; background: var(--emerald-950); font: 400 .92rem/1.5 var(--sans); color: var(--cream-dim); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
footer nav a { color: var(--cream); text-decoration: none; }
footer nav a:hover { color: var(--lamp); text-decoration: underline; }

/* ---------- Plain pages (privacy, support, terms, 404) ---------- */
.page { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6rem); background: radial-gradient(50rem 30rem at 50% -10%, rgba(245, 199, 102, .09), transparent 60%); }
.page .wrap { max-width: 44rem; }
.page h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); color: var(--brass-hi); margin: .7rem 0 1.5rem; }
.page h2 { font-size: 1.45rem; color: var(--cream); margin: 2.2rem 0 .6rem; }
.page p { color: var(--cream-dim); margin-top: .9rem; }
.page p:first-of-type { margin-top: 0; }
.lost { text-align: center; }
.lost img { width: 7rem; margin: 0 auto 1.5rem; border-radius: 24px; box-shadow: 0 0 0 1px var(--brass-lo), 0 20px 50px -20px #000; }
.lost p { margin-inline: auto; max-width: 28rem; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .lead-feature { grid-template-columns: 1fr; }
  .hero .window { width: min(86%, 22rem); margin-bottom: 2.5rem; }
  .steps { grid-template-columns: 1fr; max-width: 24rem; margin-inline: auto; }
  .step figure img { aspect-ratio: 5 / 4; }
  .grid4 { grid-template-columns: 1fr; }
  .top nav a:not(:last-child) { display: none; }
}
@media (min-width: 1100px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .shots li:nth-child(even) { transform: translateY(2rem); }
}
@media (max-width: 420px) {
  .feature.with-art { grid-template-columns: 1fr 6.5rem; }
  .card span { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .window:hover .fan .card:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
  .window:hover .fan .card:nth-child(2) { transform: translateY(-8px); }
  .window:hover .fan .card:nth-child(3) { transform: rotate(9deg) translateY(10px); }
}
