/* hello paint · hellopaintart.com
   Colours, type and spacing are the live brand book's, not new ones:
   hellopaint.megan-warren.com/brand-book. Cream leads, plum ink carries the
   words, one bright at a time. No orange, no terracotta, no gradients on marks.
   ------------------------------------------------------------------------- */

:root {
  --paper: #FBF4E8;
  --card: #FFFDF8;
  --ink: #312B3D;
  --muted: #5E5566;
  --line: #EADCC6;
  --berry: #E64C81;
  --deepberry: #B83A66;
  --teal: #15A39A;
  --deepteal: #0F756D;
  --sun: #F6C744;
  --leaf: #5BA86B;
  --deepleaf: #3F7E4F;
  --sky: #BFE6F2;
  --blush: #FBD0DD;
  --sky-tint: #EAF6FB;
  --berry-tint: #FBE0EA;
  --teal-tint: #E1F2F0;

  --wrap: 1120px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --pad-y: clamp(3.25rem, 7vw, 6rem);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(49, 43, 61, .05), 0 10px 28px -14px rgba(49, 43, 61, .28);
  --shadow-lift: 0 2px 4px rgba(49, 43, 61, .06), 0 22px 44px -18px rgba(49, 43, 61, .34);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito Sans', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

/* ---------- type ---------- */
h1, h2, h3, .fr {
  font-family: Fraunces, Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 58ch; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

a { color: var(--deepteal); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--ink); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--deepteal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top .15s var(--ease);
}
.skip:focus { top: 8px; color: var(--paper); }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, 1300px); margin-inline: auto; }
section { padding-block: var(--pad-y); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; }

.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink .lede, .band-ink .muted { color: #D8CFDE; }
.band-ink a { color: var(--sky); }
.band-ink a:hover { color: #fff; }
.band-sky { background: var(--sky-tint); }
.band-card { background: var(--card); }

/* the brand palette as a section rule; kit colours stay on product strips */
.swatchbar { display: flex; height: 7px; width: 100%; }
.swatchbar span { flex: 1 1 auto; }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 244, 232, .93);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.band-ink + .masthead, .masthead.on-ink { background: var(--ink); }
.masthead .bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px; padding-block: .5rem;
}
.wordmark {
  font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em;
  text-decoration: none; color: var(--ink); display: inline-flex; gap: .3em;
  padding: .4rem .1rem;
}
.wordmark b { color: var(--berry); font-weight: 800; }
.wordmark:hover { color: var(--ink); }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .7rem .7rem; border-radius: 999px; display: inline-block;
}
.mainnav a:hover { background: var(--berry-tint); color: var(--deepberry); }
.mainnav a[aria-current='page'] {
  color: var(--deepberry);
  text-decoration: underline;
  text-decoration-color: var(--berry);
  text-decoration-thickness: 3px;
  text-underline-offset: .35em;
}
.navtoggle { display: none; }

@media (max-width: 860px) {
  .navtoggle {
    display: inline-flex; align-items: center; gap: .45rem; margin-left: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 999px;
    padding: .55rem 1rem; font-weight: 700; cursor: pointer; min-height: 44px;
  }
  .mainnav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem;
    gap: 0;
  }
  .mainnav a { padding: .85rem .4rem; border-radius: 10px; }
  .masthead[data-open='true'] .mainnav { display: flex; }
  .mainnav .btn { margin-top: .6rem; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--deepberry); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  box-shadow: 0 10px 22px -14px rgba(184, 58, 102, .9);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(184, 58, 102, .95); }
.btn:active { transform: translateY(0); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); box-shadow: none; }
.band-ink .btn-ghost { --btn-fg: var(--paper); border-color: var(--paper); }
.band-ink .btn-ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn-sun { --btn-bg: var(--sun); --btn-fg: var(--ink); box-shadow: 0 10px 22px -14px rgba(49, 43, 61, .8); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btns { justify-content: center; }

.textlink { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 1px; }
.textlink:hover { border-color: var(--ink); }

/* ---------- eyebrow + number tiles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: .82rem; letter-spacing: .1em;
  color: var(--deepberry); margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 2px; background: var(--berry); }
.eyebrow-teal { color: var(--deepteal); }
.eyebrow-teal::before { background: var(--teal); }
.band-ink .eyebrow { color: var(--sun); }
.band-ink .eyebrow::before { background: var(--sun); }

.tile {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--sun); color: var(--ink);
  font-weight: 800; font-size: 1.15rem; line-height: 1;
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(2rem, 4vw, 3rem); }
.hero-grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3.25rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); } }
.hero h1 { margin-bottom: .9rem; }
.hero .lede { margin-bottom: 1.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; }
.hero-points li { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: ''; width: 11px; height: 11px; border-radius: 999px; background: var(--teal);
}
.hero-points li:nth-child(2)::before { background: var(--sun); }
.hero-points li:nth-child(3)::before { background: var(--leaf); }

/* ---------- the reveal (photo <> painting) ---------- */
.reveal { position: relative; }
.reveal-frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.reveal-frame img { width: 100%; display: block; }
.reveal-frame .top {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
}
.reveal-frame .top img { height: 100%; object-fit: cover; }
.reveal-seam {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 3px; background: var(--paper); transform: translateX(-1.5px);
  pointer-events: none; box-shadow: 0 0 0 1px rgba(49, 43, 61, .18);
}
.reveal-knob {
  position: absolute; top: 50%; left: var(--split, 50%);
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 999px;
  background: var(--paper); border: 3px solid var(--ink);
  display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 6px 16px rgba(49, 43, 61, .3);
  font-weight: 800; color: var(--ink); letter-spacing: -.06em;
}
.reveal input[type='range'] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; appearance: none; background: none;
}
.reveal input[type='range']:focus-visible ~ .reveal-knob {
  outline: 3px solid var(--deepteal); outline-offset: 3px;
}
.reveal-tags {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .85rem; font-weight: 800; font-size: .88rem;
}
.reveal-tags .l { color: var(--muted); }
.reveal-tags .r { color: var(--deepberry); }

/* ---------- three states ---------- */
.states { display: grid; gap: 1rem; }
.seg {
  display: inline-flex; padding: 5px; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.seg label {
  position: relative; border-radius: 999px; cursor: pointer;
  padding: .6rem 1.1rem; font-weight: 800; font-size: .93rem; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center;
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg input:checked + span { color: var(--paper); }
.seg label span { position: relative; z-index: 1; }
.seg label:has(input:checked) { background: var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--deepteal); outline-offset: 2px; }
.states-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.states-frame img { width: 100%; }
.states-frame img + img { position: absolute; inset: 0; height: 100%; object-fit: contain; background: var(--card); }
.states-frame img { opacity: 0; transition: opacity .32s var(--ease); }
.states-frame img.is-on { opacity: 1; }
.states-cap { font-size: .93rem; color: var(--muted); min-height: 2.9em; }

/* ---------- cards + grids ---------- */
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}
.band-ink .card { background: #3C3549; border-color: #4C4459; }

.step { display: flex; gap: 1rem; align-items: flex-start; }
.step h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- kit shelf ---------- */
.shelf-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: 1.75rem; }
.shelf-head .seg { margin-left: auto; }

.kit {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.kit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.kit-art { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--paper); }
.kit-art img { width: 100%; height: 100%; object-fit: cover; }
.kit-evening {
  position: absolute; left: .8rem; top: .8rem; z-index: 1;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .75rem; font-weight: 800; font-size: .78rem;
}
.kit-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.kit-body h3 { font-size: 1.3rem; }
.kit-body p { font-size: .95rem; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: .4rem; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: .28rem .6rem; font-size: .82rem; font-weight: 700;
}
.stat b { font-weight: 800; }
.palette { display: flex; border-radius: 6px; overflow: hidden; height: 15px; border: 1px solid var(--line); }
.palette span { flex: 1 1 auto; }
.kit-foot { margin-top: auto; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 1.06rem; }
.price small { font-weight: 700; color: var(--muted); font-size: .8rem; display: block; line-height: 1.2; }

/* lane switching: both lanes ship in the HTML so no-JS shows both */
.lane-row { display: contents; }
[data-lane='paper'] .only-ipad, [data-lane='ipad'] .only-paper { display: none; }

/* ---------- honest bit ---------- */
.honest {
  background: var(--sky-tint); border: 1px solid #C9E5F0; border-left: 6px solid var(--teal);
  border-radius: var(--r); padding: clamp(1.25rem, 2.6vw, 1.9rem);
}
.honest h3 { margin-bottom: .5rem; }

/* ---------- compare table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: .96rem; }
.compare caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: .75rem; }
.compare th, .compare td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 800; font-size: .85rem; letter-spacing: .04em; }
.compare thead th:nth-child(2) { color: var(--deepberry); }
.compare tbody th { font-weight: 700; }
.compare td.yes { font-weight: 700; }
.compare-scroll { overflow-x: auto; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem .25rem; min-height: 44px;
  font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; margin-left: auto; font-size: 1.5rem; line-height: 1;
  color: var(--deepteal); font-weight: 700; transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 .25rem 1.3rem; color: var(--muted); max-width: 68ch; }

/* ---------- form ---------- */
.formcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3.2vw, 2.5rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-weight: 800; margin-bottom: .3rem; }
.field .hint { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: .75rem .9rem; min-height: 50px; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #DCC9AC; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--deepteal); outline: 3px solid rgba(15, 117, 109, .25); outline-offset: 0;
}
.field [aria-invalid='true'] { border-color: var(--deepberry); }
.field .err { color: var(--deepberry); font-weight: 700; font-size: .9rem; margin-top: .35rem; }
.req { color: var(--deepberry); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .85rem; font-size: .9rem; font-weight: 700; cursor: pointer; min-height: 40px;
}
.chip:hover { background: var(--berry-tint); border-color: var(--blush); color: var(--deepberry); }
.formnote { font-size: .9rem; color: var(--muted); }
.formstatus { margin-top: 1rem; font-weight: 700; }
.formstatus[data-state='ok'] { color: var(--deepleaf); }
.formstatus[data-state='err'] { color: var(--deepberry); }
.thanks {
  background: var(--teal-tint); border: 1px solid #BFE0DC; border-left: 6px solid var(--teal);
  border-radius: var(--r); padding: 1.5rem;
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #D8CFDE; padding-block: clamp(2.75rem, 5vw, 4rem) 2.25rem; }
.foot a { color: var(--sky); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
/* the footer columns are page-level headings, so they are h2 for a screen
   reader and only look small */
.foot .foot-h {
  font-family: 'Nunito Sans', 'Trebuchet MS', system-ui, sans-serif;
  font-weight: 800; color: var(--paper); margin-bottom: .7rem;
  font-size: .95rem; letter-spacing: .04em; line-height: 1.4;
}
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.foot li + li { margin-top: .2rem; }
/* every footer link clears the 24 x 24 minimum target on a phone */
.foot li a, .foot-base a, .crumbs a, .crumbs span { display: inline-block; padding-block: .18rem; }
.foot-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #4C4459;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .88rem;
}
.foot-wordmark { font-weight: 800; font-size: 1.32rem; color: var(--paper); letter-spacing: -.03em; }
.foot-wordmark b { color: var(--berry); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 1.4rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--line); }
.crumbs a { text-decoration: none; font-weight: 700; }

/* ---------- reveal on scroll ----------
   Scroll-driven, done by the browser, with no javascript anywhere near it. A
   browser that does not support animation-timeline simply shows the content,
   and so does one with javascript off: a section that only appears once a
   script fires is a section that can go missing. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- print ---------- */
@media print {
  .masthead, .foot, .btn, .seg { display: none; }
  body { background: #fff; }
}
