/* ==========================================================================
   PALATEFUL — PAGE COMPOSITIONS
   Homepage sections, index headers, recipe/Roots/ingredient article layouts,
   About. Each composition is designed per breakpoint, not scaled down.
   ========================================================================== */

/* ==========================================================================
   HOMEPAGE — 1. HERO
   An asymmetric split: type holds the left column, a single tall photograph
   runs full height on the right. The type never sits on the image, so the
   headline stays legible regardless of the photograph.
   ========================================================================== */
.hero {
  border-bottom: 1px solid var(--rule);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  min-height: min(88vh, 860px);
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--sp-8), 6vw, var(--sp-11)) clamp(var(--sp-5), 4vw, var(--sp-10));
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.hero__eyebrow {
  margin-bottom: var(--sp-5);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.hero__wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  font-weight: var(--wt-regular);
  color: var(--pf-forest-700);
  text-transform: uppercase;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.7rem);
  font-style: italic;
  font-weight: var(--wt-light);
  line-height: 1.3;
  color: var(--text-soft);
  max-width: 22ch;
}

.hero__statement {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 46ch;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.hero__creed {
  margin-top: var(--sp-8);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__creed i {
  margin-inline: 0.5em;
  font-style: normal;
  color: var(--pf-terracotta);
}

.hero__media {
  position: relative;
}

/* A fill figure has no intrinsic ratio — it takes the height of its column. */
.fig--fill {
  position: absolute;
  inset: 0;
  height: 100%;
}

.fig--fill img {
  height: 100%;
}

.hero__caption {
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  color: var(--pf-rice);
  font-size: var(--fs-meta);
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(18, 36, 29, 0.7);
  max-width: 42ch;
}

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__text {
    padding-inline: var(--gutter);
    padding-block: clamp(var(--sp-8), 9vw, var(--sp-10)) var(--sp-8);
    order: 2;
  }
  .hero__media {
    order: 1;
    aspect-ratio: 4 / 3;
  }
  .hero__creed {
    margin-top: var(--sp-6);
  }
}

@media (max-width: 620px) {
  .hero__media {
    aspect-ratio: 4 / 5;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   HOMEPAGE — 3. MEET THE CHEF
   ========================================================================== */
.chef__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(var(--sp-6), 5vw, var(--sp-10));
  align-items: start;
}

.chef__title {
  margin-block: var(--sp-4) var(--sp-5);
}

.chef__quote {
  padding-left: var(--sp-5);
  border-left: 2px solid var(--pf-terracotta);
  margin-bottom: var(--sp-6);
  max-width: 34ch;
}

.chef__para {
  color: var(--text-soft);
  line-height: 1.72;
  max-width: var(--measure);
}

.chef__para + .chef__para {
  margin-top: var(--sp-4);
}

.chef__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-5);
  margin-block: var(--sp-7);
  padding-block: var(--sp-5);
  border-block: 1px solid var(--rule);
}

.chef__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--pf-forest-700);
}

.chef__stat-label {
  display: block;
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-top: var(--sp-2);
}

@media (max-width: 900px) {
  .chef__grid {
    grid-template-columns: 1fr;
  }
  .chef__media {
    max-width: 420px;
  }
}

/* ==========================================================================
   HOMEPAGE — 4. CULINARY PHILOSOPHY (inverted band)
   ========================================================================== */
.philosophy__head {
  max-width: 60ch;
  margin-bottom: clamp(var(--sp-7), 5vw, var(--sp-9));
}

.philosophy__title {
  margin-bottom: var(--sp-4);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(var(--sp-6), 3vw, var(--sp-8));
}

.principle {
  border-top: 1px solid var(--rule-invert);
  padding-top: var(--sp-5);
}

.principle__n {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--pf-saffron);
  margin-bottom: var(--sp-4);
}

.principle__title {
  color: var(--pf-on-dark);
  margin-bottom: var(--sp-3);
}

.principle__body {
  color: var(--pf-on-dark-muted);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* ==========================================================================
   HOMEPAGE — 5. SIGNATURE DISHES
   The first dish gets a wide composition; the remaining three sit in a row.
   ========================================================================== */
.sig__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--sp-6), 3vw, var(--sp-8));
}

.dish--lead {
  grid-column: 1 / -1;
}

.dish--lead .dish__link {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(var(--sp-5), 4vw, var(--sp-8));
  align-items: center;
}

.dish__media {
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.dish--lead .dish__media {
  margin-bottom: 0;
}

.dish__name {
  transition: color var(--dur-base) ease;
}

.dish__link:hover .dish__name {
  color: var(--pf-terracotta);
}

.dish__romanised {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pf-moss-500);
  margin-top: var(--sp-2);
}

.dish__blurb {
  margin-top: var(--sp-3);
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: 1.65;
  max-width: 48ch;
}

.dish--lead .dish__blurb {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.dish__meta {
  margin-top: var(--sp-4);
}

@media (max-width: 900px) {
  .sig__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dish--lead .dish__link {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

@media (max-width: 560px) {
  .sig__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOMEPAGE — 6. SIGNATURE TECHNIQUES
   Alternating rows rather than cards, so it reads as a sequence.
   ========================================================================== */
.tech__list {
  display: grid;
  gap: clamp(var(--sp-7), 5vw, var(--sp-9));
}

.tech__item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(var(--sp-5), 4vw, var(--sp-8));
  align-items: center;
  padding-top: clamp(var(--sp-6), 4vw, var(--sp-8));
  border-top: 1px solid var(--rule);
}

.tech__item:nth-child(even) .tech__media {
  order: 2;
}

.tech__media {
  overflow: hidden;
}

.tech__n {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--pf-terracotta);
  margin-bottom: var(--sp-4);
}

.tech__name a {
  transition: color var(--dur-base) ease;
}

.tech__name a:hover {
  color: var(--pf-terracotta);
}

.tech__sub {
  margin-top: var(--sp-2);
}

.tech__body {
  margin-top: var(--sp-4);
  color: var(--text-soft);
  line-height: 1.72;
  max-width: 54ch;
}

@media (max-width: 860px) {
  .tech__item {
    grid-template-columns: 1fr;
  }
  .tech__item:nth-child(even) .tech__media {
    order: 0;
  }
}

/* ==========================================================================
   HOMEPAGE — 7. CULINARY JOURNEY
   ========================================================================== */
.journey__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(var(--sp-6), 5vw, var(--sp-10));
  align-items: start;
}

.journey__intro {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.journey__dek {
  margin-block: var(--sp-4) var(--sp-6);
}

.journey__list {
  display: grid;
}

.milestone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--rule);
}

.milestone:first-child {
  border-top: 0;
  padding-top: 0;
}

.milestone__n {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pf-terracotta);
  padding-top: 4px;
}

.milestone__when {
  margin-bottom: var(--sp-2);
}

.milestone__text {
  margin-top: var(--sp-3);
  color: var(--text-soft);
  line-height: 1.72;
  max-width: 58ch;
}

@media (max-width: 900px) {
  .journey__grid {
    grid-template-columns: 1fr;
  }
  .journey__intro {
    position: static;
  }
}

/* ==========================================================================
   HOMEPAGE — 8. ROOTS BAND (full-bleed photograph)
   ========================================================================== */
.roots-band {
  position: relative;
  color: var(--pf-on-dark);
  overflow: hidden;
  padding-block: clamp(var(--sp-9), 8vw, var(--sp-12));
}

.roots-band__media {
  position: absolute;
  inset: 0;
}

.roots-band__inner {
  position: relative;
}

.roots-band__text {
  max-width: 62ch;
}

.roots-band__title {
  color: var(--pf-rice);
  margin-block: var(--sp-4) var(--sp-5);
  max-width: 18ch;
}

.roots-band__para {
  color: var(--pf-on-dark-muted);
  line-height: 1.72;
  max-width: 60ch;
}

.roots-band__para + .roots-band__para {
  margin-top: var(--sp-4);
}

.roots-band__framework {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--sp-6);
  margin-top: clamp(var(--sp-7), 5vw, var(--sp-9));
}

.roots-band__framework li {
  border-top: 1px solid var(--rule-invert);
  padding-top: var(--sp-4);
}

.roots-band__framework p {
  color: var(--pf-on-dark-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-top: var(--sp-2);
}

.roots-band__n {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--pf-saffron);
  margin-bottom: var(--sp-3);
}

.roots-band__step {
  color: var(--pf-rice);
}

.roots-band__cta {
  margin-top: clamp(var(--sp-7), 5vw, var(--sp-8));
}

/* ==========================================================================
   HOMEPAGE — 9. EXPLORE PALATEFUL
   ========================================================================== */
.explore-nav__lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--sp-6), 3vw, var(--sp-8));
  margin-bottom: clamp(var(--sp-7), 4vw, var(--sp-9));
}

.explore-nav__rest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--sp-6), 3vw, var(--sp-8));
}

@media (max-width: 860px) {
  .explore-nav__lead {
    grid-template-columns: 1fr;
  }
  .explore-nav__rest {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  }
}

/* ==========================================================================
   HOMEPAGE — 10. LATEST (the only dynamic block)
   ========================================================================== */
.latest__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(var(--sp-6), 4vw, var(--sp-8));
}

.latest__dek {
  margin-top: var(--sp-4);
}

.latest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(var(--sp-6), 4vw, var(--sp-9));
  align-items: start;
}

.latest__rest {
  display: grid;
}

.latest__rest .card--minimal:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .latest__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INDEX PAGE HEADER
   ========================================================================== */
.cat-head {
  padding-block: clamp(var(--sp-8), 6vw, var(--sp-10)) clamp(var(--sp-7), 5vw, var(--sp-9));
  border-bottom: 1px solid var(--rule);
}

.cat-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
  gap: clamp(var(--sp-6), 5vw, var(--sp-10));
  align-items: end;
}

.cat-head__title {
  margin-block: var(--sp-4) var(--sp-5);
}

.cat-head__dek {
  max-width: 52ch;
}

.cat-head__count {
  margin-top: var(--sp-5);
}

@media (max-width: 860px) {
  .cat-head__inner {
    grid-template-columns: 1fr;
  }
  .cat-head__media {
    max-width: 320px;
  }
}

/* ==========================================================================
   ROOTS INDEX — framework band
   ========================================================================== */
.framework-band__lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--pf-forest-700);
  max-width: 58ch;
  margin-bottom: clamp(var(--sp-6), 4vw, var(--sp-8));
}

.framework-band__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--sp-6);
}

.framework-band__list li {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--sp-4);
}

.framework-band__list p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-top: var(--sp-2);
}

.framework-band__n {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--pf-terracotta);
  margin-bottom: var(--sp-3);
}

/* ==========================================================================
   LEARN INDEX
   ========================================================================== */
.learn-group__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--sp-5);
  margin-bottom: clamp(var(--sp-6), 3vw, var(--sp-7));
  border-bottom: 1px solid var(--rule);
}

.learn-group__blurb {
  margin-top: var(--sp-3);
  max-width: 54ch;
}

/* ==========================================================================
   JOURNAL INDEX
   ========================================================================== */
.format-key {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-6);
}

.format-key li {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--sp-4);
}

.format-key__blurb {
  display: block;
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.journal-list {
  border-bottom: 1px solid var(--rule);
}

/* ==========================================================================
   EXPLORE INDEX
   ========================================================================== */
.library-note {
  max-width: 62ch;
}

.library-note h2 {
  margin-block: var(--sp-4) var(--sp-4);
}

/* ==========================================================================
   RECIPE ARTICLE
   ========================================================================== */
.recipe-info {
  margin-bottom: clamp(var(--sp-7), 5vw, var(--sp-9));
  padding: var(--sp-6);
  background: var(--pf-cream-warm);
}

.recipe-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-5);
}

.recipe-info dt {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.recipe-info dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--pf-forest-700);
}

/* Numbered part — 01 THE STORY, 02 ABOUT THE DISH … */
.rec-part {
  padding-top: clamp(var(--sp-7), 5vw, var(--sp-9));
  margin-top: clamp(var(--sp-7), 5vw, var(--sp-9));
  border-top: 1px solid var(--rule);
}

.rec-part:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.rec-part__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.rec-part__n {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pf-terracotta);
  flex-shrink: 0;
}

.about-dish {
  display: grid;
  gap: var(--sp-5);
}

.about-dish dt {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--pf-terracotta);
  margin-bottom: var(--sp-2);
}

.about-dish dd {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: var(--measure);
}

/* Ingredients */
.ingredients__group + .ingredients__group,
.ingredients__subs {
  margin-top: var(--sp-7);
}

.ingredients__heading {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--wt-semi);
  color: var(--pf-forest-700);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--sp-4);
}

.ingredient {
  display: grid;
  grid-template-columns: minmax(88px, 116px) minmax(0, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-3);
}

.ingredient + .ingredient {
  border-top: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
}

.ingredient__qty {
  font-family: var(--font-display);
  color: var(--pf-terracotta-dark);
  line-height: 1.5;
}

.ingredient__name {
  display: block;
  color: var(--text);
  line-height: 1.5;
}

.ingredient__note {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 2px;
}

.subs-list li {
  position: relative;
  padding-left: var(--sp-5);
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.subs-list li + li {
  margin-top: var(--sp-3);
}

.subs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--pf-moss-500);
}

@media (max-width: 520px) {
  .ingredient {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Method */
.method__stage {
  padding-top: var(--sp-6);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--rule);
}

.method__stage:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.method__label {
  display: block;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--pf-terracotta);
  margin-bottom: var(--sp-2);
}

.method__steps {
  counter-reset: step;
  margin-top: var(--sp-4);
}

.method__steps li {
  counter-increment: step;
  position: relative;
  padding-left: var(--sp-8);
  color: var(--text-soft);
  line-height: 1.72;
  max-width: var(--measure);
}

.method__steps li + li {
  margin-top: var(--sp-4);
}

.method__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--pf-moss-500);
}

/* Palateful notes */
.notes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--sp-6);
}

.notes__col {
  border-top: 2px solid var(--pf-forest-700);
  padding-top: var(--sp-4);
}

.notes__col--warn {
  border-top-color: var(--pf-terracotta);
}

.notes__list {
  margin-top: var(--sp-4);
}

.notes__list li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-soft);
}

.notes__list li + li {
  margin-top: var(--sp-4);
}

.notes__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 1px;
  background: var(--pf-moss-500);
}

.notes__list--wide {
  max-width: var(--measure);
}

.notes__next {
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  background: var(--pf-forest-900);
  color: var(--pf-on-dark);
}

.notes__next .label {
  color: var(--pf-saffron);
}

.notes__next-body {
  margin-top: var(--sp-3);
  color: var(--pf-on-dark-muted);
  line-height: 1.7;
  max-width: var(--measure);
}

/* ==========================================================================
   ROOTS ARTICLE
   ========================================================================== */
.roots-sec {
  padding-top: clamp(var(--sp-7), 5vw, var(--sp-9));
  margin-top: clamp(var(--sp-7), 5vw, var(--sp-9));
  border-top: 1px solid var(--rule);
}

.roots-sec:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.roots-sec__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.roots-sec__n {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pf-terracotta);
  flex-shrink: 0;
}

/* The stamp is the guarantee: a reader always knows which they are reading. */
.roots-stamp {
  display: inline-block;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: var(--wt-semi);
  padding: 8px 14px;
  margin-bottom: var(--sp-5);
  background: var(--pf-forest-700);
  color: var(--pf-rice);
}

.roots-stamp--mine {
  background: var(--pf-terracotta);
}

.roots-sec--original,
.roots-sec--reinvention {
  padding: clamp(var(--sp-6), 4vw, var(--sp-8));
  border: 1px solid var(--rule);
  border-top-width: 1px;
  margin-top: clamp(var(--sp-7), 5vw, var(--sp-9));
}

.roots-sec--original {
  background: var(--pf-cream-warm);
}

.roots-sec--reinvention {
  background: color-mix(in srgb, var(--pf-terracotta) 6%, var(--pf-cream));
}

.trad-ingredients {
  margin-top: var(--sp-5);
  max-width: var(--measure);
}

.trad-ingredients li {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) minmax(0, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--rule);
}

.trad-ingredients__name {
  font-family: var(--font-display);
  color: var(--pf-forest-700);
}

.trad-ingredients__note {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .trad-ingredients li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.trad-method {
  counter-reset: tstep;
  margin-top: var(--sp-5);
  max-width: var(--measure);
}

.trad-method li {
  counter-increment: tstep;
  position: relative;
  padding-left: var(--sp-8);
  color: var(--text-soft);
  line-height: 1.72;
}

.trad-method li + li {
  margin-top: var(--sp-4);
}

.trad-method li::before {
  content: counter(tstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--pf-moss-500);
}

.trials {
  margin-top: var(--sp-6);
}

.trial {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--rule);
}

.trial__n {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pf-terracotta);
  padding-top: 2px;
}

.trial__result {
  margin-top: var(--sp-3);
  color: var(--text-soft);
  line-height: 1.72;
  max-width: 58ch;
}

.trials__conclusion {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  background: var(--pf-cream-warm);
  border-left: 2px solid var(--pf-forest-700);
  color: var(--text-soft);
  line-height: 1.72;
  max-width: var(--measure);
}

.trials__conclusion .label {
  display: block;
  margin-bottom: var(--sp-2);
}

.reinvention-dish {
  margin-block: var(--sp-6);
  padding: var(--sp-6);
  background: var(--pf-rice);
  border: 1px solid var(--rule);
}

.reinvention-dish h3 {
  margin-block: var(--sp-3) var(--sp-3);
}

.reinvention-dish p {
  color: var(--text-soft);
  line-height: 1.72;
  max-width: var(--measure);
}

/* With a photo: the picture beside the text on wider screens. */
.reinvention-dish--photo {
  display: grid;
  gap: var(--sp-2) var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
}

.reinvention-dish__media {
  margin-bottom: var(--sp-3);
}

@media (min-width: 700px) {
  .reinvention-dish--photo {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-content: start;
  }

  .reinvention-dish--photo > .reinvention-dish__media {
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }

  .reinvention-dish--photo > :not(.reinvention-dish__media) {
    grid-column: 2;
  }
}

/* ==========================================================================
   INGREDIENT ARTICLE
   ========================================================================== */
.ing-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--pf-cream-warm);
  margin-bottom: clamp(var(--sp-7), 5vw, var(--sp-9));
}

.ing-facts dt {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.ing-facts dd {
  margin: 0;
  color: var(--pf-forest-700);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.ing-sec {
  padding-top: var(--sp-6);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--rule);
}

.ing-sec:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.ing-sec__title {
  margin-bottom: var(--sp-4);
}

.ing-list li,
.ing-steps li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--text-soft);
  line-height: 1.72;
  max-width: var(--measure);
}

.ing-list li + li,
.ing-steps li + li {
  margin-top: var(--sp-3);
}

.ing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--pf-moss-500);
}

.ing-steps {
  counter-reset: istep;
}

.ing-steps li {
  counter-increment: istep;
}

.ing-steps li::before {
  content: counter(istep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.06em;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--pf-moss-500);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-hero {
  padding-block: clamp(var(--sp-8), 6vw, var(--sp-10));
  border-bottom: 1px solid var(--rule);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(var(--sp-6), 5vw, var(--sp-10));
  align-items: center;
}

.about-hero__title {
  margin-block: var(--sp-4) var(--sp-5);
  max-width: 14ch;
}

.about-hero__standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.42;
  color: var(--pf-forest-700);
  max-width: 34ch;
}

.about-hero__creed {
  margin-top: var(--sp-7);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-hero__creed i {
  margin-inline: 0.5em;
  font-style: normal;
  color: var(--pf-terracotta);
}

@media (max-width: 860px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
  }
  .about-hero__media {
    max-width: 400px;
  }
}

.about-sec {
  padding-top: clamp(var(--sp-7), 5vw, var(--sp-8));
  margin-top: clamp(var(--sp-7), 5vw, var(--sp-8));
  border-top: 1px solid var(--rule);
}

.about-sec:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.about-sec__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.about-sec__n {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pf-terracotta);
  flex-shrink: 0;
}

.about-sec__media {
  margin-top: var(--sp-6);
}

.about-creed__title {
  margin-block: var(--sp-5) var(--sp-5);
  max-width: 16ch;
}

.about-creed__body {
  max-width: 56ch;
}

.about-contact__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.about-contact__links a {
  display: block;
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--sp-4);
  transition: color var(--dur-fast) ease;
}

.about-contact__links a:hover {
  color: var(--pf-terracotta);
}

.about-contact__links span:last-child {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */
.search-page {
  margin-top: var(--sp-7);
}

.search-page__results {
  margin-top: var(--sp-6);
}

/* ==========================================================================
   LIVE PAGES — account, write, posts (data from the API)
   ========================================================================== */
.api-links {
  margin: var(--sp-4) 0 var(--sp-6);
}

.api-links a,
.api-msg a {
  color: var(--accent);
  text-decoration: underline;
}

.api-msg {
  margin-top: var(--sp-5);
  min-height: 1.5em;
}

.api-msg.is-error {
  color: var(--pf-chilli);
}

/* ==========================================================================
   WRITE — /write/
   The author's desk and the guided editor. Built from the site's own type
   and section styles, so writing a post looks like the post it becomes.
   ========================================================================== */
.write__app[hidden],
.write [hidden] {
  display: none !important;
}

.write__app {
  margin-top: var(--sp-6);
  padding-bottom: calc(var(--sp-8) * 2);
}

/* ---- Buttons ------------------------------------------------------------- */
.wbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-meta);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-meta);
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}

.wbtn:hover {
  border-color: var(--pf-forest-700);
}

.wbtn:disabled {
  opacity: 0.5;
  cursor: default;
}

.wbtn--primary {
  color: var(--pf-rice);
  background: var(--pf-forest-700);
  border-color: var(--pf-forest-700);
}

.wbtn--primary:hover {
  background: var(--pf-forest-900);
}

.wbtn--small {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
}

.wbtn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-soft);
}

.wbtn--quiet:hover {
  border-color: var(--rule-strong);
}

.wbtn--danger:hover {
  color: var(--pf-chilli);
  border-color: var(--pf-chilli);
}

.wbtn--add {
  border-style: dashed;
  background: transparent;
  color: var(--pf-forest-700);
}

/* ---- The desk: your posts ------------------------------------------------ */
.wdesk__heading {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: var(--sp-8) 0 var(--sp-4);
}

.wdesk__count {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.wdesk__types {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.wdesk__type {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
  padding: var(--sp-5);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--pf-forest-700);
  text-decoration: none;
  color: var(--text);
}

.wdesk__type:hover {
  border-color: var(--pf-forest-700);
}

.wdesk__type-name {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
}

.wdesk__type-blurb {
  font-size: var(--fs-small);
  color: var(--text-soft);
}

.wdesk__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.wdesk__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rule);
}

.wdesk__text {
  min-width: 0;
  flex: 1 1 280px;
}

.wdesk__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--text);
  text-decoration: none;
}

.wdesk__title:hover {
  color: var(--accent);
}

.wdesk__meta {
  margin-top: var(--sp-1);
}

.wdesk__tools {
  display: flex;
  gap: var(--sp-2);
}

/* ---- Admin: /admin/ ---------------------------------------------------------
   Posts, readers and comments on one page, built from the desk's pieces. */
.admin__jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.admin__jump a {
  padding: 0.35rem 0.8rem;
  font-size: var(--fs-meta);
  color: var(--pf-forest-700);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  text-decoration: none;
}

.admin__jump a:hover {
  border-color: var(--pf-forest-700);
}

.admin__section {
  scroll-margin-top: calc(var(--sp-8) * 2);
}

.admin__bulkbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
}

.admin__check {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-meta);
}

.admin__selected {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  min-width: 10ch;
}

.admin__bulktools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-left: auto;
}

.admin__report {
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pf-forest-700);
  background: var(--bg-raised);
}

.admin__report[data-tone='warn'] {
  border-left-color: var(--pf-chilli);
}

.admin__report-line {
  font-weight: var(--wt-semi);
}

.admin__report-list {
  margin: var(--sp-2) 0 var(--sp-3);
  padding-left: 1.2em;
  font-size: var(--fs-small);
}

.admin__row > input[type='checkbox'] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.admin__row .wdesk__tools {
  flex-wrap: wrap;
}

.admin__status {
  display: inline-block;
  margin-right: var(--sp-1);
  padding: 0.1rem 0.5rem;
  font-size: var(--fs-label);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(106, 133, 116, 0.16);
}

.admin__status[data-status='published'] {
  color: var(--pf-forest-700);
  background: rgba(35, 70, 57, 0.14);
}

.admin__err {
  margin-top: var(--sp-1);
  font-size: var(--fs-small);
  color: var(--pf-chilli);
}

.admin__table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--rule);
}

.admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.admin__table th,
.admin__table td {
  padding: var(--sp-3) var(--sp-3) var(--sp-3) 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--rule);
}

.admin__table th {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin__email {
  overflow-wrap: anywhere;
}

.admin__you {
  margin-left: var(--sp-2);
  padding: 0.05rem 0.45rem;
  font-size: var(--fs-label);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}

.admin__state[data-state='inactive'] {
  color: var(--pf-chilli);
}

.admin__muted {
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.admin__table + .wbtn,
.admin__table-wrap + .wbtn {
  margin-top: var(--sp-3);
}

.admin__filter {
  width: min(100%, 360px);
  margin: var(--sp-2) 0 var(--sp-4);
  padding: 0.5rem 0.7rem;
  font: inherit;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--bg-raised);
}

.admin__threads {
  border-top: 1px solid var(--rule);
}

.admin__thread {
  border-bottom: 1px solid var(--rule);
}

.admin__thread-head {
  padding: var(--sp-3) 0;
  cursor: pointer;
}

.admin__thread-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
}

.admin__thread[open] {
  padding-bottom: var(--sp-4);
}

.admin__comments {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--sp-4);
  border-left: 2px solid var(--rule);
}

.admin__comment {
  padding: var(--sp-3) 0;
}

.admin__comment + .admin__comment {
  border-top: 1px solid var(--rule);
}

.admin__comment-text {
  margin: var(--sp-1) 0 var(--sp-2);
  white-space: pre-line;
}

/* ---- Admin: homepage editor -------------------------------------------------
   One collapsible panel per homepage section, built from the write editor's
   fields (.wfield, .wlist, .wgroup). */
.hnote {
  margin: var(--sp-3) 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pf-saffron);
  background: var(--bg-raised);
}

.hnote__cmd {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: 0.15rem 0.5rem;
  font-size: var(--fs-small);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

/* A link: the page/post list, and the address box under it for "Another address…". */
.hlink {
  display: grid;
  gap: var(--sp-2);
}

.hlink > [hidden] {
  display: none;
}

.hpanels {
  border-top: 1px solid var(--rule);
}

.hpanel {
  border-bottom: 1px solid var(--rule);
}

.hpanel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-3) 0;
  cursor: pointer;
}

.hpanel__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
}

.hpanel__chip {
  padding: 0.1rem 0.5rem;
  font-size: var(--fs-label);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(106, 133, 116, 0.16);
}

.hpanel__chip[data-state='edited'],
.hpanel__chip[data-state='saved'] {
  color: var(--pf-forest-700);
  background: rgba(35, 70, 57, 0.14);
}

.hpanel__chip[data-state='unsaved'],
.hpanel__chip[data-state='saving'] {
  color: var(--pf-brown-800);
  background: rgba(217, 155, 46, 0.22);
}

.hpanel__chip[data-state='invalid'],
.hpanel__chip[data-state='error'],
.hpanel__chip[data-state='offline'],
.hpanel__chip[data-state='forbidden'],
.hpanel__chip[data-state='expired'],
.hpanel__chip[data-state='conflict'] {
  color: #fff;
  background: var(--pf-chilli);
}

.hpanel[open] {
  padding-bottom: var(--sp-5);
}

.hpanel__shared {
  margin-bottom: var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-small);
  color: var(--text-soft);
  background: var(--bg-alt);
}

.hsection__fields {
  display: grid;
  gap: var(--sp-4);
}

/* Sticks to the foot of the screen while its panel is being edited. */
.hpanel__bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: color-mix(in srgb, var(--bg-raised) 94%, transparent);
  border: 1px solid var(--rule-strong);
}

.hpanel__status {
  flex: 1 1 16rem;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.hpanel__status[data-state='saved'],
.hpanel__status[data-state='edited'] {
  color: var(--pf-forest-700);
}

.hpanel__status[data-state='unsaved'] {
  color: var(--pf-brown-800);
  font-weight: var(--wt-semi);
}

.hpanel__status[data-state='invalid'],
.hpanel__status[data-state='error'],
.hpanel__status[data-state='offline'],
.hpanel__status[data-state='forbidden'],
.hpanel__status[data-state='expired'],
.hpanel__status[data-state='conflict'] {
  color: var(--pf-chilli);
  font-weight: var(--wt-semi);
}

.hpanel__extra:empty {
  display: none;
}

.hpanel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-left: auto;
}

.wfield__input--num {
  max-width: 8rem;
}

.himage {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.himage__frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pf-sand);
}

.himage__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.himage__frame[hidden] {
  display: none;
}

.himage:has(> .himage__frame[hidden]) {
  grid-template-columns: 1fr;
}

.himage__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.himage__select {
  flex: 1 1 14rem;
}

@media (max-width: 560px) {
  .himage {
    grid-template-columns: 1fr;
  }

  .himage__frame {
    max-width: 260px;
  }

  .hpanel__actions {
    width: 100%;
  }

  .hpanel__actions .wbtn {
    flex: 1 1 auto;
  }
}

/* ---- Editor chrome -------------------------------------------------------- */
.weditor__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.weditor__back {
  color: var(--accent);
}

.wrestore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  background: #fbf1dc;
  border-left: 3px solid var(--pf-saffron);
}

.wrestore p {
  flex: 1 1 260px;
  margin: 0;
}

/* The save bar stays in reach at the bottom of the screen. */
.wbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) max(var(--sp-4), calc((100vw - 1100px) / 2));
  background: color-mix(in srgb, var(--bg-raised) 94%, transparent);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--rule-strong);
}

.wbar__state {
  margin: 0;
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.wbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ---- Sections: the same numbered heads as a published Roots piece -------- */
.weditor {
  display: grid;
  gap: var(--sp-6);
}

.wgroup {
  display: grid;
  gap: var(--sp-5);
  min-width: 0;
}

.wgroup__body {
  display: grid;
  gap: var(--sp-5);
  min-width: 0;
}

.wgroup--section {
  padding: var(--sp-6);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
}

.wgroup__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--rule);
}

.wgroup__n {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--accent);
}

.wgroup__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0;
}

.wgroup__label {
  font-size: var(--fs-label);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}

.wgroup__hint {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.wgroup--row > .wgroup__body {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.wgroup--card {
  padding: var(--sp-5);
  background: var(--pf-cream);
  border: 1px solid var(--rule);
}

.wgroup--finish {
  background: transparent;
}

/* ---- Single fields ------------------------------------------------------- */
.wfield {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}

.wfield__label {
  font-size: var(--fs-small);
  font-weight: var(--wt-semi);
  color: var(--text);
}

.wfield__opt {
  font-weight: var(--wt-regular);
  color: var(--text-muted);
}

.wfield__hint {
  margin: 0;
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.wfield__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
}

.wfield__input:focus {
  outline: 2px solid var(--pf-forest-500);
  outline-offset: 1px;
  border-color: transparent;
}

.wfield__textarea {
  min-height: 3.2em;
  line-height: var(--lh-body);
  resize: vertical;
  overflow: hidden;
}

.wcheck {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  cursor: pointer;
}

.wcheck input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--pf-forest-700);
}

/* Bold / italic / link helpers under a text box. */
.wmarkup {
  display: grid;
}

.wmarkup__bar {
  display: flex;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
}

.wmarkup__btn {
  min-width: 34px;
  min-height: 30px;
  padding: 0 var(--sp-2);
  font-size: var(--fs-meta);
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
}

.wmarkup__btn:hover {
  color: var(--text);
  border-color: var(--rule-strong);
}

.wmarkup__btn--b {
  font-weight: var(--wt-bold);
}

.wmarkup__btn--i {
  font-style: italic;
  font-family: var(--font-display);
}

/* ---- Repeatable lists ---------------------------------------------------- */
.wlist {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
}

.wlist__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.wlist__item {
  display: grid;
  gap: var(--sp-3);
  min-width: 0;
  padding: var(--sp-4);
  background: var(--pf-cream);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pf-moss-300);
}

.wlist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.wlist__label {
  font-size: var(--fs-label);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--pf-forest-700);
}

.wlist__tools {
  display: flex;
  gap: var(--sp-1);
}

.wlist__tool {
  width: 34px;
  height: 34px;
  font-size: var(--fs-small);
  color: var(--text-soft);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
}

.wlist__tool:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--rule-strong);
}

.wlist__tool:disabled {
  opacity: 0.35;
  cursor: default;
}

.wlist__tool--del:hover:not(:disabled) {
  color: var(--pf-chilli);
  border-color: var(--pf-chilli);
}

.wlist__add {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* Compact: a column of text boxes, the tools beside each one. */
.wlist--compact > .wlist__items > .wlist__item {
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  gap: var(--sp-2);
}

.wlist--compact > .wlist__items > .wlist__item > .wlist__head {
  display: contents;
}

.wlist--compact > .wlist__items > .wlist__item > .wlist__head > .wlist__label {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0.8rem;
  text-align: right;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

.wlist--compact > .wlist__items > .wlist__item > .wlist__head > .wlist__tools {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.wlist--compact > .wlist__items > .wlist__item > :last-child {
  grid-column: 2;
  grid-row: 1;
}

/* Ingredient and two-column rows: the three / two boxes on one line. */
.wgroup--ingredient > .wgroup__body {
  grid-template-columns: minmax(80px, 0.6fr) minmax(0, 2fr) minmax(0, 1.6fr);
  gap: var(--sp-2);
}

.wgroup--pair > .wgroup__body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--sp-2);
}

@media (max-width: 640px) {
  .wgroup--section {
    padding: var(--sp-4);
  }

  .wgroup--ingredient > .wgroup__body,
  .wgroup--pair > .wgroup__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Blocks (Learn, Journal): a coloured edge per kind of block. */
.wlist__item[data-block="h2"] {
  border-left-color: var(--pf-forest-700);
}

.wlist__item[data-block="quote"] {
  border-left-color: var(--accent);
}

.wlist__item[data-block="note"] {
  border-left-color: var(--pf-saffron);
}

.wlist__item[data-block="img"] {
  border-left-color: var(--pf-brown-600);
}

.wblock--h2 .wfield__input,
.wblock--h2 > .wgroup__body > input {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
}

.wblock--quote textarea {
  font-family: var(--font-display);
  font-style: italic;
}

/* ---- Photos -------------------------------------------------------------- */
.wimage__drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px dashed var(--rule-strong);
  background: var(--bg-raised);
}

.wimage__drop.is-over {
  border-color: var(--pf-forest-700);
  background: var(--pf-cream-warm);
}

.wimage__note {
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.wimage__progress {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--rule);
  background: var(--bg-raised);
}

.wimage__progress::before {
  content: "";
  grid-area: 1 / 1;
  height: 6px;
  background: var(--pf-sand);
}

.wimage__bar {
  grid-area: 1 / 1;
  height: 6px;
  width: 0;
  background: var(--pf-forest-700);
  transition: width 0.2s linear;
}

.wimage__filled {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 640px) {
  .wimage__filled {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wimage__frame {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--pf-sand);
  cursor: crosshair;
}

.wimage__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.wimage__dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--pf-forest-900), 0 1px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.wimage__meta {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}

.wimage__actions {
  display: flex;
  gap: var(--sp-2);
}

/* ---- Errors from the server ---------------------------------------------- */
.has-error > .wfield__input,
.has-error > .wmarkup > .wfield__input,
.has-error > .wfield__input:focus {
  border-color: var(--pf-chilli);
  box-shadow: 0 0 0 1px var(--pf-chilli);
}

.wlist__item.has-error,
.wlist.has-error,
.wgroup.has-error {
  box-shadow: 0 0 0 2px var(--pf-chilli);
}

.werror {
  margin: 0;
  font-size: var(--fs-meta);
  font-weight: var(--wt-semi);
  color: var(--pf-chilli);
}

/* ---- Preview overlay ----------------------------------------------------- */
.has-preview,
.has-preview body {
  overflow: hidden;
}

.wpreview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
}

.wpreview__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--pf-forest-900);
  color: var(--pf-on-dark);
}

.wpreview__note {
  font-size: var(--fs-small);
}

.wpreview__page {
  overflow-y: auto;
  padding-bottom: var(--sp-8);
}

/* ==========================================================================
   LOGIN — /login/
   A photograph on the left, one card on the right that turns between
   "log in" and "sign up". On phones the photo becomes a band across the top
   and the card rides up over its bottom edge.
   ========================================================================== */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100svh - var(--header-h));
  background: var(--bg);
}

.auth__art {
  position: relative;
  height: clamp(180px, 30vh, 260px);
  overflow: hidden;
  color: var(--pf-on-dark);
  background: var(--pf-forest-900);
}

.auth__art .fig {
  position: absolute;
  inset: 0;
  background: var(--pf-forest-800);
  animation: auth-drift 28s ease-in-out infinite alternate;
}

.auth__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 36, 29, 0.1) 0%, rgba(18, 36, 29, 0.35) 45%, rgba(18, 36, 29, 0.92) 100%),
    linear-gradient(90deg, rgba(18, 36, 29, 0.35), transparent 60%);
}

.auth__art-copy {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--sp-9) + var(--sp-2));
  max-width: 30ch;
}

.auth__quote {
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.6rem);
  font-weight: var(--wt-light);
  font-style: italic;
  line-height: 1.12;
  letter-spacing: var(--ls-heading);
  color: var(--pf-rice);
  text-wrap: balance;
}

.auth__credit {
  display: none;
  margin-top: var(--sp-5);
  font-size: var(--fs-meta);
  color: var(--pf-on-dark-muted);
}

.auth__stage {
  position: relative;
  display: grid;
  place-items: start center;
  margin-top: calc(var(--sp-9) * -1);
  padding: 0 16px var(--sp-10);
}

@media (min-width: 960px) {
  .auth {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .auth__art {
    height: auto;
  }
  .auth__art-copy {
    bottom: clamp(2.5rem, 5vw, 4.5rem);
  }
  .auth__credit {
    display: block;
  }
  .auth__stage {
    place-items: center;
    margin-top: 0;
    padding: clamp(2.5rem, 5vw, 5rem) var(--gutter);
    /* A warm glow, as if from the stove just out of frame. */
    background:
      radial-gradient(60% 50% at 85% 10%, rgba(217, 155, 46, 0.12), transparent 70%),
      radial-gradient(50% 45% at 10% 95%, rgba(169, 80, 60, 0.08), transparent 70%);
  }
}

/* ---- The card ----------------------------------------------------------- */
.auth-card {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 40px 80px -48px rgba(28, 26, 23, 0.5),
    0 6px 18px -10px rgba(28, 26, 23, 0.12);
  overflow: hidden;
  animation: auth-rise 700ms var(--ease-out) backwards;
}

/* A ribbon along the top in the logo's colours. It slides to the other end
   when the card turns to "sign up". */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--pf-forest-700) 0%, var(--pf-forest-500) 30%,
    var(--pf-saffron) 50%,
    var(--pf-terracotta) 70%, var(--pf-terracotta-dark) 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  transition: background-position 900ms var(--ease-out);
}

.auth-card[data-view='signup']::before {
  background-position: 100% 0;
}

.auth-card[data-view='forgot']::before,
.auth-card[data-view='reset']::before {
  background-position: 50% 0;
}

.auth-pane[hidden] {
  display: none;
}

.auth-pane__title {
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem);
  font-weight: var(--wt-regular);
  line-height: 1.04;
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

.auth-pane__title em {
  font-style: italic;
  font-weight: var(--wt-light);
  color: var(--pf-terracotta);
}

.auth-pane__dek {
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-soft);
}

/* ---- Fields -------------------------------------------------------------- */
.auth-form {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field__label {
  font-size: var(--fs-label);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-soft);
}

.field__control {
  position: relative;
}

.field__input {
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--pf-cream);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  transition:
    border-color var(--dur-fast) ease,
    background var(--dur-fast) ease,
    box-shadow var(--dur-base) var(--ease-out);
}

.field__input::placeholder {
  color: var(--pf-ink-faint);
}

.field__input:hover {
  border-color: var(--pf-moss-500);
}

.field__input:focus {
  outline: none;
  background: var(--pf-rice);
  border-color: var(--pf-forest-700);
  box-shadow: 0 0 0 4px rgba(35, 70, 57, 0.13);
}

.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--pf-cream) inset;
}

.was-validated .field__input:invalid {
  border-color: var(--pf-chilli);
  box-shadow: 0 0 0 4px rgba(192, 69, 46, 0.1);
}

.field__control:has(.field__peek) .field__input {
  padding-right: 3.25rem;
}

.field__peek {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-muted);
  transform: translateY(-50%);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.field__peek:hover {
  color: var(--pf-forest-700);
  background: rgba(35, 70, 57, 0.07);
}

.field__peek svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The slash draws across the eye while the password is showing. */
.field__peek .eye-slash {
  stroke-dasharray: 23;
  stroke-dashoffset: 23;
  transition: stroke-dashoffset var(--dur-base) var(--ease-out);
}

.field__peek[aria-pressed='true'] .eye-slash {
  stroke-dashoffset: 0;
}

/* ---- Password strength & match ----------------------------------------- */
.strength {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.strength__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 112px;
  flex-shrink: 0;
}

.strength__bars i {
  height: 4px;
  border-radius: 2px;
  background: var(--pf-sand);
  transition: background var(--dur-base) ease;
}

.strength[data-strength='1'] { --sc: var(--pf-chilli); }
.strength[data-strength='2'] { --sc: var(--pf-saffron); }
.strength[data-strength='3'] { --sc: var(--pf-moss-500); }
.strength[data-strength='4'] { --sc: var(--pf-forest-600); }

.strength[data-strength='1'] i:nth-child(-n + 1),
.strength[data-strength='2'] i:nth-child(-n + 2),
.strength[data-strength='3'] i:nth-child(-n + 3),
.strength[data-strength='4'] i {
  background: var(--sc);
}

.strength:not([data-strength='0']) .strength__label {
  color: var(--sc);
  font-weight: var(--wt-medium);
}

.field__hint {
  min-height: 1.2em;
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.field__hint[data-state='ok'] {
  color: var(--pf-forest-600);
}

.field__hint[data-state='ok']::before {
  content: '\2713\00a0';
}

.field__hint[data-state='bad'] {
  color: var(--pf-chilli);
}

/* ---- "Forgot your password?" and "Check your inbox" ---------------------- */
.auth-forgot {
  justify-self: end;
  margin-top: calc(var(--sp-3) * -1);
  font-size: var(--fs-meta);
  color: var(--pf-forest-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-strong);
}

.auth-forgot:hover {
  color: var(--pf-terracotta-dark);
  text-decoration-color: currentColor;
}

.auth-sent {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pf-forest-500);
  border-radius: 6px;
  background: rgba(47, 74, 58, 0.04);
}

.auth-form[hidden],
.auth-sent[hidden] {
  display: none;
}

.auth-sent__title {
  font-weight: var(--wt-semi);
  color: var(--pf-forest-700);
}

.auth-sent__text {
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

/* ---- Buttons ------------------------------------------------------------- */
.auth-btn {
  position: relative;
  width: 100%;
  min-height: 54px;
  margin-top: var(--sp-2);
  border-radius: 6px;
  overflow: hidden;
}

/* A sheen that crosses the button on hover. */
.auth-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 253, 248, 0.16) 50%, transparent 65%);
  transform: translateX(-100%);
}

.auth-btn:hover::after {
  transform: translateX(100%);
  transition: transform 800ms var(--ease-out);
}

.auth-btn__arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-base) var(--ease-out);
}

.auth-btn:hover .auth-btn__arrow,
.auth-switch__btn:hover .auth-btn__arrow,
.account-tile:hover .auth-btn__arrow {
  transform: translateX(4px);
}

.auth-btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 253, 248, 0.3);
  border-top-color: var(--pf-rice);
  border-radius: 50%;
  animation: auth-spin 700ms linear infinite;
}

.auth-btn[aria-busy='true'] {
  cursor: progress;
  background: var(--pf-forest-600);
}

.auth-btn[aria-busy='true'] .auth-btn__arrow {
  display: none;
}

.auth-btn[aria-busy='true'] .auth-btn__spinner {
  display: block;
}

/* ---- "New to Palateful?" ------------------------------------------------- */
.auth-switch {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
  text-align: center;
}

.auth-switch__rule {
  position: relative;
  width: 100%;
  height: 1px;
  margin-bottom: var(--sp-3);
  background: var(--rule);
}

/* A small leaf sitting on the divider. */
.auth-switch__rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--pf-moss-500);
  border-radius: 0 60% 0 60%;
  box-shadow: 0 0 0 6px var(--bg-raised);
  transform: translate(-50%, -50%) rotate(45deg);
}

.auth-switch__text {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.auth-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 50px;
  font-size: var(--fs-meta);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--pf-forest-700);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  transition:
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    background var(--dur-fast) ease;
}

.auth-switch__btn:hover {
  color: var(--pf-terracotta-dark);
  border-color: var(--pf-terracotta);
  background: rgba(169, 80, 60, 0.05);
}

@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes auth-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   ACCOUNT — /account/
   ========================================================================== */
.account__hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--rule);
}

.account__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(84px, 10vw, 124px);
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: var(--wt-regular);
  color: var(--pf-rice);
  background: radial-gradient(circle at 30% 25%, var(--pf-forest-500), var(--pf-forest-800));
  border-radius: 50%;
  box-shadow: 0 18px 36px -18px rgba(18, 36, 29, 0.7);
}

/* A slowly turning dashed ring — the rim of a plate. */
.account__avatar::after {
  content: '';
  position: absolute;
  inset: -9px;
  border: 1.5px dashed var(--pf-terracotta-soft);
  border-radius: 50%;
  animation: auth-spin 60s linear infinite;
}

.account__name {
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--wt-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}

.account__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.account__meta li[hidden] {
  display: none;
}

.role-chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  font-size: var(--fs-label);
  font-weight: var(--wt-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--pf-forest-700);
  background: rgba(106, 133, 116, 0.16);
  border-radius: 999px;
}

.role-chip[data-role='admin'] {
  color: var(--pf-brown-800);
  background: rgba(217, 155, 46, 0.22);
}

.account__logout {
  border-radius: 6px;
}

.account__logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account__logout:hover {
  background: var(--pf-chilli);
  border-color: var(--pf-chilli);
}

.account__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

.account-tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 220px;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) ease;
}

.account-tile[hidden] {
  display: none;
}

.account-tile:hover {
  transform: translateY(-4px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-lift);
}

.account-tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  line-height: 1.15;
  color: var(--text);
}

.account-tile__text {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-soft);
}

.account-tile__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: auto;
  color: var(--pf-forest-700);
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  transition: background var(--dur-base) ease, color var(--dur-base) ease, border-color var(--dur-base) ease;
}

.account-tile:hover .account-tile__go {
  color: var(--pf-rice);
  background: var(--pf-forest-700);
  border-color: var(--pf-forest-700);
}

/* Loading: shimmering placeholders where the text will be. */
.skel {
  color: transparent !important;
  background: linear-gradient(90deg, var(--pf-sand) 0%, var(--pf-cream-warm) 50%, var(--pf-sand) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}

.account[data-state='loading'] .account__avatar {
  background: var(--pf-sand);
  box-shadow: none;
}

.account[data-state='loading'] .account__logout {
  visibility: hidden;
}

@keyframes skel-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 720px) {
  .account__hero {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .account__logout {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth__art .fig,
  .auth-card,
  .account__avatar::after,
  .skel {
    animation: none;
  }
  .auth-btn:hover::after {
    transition: none;
  }
}
