:root {
  --paper: #f4efe7;
  --ink: #19231f;
  --muted: #677069;
  --orange: #ef6a3a;
  --sage: #99ad8d;
  --cream: #fffaf2;
  --line: rgba(25, 35, 31, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 20%, rgba(239, 106, 58, 0.07), transparent 28%),
    var(--paper);
  font-family: "DM Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.nav {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand, .nav-status { display: inline-flex; align-items: center; gap: 10px; }
.brand { font-weight: 600; letter-spacing: -0.02em; }
.brand-mark { width: 17px; height: 17px; border: 5px solid var(--ink); border-radius: 50%; }
.nav-status { color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(239, 106, 58, 0.12); animation: pulse 2.2s infinite; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: 76px 0 88px;
}

.hero-copy { max-width: 660px; }
.eyebrow { margin: 0 0 24px; color: var(--orange); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
h1 { margin: 0; font-family: "Instrument Serif", serif; font-size: clamp(4rem, 7.4vw, 7rem); font-weight: 400; line-height: 0.88; letter-spacing: -0.045em; }
h1 em { color: var(--orange); font-weight: 400; }
.intro { max-width: 540px; margin: 32px 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; }

.signup {
  max-width: 540px;
  display: flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.46);
  transition: border-color 180ms, box-shadow 180ms;
}
.signup:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(239, 106, 58, 0.1); }
.signup input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 20px; color: var(--ink); background: transparent; }
.signup input::placeholder { color: #949991; }
.signup button { min-height: 48px; border: 0; border-radius: 100px; padding: 0 22px; color: white; background: var(--ink); cursor: pointer; font-weight: 600; transition: transform 180ms, background 180ms; }
.signup button:hover { transform: translateY(-1px); background: var(--orange); }
.signup button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.form-note { margin: 12px 0 0 20px; color: #898f88; font-size: 0.78rem; }
.form-note.success { color: #58704d; font-weight: 600; }

.visual { position: relative; min-height: 530px; isolation: isolate; }
.visual::before { content: ""; position: absolute; inset: 9% 4% 4% 9%; z-index: -2; border-radius: 50% 46% 44% 52%; background: #d9dfd0; transform: rotate(-8deg); }
.sun { position: absolute; right: 5%; top: 5%; z-index: -1; width: 120px; height: 120px; border-radius: 50%; background: var(--orange); }
.orbit { position: absolute; z-index: -1; border: 1px solid rgba(25,35,31,.2); border-radius: 50%; transform: rotate(24deg); }
.orbit-one { inset: 4% 0 3% 5%; }
.orbit-two { inset: 12% 9% 12% 14%; transform: rotate(-28deg); }

.card { position: absolute; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(25,35,31,.17); border-radius: 3px; padding: 24px; box-shadow: 0 24px 50px rgba(61, 61, 40, 0.12); }
.card span { font-size: 0.68rem; font-weight: 600; letter-spacing: .12em; }
.card p { margin: 0; font-family: "Instrument Serif", serif; font-size: 2rem; line-height: 1; }
.card-back { width: 48%; height: 52%; right: 5%; top: 10%; color: var(--cream); background: var(--orange); transform: rotate(9deg); }
.card-front { width: 59%; height: 62%; left: 10%; bottom: 5%; background: var(--cream); transform: rotate(-7deg); }
.mini-mark { width: 66px; height: 66px; align-self: center; border: 17px solid var(--ink); border-radius: 50%; }
.spark { position: absolute; color: var(--ink); font-size: 2.2rem; }
.spark-one { left: 1%; top: 19%; }
.spark-two { right: 0; bottom: 8%; color: var(--orange); font-size: 1.5rem; }

footer { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(239, 106, 58, 0); } }

@media (max-width: 820px) {
  .page-shell { width: min(100% - 32px, 680px); }
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .visual { min-height: 440px; }
  h1 { font-size: clamp(4rem, 15vw, 6.2rem); }
}

@media (max-width: 540px) {
  .nav { min-height: 76px; }
  .hero { padding: 48px 0 58px; }
  .signup { border-radius: 24px; flex-direction: column; }
  .signup input { min-height: 50px; text-align: center; }
  .signup button { width: 100%; }
  .form-note { margin-left: 0; text-align: center; }
  .visual { min-height: 360px; }
  .card { padding: 18px; }
  .card p { font-size: 1.45rem; }
  .mini-mark { width: 48px; height: 48px; border-width: 12px; }
  footer { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
