:root {
  --paper: #f6efe1;
  --paper-deep: #efe5d0;
  --ink: #2b2118;
  --ink-soft: #5c4d3f;
  --rule: #2b2118;
  --accent: #c8452c;   /* tomato */
  --yolk: #f2b33d;
  --white: #fffaf0;

  --serif-display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif-text: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: 16px;
  --measure: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.paper {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 20px var(--gutter) 40px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Masthead ---------- */

.dateline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dateline span:nth-child(1),
.dateline span:nth-child(3) { display: none; }
.dateline span:nth-child(2) { flex: 1; text-align: center; }

.nameplate {
  margin: 18px 0 2px;
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 144;
  font-weight: 800;
  font-size: clamp(2.4rem, 11.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: center;
}

.motto {
  margin: 6px 0 14px;
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.rule-double {
  height: 6px;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pitch {
  margin: 22px 0 18px;
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  font-size: clamp(1.35rem, 5.6vw, 1.9rem);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Signup ---------- */

.signup {
  margin: 0 auto 8px;
  max-width: 520px;
}

.signup-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  text-align: center;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem; /* ≥16px so iOS doesn't zoom on focus */
}
.signup input[type="email"]:focus {
  outline: 3px solid var(--yolk);
  outline-offset: 1px;
}

.signup button {
  min-height: 52px;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.signup button:hover { background: var(--accent); border-color: var(--accent); }
.signup button:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; }
.signup button:disabled { opacity: 0.6; cursor: wait; }

.signup-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-soft);
}

.signup-status {
  min-height: 1.5em;
  margin: 8px 0 0;
  text-align: center;
  font-size: 1rem;
}
.signup-status[data-kind="error"] { color: var(--accent); }
.signup-status[data-kind="ok"] {
  padding: 12px 14px;
  border: 1.5px dashed var(--ink);
  background: var(--white);
  font-family: var(--serif-display);
  font-weight: 600;
}

.signup.is-done .signup-row,
.signup.is-done .signup-label,
.signup.is-done .signup-note { display: none; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Sections ---------- */

section { margin-top: 40px; }

.kicker {
  margin: 0;
  padding: 8px 0 6px;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.section-dek {
  margin: 10px 0 0;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Sample page ---------- */

.sample-figure { margin: 18px 0 0; }

.sample-figure img,
.sample-page {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 1px 0 rgba(43, 33, 24, 0.08), 0 10px 30px -10px rgba(43, 33, 24, 0.35);
  transform: rotate(-1.2deg);
}
.sample-figure img { height: auto; }

.sample-page {
  aspect-ratio: 8.5 / 11;
  padding: 7%;
  display: flex;
  flex-direction: column;
  color: #222;
}

.sp-mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 2px solid #222;
}
.sp-title {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(1rem, 5.4vw, 1.5rem);
  line-height: 1.1;
}
.sp-for {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sp-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px;
  margin-top: 10px;
}
.sp-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1.5px solid #222;
  text-align: center;
}
.sp-color { grid-column: 1 / -1; }
.sp-color svg { width: 80%; height: auto; }
.sp-weather svg { width: 42%; height: auto; margin: 4px 0; }

.sp-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: stretch;
  text-align: center;
}
.sp-big {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 13vw, 3.6rem);
  line-height: 1;
}
.sp-word { font-size: 0.8rem; font-style: italic; }

.sample-figure figcaption {
  margin-top: 22px;
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- How it works ---------- */

.columns {
  list-style: none;
  margin: 0;
  padding: 0;
}
.columns li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.columns li:last-child { border-bottom: 0; }

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif-display);
  font-weight: 700;
}
.columns h3 {
  margin: 8px 0 4px;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.columns p { margin: 0; }

/* ---------- Pricing ---------- */

.rate-card {
  position: relative;
  margin: 18px auto 0;
  max-width: 460px;
  padding: 28px 20px 22px;
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  text-align: center;
}
.stamp {
  position: absolute;
  top: -14px;
  right: 10px;
  padding: 4px 10px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--paper);
  color: var(--accent);
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(4deg);
}
.rate {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 1.4rem;
}
.rate strong { font-size: 3rem; font-weight: 800; line-height: 1; }
.rate-sub { margin: 6px 0 0; }
.rate-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.colophon {
  margin-top: 48px;
  text-align: center;
}
.colophon-name {
  margin: 16px 0 8px;
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 1.3rem;
}
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a {
  display: inline-block;
  padding: 6px 2px; /* comfortable tap target */
  font-weight: 600;
}
.handle,
.contact {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.contact a { overflow-wrap: anywhere; }

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .paper { padding-top: 28px; }

  .dateline span:nth-child(1),
  .dateline span:nth-child(3) { display: inline; }
  .dateline span:nth-child(2) { flex: 0 1 auto; }

  .signup-row { flex-direction: row; }
  .signup input[type="email"] { flex: 1; }

  section { margin-top: 56px; }

  .columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .columns li {
    padding: 18px 18px 6px;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .columns li:first-child { padding-left: 0; }
  .columns li:last-child { padding-right: 0; border-right: 0; }
  .columns p { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .signup button { transition: background-color 0.15s ease, border-color 0.15s ease; }
}

/* "Not ready yet" notice above the signup */
.press-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  font-size: 0.95rem;
}
.press-note strong {
  color: var(--accent);
  font-family: var(--serif-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.signup.is-done .press-note { display: none; }
