:root {
  --sand: #f3e6d4;
  --ink: #1c241c;
  --green: #1d4332;
  --gold: #b8894a;
  --night: #101612;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #d7c4a4;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.sfw .hero img { filter: saturate(0.92) contrast(1.02); }

.night .hero img { filter: saturate(0.88) brightness(0.82) contrast(1.04); }

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 10, 0.05) 0%, rgba(20, 16, 10, 0.18) 42%, rgba(18, 14, 10, 0.72) 100%);
}

.night .scrim {
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.25) 0%, rgba(8, 10, 8, 0.55) 40%, rgba(6, 8, 7, 0.88) 100%);
}

.card {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: 1.35rem 1.35rem 1.15rem;
  background: rgba(243, 230, 212, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(20, 16, 10, 0.28);
}

.night .card {
  background: rgba(16, 22, 18, 0.88);
  color: var(--sand);
  border-color: rgba(184, 137, 74, 0.35);
}

.kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--green);
}

.night .kicker { color: var(--gold); }

h1 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.lines {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.lines p { margin: 0; }

.note {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

a.button, button.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--sand);
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.night a.button, .night button.button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}

a.button.quiet, button.button.quiet {
  background: transparent;
  color: var(--green);
}

.night a.button.quiet, .night button.button.quiet {
  color: var(--sand);
  border-color: rgba(243, 230, 212, 0.45);
}

a.button:focus-visible, button.button:focus-visible, a.text-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.more {
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

a.text-link {
  color: inherit;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 10, 8, 0.72);
}

.gate[hidden],
body.locked #page {
  display: none !important;
}

.gate .card { margin: 0; }

body.locked .after {
  display: none !important;
}

.frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.45rem;
  background: var(--night);
}

.frames.more {
  grid-template-columns: repeat(2, 1fr);
}

.frames img {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  object-fit: cover;
  object-position: center 18%;
}

@media (max-width: 800px) {
  .frames,
  .frames.more { grid-template-columns: 1fr; }
  .frames img { height: 82vh; }
}

@media (min-width: 800px) {
  .hero { align-items: center; }
  .card { margin: 0 0 0 6vw; }
  .gate .card { margin: 0; }
}
