/* Zara and Mama — warm editorial + handmade scrapbook.
   Quiet interface; photography, the logo and a few drawn marks carry the personality. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nanum Pen Script';
  src: url('/fonts/nanum-pen.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --ivory: #faf7f2;
  --sand: #f1e9df;
  --paper: #fffdfc;
  --ink: #29231f;
  --ink-soft: #5d534c;
  --line: rgb(41 35 31 / 0.12);
  --line-strong: rgb(41 35 31 / 0.22);

  --coral: #d96a55;
  --coral-ink: #a54632; /* coral darkened for small text on ivory and sand (≥4.5:1) */
  --coral-deep: #b9533f; /* button fill: warm-white labels stay ≥4.5:1 */
  --mustard: #d8a93e;
  --mustard-ink: #7f5d16;
  --sage: #84947a;
  --sage-ink: #56634f;
  --rose: #d9a7a0;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Nanum Pen Script', 'Bradley Hand', 'Segoe Print', cursive;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 320ms;

  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background-color: var(--ivory);
  /* Faint paper grain: an SVG turbulence tile at very low alpha. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .13 0 0 0 0 .11 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
picture img {
  width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2.5px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: rgb(217 106 85 / 0.22);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  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;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ type roles */
.display {
  font-size: clamp(3.1rem, 1.6rem + 6vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 520;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.display .accent {
  position: relative;
  display: inline-block;
  color: var(--coral);
  font-style: italic;
  font-weight: 480;
  padding-right: 0.06em;
}
.display-2 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variation-settings: 'SOFT' 80, 'WONK' 0;
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--coral-ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lede {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(1.13rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
}
.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}
.meta,
.fine-print {
  color: var(--ink-soft);
  font-size: 0.84rem;
}
.ink-coral {
  color: var(--coral);
}
.ink-sage {
  color: var(--sage);
}
.ink-mustard {
  color: var(--mustard);
}
.ink-rose {
  color: var(--rose);
}

/* ------------------------------------------------------------------ links & buttons */
.arrow {
  flex: none;
  transition: transform var(--t) var(--ease);
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px 12px 24px;
  border: 1.5px solid var(--coral-deep);
  border-radius: 999px;
  background: var(--coral-deep);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.button:hover {
  background: var(--coral-ink);
  border-color: var(--coral-ink);
}
.button:hover .arrow,
.text-link:hover .arrow,
.cat-link:hover .arrow,
.post-card:hover .arrow,
.aside-story:hover .arrow,
.insta-card:hover .arrow {
  transform: translateX(4px);
}
.button-small {
  min-height: 42px;
  padding: 8px 16px 8px 18px;
  font-size: 0.92rem;
}
.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.button-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.button-ink:hover {
  background: #3d342e;
  border-color: #3d342e;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-ink);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--t) var(--ease);
}
.text-link:hover {
  background-size: 100% 1.5px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t) var(--ease);
}
.icon-button:hover {
  background: var(--sand);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-header.is-scrolled {
  background: rgb(250 247 242 / 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: auto;
  height: 58px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  white-space: nowrap;
}
.brand-name i {
  color: var(--coral-ink);
  font-weight: 450;
}
.primary-nav {
  display: flex;
  gap: 6px;
}
.primary-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.97rem;
  font-weight: 550;
  text-decoration: none;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current='page']::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-toggle {
  display: none;
}
.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.mobile-menu .wrap {
  display: grid;
  padding-block: 12px 28px;
}
.mobile-menu a:not(.button) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-decoration: none;
}
.mobile-menu a[aria-current='page'] {
  color: var(--coral-ink);
}
.mobile-menu .button {
  justify-self: start;
  margin-top: 24px;
}

/* ------------------------------------------------------------------ search */
.search-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(70vh, 640px);
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgb(41 35 31 / 0.35);
}
.search-dialog::backdrop {
  background: rgb(41 35 31 / 0.3);
}
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.search-form > svg {
  color: var(--ink-soft);
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  outline: none;
}
.search-hint {
  padding: 14px 20px 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.search-results {
  margin: 0;
  padding: 0 10px 12px;
  list-style: none;
}
.search-results a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.search-results a:hover,
.search-results a:focus-visible {
  background: var(--sand);
}
.search-results strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
}
.search-results span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------ scrapbook pieces */
.polaroid {
  position: relative;
  padding: 14px 14px 64px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgb(41 35 31 / 0.04), 0 18px 40px -26px rgb(41 35 31 / 0.45);
  transform: rotate(-2.2deg);
}
.polaroid picture,
.polaroid img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.polaroid figcaption {
  position: absolute;
  right: 22px;
  bottom: 14px;
  font-size: 2rem;
  color: var(--ink-soft);
  transform: rotate(-1.5deg);
}
.tape {
  position: absolute;
  z-index: 2;
  width: 118px;
  height: 32px;
  background: rgb(216 169 62 / 0.38);
  /* Ragged tape ends */
  clip-path: polygon(3% 8%, 0 30%, 4% 52%, 1% 78%, 4% 100%, 97% 94%, 100% 72%, 96% 48%, 100% 24%, 97% 0);
  mix-blend-mode: multiply;
}
.polaroid .tape {
  top: -14px;
  left: 50%;
  translate: -50% 0;
  rotate: 3deg;
}
.paper-note {
  position: absolute;
  z-index: 3;
  max-width: 200px;
  padding: 16px 18px 18px;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 0.98;
  box-shadow: 0 10px 22px -16px rgb(41 35 31 / 0.5);
  /* Torn top edge */
  clip-path: polygon(0 6%, 8% 0, 17% 5%, 27% 1%, 38% 6%, 50% 1%, 61% 5%, 72% 0, 83% 5%, 93% 1%, 100% 5%, 100% 100%, 0 100%);
}
.torn {
  /* Irregular torn bottom edge on photos */
  clip-path: polygon(0 0, 100% 0, 100% 95%, 96% 97%, 91% 95.5%, 85% 98%, 78% 96%, 71% 98.6%, 64% 96.4%, 57% 98.4%, 49% 96%, 42% 98.8%, 35% 96.5%, 27% 98.2%, 20% 96%, 13% 98.6%, 6% 96.2%, 0 98%);
}
.scribble {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.26em;
  color: var(--coral);
  opacity: 0.55;
  overflow: visible;
}
.doodle {
  flex: none;
}

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(36px, 6vw, 84px) clamp(70px, 9vw, 130px);
}
.hero .lede {
  margin-top: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 38px;
}
.hero-media {
  position: relative;
  margin: 0;
  padding: 10px 6% 40px 4%;
}
.hero-media .polaroid {
  max-width: 470px;
  margin-left: auto;
}
.hero-media .paper-note {
  left: 0;
  bottom: 0;
  rotate: 4deg;
}
.hero-heart {
  position: absolute;
  top: 2%;
  right: 0;
  rotate: 12deg;
}

/* ------------------------------------------------------------------ sections */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head-row {
  display: flex;
  max-width: none;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
}
.section-head-row > div {
  max-width: 680px;
}
.section-intro {
  margin-top: 18px;
  color: var(--ink-soft);
}
.categories,
.latest,
.videos,
.insta {
  padding-block: 0 var(--section);
}

/* ------------------------------------------------------------------ category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.cat-card {
  --accent: var(--coral);
  --accent-ink: var(--coral-ink);
  --accent-wash: rgb(217 106 85 / 0.14);
}
.cat-recipes {
  --accent: var(--mustard);
  --accent-ink: var(--mustard-ink);
  --accent-wash: rgb(216 169 62 / 0.2);
}
.cat-learning {
  --accent: var(--sage);
  --accent-ink: var(--sage-ink);
  --accent-wash: rgb(132 148 122 / 0.2);
}
.cat-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.cat-link:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.cat-media {
  overflow: hidden;
  border-radius: 10px;
}
.cat-media img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.cat-link:hover .cat-media img {
  transform: scale(1.03);
}
.cat-body {
  display: grid;
  gap: 8px;
  padding: 22px 12px 0;
}
.cat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.cat-body h3 {
  font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2.1rem);
}
.cat-body p {
  color: var(--ink-soft);
}
.cat-body {
  flex: 1;
  grid-template-rows: auto auto auto 1fr auto;
}
.cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  align-self: end;
  color: var(--accent-ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(36px, 4vw, 52px) clamp(20px, 2.4vw, 32px);
}
.post-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.post-media {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--sand);
}
.post-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.post-card:hover .post-media img {
  transform: scale(1.03);
}
.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.cat-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral-ink);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
a.cat-label:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cat-label.cat-recipes {
  color: var(--mustard-ink);
}
.cat-label.cat-learning {
  color: var(--sage-ink);
}
.post-title {
  font-size: 1.36rem;
  line-height: 1.16;
  font-weight: 560;
}
.post-title a {
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
/* Whole card clickable via the title link */
.post-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-card:hover .post-title a {
  color: var(--coral-ink);
}
.post-excerpt {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.post-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--coral-ink);
  font-weight: 600;
  font-size: 0.94rem;
}

/* ------------------------------------------------------------------ story */
.story {
  margin-bottom: var(--section);
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--sand);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.story-media {
  position: relative;
  margin: 0;
}
.story-media .torn {
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  rotate: -1.2deg;
}
.story-media img {
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  object-position: 100% 50%; /* keep both Rabia and Zara in frame */
}
.tape-story {
  top: -12px;
  left: 14%;
  rotate: -8deg;
  background: rgb(217 167 160 / 0.55);
}
.story-leaf {
  position: absolute;
  right: -18px;
  bottom: -26px;
  rotate: -12deg;
}
.story-copy > p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--ink-soft);
}
.story-copy .display-2 {
  margin-bottom: 8px;
}
.story-copy .story-lead {
  margin-top: 26px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.55;
}
.story-lead strong {
  font-family: var(--font-display);
  font-weight: 560;
  font-style: italic;
  font-size: 1.3em;
}
.pull-quote {
  position: relative;
  margin: 34px 0 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--coral);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-style: italic;
  font-weight: 420;
  line-height: 1.3;
}
.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 36px;
}

/* ------------------------------------------------------------------ videos */
.video {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--sand);
  cursor: pointer;
}
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.video-cover:hover img {
  transform: scale(1.03);
}
.video-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.video-play svg {
  color: var(--coral);
}
.video-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--coral);
}
.video-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 3vw, 40px) clamp(18px, 2.4vw, 32px);
}
.video-card-lead {
  grid-row: span 2;
}
.video-copy {
  padding-top: 14px;
}
.video-copy h3 {
  margin: 4px 0 8px;
  font-size: 1.2rem;
}
.video-card-lead .video-copy h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.videos .fine-print {
  margin-top: 28px;
}

/* ------------------------------------------------------------------ instagram */
.insta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.insta-copy > p:not(.eyebrow):not(.hand) {
  margin: 20px 0 30px;
  max-width: 46ch;
  color: var(--ink-soft);
}
.insta-note {
  margin-top: 34px;
  color: var(--coral-ink);
  font-size: 1.9rem;
  rotate: -2deg;
}
.insta-fan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.insta-card {
  display: block;
  padding: 8px 8px 12px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 16px 34px -26px rgb(41 35 31 / 0.6);
  text-decoration: none;
  transition: transform var(--t) var(--ease);
}
.insta-card:nth-child(1) {
  rotate: -3deg;
  translate: 0 18px;
}
.insta-card:nth-child(2) {
  rotate: 1.5deg;
}
.insta-card:nth-child(3) {
  rotate: -1deg;
  translate: 0 26px;
}
.insta-card:hover {
  transform: translateY(-4px);
}
.insta-card img {
  aspect-ratio: 9 / 15;
  object-fit: cover;
  border-radius: 2px;
}
.insta-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 4px 0;
  font-size: 0.86rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ newsletter */
.newsletter {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--coral);
  color: var(--paper);
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px clamp(40px, 6vw, 96px);
}
.newsletter .display-2 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
}
/* ≥ 24px counts as large text, so warm white on coral meets AA (3:1). */
.nl-lede {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}
.nl-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nl-form input {
  flex: 1 1 240px;
  min-height: 54px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.nl-form input::placeholder {
  color: #7a6e66;
}
.nl-form input:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(41 35 31 / 0.25);
}
.nl-form .button {
  min-height: 54px;
}
.nl-form .button:disabled {
  opacity: 0.7;
  cursor: progress;
}
.newsletter :focus-visible {
  outline-color: var(--ink);
}
.nl-note {
  flex-basis: 100%;
  margin-top: 6px;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}
.nl-flower {
  position: absolute;
  color: var(--paper);
  opacity: 0.22;
  stroke-width: 1;
}
.nl-flower-a {
  right: 4%;
  top: -30px;
  rotate: 18deg;
}
.nl-flower-b {
  left: -20px;
  bottom: -30px;
  rotate: -20deg;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  padding-top: clamp(64px, 8vw, 110px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px clamp(28px, 4vw, 64px);
}
.brand-footer img {
  height: 92px;
}
.footer-brand .motto {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-note {
  max-width: 16ch;
  margin-top: 22px;
  color: var(--ink);
  font-size: 1.85rem;
  rotate: -1.5deg;
  transform-origin: left;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.footer-col h2 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-col > a:not(.text-link) {
  padding: 5px 0;
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
.footer-col > a:not(.text-link):hover {
  color: var(--coral-ink);
}
.footer-hello h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-hello p {
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.social {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.social a:hover {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--paper);
}
.footer-base {
  margin-top: clamp(56px, 7vw, 90px);
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------ page heads & archives */
.page-head {
  padding-block: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 64px);
}
.page-head .lede {
  margin-top: 18px;
  max-width: 48ch;
}
.page-head .display-2 {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.archive {
  padding-bottom: var(--section);
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.filter a {
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.filter a:hover {
  border-color: var(--ink);
}
.filter a[aria-current='page'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ------------------------------------------------------------------ article */
.article-head {
  max-width: calc(880px + var(--gutter) * 2);
  padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px);
  text-align: center;
}
.article-head .post-cats {
  justify-content: center;
  margin: 26px 0 16px;
}
.article-title {
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.1rem);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--coral-ink);
  text-decoration: underline;
}
.byline {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.article-cover picture {
  overflow: hidden;
  border-radius: 16px;
}
.article-cover img {
  max-height: 72vh;
  object-fit: cover;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(240px, 300px);
  justify-content: center;
  gap: clamp(40px, 7vw, 110px);
  padding-block: clamp(48px, 6vw, 80px);
}
.article-aside {
  display: grid;
  align-content: start;
  gap: 40px;
}
.aside-card {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--sand);
}
.aside-photo {
  width: 96px;
  margin-bottom: 18px;
  padding: 5px 5px 14px;
  background: var(--paper);
  rotate: -3deg;
  box-shadow: 0 10px 20px -16px rgb(41 35 31 / 0.6);
}
.aside-photo img {
  aspect-ratio: 1;
  object-fit: cover;
}
.article-aside h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.aside-card p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.aside-more h2 {
  margin-bottom: 4px;
}
.aside-story {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  font-weight: 550;
  line-height: 1.35;
  text-decoration: none;
}
.aside-story:hover {
  color: var(--coral-ink);
}
.article-bottom {
  max-width: calc(1040px + var(--gutter) * 2);
  padding-bottom: var(--section);
}
.video-consent {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 32px clamp(28px, 5vw, 64px);
  margin-bottom: 48px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 18px;
  background: var(--sand);
}
.video-consent h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}
.video-consent p {
  margin-bottom: 22px;
  color: var(--ink-soft);
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.article-tags a {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-decoration: none;
}
.article-tags a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ------------------------------------------------------------------ prose */
.prose {
  font-size: 1.1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.9em;
  line-height: 1.15;
}
.prose h2 {
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2rem);
}
.prose h3 {
  font-size: 1.35rem;
}
.prose h2:empty {
  display: none;
}
.prose a {
  color: var(--coral-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose li::marker {
  color: var(--coral);
}
.prose blockquote {
  margin-inline: 0;
  padding-left: 24px;
  border-left: 3px solid var(--coral);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
}
.prose-figure {
  margin: 2em 0;
}
.prose-figure picture {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.prose-figure img {
  width: auto;
  max-width: 100%;
}
.prose strong {
  font-weight: 650;
}
.policy {
  max-width: 760px;
  padding-bottom: var(--section);
  font-size: 1.02rem;
}
.policy > * + * {
  margin-top: 0.9em;
}

/* About page: the WordPress copy keeps its own headings; dress them editorially. */
.about-page {
  padding-bottom: var(--section);
}
.prose-about {
  max-width: 720px;
  margin-inline: auto;
}
.prose-about .prose-figure:first-child {
  padding: 12px 12px 48px;
  background: var(--paper);
  border-radius: 3px;
  rotate: -1.2deg;
  box-shadow: 0 18px 40px -26px rgb(41 35 31 / 0.45);
}
.prose-about h2 {
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.prose-about p:has(+ h2) {
  color: var(--coral-ink);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.prose-about h2 u {
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* ------------------------------------------------------------------ contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: var(--section);
}
.contact-copy {
  position: relative;
}
.contact-copy .prose ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.contact-copy .prose li {
  margin: 0;
}
.contact-copy .prose li a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
}
.contact-copy .prose li a:hover {
  border-color: var(--coral);
  color: var(--coral-ink);
}
.contact-flower {
  margin-top: 40px;
  rotate: -10deg;
}
.contact-form {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.contact-form h2 {
  font-size: 1.8rem;
}
.contact-form > p:first-of-type {
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.contact-form label {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--coral-ink);
  box-shadow: 0 0 0 3px rgb(217 106 85 / 0.2);
}
.contact-form .button {
  justify-self: start;
  margin-top: 18px;
}
.form-status:not(:empty) {
  margin-top: 8px;
  color: var(--sage-ink);
  font-weight: 550;
}
.contact-email {
  margin-top: 8px;
  color: var(--coral-ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ sitemap & 404 */
.sitemap-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: var(--section);
}
.sitemap-page h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}
.sitemap-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitemap-page li {
  border-bottom: 1px solid var(--line);
}
.sitemap-page a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}
.sitemap-page a:hover {
  color: var(--coral-ink);
}
.not-found {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-block: clamp(70px, 12vw, 160px);
  text-align: center;
}
.not-found .lede {
  margin-inline: auto;
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-in {
    animation: rise 560ms var(--ease) both;
    animation-delay: calc(var(--d, 0) * 90ms + 60ms);
  }
  .hero-underline path {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: draw 700ms 520ms var(--ease) forwards;
  }
  .hero-heart {
    animation: pop 500ms 820ms var(--ease) both;
  }
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  /* Keep hover lift working after reveal */
  .js .cat-card.reveal.is-visible .cat-link:hover {
    transform: translateY(-4px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    scale: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .primary-nav a {
    padding-inline: 10px;
  }
  .primary-nav a::after {
    left: 10px;
    right: 10px;
  }
  .post-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .primary-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .header-inner {
    min-height: 72px;
    gap: 4px;
  }
  .brand img {
    height: 48px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 28px;
  }
  .hero-media {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
  .cat-body {
    padding-inline: 6px;
  }
  .cat-body h3 {
    font-size: 1.5rem;
  }
  .cat-body p {
    font-size: 0.93rem;
  }
  .story-grid,
  .insta,
  .newsletter-inner,
  .contact-layout,
  .video-consent {
    grid-template-columns: 1fr;
  }
  .story-media {
    max-width: 520px;
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-card-lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .aside-card {
    position: static;
  }
  .sitemap-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .brand-name {
    font-size: 1.12rem;
  }
  .brand img {
    height: 44px;
  }
  .display {
    font-size: clamp(2.9rem, 13vw, 3.6rem);
  }
  .hero-media {
    padding: 8px 4px 56px;
  }
  .hero-media .polaroid {
    max-width: 86%;
    margin-inline: auto 0;
  }
  .hero-media .paper-note {
    max-width: 170px;
    font-size: 1.5rem;
  }
  .hero-heart {
    width: 34px;
    height: 34px;
    top: 0;
    right: auto;
    left: 2%;
  }
  .cat-grid,
  .post-grid-4 {
    grid-template-columns: 1fr;
  }
  /* Videos become a swipeable row instead of a long stack */
  .video-grid {
    display: flex;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .video-grid::-webkit-scrollbar {
    display: none;
  }
  .video-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .video-card-lead .video-copy h3 {
    font-size: 1.2rem;
  }
  .insta-fan {
    gap: 10px;
  }
  .insta-card span {
    font-size: 0.74rem;
  }
  .insta-card .arrow {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .story-leaf {
    right: 0;
  }
  .prose {
    font-size: 1.04rem;
  }
}

.footer-note .doodle {
  display: inline-block;
  vertical-align: -4px;
  margin-left: 4px;
}
