:root {
  --ink: #17211f;
  --muted: #65706c;
  --paper: #faf8f3;
  --warm: #e8dfd0;
  --line: #d9d0c2;
  --accent: #8f1838;
  --accent-dark: #671126;
  --glass: rgba(250, 248, 243, 0.72);
  --shadow: 0 22px 60px rgba(23, 33, 31, 0.14);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 46px);
  color: var(--ink);
}

.auth-controls {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: flex-end;
}

.auth-actions,
.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

.auth-user[hidden],
[data-auth-required][hidden] {
  display: none;
}

.auth-button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.auth-button.strong,
.auth-button:hover {
  color: var(--paper);
  background: var(--ink);
}

.has-open-modal {
  overflow: hidden;
}

.consent-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.consent-modal[hidden] {
  display: none;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 31, 0.54);
  backdrop-filter: blur(12px);
}

.consent-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100svh - 40px));
  overflow: auto;
  border: 1px solid rgba(23, 33, 31, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(23, 33, 31, 0.32);
}

.consent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fffdf8;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.consent-content {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 5vw, 44px);
}

.consent-content h2 {
  margin: 0;
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}

.consent-content p {
  margin: 0;
  color: var(--muted);
}

.profile-field {
  display: grid;
  gap: 8px;
}

.profile-field label {
  color: var(--ink);
  font-weight: 900;
}

.profile-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.consent-checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 0.96rem;
}

.consent-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-checkbox a {
  color: var(--accent);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.consent-note {
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(143, 24, 56, 0.06);
  font-size: 0.94rem;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.consent-actions .button {
  border: 0;
}

.consent-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.consent-close:focus-visible,
.profile-field select:focus-visible,
.consent-checkbox input:focus-visible {
  outline: 3px solid rgba(143, 24, 56, 0.28);
  outline-offset: 3px;
}

#user-display {
  max-width: 180px;
  overflow: hidden;
  padding-left: 10px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 999px;
  background: var(--glass);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

.main-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--paper);
  background: var(--ink);
}

.language-switcher {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

.lang-button {
  min-width: 44px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 70px) 86px;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(250, 248, 243, 0.97) 0%, rgba(250, 248, 243, 0.82) 33%, rgba(250, 248, 243, 0.14) 74%),
    linear-gradient(0deg, rgba(250, 248, 243, 0.42), rgba(250, 248, 243, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  color: #3d4642;
  font-size: clamp(1.03rem, 1.8vw, 1.3rem);
}

.short-hero {
  min-height: 100svh;
}

.hero-note {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
}

.hero-entry-actions {
  max-width: 640px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 14px 32px rgba(143, 24, 56, 0.26);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: rgba(23, 33, 31, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.section-inner {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
}

.book-section,
.entry-section,
.articles-section,
.preview-section,
.video-section,
.catalogues-section,
.newsletter-section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.book-grid,
.articles-grid,
.preview-grid,
.video-grid,
.purchase-grid,
.catalogues-grid,
.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.entry-section {
  background: #fffdf8;
}

.entry-section h2 {
  margin-bottom: 28px;
}

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

.entry-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.08);
}

.entry-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
}

.entry-card .button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
}

.book-copy > p,
.preview-grid p,
.video-grid p,
.purchase-panel p,
.catalogues-panel p,
.articles-grid p,
.newsletter-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature {
  min-height: 250px;
  padding: 26px;
  background: #fffdf8;
}

.feature-number {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

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

.book-stats {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.book-stats li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  font-weight: 750;
}

.book-stats li::before {
  position: absolute;
  top: 19px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.audience-card {
  min-height: 180px;
  padding: 24px;
  background: #fffdf8;
}

.audience-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.covers-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 38px);
  margin-top: clamp(42px, 6vw, 72px);
}

.cover-card {
  display: grid;
  gap: 14px;
}

.cover-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.cover-image-frame {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 24, 56, 0.05), transparent 42%),
    #fffdf8;
  box-shadow: var(--shadow);
}

.cover-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
}

.cover-placeholder {
  display: none;
  padding: 28px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.cover-image-frame.is-unavailable .cover-placeholder {
  display: block;
}

.video-section,
.articles-section {
  background: #fffdf8;
}

.dictionary-section {
  background: linear-gradient(180deg, var(--paper), #fffdf8 42%, var(--paper));
}

.dictionary-media,
.dictionary-purchase {
  margin-top: clamp(48px, 7vw, 90px);
}

.video-grid {
  align-items: center;
}

.video-grid > div:first-child {
  display: grid;
  gap: 22px;
}

.video-grid .section-kicker {
  margin-bottom: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 850;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
}

.preview-section {
  background: linear-gradient(180deg, var(--paper), #fffdf8);
}

.articles-grid {
  align-items: center;
}

.articles-grid > div:first-child {
  display: grid;
  gap: 20px;
}

.articles-grid .section-kicker {
  margin-bottom: 0;
}

.articles-placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(143, 24, 56, 0.07), transparent 46%),
    var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.preview-grid {
  align-items: center;
}

.preview-copy {
  display: grid;
  gap: 22px;
}

.preview-copy .section-kicker {
  margin-bottom: 0;
}

.preview-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  justify-self: center;
  width: min(100%, 430px);
}

.preview-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.purchase-band {
  padding: clamp(54px, 7vw, 86px) 0;
  background: var(--ink);
  color: var(--paper);
}

.purchase-band .section-kicker {
  color: #efc6c9;
}

.dictionary-purchase {
  align-items: center;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 46px);
  background: var(--ink);
  color: var(--paper);
}

.dictionary-purchase .section-kicker {
  color: #efc6c9;
}

.purchase-panel {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.purchase-panel p {
  color: rgba(250, 248, 243, 0.74);
}

.marketplace-block {
  display: grid;
  gap: 10px;
  width: 100%;
  color: rgba(250, 248, 243, 0.7);
  font-size: 0.9rem;
  font-weight: 800;
}

.marketplace-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.marketplace-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 248, 243, 0.24);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--paper);
  background: rgba(250, 248, 243, 0.08);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 850;
}

.marketplace-link:hover {
  background: rgba(250, 248, 243, 0.14);
}

.catalogues-section {
  background: var(--paper);
}

.catalogues-heading {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.catalogues-heading .section-kicker {
  margin-bottom: 0;
}

.catalogues-heading p,
.catalogues-auth-message,
.catalogues-results-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.catalogues-auth-message {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.catalogues-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.catalogues-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.catalogues-filters input,
.catalogues-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

.catalogue-checkboxes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.catalogue-checkboxes legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.catalogue-checkbox {
  display: flex;
  min-height: 44px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.catalogue-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--accent);
}

.catalogues-reset {
  width: fit-content;
  border: 1px solid rgba(23, 33, 31, 0.16);
}

.catalogues-results-meta {
  margin-top: 24px;
  font-weight: 850;
}

.catalogues-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.catalogue-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.08);
}

.catalogue-preview {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 14px;
  color: rgba(250, 248, 243, 0.72);
  background: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.catalogue-preview canvas {
  max-width: 100%;
  max-height: 220px;
  border-radius: 4px;
  background: white;
}

.catalogue-card-content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.catalogue-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.catalogue-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.catalogue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalogue-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 850;
}

.catalogue-badge.is-active {
  border-color: rgba(143, 24, 56, 0.24);
  color: var(--accent-dark);
  background: rgba(143, 24, 56, 0.08);
}

.catalogue-download-button {
  width: 100%;
}

.catalogues-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fffdf8;
}

.newsletter-section {
  background:
    linear-gradient(135deg, rgba(143, 24, 56, 0.07), transparent 38%),
    #fffdf8;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.newsletter-form label {
  font-weight: 850;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input[type="email"]:focus,
.lang-button:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(143, 24, 56, 0.28);
  outline-offset: 3px;
}

.form-note {
  min-height: 24px;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 46px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-main {
  padding: 130px 0 80px;
}

.legal-header {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
}

.legal-header h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.legal-language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.legal-section {
  display: grid;
  gap: 24px;
  max-width: 900px;
}

.legal-section[hidden] {
  display: none;
}

.legal-article {
  display: grid;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-article h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.legal-article p,
.legal-article li {
  color: var(--muted);
  font-size: 1.04rem;
}

.legal-article p,
.legal-article ul {
  margin: 0;
}

.legal-article ul {
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .short-hero {
    min-height: 100svh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(250, 248, 243, 0.94) 0%, rgba(250, 248, 243, 0.84) 46%, rgba(250, 248, 243, 0.22) 100%),
      linear-gradient(90deg, rgba(250, 248, 243, 0.45), rgba(250, 248, 243, 0));
  }

  .hero-media img {
    object-position: 58% center;
  }

  h1 {
    max-width: 11ch;
  }

  .book-grid,
  .articles-grid,
  .preview-grid,
  .video-grid,
  .purchase-grid,
  .catalogues-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .entry-card {
    min-height: 0;
  }

  .audience-list {
    grid-template-columns: 1fr;
  }

  .covers-panel {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 24px;
  }

  .catalogues-filters,
  .catalogues-list {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }

  .brand {
    flex: 0 0 auto;
    max-width: 54px;
  }

  .brand span:last-child {
    display: none;
  }

  .main-nav {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .language-switcher {
    order: 3;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .language-switcher::-webkit-scrollbar {
    display: none;
  }

  .lang-button {
    flex: 1 0 32px;
    min-width: 32px;
    min-height: 38px;
    padding: 0 6px;
    font-size: 0.72rem;
  }

  .auth-controls {
    order: 4;
    flex: 1 0 100%;
    justify-content: stretch;
  }

  .auth-actions,
  .auth-user {
    width: 100%;
    justify-content: space-between;
  }

  .auth-button {
    flex: 1;
  }

  #user-display {
    max-width: 48%;
  }

  .hero {
    padding: 104px 18px 46px;
  }

  .short-hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 38px;
  }

  .hero-actions,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .marketplace-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .catalogues-filters,
  .catalogues-list {
    grid-template-columns: 1fr;
  }

  .catalogue-checkboxes {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    padding: 20px;
  }

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