:root {
  --paper: #f8f3ea;
  --paper-strong: #efe4d3;
  --surface: #fffdf8;
  --ink: #271c17;
  --ink-soft: #6f6259;
  --line: #d9cbbd;
  --terracotta: #bd4f2f;
  --terracotta-dark: #96391f;
  --leaf: #2f684c;
  --gold: #bd9451;
  --shadow: 0 18px 45px rgba(45, 29, 20, 0.1);
  --display: "Fraunces", Georgia, serif;
  --body: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(189, 148, 81, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 72px;
  font-family: var(--body);
  line-height: 1.5;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(47, 104, 76, 0.38);
  outline-offset: 3px;
}

.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;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(115, 89, 69, 0.2);
  background: rgba(248, 243, 234, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner,
.catalog-intro,
.catalog-controls,
.catalog,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-button {
  min-height: 42px;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

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

.account-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button__mark {
  color: var(--ink-soft);
  font-size: 9px;
}

.account-button--active .account-button__mark {
  color: var(--leaf);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 6px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  letter-spacing: 0;
}

.brand-lockup strong {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.05;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.purchase-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--terracotta);
  border-radius: 5px;
  background: var(--terracotta);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.purchase-button:hover {
  border-color: var(--terracotta-dark);
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.purchase-button--compact {
  min-height: 40px;
  padding: 0 16px;
}

.catalog-intro {
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 64px;
  padding-block: 62px 42px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.catalog-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 76px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.catalog-intro h1 em {
  color: var(--terracotta);
  font-weight: 600;
}

.intro-description {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.catalog-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-facts div {
  min-width: 0;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}

.catalog-facts div:last-child {
  border-right: 0;
}

.catalog-facts strong,
.catalog-facts span {
  display: block;
}

.catalog-facts strong {
  font-family: var(--display);
  font-size: 31px;
  line-height: 1;
}

.catalog-facts span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.catalog-controls {
  position: sticky;
  z-index: 20;
  top: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.96);
  backdrop-filter: blur(16px);
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.search-field input::placeholder {
  color: #9a8e84;
}

.search-symbol {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  color: var(--terracotta);
  font-size: 22px;
  transform: translateY(-54%);
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.language-switcher button {
  min-width: 52px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.catalog {
  padding-block: 48px 76px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.catalog-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.result-count {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
}

.recipe-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(57, 39, 28, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.recipe-card:hover {
  border-color: rgba(189, 79, 47, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.recipe-card__button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.recipe-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-strong);
}

.recipe-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.recipe-card:hover img {
  transform: scale(1.035);
}

.recipe-card__image::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(to top, rgba(25, 17, 13, 0.64), transparent);
  pointer-events: none;
}

.recipe-card__badges {
  position: absolute;
  z-index: 2;
  inset: 12px 12px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.recipe-card__badge {
  max-width: 68%;
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 3px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-card__badge--premium {
  max-width: none;
  background: var(--ink);
  color: #fff;
}

.recipe-card__number {
  position: absolute;
  z-index: 2;
  bottom: -15px;
  left: 15px;
  color: #fff;
  font-family: var(--display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
}

.recipe-card__body {
  min-height: 132px;
  padding: 22px 18px 18px;
}

.recipe-card__meta {
  margin: 0 0 8px 64px;
  color: var(--terracotta);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.recipe-card h3 {
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  color: var(--ink);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.empty-state {
  min-height: 260px;
  place-content: center;
  text-align: center;
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  font-family: var(--display);
  font-size: 26px;
}

.empty-state span {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 42px;
  border-top: 1px solid var(--ink);
  font-size: 11px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  font-family: var(--display);
  font-size: 18px;
}

.site-footer span {
  margin-top: 4px;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--terracotta-dark);
  font-weight: 700;
}

.dialog-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 28px;
}

.dialog-shell[hidden] {
  display: none;
}

.dialog-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(35, 24, 18, 0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.recipe-dialog {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(940px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0;
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(20, 13, 9, 0.42);
  animation: dialog-enter 220ms ease-out both;
}

.dialog-hero {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: var(--ink);
}

.dialog-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dialog-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(25, 16, 12, 0.9), rgba(25, 16, 12, 0.06) 72%);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.93);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog-title-block {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 34px;
  color: #fff;
}

.dialog-title-block p {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.dialog-title-block h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: 43px;
  line-height: 1.02;
  letter-spacing: 0;
}

.dialog-title-block h2 span {
  display: block;
  margin-top: 7px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.76;
}

.dialog-body {
  padding: 28px 34px 34px;
}

.dialog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-summary div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.dialog-summary div:last-child {
  border-right: 0;
}

.dialog-summary strong,
.dialog-summary span {
  display: block;
}

.dialog-summary strong {
  font-family: var(--display);
  font-size: 20px;
}

.dialog-summary span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.dialog-description {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.recipe-columns {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
}

.recipe-section h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ingredient-list,
.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-list li {
  position: relative;
  padding: 8px 0 8px 15px;
  border-bottom: 1px solid rgba(115, 89, 69, 0.14);
  font-size: 12px;
}

.ingredient-list li::before {
  position: absolute;
  top: 13px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  content: "";
}

.step-list {
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 34px;
  padding: 5px 0 15px 42px;
  counter-increment: steps;
  font-size: 12px;
  line-height: 1.65;
}

.step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  content: counter(steps);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.chef-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--ink);
  color: #fff;
}

.chef-note strong {
  display: block;
  margin-bottom: 5px;
  color: #dfbd82;
  font-size: 9px;
  text-transform: uppercase;
}

.chef-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--terracotta);
  background: var(--surface);
}

.access-panel .section-kicker {
  margin-bottom: 8px;
}

.access-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.15;
}

.access-panel p {
  max-width: 570px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.access-panel .purchase-button {
  min-width: 170px;
  padding: 0 18px;
}

.auth-gate {
  max-width: 620px;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--terracotta);
  background: var(--surface);
}

.auth-gate__heading h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 29px;
  line-height: 1.15;
}

.auth-gate__heading > p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.auth-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.auth-field,
.auth-field > span {
  display: block;
}

.auth-field > span:first-child {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.auth-field__password {
  position: relative;
}

.auth-field__password input {
  padding-right: 92px;
}

.auth-password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 74px;
  min-height: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--terracotta-dark);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.auth-hint,
.auth-status {
  margin: -5px 0 0;
  font-size: 10px;
}

.auth-hint {
  color: var(--ink-soft);
}

.auth-status--error {
  color: var(--terracotta-dark);
}

.auth-submit,
.secondary-button {
  min-height: 46px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.auth-submit {
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: #fff;
}

.auth-submit:hover {
  background: var(--terracotta-dark);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.auth-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.auth-premium a,
.text-button {
  border: 0;
  background: transparent;
  color: var(--terracotta-dark);
  cursor: pointer;
  font-weight: 700;
}

.auth-notice {
  margin-top: 20px;
  padding: 20px;
  border-left: 4px solid var(--leaf);
  background: var(--paper);
}

.auth-notice strong,
.auth-notice p {
  display: block;
}

.auth-notice strong {
  font-family: var(--display);
  font-size: 22px;
}

.auth-notice p {
  margin: 8px 0 14px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.standalone-dialog {
  min-height: 520px;
  padding: 30px;
  background: var(--paper);
}

.standalone-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.standalone-dialog__header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
}

.standalone-dialog__header .dialog-close {
  position: static;
  border-color: var(--line);
}

.account-panel {
  max-width: 620px;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.account-panel h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 29px;
}

.account-panel > p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.account-panel__email {
  margin: 14px 0 0;
  color: var(--ink) !important;
  font-weight: 700;
}

.account-panel__remaining {
  display: block;
  margin-top: 18px;
  color: var(--leaf);
  font-size: 12px;
}

.account-panel__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.secondary-button {
  min-width: 120px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.dialog-message {
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  text-align: center;
}

.dialog-message p {
  margin: 0;
  padding: 24px;
  font-size: 12px;
}

.dialog-message--loading {
  background: linear-gradient(100deg, var(--paper-strong) 25%, var(--surface) 45%, var(--paper-strong) 65%);
  background-size: 300% 100%;
  animation: loading 1.3s infinite linear;
}

.dialog-message--error {
  border-left: 5px solid var(--terracotta);
}

.loading-card {
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(100deg, var(--paper-strong) 25%, var(--surface) 45%, var(--paper-strong) 65%);
  background-size: 300% 100%;
  animation: loading 1.3s infinite linear;
}

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

@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .catalog-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .catalog-intro,
  .catalog-controls,
  .catalog,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-lockup strong {
    font-size: 16px;
  }

  .brand-lockup small {
    display: none;
  }

  .purchase-button--compact {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .header-actions {
    gap: 7px;
  }

  .account-button {
    min-height: 38px;
    max-width: 86px;
    padding-inline: 10px;
  }

  .catalog-intro {
    min-height: 0;
    padding-block: 38px 30px;
  }

  .catalog-intro h1 {
    font-size: 52px;
  }

  .intro-description {
    margin-top: 18px;
    font-size: 12px;
  }

  .catalog-facts div {
    padding: 14px 8px;
  }

  .catalog-facts strong {
    font-size: 25px;
  }

  .catalog-controls {
    top: 66px;
    grid-template-columns: 1fr auto;
    padding-block: 12px;
  }

  .language-switcher button {
    min-width: 42px;
  }

  .catalog {
    padding-block: 34px 56px;
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .catalog-heading h2 {
    font-size: 29px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-card h3 {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-shell {
    padding: 0;
  }

  .recipe-dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .dialog-hero {
    height: 300px;
  }

  .dialog-title-block {
    padding: 24px 20px;
  }

  .dialog-title-block h2 {
    font-size: 31px;
  }

  .dialog-body {
    padding: 22px 20px 34px;
  }

  .dialog-summary div {
    padding: 12px 8px;
  }

  .dialog-summary strong {
    font-size: 16px;
  }

  .access-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .access-panel .purchase-button {
    width: 100%;
  }

  .auth-gate,
  .account-panel {
    padding: 20px;
  }

  .auth-gate__heading h3,
  .account-panel h2 {
    font-size: 25px;
  }

  .auth-premium {
    align-items: flex-start;
    flex-direction: column;
  }

  .standalone-dialog {
    min-height: 100vh;
    padding: 20px;
  }

  .account-panel__actions {
    flex-direction: column-reverse;
  }

  .account-panel__actions .purchase-button,
  .account-panel__actions .secondary-button {
    width: 100%;
  }
}

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