:root {
  --focus: var(--postal, #3f5f86); 
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: var(--text-base)/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cs {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 16px 32px;
}
.cs-stage { width: 100%; max-width: 440px; }
.cs-window { width: 196px; margin: 0 auto -14px; }
.stamp {
  position: relative;
  width: 100%;
  padding: 34px 24px 26px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-stamp);
  pointer-events: none;
}
.postmark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  opacity: 0.35;
  transform: rotate(-12deg);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark); 
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lede {
  margin: 0 0 22px;
  color: var(--muted);
}
.signup { position: relative; }
.signup label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--muted); 
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.signup input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.signup input[aria-invalid="true"] { border-color: var(--accent-dark); }
.signup button {
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--accent-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .signup button:hover { background: var(--accent-darker); }
  .follow a:hover { border-color: var(--ink); }
}
.signup button:focus-visible { outline-offset: 3px; }
.signup.is-slow button { background: var(--accent-darker); cursor: progress; }
.error {
  margin: 10px 0 0;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
}
.error:empty { margin: 0; }
.signup button.signup-fix {
  min-height: 44px;
  padding: 0 4px;
  background: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fine {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.fine a { color: var(--ink); text-underline-offset: 2px; }
.thanks {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-small);
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-weight: 600;
}
.thanks:focus { outline: none; }
.follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.follow span { flex-basis: 100%; }
.follow a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.peek { width: 100%; max-width: 440px; text-align: center; }
.peek h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
}
.peek-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.peek-card {
  padding: 8px 8px 10px;
  border-radius: var(--radius-small);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.3;
  transform: rotate(-2deg);
}
.peek-card:nth-child(2) { transform: rotate(1.5deg) translateY(4px); }
.peek-card:nth-child(3) { transform: rotate(-1deg); }
.peek-card picture { display: block; }
.peek-card img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  object-fit: cover;
}
@media (min-width: 480px) {
  .stamp { padding: 40px 40px 34px; }
  .row { flex-direction: row; }
  .signup button { flex: none; }
  .cs-window { width: 230px; }
}
@media (max-width: 479px) and (max-height: 520px) {
  .cs-window { width: 132px; margin-bottom: -10px; }
  .stamp { padding-top: 28px; }
}
@media (min-width: 880px) {
  .cs { gap: 40px; padding: 48px 32px; }
  .cs-stage {
    max-width: 1000px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 56px;
  }
  .cs-window { width: 100%; max-width: 500px; margin: 0 0 0 auto; }
  .peek { max-width: 520px; }
  .peek h2 { font-size: var(--text-lg); }
  .peek-card { font-size: var(--text-sm); }
}
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: cs-settle var(--dur-slow) var(--ease-out) both; }
  .cs-window { animation: cs-fade var(--dur-slow) var(--ease-out) both; }
  .postmark { animation: cs-stamp var(--dur-story) var(--ease-stamp) 200ms both; }
  .thanks { animation: cs-pop var(--dur-base) var(--ease-spring) both; }
  .signup button { transition: background-color var(--dur-quick) var(--ease-out), transform var(--dur-press) var(--ease-out); }
  .signup button:active { transform: translateY(1px) scale(0.985); }
  .follow a { transition: border-color var(--dur-quick) var(--ease-out); }
}
@keyframes cs-settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cs-stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.6); } to { opacity: 0.35; transform: rotate(-12deg) scale(1); } }
@keyframes cs-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
