@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-04FF;
}

@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --article-bg: #ffffff;
  --article-surface: #f5f4f1;
  --article-text: #23282e;
  --article-muted: #6d6c6a;
  --article-line: #e9e6e1;
  --article-violet: #6d28d9;
  --article-violet-tint: #f6f2fe;
  --article-violet-line: #e6dcfa;
  --article-display: "Rubik", "Inter", system-ui, sans-serif;
  --article-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --article-gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--article-text);
  background: var(--article-bg);
  font-family: var(--article-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8b5cf6;
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { color: var(--article-text); background: #ddd2fb; }

.article-skip {
  position: fixed;
  z-index: 100;
  top: -56px;
  left: 16px;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  background: var(--article-text);
  border-radius: 12px;
  font-weight: 650;
  transition: top 160ms ease;
}

.article-skip:focus { top: 12px; }

.article-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--article-line);
  background: color-mix(in srgb, var(--article-bg) 94%, transparent);
  backdrop-filter: blur(12px);
}

.article-header__inner {
  display: flex;
  align-items: center;
  width: min(1200px, 100% - 2 * var(--article-gutter));
  min-height: 64px;
  gap: 20px;
  margin-inline: auto;
}

.article-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
}

.article-brand img { width: auto; height: 28px; }

.article-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin-inline: auto;
}

.article-nav a,
.article-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}

.article-nav a { color: var(--article-muted); }
.article-nav a:hover { color: var(--article-text); background: var(--article-surface); }

.article-header__cta {
  flex: 0 0 auto;
  padding-inline: 17px;
  color: #fff;
  background: var(--article-text);
  box-shadow: 0 6px 20px rgb(35 40 46 / 18%);
}

.article-header__cta:hover { background: #171b1f; }

.article {
  width: min(1200px, 100% - 2 * var(--article-gutter));
  margin-inline: auto;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(46px, 8vw, 112px) 0 clamp(56px, 9vw, 120px);
}

.article-hero__copy { min-width: 0; }
.article-hero--without-media { grid-template-columns: minmax(0, 700px); }

.article-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 18px;
  color: var(--article-violet);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-eyebrow a { color: inherit; text-decoration: none; }
.article-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-eyebrow span { padding-inline: 6px; color: #a78bfa; }

.article-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--article-display);
  font-size: clamp(42px, 4.2vw, 66px);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.article-hero__lead {
  max-width: 37rem;
  margin: 28px 0 0;
  color: var(--article-muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.article-byline {
  margin: 28px 0 0;
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.45;
}

.article-byline span { padding-inline: 6px; color: #a49f99; }

.article-hero__figure { min-width: 0; margin: 0; }

.article-hero__figure img {
  width: 100%;
  aspect-ratio: 1120 / 1119;
  object-fit: contain;
  background: var(--article-surface);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgb(35 40 46 / 12%);
}

.article-hero__figure figcaption {
  margin-top: 10px;
  color: var(--article-muted);
  font-size: 12px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(160px, 196px) minmax(0, 700px);
  column-gap: clamp(40px, 8vw, 128px);
  align-items: start;
  width: min(1024px, 100%);
  padding-bottom: clamp(72px, 10vw, 140px);
}

.article-toc {
  position: sticky;
  top: 92px;
  padding: 2px 0 2px 16px;
  border-left: 1px solid var(--article-line);
}

.article-toc__title {
  margin: 0 0 12px;
  color: var(--article-text);
  font-size: 13px;
  font-weight: 700;
}

.article-toc ol,
.article-toc-mobile ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li,
.article-toc-mobile li { min-width: 0; }

.article-toc a,
.article-toc-mobile a {
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.article-toc a:hover,
.article-toc a:focus-visible,
.article-toc-mobile a:hover,
.article-toc-mobile a:focus-visible {
  color: var(--article-violet);
  text-decoration-color: currentColor;
}

.article-toc-mobile { display: none; }

.article-content { min-width: 0; }

.article-content > :first-child { margin-top: 0; }

.article-section:first-child h2 { margin-top: 0; }

.article-content h2,
.article-content h3 {
  scroll-margin-top: 96px;
  font-family: var(--article-display);
  color: var(--article-text);
  text-wrap: balance;
}

.article-content h2 {
  max-width: 17ch;
  margin: clamp(58px, 8vw, 96px) 0 22px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin: 36px 0 14px;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-content p,
.article-content li {
  max-width: 68ch;
  font-size: 17px;
}

.article-content p { margin: 0 0 20px; }

.article-content ul,
.article-content ol:not(.related-grid) {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 1.25em;
}

.article-table-wrap { max-width: 680px; margin: 28px 0; overflow-x: auto; }
.article-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.article-table-wrap th,
.article-table-wrap td { min-width: 120px; padding: 12px; border: 1px solid var(--article-line); text-align: left; vertical-align: top; }
.article-table-wrap th { color: var(--article-text); background: var(--article-surface); font-weight: 700; }

.article-content li::marker { color: var(--article-violet); }

.article-content :where(p, figcaption) a {
  color: var(--article-violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-link {
  color: var(--article-violet);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content figure {
  max-width: 680px;
  margin: clamp(30px, 5vw, 50px) 0;
}

.article-content figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: var(--article-surface);
}

.article-content figcaption {
  margin-top: 10px;
  color: var(--article-muted);
  font-size: 12px;
  line-height: 1.4;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid #a78bfa;
  color: var(--article-text);
  font-family: var(--article-display);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 550;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.taste-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 680px;
  margin: 42px 0;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--article-violet-line);
  border-radius: 16px;
  background: var(--article-violet-tint);
}

.taste-card > * { min-width: 0; }
.taste-card .eyebrow { margin: 0 0 8px; }
.taste-card h2,
.taste-card h3 { margin: 0 0 8px; font-size: 22px; }
.taste-card p { margin: 0; color: #5d556a; font-size: 15px; line-height: 1.55; }

.taste-card a,
.article-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.taste-card a {
  justify-self: start;
  white-space: normal;
  padding-block: 12px;
  color: #fff;
  background: var(--article-violet);
  text-decoration: none;
  text-decoration: none;
}

.taste-card a:hover { background: #5b21b6; }

.article-cta {
  display: grid;
  gap: 14px;
  max-width: 680px;
  min-height: 0;
  margin: 48px 0;
  padding: clamp(28px, 5vw, 44px);
  color: #fff;
  background: var(--article-text);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgb(35 40 46 / 16%);
  text-align: left;
  white-space: normal;
}

.article-cta h2,
.article-cta h3 { max-width: 16ch; margin: 0; color: #fff; font-size: clamp(27px, 3vw, 36px); }
.article-cta p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 16px; }
.article-cta .eyebrow { margin: 0; color: #c4b5fd; }
.article-cta a { color: var(--article-text); background: #fff; text-decoration: none; }
.article-cta a:hover { background: var(--article-surface); }

.article-source {
  max-width: 680px;
  margin: 48px 0;
  padding: 18px 20px;
  border-left: 2px solid var(--article-violet-line);
  color: var(--article-muted);
  background: var(--article-surface);
  font-size: 14px;
}

.article-source p { margin: 0; font-size: inherit; line-height: 1.55; }
.article-source a { color: var(--article-violet); text-decoration: underline; text-underline-offset: 3px; }

.article-related { max-width: 680px; margin-top: clamp(58px, 8vw, 96px); }
.article-related > h2 { margin-top: 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.related-grid li { min-width: 0; }

.related-grid a {
  display: grid;
  min-height: 124px;
  padding: 20px;
  border: 1px solid var(--article-line);
  border-radius: 16px;
  background: var(--article-surface);
  color: var(--article-text);
  font-family: var(--article-display);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.related-grid span:first-child {
  color: var(--article-violet);
  font-family: var(--article-body);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.related-grid h3 { margin: 12px 0 0; font-size: 18px; }
.related-grid p { margin: 12px 0 0; color: var(--article-muted); font-family: var(--article-body); font-size: 13px; line-height: 1.45; }

.related-grid a:hover { border-color: #c4b5fd; background: var(--article-violet-tint); }

@media (max-width: 820px) {
  .article-hero { grid-template-columns: 1fr; gap: 32px; }
  .article-hero h1 { max-width: 13ch; }
  .article-hero__figure { max-width: 640px; }
  .article-layout { display: block; width: min(700px, 100%); }
  .article-toc { display: none; }
  .article-toc-mobile {
    display: block;
    margin: 0 0 44px;
    padding: 16px 18px;
    border: 1px solid var(--article-line);
    border-radius: 16px;
    background: var(--article-surface);
  }
  .article-toc-mobile summary {
    min-height: 28px;
    color: var(--article-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
  }
  .article-toc-mobile ol { margin-top: 16px; }
}

@media (max-width: 620px) {
  .article-header__inner { gap: 8px; }
  .article-nav { justify-content: flex-end; }
  .article-nav a { padding-inline: 8px; }
  .article-nav a:first-child { display: none; }
  .article-header__cta { padding-inline: 12px; }
  .article-hero { padding-top: 40px; }
  .article-hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .article-hero__lead { margin-top: 20px; }
  .article-content h2 { margin-top: 58px; }
  .article-content p,
  .article-content li { font-size: 16px; }
  .article-content figure { margin-block: 30px; }
  .taste-card { grid-template-columns: 1fr; }
  .taste-card a { justify-self: start; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .article-header__inner { width: calc(100% - 24px); }
  .article-brand img { height: 24px; }
  .article-nav a { padding-inline: 6px; font-size: 12px; }
  .article-nav a:nth-child(2) { display: none; }
  .article { width: calc(100% - 32px); }
}

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

/* Local journal hub. The generator currently contains one editorial card. */
body:not(.article-page) .article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 100% - 2 * var(--article-gutter));
  min-height: 64px;
  margin-inline: auto;
  border: 0;
}

body:not(.article-page) .article-header > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--article-muted);
  font-size: 14px;
  font-weight: 650;
}

body:not(.article-page) .article-header img { width: auto; height: 28px; }

.journal-hub {
  width: min(1120px, 100% - 2 * var(--article-gutter));
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) 0;
}

.journal-hub > .eyebrow { margin-bottom: 16px; }

.journal-hub > h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--article-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.journal-hub > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 22px 0 44px;
  color: var(--article-muted);
  font-size: 18px;
}

.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.journal-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--article-line); border-radius: 20px;
  background: var(--article-surface); text-decoration: none;
}
.journal-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.journal-card > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; }
.journal-card .eyebrow { margin: 0 0 12px; font-size: 11px; }
.journal-card h2 { margin: 0; font-family: var(--article-display); font-size: 23px; line-height: 1.16; letter-spacing: -.025em; }
.journal-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 14px 0 22px; color: var(--article-muted); font-size: 14px; line-height: 1.5; }
.journal-card > div > span:last-child { margin-top: auto; color: var(--article-violet); font-size: 13px; font-weight: 700; }
.journal-card:hover { border-color: #c4b5fd; background: var(--article-violet-tint); }
.journal-card:focus-visible { outline: 2px solid var(--article-violet); outline-offset: 4px; }
@media (max-width: 1000px) { .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .journal-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.article-footer {
  width: min(1200px, calc(100% - 2 * var(--article-gutter)));
  margin: 0 auto 28px;
  padding: 36px 40px 16px;
  background: var(--article-surface);
  border: 1px solid var(--article-line);
  border-radius: 24px;
  color: var(--article-muted);
  font-size: 14px;
}
.article-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 28px; }
.article-footer__brand > a { display: inline-flex; align-items: center; min-height: 44px; }
.article-footer__brand img { width: auto; height: 30px; }
.article-footer__brand p { margin: 12px 0 0; line-height: 1.55; }
.article-footer h2 { margin: 0 0 10px; font: 600 13px/1.4 var(--article-body); color: var(--article-muted); }
.article-footer nav { display: grid; align-content: start; }
.article-footer nav a { display: flex; align-items: center; min-height: 44px; color: var(--article-text); text-decoration: none; line-height: 1.4; }
.article-footer nav a:hover { color: var(--article-violet); text-decoration: underline; text-underline-offset: 4px; }
.article-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; border-top: 1px solid var(--article-line); font-size: 12px; }
.article-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.article-footer__bottom nav a { color: var(--article-muted); }
@media (max-width: 720px) {
  .article-footer { padding: 24px 20px 16px; border-radius: 20px; margin-bottom: 16px; }
  .article-footer__top { grid-template-columns: 1fr 1fr; gap: 26px 16px; padding-bottom: 20px; }
  .article-footer__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
  .article-footer__brand img { height: 28px; }
  .article-footer__brand p { margin: 0; font-size: 12px; }
  .article-footer nav a { font-size: 13px; }
  .article-footer__bottom { align-items: flex-start; flex-direction: column; gap: 4px; }
  .article-footer__bottom nav { display: grid; gap: 0; }
  .article-footer__bottom nav a { font-size: 12px; }
}

.related-grid h3 { margin: 10px 0; font-size: 20px; }
.related-grid p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--article-muted); }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

.taste-card a, .article-cta .btn { gap: 8px; }

.article-cta p { font-weight: 400; }

/* Portrait editorial covers fill their frame; kitchen keeps its approved crop. */
.article-hero--portrait .article-hero__figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.article-table-hint { display: none; }
.article-table-wrap:focus-visible { outline: 2px solid var(--article-violet); outline-offset: 4px; }
.article-crosslink { padding: 16px 20px; border-left: 3px solid var(--article-violet-line); background: var(--article-surface); border-radius: 0 12px 12px 0; }
@media (max-width: 720px) {
  .article-content .article-table-hint { display: block; color: var(--article-muted); font-size: 13px; margin-bottom: -12px; }
}

.journal-hub { padding-top: clamp(40px, 5vw, 72px); }
.journal-hub > h1 { max-width: none; }
@media (max-width: 600px) {
  .journal-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; }
  .journal-card img { height: 140px; aspect-ratio: auto; border-radius: 0 0 12px 0; }
  .journal-card > div { padding: 16px; }
  .journal-card h2 { font-size: 18px; line-height: 1.2; }
  .journal-card .eyebrow { font-size: 10px; margin-bottom: 9px; }
  .journal-card p { display: none; }
  .journal-card > div > span:last-child { margin-top: 16px; font-size: 12px; }
  .journal-card--text { grid-template-columns: 1fr; }
}
