/* listen2mom — design system
   Concept: the garment care label. Mom's advice is written like the little
   woven label inside your clothes: short, symbol-led, and sewn in with care.
   All fonts are system fonts (no third-party font requests = no extra data
   sent anywhere). */

:root {
  /* colour */
  --paper: #f5f6f0;
  --label: #fcfbf5;
  --ink: #1f2419;
  --ink-soft: #4b5242;
  --olive: #4a5632;
  --olive-deep: #2f3820;
  --sage: #c9d1b5;
  --sage-soft: #e3e8d6;
  --butter: #f1d36b;
  --stitch: #8c9670;

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.3rem, 1.4rem + 4vw, 4.1rem);

  /* layout */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 72rem;
  --measure: 38rem;
  --radius-label: 3px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--olive-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--sage); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--olive); }

.nav-toggle {
  display: none;
  font: inherit;
  background: none;
  border: 1px solid var(--stitch);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--olive);
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a { display: block; padding: 0.5rem 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1.2 var(--sans);
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--olive-deep);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--olive-deep); color: var(--paper); }
.btn-primary:hover { background: var(--olive); border-color: var(--olive); }
.btn-quiet { background: transparent; color: var(--olive-deep); }
.btn-quiet:hover { background: var(--sage-soft); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero: the care label ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.care-label {
  position: relative;
  background: var(--label);
  border-radius: var(--radius-label);
  padding: 2.4rem 1.6rem 1.6rem;
  max-width: 22rem;
  justify-self: center;
  transform: rotate(-2.5deg);
  box-shadow: 0 1px 0 var(--sage), 0 18px 30px -18px rgb(47 56 32 / 0.45);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -9px;
}
/* the sewn-in fold at the top of a woven label */
.care-label::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.1rem;
  background: var(--sage);
  border-radius: var(--radius-label) var(--radius-label) 0 0;
}
.care-label h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sage);
}
.care-label ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.care-label li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start; font-size: 0.97rem; line-height: 1.45; }
.care-label .made-with {
  margin: 1.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sage);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .care-label { animation: sew-in 900ms cubic-bezier(.2,.8,.2,1) both 150ms; }
  @keyframes sew-in {
    from { transform: rotate(4deg) translateY(16px); opacity: 0; }
    to { transform: rotate(-2.5deg) translateY(0); opacity: 1; }
  }
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .care-label { transform: rotate(-1.5deg); }
}

/* ---------- care symbols ---------- */
.sym { display: inline-block; flex: none; width: 2.4rem; height: 2.4rem; color: var(--olive-deep); }
.sym svg { width: 100%; height: 100%; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-tint { background: var(--sage-soft); }
.section-dark { background: var(--olive-deep); color: var(--paper); }
.section-dark a { color: var(--butter); }
.section-intro { margin-bottom: 2.25rem; }
.section-intro p { color: var(--ink-soft); }
.section-dark .section-intro p { color: var(--sage); }

/* pillars: the questions people actually ask */
.questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--sage);
}
.questions li {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--sage);
}
.questions li:nth-child(odd) { border-right: 1px solid var(--sage); }
.questions li:nth-child(even) { padding-left: 1.5rem; }
.questions .q {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.15;
  display: block;
  margin-bottom: 0.6rem;
}
.questions .topic { font-weight: 600; color: var(--olive); }
.questions p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 680px) {
  .questions { grid-template-columns: 1fr; }
  .questions li:nth-child(odd) { border-right: 0; }
  .questions li:nth-child(even) { padding-left: 0; }
}

/* two-up feature rows */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.tip-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--olive);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.tip-link .topic { font-size: var(--step--1); font-weight: 600; color: var(--olive); }
.tip-link h3 { margin: 0.2rem 0 0.4rem; text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 0.2em; }
.tip-link:hover h3 { text-decoration-color: var(--olive); }
.tip-link p { margin: 0; color: var(--ink-soft); }

.symbol-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; }
.symbol-row .sym { width: 3rem; height: 3rem; }

/* AI disclosure: visible, plain, never hidden in small print */
.ai-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--label);
  border: 1px solid var(--sage);
  border-left: 4px solid var(--butter);
  padding: 1rem 1.25rem;
  max-width: 40rem;
}
.ai-note p { margin: 0; font-size: 0.95rem; }
.ai-badge {
  font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.02em;
  background: var(--butter);
  color: var(--ink);
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---------- newsletter ---------- */
.signup { max-width: 34rem; }
.signup-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 15rem;
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--sage);
  background: var(--label);
  color: var(--ink);
}
.signup input[type="email"]:focus-visible { border-color: var(--butter); }
.section-dark .btn-primary { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.section-dark .btn-primary:hover { background: var(--label); border-color: var(--label); }
.signup .fine { font-size: 0.85rem; margin-top: 0.85rem; }
.section-dark .signup .fine { color: var(--sage); }
.signup-status { min-height: 1.5em; margin-top: 0.75rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- article / long text pages ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.page-head p { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.prose { padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--olive);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
}
.meta { font-size: var(--step--1); color: var(--ink-soft); }

.rule-list { list-style: none; padding: 0; counter-reset: rule; }
.rule-list li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.rule-list li::before {
  content: counter(rule);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--olive);
  border: 1.5px dashed var(--stitch);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
}
.rule-list h3 { margin: 0.15rem 0 0.3rem; }

.coming {
  border: 1.5px dashed var(--stitch);
  padding: 1.25rem 1.5rem;
  max-width: var(--measure);
  background: var(--label);
}
.coming p:last-child { margin-bottom: 0; }

/* ---------- care-label decoder ---------- */
.decoder {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.decoder-groups h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.decoder-groups h2:first-child { margin-top: 0; }
.sym-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sym-btn {
  background: var(--label);
  border: 1.5px solid var(--sage);
  border-radius: 6px;
  padding: 0.55rem;
  cursor: pointer;
  color: var(--olive-deep);
}
.sym-btn .sym { width: 2.8rem; height: 2.8rem; display: block; }
.sym-btn:hover { border-color: var(--olive); }
.sym-btn[aria-pressed="true"] { background: var(--butter); border-color: var(--olive-deep); }
.decoder-answer {
  position: sticky;
  top: 1.5rem;
  background: var(--label);
  border-radius: var(--radius-label);
  outline: 1.5px dashed var(--stitch);
  outline-offset: -9px;
  padding: 1.75rem 1.5rem;
  min-height: 14rem;
}
.decoder-answer .sym { display: block; width: 4rem; height: 4rem; margin-bottom: 1rem; }
.decoder-answer h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.decoder-answer .mom-says { font-family: var(--serif); font-size: 1.1rem; margin-top: 0.75rem; }
@media (max-width: 760px) {
  .decoder { grid-template-columns: 1fr; }
  .decoder-answer { position: static; order: -1; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--sage); padding-block: 2.5rem; font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h2 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer .small { color: var(--ink-soft); font-size: 0.85rem; margin-top: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
