/* ==================================================================
   ihurtyourfeelings.com
   1. Fonts
   2. Tokens
   3. Base
   4. Layout
   5. Header + navigation
   6. Buttons + badges
   7. Hero
   8. Triage list ("What happened?")
   9. Product cards + grids
   10. Product page
   11. Editorial + bands
   12. Forms
   13. FAQ + prose pages
   14. Footer
   15. Utilities + motion
   ================================================================== */

/* 1. FONTS ------------------------------------------------------- */
/* Lora — SIL Open Font License 1.1. Self-hosted, subset to Latin.
   To swap in a different display face, replace these two files and
   update --font-serif below. Nothing else references the font name. */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-var.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Italic-var.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* 2. TOKENS ------------------------------------------------------ */

:root {
  /* Colour */
  --paper:      #FBF9F6;
  --paper-2:    #F4F0EA;
  --paper-3:    #EDE7DE;
  --ink:        #16171A;
  --ink-2:      #55575C;
  --ink-3:      #7C7E84;
  --line:       #E1DAD1;
  --line-soft:  #EDE8E1;
  --rose:       #8A5560;
  --rose-mid:   #B4868C;
  --rose-wash:  #F3E9E8;

  /* Type */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --t-hero:    clamp(2.75rem, 8.5vw, 6.25rem);
  --t-display: clamp(2rem, 5vw, 3.5rem);
  --t-title:   clamp(1.5rem, 2.8vw, 2.125rem);
  --t-sub:     clamp(1.125rem, 2vw, 1.5rem);
  --t-lead:    clamp(1.0625rem, 1.4vw, 1.1875rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-label:   0.72rem;

  /* Space */
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --wrap:      74rem;
  --wrap-text: 42rem;
  --section:   clamp(4rem, 9vw, 7.5rem);

  --radius: 2px;
  --speed: 220ms;
  --ease: cubic-bezier(.2, .6, .3, 1);
}

/* 3. BASE -------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--rose-wash); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: .875rem 1.25rem;
  font-size: var(--t-small);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* 4. LAYOUT ------------------------------------------------------ */

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

.wrap--text { max-width: calc(var(--wrap-text) + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tinted { background: var(--paper-2); }
.section + .section--flush { padding-top: 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.75rem;
  display: block;
}

.lede {
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 34rem;
}

.refrain {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rose);
  font-size: var(--t-sub);
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { font-size: var(--t-display); }
.section-head .link-quiet { flex-shrink: 0; }

.link-quiet {
  font-family: var(--font-sans);
  font-size: var(--t-small);
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.link-quiet:hover { color: var(--ink); border-color: var(--rose); }

/* 5. HEADER + NAVIGATION ----------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: clamp(.8125rem, 2.4vw, .9375rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  padding-block: .5rem;
}
.wordmark__text { display: inline-block; }

/* Narrow screens: the wordmark stacks rather than crowding the cart. */
@media (max-width: 30rem) {
  .wordmark {
    font-size: .75rem;
    letter-spacing: .13em;
    line-height: 1.25;
  }
  .wordmark__text {
    white-space: normal;
    max-width: 8.5em;
  }
  .site-header__inner { gap: .75rem; }
  .cart-toggle, .menu-toggle { padding-inline: .375rem; }
}

.nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav a {
  text-decoration: none;
  font-size: var(--t-small);
  color: var(--ink-2);
  padding-block: .5rem;
  border-bottom: 1px solid transparent;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rose); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav--desktop { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.cart-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .625rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: var(--t-small);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.cart-toggle:hover, .menu-toggle:hover { color: var(--ink); }

.cart-count {
  font-family: var(--font-sans);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.cart-count::before { content: '('; }
.cart-count::after { content: ')'; }

.menu-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}
.menu-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--speed) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3px) rotate(9deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child  { transform: translateY(-3px) rotate(-9deg); }

.cart-toggle__label,
.menu-toggle__label {
  letter-spacing: .06em;
}
/* At 320px the header gets tight; the bars icon carries the meaning on its own. */
@media (max-width: 22.5rem) {
  .menu-toggle__label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.nav--mobile {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav--mobile ul {
  display: block;
  padding: .5rem var(--gutter) 1.5rem;
}
.nav--mobile li + li { border-top: 1px solid var(--line-soft); }
.nav--mobile a {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--ink);
  padding: .875rem 0;
  border: 0;
}
.nav--mobile a:hover { border: 0; color: var(--rose); }

@media (min-width: 60rem) {
  .nav--desktop { display: block; }
  .menu-toggle { display: none; }
  .nav--mobile { display: none !important; }
  .site-header__inner { min-height: 5.5rem; }
}

/* Cart panel (prototype + Buy Button modes) */
.cart-panel {
  position: fixed;
  inset-block-start: 4.75rem;
  inset-inline-end: var(--gutter);
  z-index: 50;
  width: min(20rem, calc(100vw - var(--gutter) * 2));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(22, 23, 26, .35);
}
.cart-panel__inner { padding: 1.75rem; text-align: left; }
.cart-panel__empty {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: .25rem;
}
.cart-panel__sub { color: var(--ink-2); font-size: var(--t-small); margin-bottom: 1.25rem; }
.cart-panel__note { color: var(--ink-3); font-size: .8125rem; margin-bottom: 1.25rem; }

/* 6. BUTTONS + BADGES -------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .8125rem 1.5rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--rose); border-color: var(--rose); color: var(--paper); }

.btn--quiet { border-color: var(--line); color: var(--ink-2); }
.btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--block { display: flex; width: 100%; }

.btn--text {
  border: 0;
  padding-inline: 0;
  min-height: 0;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.btn--text:hover { background: transparent; color: var(--rose); border-bottom-color: var(--rose); }

.btn.is-unavailable {
  border-style: dashed;
  border-color: var(--line);
  color: var(--ink-3);
  cursor: default;
  flex-direction: column;
  gap: .15rem;
  padding-block: .625rem;
}
.btn.is-unavailable:hover { background: transparent; color: var(--ink-3); }
.btn__note {
  font-size: .625rem;
  letter-spacing: .16em;
  color: var(--rose-mid);
}

/* The one button joke: hover swaps the label. Used only on buy buttons. */
.btn[data-hover-label] .btn__label { transition: opacity var(--speed) var(--ease); }
.btn[data-hover-label]::after {
  content: attr(data-hover-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}
.btn[data-hover-label]:hover .btn__label,
.btn[data-hover-label]:focus-visible .btn__label { opacity: 0; }
.btn[data-hover-label]:hover::after,
.btn[data-hover-label]:focus-visible::after { opacity: 1; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.badge {
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: .25rem .5rem;
  border-radius: var(--radius);
}
.badge--most-needed,
.badge--for-immediate-use,
.badge--severe {
  color: var(--rose);
  border-color: var(--rose-wash);
  background: var(--rose-wash);
}

.store-note {
  font-size: .8125rem;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  margin-top: 1.25rem;
  max-width: 28rem;
}

/* 7. HERO -------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: var(--t-hero);
  line-height: .96;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: italic;
  color: var(--rose);
}

.hero__lede {
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 26rem;
  margin-bottom: 2.25rem;
}

.hero__figure { margin: 0; }
.hero__media {
  position: relative;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__caption {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .875rem;
}

@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

/* 8. TRIAGE LIST — the signature element -------------------------- */

.triage { border-top: 1px solid var(--line); }

.triage__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label label"
    "meta  action";
  gap: .5rem 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  isolation: isolate;
}
.triage__row::before {
  content: '';
  position: absolute;
  inset: 0 -1.25rem;
  background: var(--rose-wash);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease);
  z-index: -1;
}
.triage__row:hover::before,
.triage__row:focus-visible::before { transform: scaleX(1); }

.triage__label {
  grid-area: label;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3.6vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.triage__severity {
  grid-area: meta;
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  align-self: center;
}
.triage__action {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--t-small);
  color: var(--ink-2);
  white-space: nowrap;
}
.triage__action .arrow {
  display: inline-block;
  transition: transform 320ms var(--ease);
}
.triage__row:hover .triage__action,
.triage__row:focus-visible .triage__action { color: var(--ink); }
.triage__row:hover .arrow,
.triage__row:focus-visible .arrow { transform: translateX(4px); }

@media (min-width: 48rem) {
  .triage__row {
    grid-template-columns: minmax(0, 1fr) 12rem 12rem;
    grid-template-areas: "label meta action";
    padding: 1.75rem 0;
  }
  .triage__severity { justify-self: start; }
  .triage__action { justify-self: end; }
}

.triage__row.is-current::before { transform: scaleX(1); }
.triage__row.is-current .triage__severity { color: var(--ink); }

/* 9. PRODUCT CARDS + GRIDS ---------------------------------------- */

.grid-products {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
@media (max-width: 26rem) {
  .grid-products { grid-template-columns: 1fr; }
}

.card { display: flex; flex-direction: column; }

.card__media {
  display: block;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.125rem;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.card:hover .card__media img { transform: scale(1.02); }

.card__body { flex: 1 1 auto; margin-bottom: 1.125rem; }

.card__title {
  font-size: 1.3125rem;
  margin-bottom: .375rem;
}
.card__title a {
  text-decoration: none;
  background-image: linear-gradient(var(--rose), var(--rose));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left 100%;
  transition: background-size 300ms var(--ease);
}
.card__title a:hover { background-size: 100% 1px; }

.card__subtitle {
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.5;
  margin-bottom: .625rem;
}
.card__price { font-size: var(--t-small); color: var(--ink); margin: 0; }

.card__action { margin-top: auto; }

/* 10. PRODUCT PAGE ------------------------------------------------ */

.breadcrumbs { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumbs li { font-size: .8125rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rose); }

.product { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.product__gallery { min-width: 0; }

.product__media { background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }

.product__thumbs { display: flex; gap: .75rem; margin-top: .75rem; }
.product__thumb {
  width: 4.5rem;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.product__thumb[aria-current="true"] { border-color: var(--ink); }

.product__title { font-size: var(--t-display); margin-bottom: .75rem; }
.product__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--t-sub);
  color: var(--rose);
  margin-bottom: 1.5rem;
}
.product__price { font-size: 1.125rem; margin-bottom: 2rem; }

.field-block { margin-bottom: 1.5rem; }
.field-label {
  display: block;
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .625rem;
}

.variants { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant {
  border: 1px solid var(--line);
  background: transparent;
  padding: .625rem 1rem;
  min-height: 44px;
  font-size: var(--t-small);
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.variant:hover { border-color: var(--ink-3); }
.variant[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-2); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button {
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--ink-2);
}
.qty button:hover { color: var(--ink); }
.qty input {
  width: 3rem;
  height: 44px;
  text-align: center;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: var(--t-small);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Container the Shopify Buy Button SDK mounts into. Reserve height so the page
   does not jump when the component arrives, and keep the fallback unobtrusive. */
.buy-mount { min-height: 52px; }
.buy-mount__fallback {
  display: inline-block;
  padding: .875rem 0;
  font-size: var(--t-small);
  color: var(--ink-3);
}
.buy-mount .shopify-buy__btn { font-family: var(--font-sans) !important; }

.shipping-note {
  font-size: .8125rem;
  color: var(--ink-3);
  margin-top: 1rem;
}

.product__body { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.product__body p { color: var(--ink-2); }

.spec-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 30rem) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
.spec h3 {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .875rem;
}
.spec li {
  font-size: var(--t-small);
  color: var(--ink-2);
  padding: .375rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec--details li { color: var(--ink-2); }

@media (min-width: 60rem) {
  .product { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .product__info { position: sticky; top: 7.5rem; }
}

/* 11. EDITORIAL + BANDS ------------------------------------------- */

.editorial {
  text-align: center;
  padding-block: clamp(5rem, 14vw, 10rem);
}
.editorial__statement {
  font-size: var(--t-display);
  line-height: 1.1;
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.editorial__sub { color: var(--ink-2); margin-bottom: 2rem; }

.band { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band__media { background: var(--paper-3); aspect-ratio: 5 / 4; overflow: hidden; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__title { font-size: var(--t-display); margin-bottom: 1.25rem; }
.band__text { color: var(--ink-2); margin-bottom: 2rem; max-width: 30rem; }

@media (min-width: 55rem) {
  .band { grid-template-columns: 1fr 1fr; }
  .band--reverse .band__media { order: 2; }
}

.note-list { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .note-list { grid-template-columns: repeat(3, 1fr); } }
.note-list h3 {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .5rem;
}
.note-list p { font-size: var(--t-small); color: var(--ink-2); }

/* 12. FORMS ------------------------------------------------------- */

.form { max-width: 34rem; }
.form__row { margin-bottom: 1.75rem; }

.form label {
  display: block;
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .5rem;
}

.form input[type="text"],
.form input[type="email"],
.form textarea,
.form select {
  width: 100%;
  font: inherit;
  font-size: var(--t-body);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8125rem .875rem;
  min-height: 46px;
  transition: border-color var(--speed) var(--ease);
}
.form textarea { min-height: 10rem; resize: vertical; line-height: 1.6; }
.form input:hover, .form textarea:hover { border-color: var(--ink-3); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); }

.form .hint { font-size: .8125rem; color: var(--ink-3); margin-top: .5rem; }

.field-error {
  display: block;
  font-size: .8125rem;
  color: var(--rose);
  margin-top: .5rem;
  letter-spacing: 0;
  text-transform: none;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--rose); }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border: 1px solid var(--line);
  border-left: 2px solid var(--rose);
  background: var(--paper-2);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.alert h2 { font-size: 1.25rem; margin-bottom: .375rem; }
.alert p { font-size: var(--t-small); color: var(--ink-2); }

/* Gift form preview (Send Comfort) */
.gift-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.gift-form .form { max-width: none; }
.gift-form .form__row:last-child { margin-bottom: 0; }
.gift-form input:disabled,
.gift-form select:disabled {
  color: var(--ink-3);
  background: var(--paper-2);
  cursor: not-allowed;
}

/* Newsletter */
.signup { max-width: 32rem; }
.signup h2 { font-size: var(--t-display); margin-bottom: .75rem; }
.signup__form { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.signup__form input[type="email"] {
  flex: 1 1 12rem;
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .75rem .25rem;
  min-height: 46px;
  border-radius: 0;
}
.signup__form input[type="email"]:focus { border-bottom-color: var(--ink); }
.signup__status { font-size: var(--t-small); color: var(--rose); margin-top: 1rem; }

/* 13. FAQ + PROSE ------------------------------------------------- */

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: var(--t-display); margin-bottom: 1rem; }
.page-head .lede { font-size: var(--t-lead); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.375rem 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.3;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--rose);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '\2013'; }
.faq summary:hover { color: var(--rose); }
.faq .faq__answer {
  padding-bottom: 1.5rem;
  color: var(--ink-2);
  max-width: 42rem;
  font-size: var(--t-small);
}

.prose { max-width: var(--wrap-text); }
.prose h2 {
  font-size: var(--t-title);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { list-style: disc; margin-bottom: .5rem; }
.prose ol li { list-style: decimal; }

.prose-list { padding-left: 1.5rem; }
.prose-list li { list-style: decimal; margin-bottom: .75rem; padding-left: .25rem; }
.prose-list li::marker { color: var(--rose); font-size: .875em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rose-mid); }
.prose .updated { font-size: .8125rem; color: var(--ink-3); }

.owner-note {
  border: 1px dashed var(--rose-mid);
  background: var(--rose-wash);
  color: var(--ink);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: var(--t-small);
}
.owner-note strong { letter-spacing: .04em; }

/* Statement pages (about, 404) */
.statement {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}
.statement h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -0.03em; margin-bottom: 2rem; }
.statement p { font-size: var(--t-lead); color: var(--ink-2); max-width: 32rem; }
.statement p + p { margin-top: 1rem; }

/* 14. FOOTER ------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .site-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.site-footer__brand { max-width: 22rem; }

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: .02em;
  margin-bottom: 1rem;
}
.footer-tagline { font-size: var(--t-small); color: var(--ink-3); max-width: 20rem; }

.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 1rem;
}
.site-footer__nav li { margin-bottom: .5rem; }
.site-footer__nav a {
  font-size: var(--t-small);
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer__nav a:hover { color: var(--ink); border-bottom-color: var(--rose); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.footer-refrain {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: var(--t-small);
}
.footer-legal { font-size: .8125rem; color: var(--ink-3); }

/* 15. UTILITIES + MOTION ------------------------------------------ */

.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;
}

[hidden] { display: none !important; }

.stack > * + * { margin-top: 1rem; }
.mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .triage__row::before { transform: scaleX(1); opacity: 0; }
  .triage__row:hover::before,
  .triage__row:focus-visible::before { opacity: 1; }
  .card:hover .card__media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .cart-panel, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
