/* Sashiko & Slow Stitching — sashiko-book.pages.dev
   Palette: indigo #1F3550 · gold #8A6D3B · cream #F7F4EE · ink #22242A */

:root {
  --indigo: #1F3550;
  --indigo-deep: #16263B;
  --gold: #8A6D3B;
  --gold-soft: #CCB98A;
  --cream: #F7F4EE;
  --ink: #22242A;
  --grey: #5C6470;
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.06rem;
}

/* ---------- the stitch: the site's one signature ---------- */
.stitch-row {
  border: none;
  border-top: 3px dashed var(--gold-soft);
  margin: 0 auto;
  width: min(160px, 40%);
}
.hero .stitch-row { border-top-color: rgba(247, 244, 238, .55); }

/* animated stitch rows across the hero, like the book cover band */
.hero-stitches { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-stitches span {
  position: absolute; left: -8%; right: -8%;
  border-top: 2.5px dashed rgba(247, 244, 238, .28);
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-stitches span { animation: none; }
}

/* ---------- structure ---------- */
.hero {
  position: relative;
  background: var(--indigo);
  color: var(--cream);
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
}
.hero > * { position: relative; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
main .eyebrow { color: var(--gold); }

h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 auto .9rem;
  max-width: 17ch;
}
.hero p.lede {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.12rem;
  color: #E6E3DC;
}

h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: var(--indigo);
  line-height: 1.2;
  margin-bottom: .8rem;
}

section { padding: 3.5rem 1.5rem; }
.wrap { max-width: 62rem; margin: 0 auto; }
.narrow { max-width: 40rem; margin: 0 auto; }
.center { text-align: center; }

/* ---------- signup form ---------- */
.signup {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 30rem;
  margin: 0 auto;
}
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup input[type="email"] {
  flex: 1 1 15rem;
  font: inherit;
  padding: .85rem 1rem;
  border: 2px solid var(--gold-soft);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
}
.signup input[type="email"]:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: .85rem 1.6rem;
  border: none;
  border-radius: 4px;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #75592c; }
.btn.ghost {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
}
.btn.ghost:hover { background: var(--indigo); color: var(--cream); }
.hero .btn.ghost { color: var(--cream); border-color: var(--gold-soft); }
.hero .btn.ghost:hover { background: var(--gold-soft); color: var(--indigo); }

.fineprint { font-size: .85rem; color: var(--grey); margin-top: .9rem; }
.hero .fineprint { color: #B9C2CE; }

/* ---------- swatch cards ---------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.swatch { text-align: center; }
.swatch img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(22, 38, 59, .18);
}
.swatch h3 { color: var(--indigo); margin: .9rem 0 .2rem; font-size: 1.15rem; }
.swatch h3 em { color: var(--gold); font-style: italic; font-weight: 400; }
.swatch p { font-size: .95rem; color: var(--grey); }

/* ---------- alt band ---------- */
.band { background: #fff; }
.band-indigo { background: var(--indigo); color: var(--cream); }
.band-indigo h2 { color: var(--cream); }
.band-indigo .fineprint { color: #B9C2CE; }

/* ---------- lists on supplies page ---------- */
.kit { list-style: none; margin-top: 1.5rem; }
.kit li {
  padding: 1.2rem 0;
  border-bottom: 2px dashed var(--gold-soft);
}
.kit li:first-child { border-top: 2px dashed var(--gold-soft); }
.kit strong { color: var(--indigo); }
.kit .links { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .5rem; }
.kit .links a { color: var(--gold); font-weight: 700; }

a { color: var(--gold); }

/* ---------- footer ---------- */
footer {
  background: var(--indigo-deep);
  color: #B9C2CE;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .9rem;
}
footer a { color: var(--gold-soft); }
footer nav { margin-bottom: 1rem; }
footer nav a { margin: 0 .7rem; }
