:root {
  --cream: #f6f0e5;
  --paper: #fffaf2;
  --ink: #261d1b;
  --muted: #746964;
  --wine: #7d2638;
  --wine-dark: #5f1829;
  --gold: #c19a63;
  --line: rgba(38, 29, 27, .16);
  --ok: #276749;
  --danger: #a52a2a;
  --shadow: 0 26px 70px rgba(38, 29, 27, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: var(--wine); text-underline-offset: 3px; }
button, input { font: inherit; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 240, 229, .96);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wine); color: #fff; font-family: Georgia, serif; font-size: 20px;
}
.brand-copy strong { display: block; letter-spacing: .12em; font-size: 14px; }
.brand-copy span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.header-link { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }

.registration-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); }
.visual-panel {
  min-height: 780px; position: relative; overflow: hidden; display: flex; align-items: flex-end;
  padding: clamp(32px, 6vw, 88px); color: #fff;
  background: linear-gradient(180deg, rgba(30,12,15,.03), rgba(30,12,15,.76)), url('registration-bg.jpg') center 28% / cover no-repeat;
}
.visual-panel::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.45); pointer-events: none; }
.visual-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
.visual-copy h1, .form-card h1, .legal-hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.02; }
.visual-copy h1 { font-size: clamp(46px, 6vw, 78px); }
.visual-copy p:last-child { max-width: 520px; font-size: 17px; }
.form-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 72px); }
.form-card { width: min(100%, 520px); }
.form-card h1 { font-size: clamp(40px, 5vw, 58px); }
.lead { color: var(--muted); margin: 18px 0 34px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
label.field-label { display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
input[type="email"], input[type="tel"], input[type="text"] {
  width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 0;
  background: rgba(255,255,255,.62); color: var(--ink); padding: 14px 16px; outline: none;
}
input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(125,38,56,.09); }
.secondary-button, .primary-button {
  min-height: 52px; border: 0; cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.secondary-button { padding: 0 18px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.secondary-button:disabled { opacity: .5; cursor: wait; }
.primary-button { width: 100%; margin-top: 10px; padding: 0 24px; background: var(--wine); color: #fff; }
.primary-button:hover { background: var(--wine-dark); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.check-row { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; margin: 16px 0; font-size: 14px; color: #554a46; }
.check-row input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--wine); }
.required { color: var(--wine); }
.form-status { min-height: 24px; margin: 14px 0 0; font-size: 13px; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--danger); }
.small-note { color: var(--muted); font-size: 12px; margin-top: 20px; }
.success-card { padding: clamp(28px, 4vw, 48px); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.success-card h1 { margin-top: 10px; }
.success-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: #fff; font-size: 27px; }
.success-card .lead { margin-bottom: 24px; }
.next-steps { margin: 0; padding: 22px 24px 22px 42px; background: rgba(193, 154, 99, .12); color: #554a46; }
.next-steps li + li { margin-top: 12px; }
.success-card .small-note { margin-bottom: 0; }
.success-action { display: grid; place-items: center; margin-top: 24px; text-decoration: none; }
.member-coupon { padding: 24px 18px; border: 1px dashed var(--wine); background: rgba(193, 154, 99, .12); text-align: center; }
.coupon-image { display: block; width: 100%; height: auto; margin-bottom: 24px; }
.member-coupon .eyebrow { margin-bottom: 10px; color: var(--wine); }
.member-coupon h2 { margin: 0; color: var(--wine); font-family: Georgia, serif; font-size: clamp(30px, 4vw, 42px); font-weight: 400; line-height: 1.15; }
.coupon-minimum { margin: 10px 0 22px; }
.coupon-code-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.coupon-code { margin: 0; color: var(--wine-dark); font-size: clamp(18px, 3vw, 28px); letter-spacing: .06em; overflow-wrap: anywhere; }
.coupon-validity { margin: 22px 0 8px; font-size: 14px; }
.coupon-store { margin: 0; font-size: 14px; }

.legal-page { min-height: 100vh; }
.legal-hero { padding: 72px clamp(24px, 10vw, 160px) 48px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 900px; font-size: clamp(42px, 7vw, 76px); }
.legal-wrap { width: min(920px, calc(100% - 44px)); margin: 0 auto; padding: 58px 0 100px; }
.legal-meta { color: var(--muted); font-size: 13px; }
.legal-section { margin-top: 38px; }
.legal-section h2 { margin: 0 0 12px; font-family: Georgia, serif; font-weight: 400; font-size: 28px; }
.legal-section ul { padding-left: 22px; }
.legal-section li { margin: 7px 0; }
.contact-box { margin-top: 44px; padding: 26px; background: var(--paper); border-left: 4px solid var(--wine); }
.back-link { display: inline-block; margin-top: 42px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

.email-page { padding-bottom: 80px; }
.email-toolbar { width:min(1280px,calc(100% - 40px)); margin:32px auto 0; display:flex; gap:10px; flex-wrap:wrap; }
.template-button { padding:12px 16px; border:1px solid var(--ink); background:transparent; color:var(--ink); cursor:pointer; font-weight:700; }
.template-button.active { background:var(--wine); border-color:var(--wine); color:#fff; }
.email-layout { width: min(1280px, calc(100% - 40px)); margin: 18px auto 40px; display: grid; grid-template-columns: minmax(360px,.82fr) minmax(500px,1.18fr); gap: 28px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-title { display:flex; justify-content:space-between; align-items:center; gap: 16px; padding: 18px 20px; border-bottom:1px solid var(--line); }
.panel-title h2 { margin:0; font-family:Georgia,serif; font-weight:400; }
.preview-frame { width:100%; height:690px; border:0; background:#eee7dc; }
pre { margin:0; padding:22px; height:690px; overflow:auto; background:#211b1b; color:#f6eee8; font:12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space:pre; }
.copy-button { padding:10px 14px; border:1px solid var(--ink); background:transparent; cursor:pointer; font-size:11px; font-weight:700; letter-spacing:.08em; }

@media (max-width: 920px) {
  .registration-shell { grid-template-columns: 1fr; }
  .visual-panel { min-height: 420px; }
  .form-panel { padding: 52px 24px 70px; }
  .email-layout { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .site-header { padding: 14px 18px; }
  .brand-copy span { display:none; }
  .visual-panel { min-height: 360px; padding: 46px 32px; }
  .visual-panel::after { inset: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .secondary-button { width:100%; }
  .legal-hero { padding-top: 48px; }
}
