/* Crocante Leve — identidade: papel esverdeado, verde de horta, mostarda de
   tempero. Editorial de revista de cozinha, não blog genérico. */

:root {
  --paper: #f3f6f1;
  --surface: #ffffff;
  --ink: #121c16;
  --muted: #56695d;
  --line: #d8e1d5;
  --brand: #1e6a49;
  --brand-deep: #0e3b28;
  --sun: #e2a62e;
  --on-brand: #f2f8f2;
  --band: #0e3b28;
  --on-band: #eaf3ec;
  --shadow: 0 1px 2px rgba(18, 28, 22, 0.06), 0 14px 34px -20px rgba(18, 28, 22, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1612;
    --surface: #16201a;
    --ink: #e9f1ea;
    --muted: #a0b1a5;
    --line: #27362d;
    --brand: #63c193;
    --brand-deep: #0b2a1d;
    --sun: #ecb84f;
    --on-brand: #08160e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -22px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0f1612;
  --surface: #16201a;
  --ink: #e9f1ea;
  --muted: #a0b1a5;
  --line: #27362d;
  --brand: #63c193;
  --brand-deep: #0b2a1d;
  --sun: #ecb84f;
  --on-brand: #08160e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -22px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 30;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

strong,
b {
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.skip:focus {
  top: max(12px, env(safe-area-inset-top, 0px));
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.brand-name em {
  font-style: normal;
  color: var(--brand);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--surface);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    top: calc(100% + 8px);
    margin: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 2px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 11px 14px;
  }
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(36px, 6vw, 76px) clamp(28px, 4vw, 48px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

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

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.3rem);
  font-weight: 800;
}

.hl {
  color: var(--brand);
}

.lede {
  font-size: clamp(1.04rem, 1.5vw, 1.17rem);
  color: var(--muted);
  max-width: 54ch;
  margin: 22px 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 23px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--brand) 82%, var(--brand-deep));
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn--sun {
  background: var(--sun);
  color: #22190a;
}

.btn--sun:hover {
  background: color-mix(in srgb, var(--sun) 88%, #000);
}

.hero-note {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-feature-media {
  display: block;
  aspect-ratio: 16 / 11;
  background: #dfe9da;
}

.hero-feature-media svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-feature-body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
}

.hero-feature h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.12;
}

.hero-feature h2 a {
  color: var(--ink);
  text-decoration: none;
}

.hero-feature-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-arrow {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------- faixa de temperaturas */

.tempos {
  background: var(--band);
  color: var(--on-band);
  padding-block: clamp(30px, 4vw, 46px);
}

.tempos-head {
  display: grid;
  gap: 6px;
  max-width: 60ch;
}

.tempos h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  color: var(--on-band);
}

.tempos-head p {
  margin: 0;
  font-size: 0.93rem;
  color: color-mix(in srgb, var(--on-band) 74%, transparent);
}

.tempos .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sun);
  text-decoration: none;
}

.tempos .link-arrow:hover {
  text-decoration: underline;
}

.tempos-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .tempos-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tempos-list li {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--on-band) 24%, transparent);
}

.temp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  color: var(--sun);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tempos-list li > span:last-child {
  font-size: 0.88rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--on-band) 78%, transparent);
}

/* ---------------------------------------------------------------- anuncios */

.ad-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 18px;
  text-align: center;
  min-height: 118px;
  margin-block: 34px;
}

.ad-slot .ad-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.ad-slot .ad-size {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.75;
}

.ad-slot--rail {
  min-height: 250px;
  margin-block: 0;
}

/* --------------------------------------------------------------- secao grid */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.disclosure {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

.searchbox input {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-size: 0.95rem;
  min-width: 250px;
  max-width: 100%;
}

.searchbox input::placeholder {
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chip {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.chip:hover {
  background: var(--surface);
}

.chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #dfe9da;
}

.card-media svg,
.card-media img,
.hero-feature-media img,
.recipe-cover img {
  display: block;
  width: 100%;
  height: 100%;
}

.card-media img,
.hero-feature-media img,
.recipe-cover img {
  object-fit: cover;
}

.card-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 9px;
  flex: 1;
  align-content: start;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}

.tag--low {
  background: color-mix(in srgb, var(--sun) 26%, transparent);
  color: var(--ink);
}

.card h3 {
  font-size: 1.16rem;
  line-height: 1.2;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--brand);
}

.card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-meta strong {
  color: var(--ink);
}

.empty {
  margin: 26px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------- loja */

.shop {
  padding-block: clamp(42px, 6vw, 74px);
  border-top: 1px solid var(--line);
  margin-top: clamp(42px, 6vw, 68px);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 860px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: grid;
  gap: 7px;
  align-content: start;
}

.product-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.product-icon svg {
  width: 23px;
  height: 23px;
}

.product h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.product-link {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.product-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------- newsletter */

.newsletter {
  background: var(--brand);
  color: var(--on-brand);
  padding-block: clamp(38px, 5vw, 62px);
  margin-top: clamp(42px, 6vw, 70px);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

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

.newsletter h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--on-brand);
}

.newsletter p {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--on-brand) 82%, transparent);
  font-size: 0.97rem;
  max-width: 42ch;
}

.news-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.news-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.97rem;
  background: var(--surface);
  color: var(--ink);
}

.form-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--on-brand);
  min-height: 1.2em;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 46px 26px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 30px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.footer-brand p {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 32ch;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- cookies */

.cookie {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  max-width: 780px;
  margin-inline: auto;
  background: var(--band);
  color: var(--on-band);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  font-size: 0.87rem;
}

.cookie p {
  margin: 0;
  max-width: 56ch;
  line-height: 1.5;
}

.cookie a {
  color: var(--sun);
}

.cookie .btn {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.cookie[hidden] {
  display: none;
}

/* ------------------------------------------------------------- paginas */

.page-head {
  padding-block: clamp(34px, 5vw, 64px) clamp(22px, 3vw, 34px);
}

.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.page-head .lede {
  margin-bottom: 0;
}

.listing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.listing-bar .filters {
  margin-bottom: 0;
}

/* --------------------------------------------------------------- guia */

.guide {
  padding-bottom: clamp(48px, 7vw, 84px);
}

.guide .note {
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

table.temps {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.temps th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.temps td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}

.temps tbody tr:last-child td {
  border-bottom: 0;
}

.temps td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.temps td.num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.temps tbody tr:hover {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.guide-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

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

.guide-cta {
  margin-top: 26px;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- receita */

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
  padding-top: 24px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.recipe-head {
  display: grid;
  gap: 14px;
  padding-block: 16px clamp(20px, 3vw, 28px);
}

.recipe-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  max-width: 20ch;
}

.recipe-dek {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 60ch;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.meta {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.meta b {
  color: var(--ink);
}

.recipe-cover {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 9;
  background: #dfe9da;
  margin-bottom: clamp(24px, 3.5vw, 36px);
}

@media (max-width: 700px) {
  .recipe-cover {
    aspect-ratio: 4 / 3;
  }
}

.recipe-cover svg {
  display: block;
  width: 100%;
  height: 100%;
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 72px);
}

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

.recipe-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}

.panel h2 {
  font-size: 1.32rem;
  margin-bottom: 14px;
}

.ingredients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ingredients-head h2 {
  margin-bottom: 0;
}

.scaler {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
}

.scaler-label {
  font-size: 0.76rem;
  color: var(--muted);
  margin-right: 8px;
}

.scaler button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.scaler button:hover {
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
}

.scaler output {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ing-list {
  list-style: none;
  margin: 6px 0 14px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.ing {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.98rem;
}

.ing:hover {
  background: var(--paper);
}

.ing input {
  margin: 5px 0 0;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}

.ing input:checked + .ing-text {
  text-decoration: line-through;
  color: var(--muted);
}

.qty {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.note {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps p {
  margin: 0;
  padding-top: 4px;
  max-width: 64ch;
}

.tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.tip-list li {
  display: flex;
  gap: 11px;
  font-size: 0.97rem;
  line-height: 1.55;
}

.tip-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  flex: none;
  margin-top: 9px;
}

.authority p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 66ch;
}

.rail {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 86px);
  min-width: 0;
}

@media (max-width: 900px) {
  .rail {
    position: static;
  }
}

.rail-panel {
  padding: 20px;
}

.rail-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.rail-products,
.related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rail-products a {
  display: grid;
  gap: 2px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--ink);
}

.rail-products a:hover {
  color: var(--brand);
}

.rail-products span,
.related span {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}

.related a {
  display: grid;
  gap: 2px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--ink);
}

.related a:hover {
  color: var(--brand);
}

/* ---------------------------------------------------------------- prosa */

.prose {
  max-width: 68ch;
  padding-bottom: clamp(48px, 7vw, 80px);
}

.prose h2 {
  font-size: 1.45rem;
  margin: 38px 0 12px;
}

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

.prose p {
  color: var(--ink);
  margin: 0 0 1em;
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.prose .note {
  margin-top: 4px;
}

/* ---------------------------------------------------------- paginas hub */

.hub-intro {
  max-width: 72ch;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding-bottom: 0;
}

.hub-intro p {
  font-size: 1.02rem;
  line-height: 1.65;
}

.hub-note {
  max-width: 68ch;
  margin: 26px auto 0;
  text-align: center;
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
