:root {
  color-scheme: light;
  --wall: #3a4654;
  --wall-deep: #2c3642;
  --lamp: #f0a05a;
  --lamp-glow: rgba(240, 160, 90, 0.45);
  --paper: #e7edf2;
  --sheet: #f4f7f9;
  --ink: #243038;
  --mute: #4d5c66;
  --sage: #3f7a6a;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: Figtree, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(63, 122, 106, 0.22);
  color: var(--ink);
}

html {
  scrollbar-color: var(--sage) var(--paper);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.stage {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
}

.booth {
  position: sticky;
  top: 0;
  flex: 0 0 32%;
  max-width: 380px;
  min-width: 0;
  min-height: 100vh;
  padding: 48px 36px 40px;
  background:
    radial-gradient(ellipse 80% 40% at 20% 12%, var(--lamp-glow), transparent 62%),
    linear-gradient(180deg, var(--wall) 0%, var(--wall-deep) 100%);
  color: #f3f1ec;
}

.lamp {
  width: 54px;
  height: 54px;
  margin-bottom: 36px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 10px 28px rgba(240, 160, 90, 0.35);
  animation: glow 2.8s ease-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(240, 160, 90, 0.28);
  }
  55% {
    box-shadow: 0 12px 40px rgba(240, 160, 90, 0.55);
  }
}

.booth h1 {
  margin: 0;
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.doc {
  margin: 28px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lamp);
}

.when {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: #c5d0d8;
}

.sheet {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 56px clamp(18px, 6vw, 72px) 72px;
  background: var(--sheet);
  overflow-wrap: break-word;
}

.lead {
  margin: 0 0 36px;
  font-size: 1.12rem;
  color: var(--mute);
}

.lead,
.promises,
.sheet section {
  max-width: 62ch;
}

.sheet p,
.sheet li {
  overflow-wrap: break-word;
}

.promises {
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.promises li {
  padding: 18px 0;
  border-top: 1px solid rgba(36, 48, 56, 0.12);
}

.promises li:last-child {
  border-bottom: 1px solid rgba(36, 48, 56, 0.12);
}

.promises strong {
  display: inline;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.promises li {
  color: var(--mute);
}

.sheet section {
  max-width: 62ch;
  margin: 0 0 32px;
}

.sheet h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sheet p {
  margin: 0;
  color: var(--mute);
}

.sheet p + p {
  margin-top: 10px;
}

a {
  color: var(--sage);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
.booth a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.close {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(36, 48, 56, 0.12);
  font-size: 0.82rem;
  color: var(--mute);
}

@media (max-width: 820px) {
  .stage {
    flex-direction: column;
  }

  .booth {
    position: relative;
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    min-height: 0;
    padding: 32px 20px 28px;
  }

  .booth h1 {
    max-width: 9ch;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .lamp {
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
  }

  .sheet {
    width: 100%;
    padding: 28px 20px 56px;
  }

  .lead,
  .promises,
  .sheet section {
    max-width: none;
  }

  body {
    font-size: 16px;
  }
}
