@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/fraunces-var.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-italic.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-500.woff2") format("woff2"); }

:root {
  /* Cobble Lane Bakehouse tokens */
  --parchment: #f3e6d3;
  --flour-white: #fdf6ec;
  --lane-charcoal: #3f3d39;
  --wheat-ochre: #ae8252;
  --roof-timber: #6c4f35;
  --cobblestone: #b8a389;
  --cobblestone-ink: #6b5f51;
  --oven-glow: #e8a85f;
  --hairline: var(--cobblestone);

  --display: "Fraunces", Georgia, serif;
  --text: "Source Serif 4", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --space-1: 4px; --space-2: 8px; --space-3: 16px;
  --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --radius-sm: 2px; --radius-md: 6px;
  --rule-hair: 1px; --rule-frame: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--lane-charcoal);
  font-family: var(--text);
  font-size: 18px;
  line-height: 27px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
  text-align: center;
}

.lockup {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lane-charcoal);
  margin: var(--space-5) 0 var(--space-3);
}

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--wheat-ochre);
  max-width: 320px;
  margin: 0 auto;
  font-size: 14px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-top: var(--rule-hair) solid var(--wheat-ochre);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.5px;
  margin: var(--space-4) 0 var(--space-3);
}

.lede {
  max-width: 560px;
  margin: 0 auto;
}
.lede em {
  display: block;
  margin-top: var(--space-2);
  font-size: 16px;
  line-height: 24px;
  color: var(--cobblestone-ink);
}

/* Signup card: double frame echoing the lockup */
.signup {
  max-width: 560px;
  margin: var(--space-5) auto 0;
  background: var(--flour-white);
  border: var(--rule-frame) solid var(--lane-charcoal);
  border-radius: var(--radius-sm);
  padding: 6px;
  text-align: left;
}
.signup-inner {
  border: var(--rule-hair) solid var(--wheat-ochre);
  padding: var(--space-4);
}
.signup h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  margin: 0 0 var(--space-2);
}
.signup p { margin: 0 0 var(--space-4); }

.field-row {
  display: flex;
  gap: var(--space-2);
}
label.visually-hidden, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--lane-charcoal);
  background: var(--flour-white);
  border: var(--rule-hair) solid var(--cobblestone-ink);
  border-radius: var(--radius-sm);
  padding: 12px var(--space-3);
}
input[type="email"]::placeholder { color: var(--cobblestone-ink); opacity: 1; }
input[type="email"]:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lane-charcoal);
  outline-offset: 2px;
}
button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lane-charcoal);
  background: var(--oven-glow);
  border: var(--rule-hair) solid var(--lane-charcoal);
  border-radius: var(--radius-md);
  padding: 12px var(--space-4);
  cursor: pointer;
  white-space: nowrap;
}
button:hover { background: #dd9a4d; }
button[disabled] { opacity: .6; cursor: wait; }

.fine {
  margin: var(--space-3) 0 0 !important;
  font-size: 14px;
  line-height: 20px;
  color: var(--cobblestone-ink);
}
.status {
  margin: var(--space-3) 0 0 !important;
  font-size: 16px;
  line-height: 24px;
}
.status:empty { display: none; }
.status.error { color: #8a3b1c; }

.thanks { display: none; }
.signup.done form, .signup.done .intro { display: none; }
.signup.done .thanks { display: block; }

.note {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 26px;
  line-height: 30px;
  margin-top: var(--space-4);
}

footer {
  border-top: var(--rule-hair) solid var(--hairline);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--cobblestone-ink);
}
footer a { color: var(--lane-charcoal); text-underline-offset: 3px; }
footer .sep { color: var(--wheat-ochre); margin: 0 var(--space-2); }

@media (max-width: 560px) {
  main { padding-top: var(--space-4); }
  h1 { font-size: 40px; line-height: 46px; }
  .field-row { flex-direction: column; }
  button { width: 100%; }
  .signup-inner { padding: var(--space-3); }
}
.lede a { color: var(--lane-charcoal); text-underline-offset: 3px; }
