/* Spotlark Studio — shop styles
   Mobile-first. One file, no build step. */

/* ---------- Tokens ---------- */
:root {
  --coral: #E8705F;
  --coral-ink: #A94A3A;      /* coral dark enough for small text and links on cream (4.9:1) */
  --espresso: #2B1D17;
  --taupe: #A08C80;          /* decorative: line art, borders */
  --taupe-ink: #6E5B50;      /* secondary text, passes AA on cream and blush */
  --cream: #F6EDE3;
  --cream-deep: #F1E5D8;
  --blush: #F3D9D2;
  --white: #FFFCF9;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 29, 23, .05), 0 8px 24px rgba(43, 29, 23, .07);
  --shadow-soft: 0 1px 2px rgba(43, 29, 23, .04), 0 4px 14px rgba(43, 29, 23, .05);

  --wrap: 1160px;
  --gutter: 16px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--espresso); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.15rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: -60px;
  z-index: 100;
  background: var(--espresso);
  color: var(--cream);
  padding: .6em 1em;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--cream); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 760px; }

/* ---------- Surfaces ---------- */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 96px 0; } }

/* Very light linen weave, CSS only */
.linen {
  background-color: var(--cream-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(160, 140, 128, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(160, 140, 128, .035) 0 1px, transparent 1px 4px);
}

.panel {
  background: var(--blush);
  border-radius: var(--radius);
  padding: 24px;
}
@media (min-width: 720px) { .panel { padding: 36px; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

/* ---------- Small type helpers ---------- */
.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: .6em;
}
.lead { font-size: 1.08rem; color: var(--taupe-ink); }
@media (min-width: 720px) { .lead { font-size: 1.15rem; } }
.muted { color: var(--taupe-ink); }
.nowrap { white-space: nowrap; }
.small { font-size: .875rem; }

/* Section heading with botanical sprig */
.heading { position: relative; margin-bottom: 28px; }
.heading--center { text-align: center; }
.heading--center .lead { max-width: 40em; margin-left: auto; margin-right: auto; }
.sprig {
  width: 92px; height: 40px;
  color: var(--taupe);
  opacity: .55;
  display: block;
  margin-bottom: 4px;
}
.heading--center .sprig { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: .8em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--coral);
  color: var(--espresso);
  box-shadow: 0 6px 16px rgba(232, 112, 95, .28);
}
.btn--primary:hover { background: #EE8576; color: var(--espresso); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255, 252, 249, .65);
  color: var(--espresso);
  border-color: rgba(43, 29, 23, .25);
}
.btn--ghost:hover { background: var(--white); border-color: var(--espresso); color: var(--espresso); }
.btn--block { display: flex; width: 100%; }

/* Buy button while its Dodo link is still a placeholder */
.btn[aria-disabled="true"] {
  background: var(--cream-deep);
  color: var(--taupe-ink);
  border-color: rgba(160, 140, 128, .45);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(160, 140, 128, .2);
  position: relative;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 168px; height: auto; }
@media (min-width: 720px) { .brand img { width: 200px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(43, 29, 23, .2);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  font: 500 .9rem var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars { width: 16px; height: 10px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--espresso);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--coral-ink); }

/* Mobile menu: hidden until toggled (JS). Without JS it stays visible as a simple row. */
@media (max-width: 859px) {
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid rgba(160, 140, 128, .25);
    box-shadow: 0 12px 24px rgba(43, 29, 23, .06);
    padding: 4px var(--gutter) 12px;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav li + li a { border-top: 1px solid rgba(160, 140, 128, .2); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  html:not(.js) .site-nav li + li a { border-top: 0; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav a { padding: 8px 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); }
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 72% 50%;
}
.hero__content { padding: 28px 0 44px; }
.hero__content .lead { color: var(--espresso); opacity: .82; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__actions .btn { flex: 1 1 220px; }

/* From tablets up: the photo fills the hero, headline sits on the calm wall at left */
@media (min-width: 760px) {
  .hero { min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 62% 50%; }
  .hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
      rgba(246, 237, 227, .96) 0%,
      rgba(246, 237, 227, .88) 32%,
      rgba(246, 237, 227, .35) 52%,
      rgba(246, 237, 227, 0) 66%);
  }
  .hero .wrap { position: relative; z-index: 1; }
  .hero__content { max-width: 520px; padding: 72px 0; }
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1200px) {
  .hero__content { max-width: 580px; }
}

/* ---------- Product intro (photo + price + buy) ---------- */
.product { padding: 20px 0 56px; }
@media (min-width: 720px) { .product { padding: 88px 0 96px; } }

.product-intro {
  display: grid;
  gap: 14px;
  grid-template-areas: "head" "media" "buy";
}
.product-intro__head { grid-area: head; }
.product-intro__head h2 { margin-bottom: .2em; }
.product-intro__head .lead { margin-bottom: 0; }
.product-intro__media { grid-area: media; margin: 0; }
.product-intro__media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  max-height: 27svh;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.product-intro__buy { grid-area: buy; }
/* Short phones: a shorter photo keeps the price and Buy button on the first screen */
@media (max-width: 899px) and (max-height: 700px) {
  .product-intro__media img { max-height: 21svh; }
}
@media (max-width: 899px) and (max-height: 660px) {
  .product-intro__media img { max-height: 16svh; }
}

@media (min-width: 900px) {
  .product-intro {
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas: "media head" "media buy";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 22px;
    align-items: start;
  }
  .product-intro__head { align-self: end; }
  .product-intro__media img { aspect-ratio: 4 / 3; max-height: none; }
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: .5em;
  margin: 0 0 12px;
}
.price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
}
.price-note { font-size: .85rem; color: var(--taupe-ink); }
.buy-meta { font-size: .82rem; color: var(--taupe-ink); margin: 10px 0 0; text-align: center; }

/* ---------- Kit picker ---------- */
.picker { border: 0; margin: 0 0 12px; padding: 0; }
.picker legend { padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; }
.picker__options { display: grid; gap: 8px; }

.option { position: relative; display: block; }
.option input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.option__box {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 14px;
  min-height: 52px;
  background: var(--white);
  border: 1.5px solid rgba(160, 140, 128, .35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.option__dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--taupe);
  background: var(--white);
  position: relative;
}
.option__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.option__desc { display: none; font-size: .82rem; color: var(--taupe-ink); line-height: 1.45; margin-top: 2px; }
.option__price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
}
.option input:checked + .option__box {
  border-color: var(--coral);
  background: #FFF6F1;
  box-shadow: 0 0 0 1px var(--coral);
}
.option input:checked + .option__box .option__dot { border-color: var(--coral); }
.option input:checked + .option__box .option__dot::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--coral);
}
.option input:focus-visible + .option__box { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
.option__box:hover { border-color: var(--taupe); }
/* Show the one-line description only for the chosen option on small screens; always on larger ones */
.option input:checked + .option__box .option__desc { display: block; }
@media (min-width: 900px) { .option__desc { display: block; } }

/* ---------- Content blocks ---------- */
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(4, 1fr); }
}

.block { margin-top: 48px; }
@media (min-width: 720px) { .block { margin-top: 72px; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(-45deg);
}

.core-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: core;
  display: grid;
  gap: 8px;
}
@media (min-width: 720px) { .core-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.core-list li {
  counter-increment: core;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(160, 140, 128, .25);
}
.core-list li::before {
  content: counter(core, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--coral-ink);
  min-width: 1.6em;
}

.packs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.packs li {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  font-weight: 500;
  font-size: .92rem;
  line-height: 1.35;
}

.check-list--cols { display: grid; gap: 4px 28px; }
@media (min-width: 720px) { .check-list--cols { grid-template-columns: 1fr 1fr; } }

.extras { margin: 24px 0 0; }
.starter-note { margin-top: 32px; }
/* Slightly deeper coral for small labels on blush panels (5.2:1) */
.panel .eyebrow { color: #953F30; }
.starter-note .check-list li { margin-bottom: 8px; }

.photo-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption { padding: 18px 20px 22px; }
.photo-card strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.3rem; margin-bottom: 4px; }
.photo-card span { color: var(--taupe-ink); font-size: .92rem; }

/* ---------- Peek inside scroller ---------- */
.peek-controls { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.peek-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(43, 29, 23, .22);
  background: var(--white);
  color: var(--espresso);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.peek-btn:hover { border-color: var(--espresso); }
.peek-btn svg { width: 18px; height: 18px; }

.peek {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 6px var(--gutter) 22px;
  margin: 0 calc(var(--gutter) * -1);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--taupe) transparent;
}
.peek:focus-visible { outline-offset: -3px; }
.peek ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.peek li { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 560px) { .peek li { flex-basis: 42%; } }
@media (min-width: 900px) { .peek li { flex-basis: 26%; } }
@media (min-width: 1200px) { .peek li { flex-basis: 23%; } }
.peek figure { margin: 0; }
.peek img {
  width: 100%;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.peek figcaption { font-size: .85rem; color: var(--taupe-ink); margin-top: 10px; }

/* ---------- Tracker features ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; gap: 18px 28px; } }
.feature-list li { background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-soft); }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list span { color: var(--taupe-ink); font-size: .92rem; }

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 20px;
  max-width: 34em;
}

/* ---------- Free sample ---------- */
.sample { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .sample { grid-template-columns: 1fr 1fr; gap: 56px; }
  .sample__art { order: -1; }
}
.sample-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sample-pages img { border-radius: 14px; box-shadow: var(--shadow); background: var(--white); }
.form-note { margin: 0; }

.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid rgba(160, 140, 128, .55);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--espresso);
  font: 400 1rem var(--font-body);
}
.field input:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 1px; border-color: var(--espresso); }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral-ink); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blush);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--taupe-ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--coral-ink);
  border-bottom: 2px solid var(--coral-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--espresso); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Good to know ---------- */
.notice { display: grid; gap: 6px; }
.notice h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.notice p { margin: 0; }

/* ---------- Simple pages (legal, contact, thanks) ---------- */
.page { padding: 48px 0 72px; }
@media (min-width: 720px) { .page { padding: 80px 0 104px; } }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 1.8em; }
.page .meta { color: var(--taupe-ink); font-size: .9rem; }
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

.contact-card { margin-top: 28px; }
.contact-card p:last-child { margin-bottom: 0; }
.big-link { font-size: 1.15rem; font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blush);
  padding: 40px 0 44px;
  font-size: .9rem;
}
.site-footer .wrap { display: grid; gap: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--espresso); display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--coral-ink); }
.footer-legal { margin: 0; color: var(--taupe-ink); }
.footer-legal a { color: var(--taupe-ink); }
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Scroll fade-in ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn--primary:hover { transform: none; }
}

/* Panels inside simple pages */
.page .panel { margin-top: 36px; }
.page .panel h2 { margin-top: 0; }
