/* « Le blog » (docs/blog-plan.md): Studio's tokens (src/theme/tokens.ts), light only like
   chefclub.studio. Photos are the landing's (402 px wide): never shown wider than that. */
@font-face {
  font-family: "FuturaPT-Book";
  src: url("/fonts/FuturaPTBook.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "FuturaPT-Demi";
  src: url("/fonts/FuturaPTDemi.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "FuturaPT-Bold";
  src: url("/fonts/FuturaPTBold.otf") format("opentype");
  font-display: swap;
}
:root {
  --bg: #ffffff;
  --surface: #f9f8f5;
  --ink: #000000;
  --muted: #595854;
  --line: #dfdeda;
  --divider: #efeeeb;
  --accent: #e0004d;
  --accent-press: #8f0032;
  --accent-soft: #f1c3d3;
  --on-accent: #ffffff;
  --book: "FuturaPT-Book", "Futura", "Avenir Next", system-ui, sans-serif;
  --demi: "FuturaPT-Demi", "Futura", "Avenir Next", system-ui, sans-serif;
  --bold: "FuturaPT-Bold", "Futura", "Avenir Next", system-ui, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--book);
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
b,
strong {
  font-family: var(--demi);
  font-weight: normal;
}
h1,
h2,
h3 {
  font-family: var(--bold);
  font-weight: normal;
  text-wrap: balance;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.read {
  max-width: 720px;
}

/* Header */
.top {
  border-bottom: 1px solid var(--divider);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.brand b {
  font-family: var(--bold);
  font-size: 20px;
}
.brand span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.brand img {
  height: 11px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--demi);
  font-size: 15px;
}
.nav a {
  text-decoration: none;
}
.nav .here {
  color: var(--accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-family: var(--demi);
  font-size: 17px;
  padding: 12px 22px;
  border-radius: 999px;
}
.btn:hover {
  background: var(--accent-press);
}
.btn.sm {
  font-size: 15px;
  padding: 9px 16px;
}
@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
}

/* Home and rubriques */
.hero {
  padding-block: 44px 24px;
}
.eyebrow {
  font-family: var(--demi);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.05;
  margin: 8px 0 12px;
  max-width: 16ch;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  max-width: 46ch;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-block: 8px 28px;
}
.chip {
  font-family: var(--demi);
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.chip[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  padding-bottom: 56px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.card .pic {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.meta {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.meta .rub {
  color: var(--accent);
  font-family: var(--demi);
}
.card h2,
.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.card:hover h2,
.card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Article */
.crumbs {
  font-size: 15px;
  color: var(--muted);
  padding-block: 22px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
article h1 {
  font-size: clamp(32px, 5.4vw, 46px);
  line-height: 1.08;
  margin: 14px 0 16px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
  padding-bottom: 24px;
}
.byline b {
  color: var(--ink);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--bold);
  flex: none;
}
.opening {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 8px;
}
.cover {
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  background: var(--surface);
}
.lede p {
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 600px) {
  .opening {
    grid-template-columns: 1fr;
  }
  .cover {
    max-width: 402px;
    aspect-ratio: 4 / 3;
  }
}
article p {
  margin: 0 0 16px;
}
article ul,
article ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
article li {
  margin-bottom: 8px;
}
article h2.sec {
  font-size: 30px;
  line-height: 1.15;
  margin: 48px 0 12px;
  scroll-margin-top: 16px;
}
article h3 {
  font-size: 21px;
  margin: 26px 0 6px;
}
/* Texts to copy (Markdown « > »): one example per quote. */
article blockquote {
  margin: 0 0 12px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}
article blockquote p {
  margin: 0;
}
.fn a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--demi);
  font-size: 13px;
  padding-left: 2px;
}
.box {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}
.box-t {
  font-family: var(--demi);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--muted);
}
.box ul,
.box ol {
  margin: 0;
}
.box li:last-child {
  margin-bottom: 0;
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: s;
}
.steps li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  font-size: 17px;
  line-height: 1.4;
  counter-increment: s;
  margin: 0;
  min-width: 0;
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--bold);
  font-size: 15px;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.limit {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 18px;
  margin: 26px 0;
}
.limit-t {
  font-family: var(--demi);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.limit p:last-child {
  margin-bottom: 0;
}
.checks {
  list-style: none;
  padding: 0;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: 5px;
  border: 2px solid var(--accent);
}
.studio {
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 28px 26px;
  margin: 44px 0;
}
.studio .eyebrow {
  color: var(--accent-soft);
}
.studio h2 {
  font-size: 27px;
  line-height: 1.15;
  margin: 6px 0 12px;
}
.studio .mission {
  font-family: var(--demi);
}
.studio a:not(.btn) {
  color: var(--bg);
}
.studio .cta {
  display: flex;
  gap: 10px 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.studio .cta span {
  font-size: 15px;
  color: var(--line);
}
.author {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding-block: 22px;
  margin: 48px 0 26px;
}
.author .avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
}
.author p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.author b {
  color: var(--ink);
}
.sources {
  font-size: 15px;
  color: var(--muted);
}
.sources h2 {
  font-family: var(--demi);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.sources li {
  margin-bottom: 6px;
}
.sources a {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.related {
  border-top: 1px solid var(--divider);
  margin-top: 40px;
  padding-block: 32px 56px;
}
.related > h2 {
  font-size: 26px;
  margin: 0 0 20px;
}
.related .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.related .card h3 {
  font-size: 19px;
}
.related .card p {
  display: none;
}
@media (max-width: 760px) {
  .related .row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.foot {
  background: var(--surface);
}
.foot .wrap {
  padding-block: 28px;
  display: flex;
  gap: 12px 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--muted);
}
.foot nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
