:root {
  --bg: #f5efe9;
  --panel: #f9f5f1;
  --card: #fffdfb;
  --primary: #3c322d;
  --muted: #7b675f;
  --soft-gold: #c7ab81;
  --line: rgba(60, 50, 45, 0.16);
  --shadow: rgba(61, 45, 35, 0.12);
  --desktop-surface: rgba(255, 255, 255, 0.22);
  --desktop-accent: #d99d4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(199, 171, 129, 0.2), transparent 25%),
    linear-gradient(135deg, #dfeef2 0%, #dce9ee 100%);
  color: var(--primary);
}

button {
  font: inherit;
}

body:not(.turnstile-verified) .page-shell {
  display: none;
}

.turnstile-gate {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.38), transparent 38%),
    linear-gradient(135deg, #edf3f5 0%, #dfeaf0 100%);
}

body.turnstile-verified .turnstile-gate {
  display: none;
}

.turnstile-card {
  width: min(100%, 480px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(47, 59, 66, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(19, 39, 46, 0.1);
  padding: 28px 22px 22px;
  text-align: center;
}

.turnstile-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.72rem;
  color: var(--soft-gold);
  font-weight: 600;
}

.turnstile-card h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #2f2b2a;
}

.turnstile-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: #8f2e2b;
}

#turnstile-container {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.desktop-view {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - 140px);
}

.hero-copy {
  padding-right: 12px;
}

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--soft-gold);
  font-size: 0.72rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(3rem, 5vw, 5rem);
  color: #221d1b;
}

.intro {
  max-width: 560px;
  margin: 24px 0 32px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
}

.primary-btn {
  border: none;
  background: linear-gradient(135deg, #3c322d 0%, #554a44 100%);
  color: #fff;
  padding: 18px 30px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(60, 50, 45, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 30px rgba(60, 50, 45, 0.22);
}

.preview-panel {
  display: flex;
  justify-content: center;
}

.envelope-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 430px);
  min-height: 420px;
}

.envelope {
  position: relative;
  width: min(100%, 380px);
  height: 250px;
  background: linear-gradient(180deg, #ef5d2a 0%, #e44f1a 100%);
  border-radius: 10px 10px 20px 20px;
  box-shadow: 0 26px 45px rgba(32, 72, 90, 0.15);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.envelope:hover {
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: 0 30px 50px rgba(32, 72, 90, 0.2);
}

.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.04));
}

.envelope::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 50%);
}

.flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 55%;
  background: linear-gradient(180deg, #f4692b 0%, #d94c1c 100%);
  clip-path: polygon(0 0, 50% 72%, 100% 0);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.04);
}

.letter {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 78%;
  height: 44%;
  background: rgba(255, 248, 238, 0.25);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.letter-mark {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

.closing-message {
  text-align: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  padding-bottom: 16px;
}

.mobile-warning {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 32px 20px;
}

.mobile-warning h2 {
  margin: 20px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  color: #2d2a29;
}

.mobile-warning p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.device-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 180px;
}

.laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen {
  width: 170px;
  height: 110px;
  background: linear-gradient(180deg, #f9f8f5 0%, #d7e2e7 100%);
  border: 5px solid #23353f;
  border-radius: 12px 12px 8px 8px;
  position: relative;
  box-shadow: 0 14px 24px rgba(19, 40, 48, 0.12);
}

.screen-envelope {
  position: absolute;
  width: 78%;
  height: 50%;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ef5d2a, #df4b1f);
  border-radius: 10px;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.06);
}

.screen-envelope::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 55%);
  clip-path: polygon(0 0, 50% 65%, 100% 0);
}

.base {
  width: 210px;
  height: 14px;
  background: linear-gradient(180deg, #2e3e49 0%, #1d2a31 100%);
  border-radius: 0 0 18px 18px;
  position: relative;
  margin-top: -2px;
}

.base::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  top: 2px;
}

body.mobile-device .desktop-view {
  display: none;
}

body.mobile-device .mobile-warning {
  display: flex;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    padding-right: 0;
  }

  .intro {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .desktop-view {
    display: none;
  }

  .mobile-warning {
    display: flex;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .primary-btn {
    width: 100%;
  }

  .envelope-wrap {
    min-height: 340px;
  }
}
