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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.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-actions[hidden],
.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;
}

.article-site-header .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);
}

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

.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,
.section-nav-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.main-nav a:hover,
.section-nav-button:hover,
.section-nav-button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.section-nav-button:focus-visible {
  outline: 3px solid rgba(143, 24, 56, 0.28);
  outline-offset: 3px;
}

.language-switcher {
  display: inline-flex;
  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);
}

.language-switcher select {
  min-width: 72px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px 0 13px;
  color: var(--paper);
  background-color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.language-switcher select:focus-visible {
  outline: 3px solid rgba(143, 24, 56, 0.28);
  outline-offset: 3px;
}

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

.site-section {
  scroll-margin-top: 112px;
}

.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: rgba(250, 248, 243, 0.05);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 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-title {
  display: grid;
  gap: 10px;
  max-width: 100%;
}

.hero-title-name {
  display: block;
  max-width: 11ch;
  text-wrap: balance;
}

.hero-title-domain {
  display: block;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: normal;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .hero-content {
    width: min(760px, 100%);
  }

  .hero-title-name {
    max-width: none;
    white-space: nowrap;
  }
}

.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 {
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
}

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

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

.article-teaser-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-category-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #fffdf8;
}

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

.article-category-button:hover,
.article-category-button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.article-teaser[hidden] {
  display: none;
}

.article-teaser {
  display: grid;
  height: 100%;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "media"
    "action";
  grid-template-rows: minmax(0, 1fr) 260px auto;
  align-content: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article-teaser-media {
  grid-area: media;
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px;
  background: white;
}

.article-teaser-media.is-unavailable::after {
  color: var(--muted);
  content: attr(data-unavailable-label);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.article-teaser-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.article-teaser-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.article-teaser-button {
  grid-area: action;
  width: calc(100% - 48px);
  justify-self: stretch;
  margin: 24px;
}

.metternich-feature-section {
  padding: clamp(58px, 8vw, 104px) 0;
  background: #fffdf8;
}

.metternich-feature-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
}

.metternich-feature-copy {
  display: grid;
  gap: 20px;
}

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

.metternich-feature-image,
.metternich-glass-figure {
  margin: 0;
  text-align: center;
}

.metternich-feature-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.metternich-glass-section {
  padding: 0 0 clamp(64px, 9vw, 120px);
}

.metternich-glass-figure {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.metternich-glass-figure img {
  display: block;
  width: min(100%, 620px);
  max-height: 720px;
  object-fit: contain;
}

.metternich-feature-image figcaption,
.metternich-glass-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.article-meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-teaser-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.article-teaser-meta time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.article-teaser h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
}

.article-teaser h3 a {
  text-decoration: none;
}

.article-teaser-copy > p:not(.article-meta) {
  margin: 0;
  color: var(--muted);
}

.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: 1;
  justify-self: center;
  width: min(100%, 560px);
}

.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-results-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.catalogues-filters {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(150px, 210px) 1fr auto;
  align-items: end;
  gap: 14px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fffdf8;
}

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

.catalogues-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.catalogue-checkboxes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.catalogue-checkboxes legend {
  width: 100%;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.catalogue-checkbox {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

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

.catalogues-reset {
  grid-column: 4;
  grid-row: 1;
  width: fit-content;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 33, 31, 0.16);
  white-space: nowrap;
}

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

.catalogues-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.catalogue-card {
  display: grid;
  width: 100%;
  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 {
  position: relative;
  display: grid;
  aspect-ratio: 5 / 8;
  place-items: center;
  overflow: hidden;
  padding: 0;
  color: var(--muted);
  background: #f4f1ea;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.catalogue-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.catalogue-preview.is-unavailable {
  background: var(--ink);
}

.catalogue-preview-pending {
  max-width: 18ch;
  color: rgba(250, 248, 243, 0.76);
  font-weight: 850;
}

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

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

.article-site-header {
  background: rgba(250, 248, 243, 0.9);
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(18px);
}

.article-back-link {
  min-height: 42px;
  background: #fffdf8;
}

.article-main {
  background: white;
}

.article-main[hidden],
.article-access-main[hidden] {
  display: none;
}

.article-access-main {
  display: grid;
  min-height: calc(100svh - 92px);
  place-items: center;
  padding: 140px 18px 70px;
  background:
    linear-gradient(135deg, rgba(143, 24, 56, 0.07), transparent 44%),
    var(--paper);
}

.article-access-panel {
  display: grid;
  justify-items: start;
  gap: 20px;
  width: min(660px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 54px);
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.article-access-panel .section-kicker {
  margin: 0;
}

.article-access-panel h1 {
  max-width: 580px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.article-access-panel > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.article-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-access-actions .button {
  width: auto;
}

.article-access-status {
  min-height: 24px;
  font-size: 0.9rem !important;
}

.article-container,
.article-reading-column {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

.article-reading-column {
  max-width: 760px;
}

.article-hero {
  padding: clamp(150px, 17vw, 210px) 0 clamp(68px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232, 223, 208, 0.32), transparent 74%),
    var(--paper);
}

.article-hero h1 {
  max-width: 1050px;
  font-size: clamp(2.8rem, 6.7vw, 6.4rem);
  line-height: 0.98;
}

.article-lead {
  max-width: 800px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.article-title-image {
  display: grid;
  width: min(520px, 100%);
  min-height: 340px;
  margin: clamp(38px, 6vw, 64px) 0 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  background: white;
  box-shadow: var(--shadow);
}

.article-title-image img {
  display: block;
  width: 100%;
  height: min(480px, 58vh);
  object-fit: contain;
}

.article-introduction {
  padding: clamp(58px, 8vw, 96px) 0;
}

.article-reading-column {
  display: grid;
  gap: 22px;
}

.article-reading-column p {
  margin: 0;
  color: #38413e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.65;
}

.glass-comparison-section {
  padding: clamp(70px, 9vw, 118px) 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.glass-comparison-section.alternate {
  background: var(--paper);
}

.comparison-heading {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.comparison-heading .section-kicker {
  margin: 0;
}

.comparison-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.glass-comparison-grid {
  display: grid;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.glass-comparison-grid.three-models {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-comparison-grid.two-models {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-model {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  gap: 22px;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  background: white;
}

.glass-model + .glass-model {
  border-left: 1px solid var(--line);
}

.article-remote-figure.is-unavailable .glass-image-stage::after {
  max-width: 24ch;
  color: var(--muted);
  content: attr(data-unavailable-label);
  font-weight: 850;
  text-align: center;
}

.glass-model figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.glass-model h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 500;
}

.glass-model figcaption span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.glass-image-stage {
  display: grid;
  min-height: 300px;
  place-items: center;
}

.glass-image-stage img {
  display: block;
  width: 100%;
  height: 370px;
  object-fit: contain;
}

.glass-signature {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.glass-signature div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.glass-signature dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.glass-signature dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.glass-identification {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 850;
  line-height: 1.45;
}

.identification-method {
  padding: clamp(72px, 10vw, 128px) 0;
  color: var(--paper);
  background: var(--ink);
}

.identification-method .section-kicker {
  color: #efc6c9;
}

.identification-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 110px);
}

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

.identification-steps li {
  position: relative;
  padding: 22px 0 22px 54px;
  border-top: 1px solid rgba(250, 248, 243, 0.2);
  color: rgba(250, 248, 243, 0.76);
  counter-increment: method-step;
}

.identification-steps li::before {
  position: absolute;
  top: 20px;
  left: 0;
  color: #efc6c9;
  font-weight: 900;
  content: "0" counter(method-step);
}

.identification-steps strong {
  color: var(--paper);
}

.comparison-table-section {
  padding: clamp(70px, 9vw, 118px) 0;
  background: var(--paper);
}

.comparison-table-section h2 {
  margin-bottom: 36px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fffdf8;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.comparison-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.comparison-table tbody th {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.article-note {
  max-width: 760px;
  margin: 30px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.article-credit {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.article-credits-section {
  padding: 0 0 clamp(70px, 9vw, 110px);
  background: white;
}

.article-credits-section .article-credit {
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.compact-article .article-hero {
  padding-bottom: clamp(50px, 6vw, 76px);
}

.compact-article .article-introduction {
  padding: clamp(42px, 5vw, 62px) 0;
}

.compact-article .article-reading-column {
  gap: 16px;
}

.compact-article .glass-comparison-section {
  padding: clamp(48px, 6vw, 76px) 0;
}

.compact-article .comparison-heading {
  margin-bottom: clamp(28px, 4vw, 42px);
}

.compact-article .glass-model {
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

.compact-article .glass-image-stage {
  min-height: 260px;
}

.compact-article .glass-image-stage img {
  height: 320px;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

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

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

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

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

  .hero {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-top: 112px;
  }

  .short-hero {
    min-height: auto;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% + 2 * clamp(18px, 5vw, 70px));
    min-height: 360px;
    aspect-ratio: 16 / 10;
    margin: 42px calc(-1 * clamp(18px, 5vw, 70px)) -86px;
    background: #f4f0e9;
  }

  .hero-overlay {
    display: none;
  }

  .hero-media img {
    object-fit: contain;
    object-position: center;
  }

  .hero-content {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-title {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

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

  .article-teaser {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media"
      "action";
    grid-template-rows: minmax(0, 1fr) 260px auto;
  }

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

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

  .article-teaser-media {
    min-height: 260px;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .article-teaser-media img {
    height: 230px;
  }

  .article-teaser-copy {
    padding-bottom: 24px;
  }

  .article-teaser-button {
    width: auto;
    justify-self: stretch;
    margin: 24px;
  }

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

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

  .feature {
    min-height: 0;
  }

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

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

  .catalogues-reset {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }

  .catalogues-list {
    grid-template-columns: repeat(2, minmax(260px, 340px));
    justify-content: center;
  }

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

  .glass-comparison-grid.three-models {
    grid-template-columns: 1fr;
  }

  .glass-comparison-grid.two-models {
    grid-template-columns: 1fr;
  }

  .glass-model + .glass-model {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

@media (max-width: 620px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 12px;
  }

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

  .article-teaser {
    grid-template-rows: auto 260px auto;
  }

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

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

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

  .language-switcher {
    grid-column: 1;
    grid-row: 1;
  }

  .auth-controls {
    grid-column: 2;
    grid-row: 1;
    justify-content: stretch;
  }

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

  .auth-button {
    flex: 1;
  }

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

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

  .short-hero {
    min-height: auto;
  }

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

  .hero-title-name {
    max-width: none;
    font-size: 2.35rem;
    line-height: 1;
    white-space: nowrap;
  }

  .hero-title-domain {
    white-space: normal;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .article-teaser-button {
    width: calc(100% - 48px);
  }

  .article-back-link {
    width: auto;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .article-hero {
    padding-top: 128px;
  }

  .article-hero h1 {
    font-size: clamp(2.45rem, 12vw, 4.25rem);
  }

  .glass-model {
    grid-template-rows: auto minmax(250px, 1fr) auto;
    padding: 24px 18px;
  }

  .glass-image-stage,
  .glass-image-stage img {
    min-height: 250px;
    height: 290px;
  }

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

  .catalogues-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .catalogues-reset {
    grid-column: 1;
  }

  .catalogues-list {
    grid-template-columns: minmax(0, 340px);
    justify-content: center;
  }

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

  .newsletter-form {
    padding: 20px;
  }

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

@media (max-width: 360px) {
  .hero-title-name {
    font-size: 2.05rem;
  }
}
