:root {
  --rose: #D46A8B;
  --rose-soft: #FCEBF1;
  --rose-mid: #F1C2D3;
  --clay: #E5927A;
  --cream: #FFFAF8;
  --paper: #FFFFFF;
  --ink: #3A2A33;
  --muted: #766069;
  --faint: #A88F9A;
  --line: #F0DFE6;
  --display: 'Lora', Georgia, serif;
  --body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.journal-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 2rem;
  background: rgba(255, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.journal-nav__brand {
  font-family: var(--display);
  font-size: 1.2rem;
  text-decoration: none;
}
.journal-nav__links { display: flex; align-items: center; gap: 1.5rem; }
.journal-nav__links a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.journal-nav__links a:hover, .journal-nav__links a:focus-visible { color: var(--rose); }

.journal-shell { width: min(1120px, calc(100% - 4rem)); margin: 0 auto; }

.journal-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: end;
  min-height: 470px;
  padding: 7rem 0 5rem;
}
.journal-hero::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 13%;
  width: 230px;
  height: 230px;
  border: 1px solid var(--rose-mid);
  border-radius: 41% 59% 52% 48%;
  transform: rotate(18deg);
  z-index: -1;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.journal-hero h1, .article-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.journal-hero h1 { font-size: clamp(3.4rem, 8vw, 6.8rem); }
.journal-hero h1 span, .article-hero h1 span { color: var(--rose); }
.journal-hero__intro {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.14rem;
  line-height: 1.7;
}
.journal-hero__story { display: grid; gap: 1.5rem; }
.journal-hero__photos {
  position: relative;
  height: 178px;
  margin-left: auto;
  width: min(100%, 390px);
}
.journal-hero__photos img {
  position: absolute;
  width: 58%;
  height: 150px;
  object-fit: cover;
  border: 5px solid var(--paper);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(93,54,70,.13);
}
.journal-hero__photos img:first-child { left: 0; top: 10px; transform: rotate(-3deg); }
.journal-hero__photos img:last-child { right: 0; top: 0; transform: rotate(3deg); }

.collection { padding: 5.5rem 0; border-top: 1px solid var(--line); }
.collection--nutrition {
  position: relative;
  background: var(--ink);
  color: var(--cream);
}
.collection--nutrition::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 12%, rgba(212,106,139,.24), transparent 24rem);
  pointer-events: none;
}
.collection-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.collection-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 400;
  line-height: 1.05;
}
.collection-heading p {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.collection--nutrition .collection-heading p { color: rgba(255,255,255,.62); }

.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.story-card {
  grid-column: span 6;
  position: relative;
  min-height: 260px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.7);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.story-card:nth-child(3n) { grid-column: span 7; }
.story-card:nth-child(4n) { grid-column: span 5; }
.story-card:hover, .story-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--rose-mid);
  box-shadow: 0 20px 50px rgba(93, 54, 70, .09);
  outline: none;
}
.story-card__number {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.story-card h3 {
  max-width: 540px;
  margin: 0 0 .8rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
}
.story-card p { max-width: 560px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.story-card__arrow {
  position: absolute;
  right: 1.6rem;
  top: 1.6rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose);
  transition: transform .25s ease, background .25s ease;
}
.story-card:hover .story-card__arrow { transform: rotate(45deg); background: var(--rose-soft); }
.story-card--photo {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  background-image: var(--story-image);
  background-size: cover;
  background-position: center;
  color: var(--paper);
}
.story-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,42,51,.08) 25%, rgba(58,42,51,.78) 100%);
}
.story-card--photo > * { position: relative; z-index: 1; }
.story-card--photo .story-card__number { margin-bottom: auto; color: rgba(255,255,255,.82); }
.story-card--photo p { color: rgba(255,255,255,.78); }
.story-card--photo .story-card__arrow { color: var(--paper); border-color: rgba(255,255,255,.45); }
.collection--nutrition .story-card {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.12);
}
.collection--nutrition .story-card--photo {
  background-color: transparent;
  background-image: var(--story-image);
  background-size: cover;
  background-position: center;
}
.collection--nutrition .story-card:hover { border-color: rgba(241,194,211,.55); box-shadow: none; }
.collection--nutrition .story-card p { color: rgba(255,255,255,.58); }
.collection--nutrition .story-card__arrow { border-color: rgba(255,255,255,.15); }
.collection--nutrition .story-card:hover .story-card__arrow { background: rgba(255,255,255,.1); }

.article-page { --accent: var(--rose); --soft: var(--rose-soft); }
.article-page[data-tone="clay"] { --accent: var(--clay); --soft: #FDF0EA; }
.article-page[data-tone="ink"] { --accent: var(--ink); --soft: #F3ECEF; }
.article-page[data-tone="plum"] { --accent: #9A596E; --soft: #F8EDEF; }
.article-page[data-tone="botanical"] { --accent: #747F5D; --soft: #F0F2E8; }
.article-page .eyebrow, .article-page .article-hero h1 span { color: var(--accent); }
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
  gap: 5rem;
  align-items: end;
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.article-hero h1 { max-width: 820px; font-size: clamp(3rem, 7vw, 6rem); }
.article-hero__summary { margin: 0; color: var(--muted); font-family: var(--display); font-size: 1.1rem; line-height: 1.7; }
.article-hero__image {
  grid-column: 1 / -1;
  width: 92%;
  margin: 1.25rem 0 0 auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 30px 8px 30px 8px;
  box-shadow: 0 24px 60px rgba(93, 54, 70, .13);
}
.article-hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .7s ease;
}
.article-hero__image:hover img { transform: scale(1.018); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 8vw, 7rem);
  padding: 4rem 0 7rem;
}
.article-aside { position: sticky; top: 100px; align-self: start; }
.article-aside::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  border: 5px solid var(--paper);
  border-radius: 18px;
  background: url('/assets/editorial/lemon-water.jpg') center / cover;
  box-shadow: 0 16px 36px rgba(93,54,70,.1);
  transform: rotate(-1.5deg);
}
.article-page[data-tone="plum"] .article-aside::before,
.article-page[data-tone="botanical"] .article-aside::before { background-image: url('/assets/editorial/coastal-calm.jpg'); }
.article-page[data-tone="clay"] .article-aside::before { background-image: url('/assets/editorial/raspberries.jpg'); }
.article-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
}
.article-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.article-aside blockquote { margin: 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.55; }
.article-aside cite { display: block; margin-top: 1.25rem; color: var(--faint); font-size: .7rem; font-style: normal; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.article-body { max-width: 700px; color: var(--muted); font-family: var(--display); font-size: 1.06rem; line-height: 1.95; }
.article-body p { margin: 0 0 1.7rem; }
.article-body > p:first-child::first-letter { float: left; margin: .12em .13em 0 0; color: var(--accent); font-size: 4.35rem; line-height: .72; }
.pullquote { margin: 3rem 0; padding: 2rem 0 2rem 2rem; border-left: 3px solid var(--accent); color: var(--ink); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; }
.question-set { display: grid; gap: .65rem; margin: 2.5rem 0 3rem; padding: 2rem; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 24px 24px 0; }
.question-set p { margin: 0; color: var(--ink); line-height: 1.55; }
.article-note { margin-top: 3rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; color: var(--faint); font-family: var(--body); font-size: .78rem; line-height: 1.6; }
.article-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 4rem; border-top: 1px solid var(--line); }
.article-footer a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.article-footer a:hover { color: var(--accent); }
.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); color: var(--faint); font-size: .78rem; }

@media (max-width: 760px) {
  .journal-nav { padding: 0 1rem; }
  .journal-nav__links a:first-child { display: none; }
  .journal-shell { width: min(100% - 2rem, 1120px); }
  .journal-hero, .article-hero, .collection-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .journal-hero { min-height: auto; padding: 5rem 0 3.5rem; }
  .journal-hero::after { display: none; }
  .journal-hero__photos { margin: .5rem 0 0; width: 100%; height: 150px; }
  .journal-hero__photos img { height: 130px; }
  .collection { padding: 4rem 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card, .story-card:nth-child(3n), .story-card:nth-child(4n) { grid-column: auto; min-height: 240px; }
  .article-hero { padding: 4.5rem 0 3rem; }
  .article-hero__image { width: 100%; margin-top: 1rem; aspect-ratio: 4 / 3; border-radius: 22px 7px 22px 7px; }
  .article-layout { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 5rem; }
  .article-aside { position: static; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
  .article-aside::before { width: min(280px, 82%); }
  .article-body { font-size: 1rem; line-height: 1.85; }
  .article-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-card, .story-card__arrow { transition: none; }
  .article-hero__image img { transition: none; }
}
