:root {
  --paper: #f3efe7;
  --paper-deep: #e7e0d4;
  --card: #fffaf4;
  --ink: #2c2420;
  --muted: #7d6e64;
  --line: #e4d9cc;
  --ruby: #9c3d4a;
  --ruby-deep: #6f2833;
  --leaf: #3d6554;
  --shadow: 0 12px 32px rgba(70, 42, 32, 0.07);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 320px at 0% -10%, #fbeee6 0%, transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
a { color: var(--ruby-deep); }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}
.wrap-wide { width: min(920px, calc(100% - 32px)); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 8px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8a0a6, var(--ruby) 55%, var(--ruby-deep));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.8);
  border-radius: 999px;
  padding: 4px 8px;
}

.hero { padding: 28px 0 12px; }
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.lede { font-size: 1.08rem; color: #4e433d; margin: 0 0 22px; max-width: 38rem; }

.button, .button-secondary, .choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  width: 100%;
}
.button {
  background: var(--ruby);
  color: white;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(156, 61, 74, 0.22);
}
.button:hover, .button:focus-visible { background: var(--ruby-deep); outline: none; }
.button-secondary, .choice {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
}
.button-secondary { width: auto; }
.choice { border-radius: 16px; justify-content: space-between; font-weight: 600; }
.choice small, .quiet { display: block; font-weight: 450; color: var(--muted); font-size: 0.92rem; }
.choice:hover, .choice:focus-visible { border-color: #e0b4b8; outline: none; }
.actions { display: grid; gap: 10px; }

.section { padding: 28px 0; }
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.steps, .gifts { display: grid; gap: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f6e4e2;
  color: var(--ruby-deep);
  font-weight: 700;
  margin-bottom: 8px;
}
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card p { margin: 0; color: #4e433d; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 16px 18px;
  box-shadow: var(--shadow);
}
label { display: block; font-weight: 650; margin: 14px 0 6px; }
input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
input:focus { outline: 2px solid #e7c3c6; border-color: var(--ruby); }
.privacy, .hint { color: var(--muted); font-size: 0.92rem; margin: 12px 0 16px; }
.choices { border: 0; margin: 18px 0 0; padding: 0; }
.choices legend { font-weight: 650; padding: 0; }
.choice-tools { display: flex; gap: 12px; margin: 8px 0; }
.choice-tools button {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--ruby-deep);
  cursor: pointer;
  text-decoration: underline;
}
.checkline { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; margin: 10px 0; }
.checkline input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }
.suboption { margin: 0 0 8px 1.8rem; }
.suboption .checkline { margin: 6px 0; }
.page-intro { padding-top: 18px; }
.page-intro h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }

.check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5f3ec;
  color: var(--leaf);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.subtle { color: var(--muted); font-size: 0.95rem; }
.subtle a { color: var(--muted); }

.mail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mail-bar {
  background: #f7f1ea;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.mail-bar strong { color: var(--ink); font-weight: 650; }
.mail-body { padding: 18px 16px 20px; }
.mail-body h1 { font-size: 1.7rem; }

.stack { display: grid; gap: 10px; }
.note {
  background: #f7f1ea;
  border-radius: 14px;
  padding: 12px 14px;
  color: #4e433d;
  margin: 0 0 8px;
}
.expire { color: var(--muted); margin-top: 16px; }

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 420px;
  background: var(--ink);
  color: #fffaf4;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.toast.show { transform: none; opacity: 1; }

.foot {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 28px 0 40px;
}

@media (min-width: 760px) {
  .button, .choice { width: auto; }
  .hero .button { min-width: 260px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gifts { grid-template-columns: 1fr 1fr; }
  .panel { padding: 28px 26px; }
  .mail-body, .mail-bar { padding-left: 22px; padding-right: 22px; }
}
