:root {
  --cream: #FBF6EC;
  --cocoa: #4A3426;
  --cocoa-hover: #5C4232;
  --soft: #7A5E4A;
  --honey: #E3B04B;
  --label: #8F5B28;
  --line: #E8DCC8;
  --white: #FFFFFF;
  --display: "Caprasimo", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

/* One centered column for the whole page */
.col {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 10;
  background: var(--cocoa); color: var(--cream);
  padding: 10px 16px; border-radius: 999px;
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--label);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--cream);
  font: 700 17px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--cocoa-hover); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 24px;
}
.slice-btn {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.slice-btn svg { width: 132px; height: 132px; }
.hero h1 {
  font-size: clamp(44px, 11vw, 60px);
  line-height: 1;
  margin-top: 8px;
}
.hero .label { margin-top: 12px; }
.tagline {
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--soft);
}
.hero-img {
  margin: 36px 0 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}
.hero .btn { margin-top: 32px; }
.price {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 15px;
}
.price strong { color: var(--cocoa); }

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.hero + .section { margin-top: 48px; }
.section h2 {
  font-size: clamp(30px, 6vw, 38px);
  text-align: center;
  margin-bottom: 28px;
}

.dots {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dots li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
}
.dots li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
  transform: translateY(-2px);
}

.shapes {
  display: grid;
  gap: 16px;
}
.shape {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  background: var(--white);
}
.shape h3 { font-size: 26px; margin-top: 6px; }
.shape p { margin: 6px 0 0; color: var(--soft); font-size: 16px; }
.shapes-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--soft);
  font-size: 15px;
}
.shapes-note strong { color: var(--cocoa); }

.story p { margin: 0 0 18px; }
.story .first {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 28px;
}
.story .signature { font-weight: 600; text-align: center; margin: 28px 0 0; }

/* Waitlist */
.waitlist .intro {
  margin: -16px 0 28px;
  text-align: center;
  color: var(--soft);
}
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--cocoa);
  font: 400 17px var(--body);
}
.field input:focus { border-color: var(--cocoa); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 4px; }
.fine { margin: 0; text-align: center; font-size: 14px; color: var(--soft); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  text-align: center;
  color: var(--soft);
  font-size: 14px;
}
.footer .mark { display: inline-flex; align-items: center; gap: 8px; color: var(--cocoa); text-decoration: none; margin-bottom: 6px; }
.footer .mark img { width: 24px; }
.footer .mark span { font-family: var(--display); font-size: 20px; }
.footer p { margin: 0; }

/* Thanks page + waitlist error page (functions/api/waitlist.js) */
.thanks {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.thanks .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.thanks h1 { font-size: clamp(36px, 8vw, 52px); }
.thanks p, .thanks .lead { margin: 0 0 16px; color: var(--soft); font-size: 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  background: var(--cocoa); color: var(--cream); font-weight: 700; text-decoration: none;
}

@media (min-width: 560px) {
  .shapes { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Centering + wider photo */
.col { max-width: 680px; }
.dots { width: fit-content; max-width: 100%; margin: 0 auto; }
.story p { text-align: center; }
.hero-img {
  width: min(960px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 3 / 2;
}
@media (max-width: 559px) { .hero-img { aspect-ratio: 4 / 3; } }

/* Wider layout: less empty space on the sides */
body { font-size: 18px; }
.col { max-width: 960px; padding: 0 32px; }
.hero h1 { font-size: clamp(44px, 8vw, 76px); }
.tagline { font-size: 21px; }
.hero-img { width: 100%; margin-left: 0; transform: none; aspect-ratio: 16 / 10; }
.section h2 { font-size: clamp(30px, 5vw, 44px); }
.dots li { font-size: 19px; padding: 14px 0; }
.shape { padding: 36px 28px; }
.shape h3 { font-size: 30px; }
.story .first { font-size: 28px; max-width: 760px; margin-left: auto; margin-right: auto; }
.story p { max-width: 760px; margin-left: auto; margin-right: auto; }
.form { max-width: 600px; margin: 0 auto; }
.waitlist .intro { font-size: 19px; }
@media (max-width: 559px) {
  .col { padding: 0 20px; }
  .hero-img { aspect-ratio: 4 / 3; }
}

/* Medium size */
body { font-size: 17px; }
.col { max-width: 800px; padding: 0 28px; }
.hero h1 { font-size: clamp(44px, 7vw, 64px); }
.tagline { font-size: 19px; }
.hero-img { width: 100%; margin-left: 0; transform: none; aspect-ratio: 16 / 10; }
.section h2 { font-size: clamp(30px, 5vw, 40px); }
.dots li { font-size: 18px; padding: 12px 0; }
.shape { padding: 30px 24px; }
.shape h3 { font-size: 28px; }
.story .first { font-size: 26px; max-width: 680px; margin-left: auto; margin-right: auto; }
.story p { max-width: 680px; margin-left: auto; margin-right: auto; }
.form { max-width: 560px; margin: 0 auto; }
.waitlist .intro { font-size: 18px; }
@media (max-width: 559px) {
  .col { padding: 0 20px; }
  .hero-img { aspect-ratio: 4 / 3; }
}

/* Standard sizing: 720px column, ~65 characters per line, 17px body */
body { font-size: 17px; }
.col { max-width: 720px; padding: 0 24px; }
.hero { padding-top: 48px; }
.slice-btn svg { width: 112px; height: 112px; }
.hero h1 { font-size: clamp(40px, 7vw, 56px); }
.tagline { font-size: 19px; }
.hero-img { width: 100%; margin-left: 0; transform: none; aspect-ratio: 3 / 2; border-radius: 20px; }
.section { padding: 56px 0; }
.section h2 { font-size: clamp(28px, 4.5vw, 36px); }
.dots li { font-size: 17px; padding: 10px 0; }
.shape { padding: 26px 22px; }
.shape h3 { font-size: 26px; }
.story .first { font-size: 24px; max-width: 62ch; margin-left: auto; margin-right: auto; }
.story p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.form { max-width: 520px; margin: 0 auto; }
.waitlist .intro { font-size: 17px; }
@media (max-width: 559px) {
  .col { padding: 0 20px; }
  .hero-img { aspect-ratio: 4 / 3; }
}

/* Center the list block and story text */
.dots { width: fit-content; max-width: 100%; margin: 0 auto; }
.story p { text-align: center; }
