/* Becoming product pages. María's palette from the app (Design.swift); New York on Apple devices, like the app. */
:root {
  --paper: #FAF5ED; --ink: #342B28; --ink-2: #5E534D; --forest: #404F3D; --forest-2: #56654F;
  --sage: #E5E7DA; --rose: #EADCE0; --sand: #EFE4D7; --butter: #F4EAC6; --plum: #6B4D66;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 36rem; --gutter: clamp(1.25rem, 5vw, 4rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); font-weight: 600; text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--forest); color: var(--paper); padding: .5rem 1rem; z-index: 2; }

/* Wordmark: the app's lowercase serif with a full stop. */
.wordmark { font: 400 1.9rem/1 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.wordmark span { color: var(--forest); }
.wordmark.small { font-size: 1.5rem; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem var(--gutter); max-width: 76rem; margin: 0 auto; }
.bar nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 1.75rem); font-size: .975rem; }
.bar nav a { color: var(--ink-2); }
.bar nav a[aria-current="page"] { color: var(--ink); }
.bar nav .signin { color: var(--forest); background: var(--sage); padding: .55rem 1rem; border-radius: 999px; }

main > section { max-width: 76rem; margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 14px; border: 1.5px solid var(--forest); color: var(--forest); font-weight: 600; }
.button.primary { background: var(--forest); color: var(--paper); }
.button.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* Not a link: a status, so it doesn't look tappable. */
.status { display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.2rem; border-radius: 14px;
  background: var(--sage); color: var(--forest); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.note { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; }
.lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 33rem; color: var(--ink-2); }

/* Hero: the headline beside a working version of Today's coaching card. */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.main > .hero, main > .hero { padding-top: clamp(2rem, 6vw, 5rem); }
.coach { margin: 0; }
.coach-card { background: var(--forest); color: var(--paper); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.coach-kicker { font-size: .95rem; color: #D9DDCF; }
.coach-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--forest-2); border-radius: 999px; padding: 5px; margin-top: 1rem; }
.coach-tabs button { font: 600 1rem var(--sans); color: var(--paper); background: none; border: 0; border-radius: 999px; min-height: 44px; cursor: pointer; }
.coach-tabs button[aria-selected="true"] { background: var(--butter); color: var(--forest); }
.coach-tip { font: 400 clamp(1.45rem, 2.6vw, 1.9rem)/1.3 var(--serif); margin-top: 1.5rem; min-height: 5.2em; }
.coach-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.coach-actions span { text-align: center; padding: .8rem; border-radius: 14px; border: 1.5px solid #8A9586; font-weight: 600; }
.coach-actions .do { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.coach figcaption { margin-top: .9rem; font-size: .9rem; color: var(--ink-2); max-width: 30rem; }
/* Line art proposal (spec/design.md, 2 December 2026): decorative, drawn in forest through a mask of the traced SVG. */
.hero-art { grid-column: 1 / -1; justify-self: center; width: min(100%, 46rem); aspect-ratio: 3295 / 1398; background: var(--forest);
  -webkit-mask: url("line-hero.4e09d7da6345.svg") center / contain no-repeat; mask: url("line-hero.4e09d7da6345.svg") center / contain no-repeat; }

.why h2 { max-width: 20ch; }
.prose { max-width: var(--measure); margin-top: 1.5rem; display: grid; gap: 1rem; font-size: 1.125rem; }
@media (min-width: 60rem) {
  .why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
  .why .prose { margin-top: .4rem; }
}

.chips { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; max-width: 52rem; }
.chips li { background: var(--sage); border-radius: 999px; padding: .5rem 1.05rem; font-weight: 500; }
.chips li:nth-child(3n+2) { background: var(--rose); }
.chips li:nth-child(3n) { background: var(--sand); }
.seasons > p { margin-top: 1.5rem; max-width: var(--measure); color: var(--ink-2); }

/* A real sequence, so the steps are numbered. */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: step; }
.steps li { counter-increment: step; }
.steps img, .phone img, .gallery img { border-radius: 26px; border: 1px solid #E2D8CB; background: var(--sand); }
.steps h3 { margin-top: 1.25rem; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: .55rem;
  border-radius: 50%; background: var(--forest); color: var(--paper); font: 600 .9rem/1 var(--sans); vertical-align: .15em; }
.steps p { margin-top: .5rem; color: var(--ink-2); }

.privacy .columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.privacy .columns > div { background: var(--sage); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2rem); }
.privacy .columns > div + div { background: var(--rose); }
.privacy ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.small { margin-top: 1.25rem; font-size: .95rem; color: var(--ink-2); max-width: 44rem; }

.beta { text-align: left; }
.beta > p { margin-top: 1rem; max-width: var(--measure); font-size: 1.125rem; }

/* Product pages */
.hero.product { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.page-web .hero.product { grid-template-columns: minmax(0, 1fr); }
.phone { margin: 0; max-width: 20rem; justify-self: center; }
.features { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2rem 2.5rem; }
.features dt { font: 400 1.3rem/1.25 var(--serif); }
.features dd { margin: .4rem 0 0; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: .8rem; color: var(--ink-2); }

.foot { max-width: 76rem; margin: clamp(4rem, 10vw, 8rem) auto 0; padding: 2rem var(--gutter) 3rem; border-top: 1px solid #E2D8CB;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: .95rem; color: var(--ink-2); }
.foot p { margin-top: .5rem; max-width: 26rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-content: start; }

@media (max-width: 60rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .hero, .hero.product { grid-template-columns: 1fr; }
  .privacy .columns { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { display: none; }
  .bar nav a:not(.signin):not(.keep) { display: none; }
}
@media (max-width: 30rem) {
  .steps { grid-template-columns: 1fr; }
  .steps img { max-width: 16rem; }
}

/* Blog */
.blog-head h1 { max-width: 18ch; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.75rem; max-width: 44rem; }
.post-list h2, .post-list h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: .35rem; }
.post-list h2 a, .post-list h3 a { color: var(--ink); font-weight: 400; }
.post-list h2 a:hover, .post-list h3 a:hover { color: var(--forest); }
.post-list p { margin-top: .5rem; color: var(--ink-2); max-width: var(--measure); }
.meta { font-size: .92rem; color: var(--ink-2); }
.posts { padding-top: 3rem; }
.posts.more { padding-top: 5rem; }
.posts.more > h2 { margin-bottom: 2rem; }
.post { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 0; }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: .75rem; }
.post .lede { max-width: none; }
.post header .meta:last-child { margin-top: 1.25rem; }
.post-body { margin-top: 2.5rem; font: 1.16rem/1.75 var(--serif); }
.post-body p { margin-top: 1.1rem; }
.post-body h2 { font-size: 1.75rem; margin-top: 2.75rem; }
.post-body ul { padding-left: 1.2rem; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.post-body strong { font-weight: 600; }
.evidence { margin-top: .6rem !important; }
.strength { display: inline-block; font: 600 .85rem/1 var(--sans); padding: .4rem .7rem; border-radius: 999px; }
.strength.strong { background: var(--sage); color: var(--forest); }
.strength.moderate { background: var(--butter); color: #5C4520; }
.strength.emerging { background: var(--rose); color: var(--plum); }
.step { margin-top: 3rem; background: var(--forest); color: var(--paper); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.25rem); }
.step h2 { font-size: 1.6rem; }
.step p { margin-top: .75rem; font: 1.15rem/1.6 var(--serif); }
.sources { margin-top: 3rem; font-size: .95rem; color: var(--ink-2); }
.sources h2, .try h2 { font-size: 1.4rem; color: var(--ink); }
.sources ol { padding-left: 1.2rem; display: grid; gap: .5rem; margin: 1rem 0; }
.sources a { font-weight: 500; }
.try { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid #E2D8CB; }
.try p { margin-top: .75rem; max-width: var(--measure); }

/* Making Room sign-up */
.newsletter > p { margin-top: .75rem; max-width: var(--measure); color: var(--ink-2); }
.newsletter form { display: grid; gap: .9rem; margin-top: 1.5rem; max-width: 30rem; }
.newsletter form[hidden] { display: none; }
.field-label { font-weight: 600; color: var(--ink); }
.field { font: inherit; color: var(--ink); background: #fff; width: 100%; min-height: 48px; padding: .7rem 1rem; margin-top: -.45rem;
  border: 1.5px solid #CFC4B6; border-radius: 14px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.consent input { flex: none; width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: var(--forest); }
.newsletter .button { justify-self: start; font: 600 1rem var(--sans); cursor: pointer; }
.newsletter .button:disabled { opacity: .6; cursor: progress; }
.fine { font-size: .9rem; color: var(--ink-2); }
.newsletter-status { margin-top: 1rem; max-width: 30rem; font-weight: 600; color: var(--plum); }
.newsletter-status:empty { display: none; }
.newsletter-status.thanks { color: var(--forest); background: var(--sage); padding: 1rem 1.25rem; border-radius: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.post ~ .newsletter { max-width: 44rem; }
.foot .newsletter { flex-basis: 100%; padding-bottom: 2.5rem; margin-bottom: .5rem; border-bottom: 1px solid #E2D8CB; }
.foot .newsletter > p { max-width: var(--measure); }
.foot .newsletter h2 { color: var(--ink); }
.foot .legal { font-size: .85rem; }
.newsletter-done { padding-top: clamp(2rem, 6vw, 5rem); }

/* Line art (spec/design.md, 2 December 2026): set A, inlined from life/site/art/ so the line follows the ink.
   Decorative and hidden from assistive tech. One fine line at every size. */
.art { color: var(--forest); }
.art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.art path { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }
.post-list .with-art { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.post-thumb { width: 8.5rem; aspect-ratio: 5 / 4; margin-top: .3rem; }
.blog-head ~ .posts .post-list { max-width: 50rem; }
.post-art { width: 10rem; aspect-ratio: 5 / 4; margin-bottom: 1.25rem; }
.step { position: relative; }
.step h2 { padding-right: 4rem; }
.step-art { position: absolute; top: 1.1rem; right: 1.4rem; width: 3.6rem; height: 3.6rem; color: var(--butter); }
.newsletter-art { width: 8.5rem; aspect-ratio: 5 / 4; margin-bottom: 1rem; }
@media (max-width: 36rem) {
  .post-list .with-art { grid-template-columns: 1fr; gap: .75rem; }
  .post-thumb { width: 6.5rem; }
}

/* Privacy, terms and support */
.legal { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 0; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 .4rem; }
.legal p, .legal li { margin: .6rem 0; }
.legal ul { padding-left: 1.2rem; }
