@font-face {
  font-family: "Aurelis Serif";
  src: url("./assets/fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Aurelis Serif";
  src: url("./assets/fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Aurelis Sans";
  src: url("./assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Aurelis Sans";
  src: url("./assets/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Aurelis Sans";
  src: url("./assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b1412;
  --muted: #5e534c;
  --cream: #f3efe7;
  --paper: #fbf8f3;
  --card: #fffdf9;
  --line: rgba(27, 20, 18, 0.12);
  --burgundy: #722433;
  --gold: #9a7340;
  --gold-bright: #e7c98a;
  --deep: #140e0c;
  --sans: "Aurelis Sans", "Segoe UI", "Nirmala UI", "Helvetica Neue", sans-serif;
  --serif: "Aurelis Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --shadow: 0 18px 40px rgba(28, 16, 12, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

html[lang="ar"] body,
html[lang="ur"] body,
html[lang="hi"] body,
html[lang="bn"] body,
html[lang="ru"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3 {
  font-family: "Segoe UI", "Nirmala UI", "Noto Naskh Arabic", "Noto Sans", sans-serif;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.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-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 8px;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--card);
  color: var(--ink);
  padding: 12px 16px;
  min-height: 44px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 760px);
}

.promo {
  margin: 0;
  background: var(--burgundy);
  color: #f8efe6;
  text-align: center;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 231, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand svg {
  width: 28px;
  height: 28px;
  color: var(--burgundy);
}

.brand span {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 10px 16px;
  font-size: 16px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-control select {
  min-height: 44px;
  min-width: 44px;
  max-width: 148px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 8px 12px;
  font-size: 16px;
}

.icon-button,
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-button svg,
.menu-toggle svg {
  width: 20px;
  height: 20px;
}

#cellar-count {
  position: absolute;
  inset-inline-end: -2px;
  top: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.68rem;
  line-height: 18px;
  text-align: center;
  padding-inline: 4px;
}

.menu-toggle {
  display: none;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-bottom: 12px;
}

.nav-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav-row a:hover,
.nav-row a:focus-visible {
  color: var(--burgundy);
}

.age-banner {
  background: #2a211c;
  color: #f6f1e7;
  padding: 18px 0;
}

.age-banner p {
  color: rgba(246, 241, 231, 0.78);
  margin-top: 4px;
}

section {
  scroll-margin-top: 108px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 640px;
  min-height: calc(100dvh - 168px);
  color: #f7f1e8;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 70% center;
}

html[dir="rtl"] .hero-media img {
  object-position: 30% center;
}

@media (max-width: 719px) {
  .hero {
    min-height: 0;
  }

  .hero-media {
    position: relative;
    height: 320px;
  }

  .hero-media img,
  html[dir="rtl"] .hero-media img {
    object-position: 58% center;
  }

  .hero::after {
    inset: 0 0 auto 0;
    height: 320px;
    background: linear-gradient(180deg, rgba(12, 8, 7, 0.05) 40%, rgba(12, 8, 7, 0.35) 100%);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 7, 0.12) 0%, rgba(12, 8, 7, 0.28) 38%, rgba(12, 8, 7, 0.86) 100%);
}

.hero > .hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1180px);
  max-width: 1180px;
  padding: 48px 0 36px;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-lead,
.hero-copy .hero-actions,
.hero-copy .hero-strips {
  max-width: 32rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.92rem;
}

.hero .eyebrow {
  color: var(--gold-bright);
}

.hero h1 {
  font-size: clamp(2.45rem, 4.6vw, 4.2rem);
  max-width: 12ch;
  text-wrap: balance;
}

html[lang="hi"] .hero h1,
html[lang="ar"] .hero h1,
html[lang="ur"] .hero h1,
html[lang="bn"] .hero h1,
html[lang="ru"] .hero h1 {
  max-width: 18ch;
  font-size: clamp(2.05rem, 5.4vw, 3.8rem);
}

.hero-lead,
.lede {
  color: var(--muted);
  max-width: 62ch;
}

.hero-lead {
  color: rgba(247, 241, 232, 0.88);
  margin-top: 16px;
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-actions,
.dialog-actions,
.result-actions,
.note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button,
.text-button,
.filters button,
.choice,
.faq-item > button,
.footer-nav button,
.dialog-close {
  min-height: 44px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  line-height: 1.2;
}

.button--gold {
  background: var(--gold-bright);
  color: #24180f;
}

.button--ink {
  background: var(--ink);
  color: #f6f1e7;
}

.button--ghost {
  background: transparent;
  color: #f6f1e7;
  border-color: rgba(246, 241, 231, 0.45);
}

.button--line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero-strips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 241, 232, 0.8);
  font-size: 0.92rem;
}

.hero-strips li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-strips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.band {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.club h2,
.palate h2,
.closer h2,
.faq h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 16ch;
  text-wrap: balance;
}

.section-head .lede {
  margin-top: 10px;
}

.cat-grid,
.gift-grid,
.bottle-grid {
  display: grid;
  gap: 14px;
}

.cat-grid {
  grid-template-columns: 1fr 1fr;
}

.cat-card,
.story,
.gift-card,
.bottle {
  min-width: 0;
}

.cat-card {
  position: relative;
  display: block;
  min-height: 180px;
  border-radius: 18px;
  overflow: hidden;
  color: #f7f1e8;
  text-decoration: none;
}

.cat-card img,
.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card img {
  position: absolute;
  inset: 0;
}

.cat-card span,
.story > span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 180px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(12, 8, 7, 0.05) 20%, rgba(12, 8, 7, 0.78) 100%);
}

.cat-card strong,
.story strong,
.gift-card b {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
}

.cat-card small,
.story small,
.gift-card span {
  color: rgba(247, 241, 232, 0.86);
  font-size: 0.92rem;
}

.mosaic,
.mosaic-side,
.club-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.story {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  color: #f7f1e8;
  text-decoration: none;
  min-height: 220px;
}

.story img {
  position: absolute;
  inset: 0;
}

.story > span {
  min-height: 220px;
}

.story--tall > span {
  min-height: 320px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filters button,
.choice,
.gift-card,
.faq-item > button,
.footer-nav button,
.text-button,
.dialog-close {
  border: 1px solid var(--line);
  background: var(--card);
}

.filters button {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 16px;
}

.filters button[aria-checked="true"] {
  background: var(--ink);
  color: #f6f1e7;
  border-color: var(--ink);
}

.bottle-grid {
  grid-template-columns: 1fr;
}

.bottle {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bottle img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bottle-body {
  padding: 14px 14px 16px;
}

.bottle-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[dir="rtl"] .bottle-kicker {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9rem;
}

.pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--burgundy);
}

.bottle[data-type="white"] .pip { background: #c6a15a; }
.bottle[data-type="sparkling"] .pip { background: #d9c27a; }
.bottle[data-type="rose"] .pip { background: #d9898a; }

.bottle h3 {
  margin-top: 8px;
  font-size: 1.7rem;
}

.bottle-meta,
.bottle-note,
.fine,
.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.bottle-meta {
  margin-top: 4px;
}

.bottle-note {
  margin-top: 8px;
}

.bottle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.bottle-row strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.keep[aria-pressed="true"] {
  background: #efe4d4;
  border-color: var(--gold);
}

.empty {
  padding: 18px 0;
}

.gift-grid {
  grid-template-columns: 1fr;
}

.gift-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 18px;
  border-radius: 18px;
  text-decoration: none;
  background: #2a211c;
  color: #f6f1e7;
  border: 0;
}

.gift-card span {
  color: rgba(246, 241, 231, 0.75);
}

.region-block {
  margin-top: 28px;
}

.region-block h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.band--paper {
  background: #efe8dc;
}

.quiz-card,
.closer-panel,
.dialog-card {
  background: var(--card);
  border-radius: 22px;
  padding: 22px 18px;
  border: 1px solid var(--line);
}

.quiz-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.quiz-card h3,
#result-title {
  margin: 14px 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.choice-row {
  display: grid;
  gap: 10px;
}

.choice {
  width: 100%;
  text-align: start;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
}

.choice:hover,
.gift-card:hover,
.cat-card:hover,
.story:hover {
  border-color: var(--gold);
}

.text-button {
  background: transparent;
  border: 0;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.club figure {
  margin: 0;
}

.club img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
}

.club-points {
  margin: 16px 0 18px;
  padding-inline-start: 18px;
}

.club-points li + li {
  margin-top: 6px;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  padding: 16px 0;
  background: transparent;
  border: 0;
  font-size: 1.05rem;
}

.faq-item > button i {
  width: 10px;
  height: 10px;
  border-inline-end: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.faq-item > button[aria-expanded="true"] i {
  transform: rotate(225deg);
}

.faq-item p {
  padding-bottom: 16px;
  color: var(--muted);
}

.closer {
  padding: 28px 0 64px;
}

.closer-panel {
  background: #241812;
  color: #f6f1e7;
  padding: 28px 20px;
}

.closer .eyebrow {
  color: var(--gold-bright);
}

.closer p,
.closer .fine {
  color: rgba(246, 241, 231, 0.78);
  margin-top: 10px;
}

.note-row {
  align-items: stretch;
}

.note-row input,
.quiz-card input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 231, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f6f1e7;
  padding: 10px 16px;
  font-size: 16px;
}

.form-status {
  margin-top: 10px;
  color: var(--gold-bright);
}

.site-footer {
  background: #140e0c;
  color: #f3ece4;
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.site-footer .brand svg,
.site-footer .brand span {
  color: var(--gold-bright);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav button {
  background: transparent;
  color: #f3ece4;
  border-color: rgba(243, 236, 228, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
}

.footer-note {
  color: rgba(243, 236, 228, 0.7);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  width: 100%;
}

dialog::backdrop {
  background: rgba(16, 10, 8, 0.66);
}

.dialog-card {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.dialog-card--wide {
  max-width: 640px;
}

.dialog-card h2 {
  font-size: 2rem;
  margin: 8px 0 10px;
}

.dialog-card p + p {
  margin-top: 10px;
}

.dialog-close {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 8px 12px;
}

#cellar-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#cellar-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

body.is-locked .hero-actions,
body.is-locked #categories,
body.is-locked #journal,
body.is-locked #shelf,
body.is-locked #gifts,
body.is-locked #palate,
body.is-locked #club,
body.is-locked #faq,
body.is-locked #note {
  display: none;
}

@media (min-width: 720px) {
  .cat-grid,
  .gift-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bottle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .choice-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(12, 8, 7, 0.86) 0%, rgba(12, 8, 7, 0.52) 46%, rgba(12, 8, 7, 0.08) 100%);
  }

  html[dir="rtl"] .hero::after {
    background: linear-gradient(270deg, rgba(12, 8, 7, 0.86) 0%, rgba(12, 8, 7, 0.52) 46%, rgba(12, 8, 7, 0.08) 100%);
  }

  .hero-copy {
    padding-bottom: 64px;
  }
}

@media (min-width: 900px) {
  .band {
    padding: 84px 0;
  }

  .categories {
    margin-top: -64px;
    position: relative;
    z-index: 2;
  }

  .section-head--split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: end;
  }

  .mosaic {
    grid-template-columns: 1.25fr 0.85fr;
    align-items: stretch;
  }

  .story--tall,
  .story--tall > span {
    height: 100%;
    min-height: 520px;
  }

  .club-grid,
  .faq-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
  }

  .gift-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .bottle-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .bottle img {
    height: auto;
  }

  .note-row {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1180px) {
  .bottle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(243, 239, 231, 0.98);
  }

  body.nav-open .site-nav {
    display: block;
  }

  .nav-row {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 14px;
  }
}

@media (max-width: 719px) {
  .header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding-top: 8px;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
    padding-bottom: 10px;
  }

  .brand span {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
  }

  .language-control select {
    max-width: 112px;
  }
}

@media (max-width: 360px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .language-control select {
    max-width: 96px;
    padding-inline: 8px;
  }

  .header-tools {
    gap: 4px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cat-card img,
  .story img {
    transition: transform 0.6s ease;
  }

  .cat-card:hover img,
  .story:hover img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
