/* Nominomad, das Reisetagebuch.

   Die Papieroptik ist bewusst hell. Dark Mode ist keine Variablenrochade,
   sondern ein eigener Entwurf, und kommt deshalb spaeter.

   Die Content-Security-Policy der Seite traegt style-src 'self' ohne
   'unsafe-inline'. Das verbietet auch das style-Attribut, deshalb steht
   hier alles, was Farbe oder Lage setzt. */

:root {
  color-scheme: light;
  --paper: #f6efea;
  --paper-deep: #efe4dc;
  --surface: #fffdfb;
  --ink: #2e2126;
  --ink-soft: #55464c;
  --ink-muted: #75636b;
  --rose: #9a4459;
  --rose-soft: #f3dfe3;
  --teal: #2e595d;
  --teal-soft: #d8e8e8;
  --outline: #e2d4cd;
  --outline-soft: #ece0d9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rail: min(1120px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

/* picture ist von Haus aus inline und gaebe die Groesse seines Rahmens
   nicht an das Bild weiter. */
picture { display: block; }

a {
  color: var(--rose);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover { color: #783246; }

a:focus-visible {
  outline: 3px solid rgb(154 68 89 / 40%);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--surface);
  font-weight: 700;
}

.skip-link:focus { left: 12px; z-index: 5; }

h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; }

/* Kopf und Fuss */

.site-header, .site-footer { width: var(--rail); margin-inline: auto; }

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--outline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: var(--surface);
  object-fit: cover;
}

.site-header nav, .site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-header nav a, .site-footer nav a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover, .site-footer nav a:hover { color: var(--rose); }

.lang-switch {
  padding: 5px 14px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
}

.site-footer {
  min-height: 220px;
  margin-top: 110px;
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px 50px;
  border-top: 1px solid var(--outline);
}

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

.site-footer p { margin: 5px 0 0; color: var(--ink-muted); font-size: 13px; }

.site-footer .fine-print { grid-column: 1 / -1; margin-top: 20px; }

/* Gemeinsame Bausteine */

.eyebrow {
  display: block;
  color: var(--rose);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.55;
}

.section-plate {
  width: var(--rail);
  margin: 0 auto 34px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline);
}

.section-plate h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -.02em;
}

.store-call { margin: 26px 0 0; font-size: 15px; }

.store-call strong { font-family: var(--serif); font-size: 19px; }

.store-call--soon span { display: block; color: var(--ink-muted); max-width: 46ch; }

.plate-art, .card-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-grid {
  width: var(--rail);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.route-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

/* Karten tragen das eigens gemalte 4:3-Motiv, nicht den 16:9-Kopf. */
.route-card picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.card-text h3 {
  margin: 20px 22px 6px;
  font-size: 25px;
  line-height: 1.14;
  letter-spacing: -.02em;
}

.card-text p {
  margin: 0 22px 22px;
  color: var(--ink-muted);
  font-size: 15px;
}

.card-text { display: flex; flex-direction: column; flex: 1; }

.card-text p { flex: 1; }

.card-count {
  margin: 0 22px 20px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-group { margin-bottom: 76px; }

.page-plate {
  width: var(--rail);
  margin: 0 auto;
  padding: 96px 0 70px;
  max-width: 820px;
}

.page-plate h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -.04em;
}

@media (max-width: 860px) {
  :root { --rail: min(100% - 28px, 1120px); }

.site-header { min-height: 76px; }

.site-header nav { gap: 14px; }

.site-header nav a { font-size: 13px; }

.page-plate { padding: 62px 0 46px; }

.site-footer { grid-template-columns: 1fr; margin-top: 70px; }

.site-footer .fine-print { grid-column: 1; }

}

/* Auf schmalen Schirmen traegt eine Zeile Marke und Navigation nicht mehr,
   die Navigation rutscht deshalb in eine zweite Zeile. */
@media (max-width: 620px) {
  .site-header {
    min-height: 0;
    flex-wrap: wrap;
    padding: 16px 0 12px;
    gap: 12px;
  }

.brand { font-size: 20px; }

.brand-mark { width: 34px; height: 34px; }

.site-header nav {
    order: 2;
    width: 100%;
    gap: 16px;
    justify-content: flex-start;
  }

.lang-switch { padding: 3px 11px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

.route-card { transition: none; }

}

/* ------------------------------------------------------------------
   Startseite: das Tagebuch
   ------------------------------------------------------------------ */

.title-plate { margin-bottom: 96px; }

.title-plate-art {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
}

.title-plate-art picture { width: 100%; height: 100%; }

.title-plate-text {
  width: var(--rail);
  max-width: 900px;
  margin: -96px auto 0;
  position: relative;
  padding: clamp(28px, 4.4vw, 54px);
  border: 1px solid var(--outline);
  border-radius: 26px;
  background: var(--surface);
}

.title-plate-text h1 {
  margin: 16px 0 20px;
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

/* Tagebucheintrag: Bild und Text nebeneinander, abwechselnd gespiegelt */

.entry {
  width: var(--rail);
  margin: 0 auto 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 54px;
}

.entry--flipped .entry-text { order: -1; }

.entry picture {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--paper-deep);
}

.entry-art { display: block; width: 100%; height: 100%; object-fit: cover; }

.entry-text h2 {
  margin: 14px 0 16px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -.028em;
}

.entry-text p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Der Postkartenstaender */

.rack-section { margin-bottom: 92px; }

.rack-head {
  width: var(--rail);
  max-width: 720px;
  margin: 0 auto 44px;
}

.rack-head h2 {
  margin: 14px 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -.028em;
}

.rack {
  width: var(--rail);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px 22px;
}

.postcard { position: relative; perspective: 1400px; }

/* Sichtbar versteckt, aber weiterhin mit der Tastatur erreichbar: das
   Kaestchen ist der ganze Schalter der Drehung, Skript gibt es keins. */
.card-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.card-faces {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(.22, .68, .36, 1);
}

.card-toggle:checked + .card-faces { transform: rotateY(.5turn); }

.card-toggle:focus-visible + .card-faces {
  outline: 3px solid rgb(154 68 89 / 45%);
  outline-offset: 5px;
  border-radius: 14px;
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 10px 26px rgb(46 33 38 / 10%);
}

.card-front { background: var(--paper-deep); }

.card-front picture { width: 100%; height: 100%; }

.card-face-art { display: block; width: 100%; height: 100%; object-fit: cover; }

.card-back {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transform: rotateY(.5turn);
}

.card-stamp {
  align-self: flex-end;
  width: 62px;
  height: 62px;
  margin: -4px -4px 2px 0;
  opacity: .92;
}

.card-back h3 {
  margin: 0 0 2px;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.card-greeting {
  margin: 0 0 10px;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 17px;
}

.card-caption {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--outline-soft);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.card-prose {
  margin: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.card-sender {
  margin-top: auto;
  padding-top: 10px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.card-hint {
  display: block;
  margin-top: 11px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Leicht aus der Reihe, wie in einem echten Staender */
.postcard:nth-child(3n + 1) .card-faces { transform: rotate(-1.6deg); }

.postcard:nth-child(3n + 2) .card-faces { transform: rotate(1.1deg); }

.postcard:nth-child(4n + 3) .card-faces { transform: rotate(-.5deg); }

.postcard:nth-child(3n + 1) .card-toggle:checked + .card-faces,
.postcard:nth-child(3n + 2) .card-toggle:checked + .card-faces,
.postcard:nth-child(4n + 3) .card-toggle:checked + .card-faces {
  transform: rotateY(.5turn);
}

@media (hover: hover) {
  .postcard:hover .card-faces { transform: rotateY(.5turn); }

}

/* Die Stempelleiste als Trenner */

.stamp-strip {
  width: var(--rail);
  margin: 0 auto 92px;
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.stamp-strip img {
  width: 74px;
  height: 74px;
  opacity: .82;
}

/* Die Etappenvorschau */

.preview { margin-bottom: 96px; }

.preview-grid {
  width: var(--rail);
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.preview-stop picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--paper-deep);
}

.preview-art { display: block; width: 100%; height: 100%; object-fit: cover; }

.preview-stop h3 {
  margin: 18px 0 3px;
  font-size: 23px;
  letter-spacing: -.02em;
}

.preview-place {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 650;
}

.preview-stop p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.section-more { width: var(--rail); margin: 0 auto; font-weight: 700; }

/* Die Routenvorschau der Startseite */

.home-gallery { margin-bottom: 92px; }

.home-gallery .section-plate { max-width: 720px; margin-inline: auto; }

.home-gallery .section-plate h2 { margin: 14px 0 14px; }

.home-gallery .route-grid { margin-bottom: 26px; }

/* Das Kolophon */

.colophon {
  width: var(--rail);
  margin: 0 auto;
  padding: 46px 0 0;
  border-top: 1px solid var(--outline);
}

.colophon-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.colophon-entry h3 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--outline-soft);
  font-size: 20px;
}

.colophon-entry p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }

.colophon-link { font-weight: 700; }

@media (max-width: 860px) {
  .title-plate-art { aspect-ratio: 3 / 2; }

.title-plate-text { margin-top: -54px; border-radius: 18px; }

.title-plate { margin-bottom: 64px; }

.entry { grid-template-columns: 1fr; gap: 24px; margin-bottom: 68px; }

.entry--flipped .entry-text { order: 0; }

.rack { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 16px; }

.card-back { padding: 14px 14px 12px; }

.card-back h3 { font-size: 17px; }

.card-prose { display: none; }

.stamp-strip { margin-bottom: 64px; gap: 12px; }

.stamp-strip img { width: 56px; height: 56px; }

.colophon-grid { gap: 28px; }

}

/* Ohne Bewegung wird aus der Drehung ein Ueberblenden. */
@media (prefers-reduced-motion: reduce) {
  .card-faces, .card-toggle:checked + .card-faces { transform: none; transition: none; }

.postcard:nth-child(3n + 1) .card-faces,
  .postcard:nth-child(3n + 2) .card-faces,
  .postcard:nth-child(4n + 3) .card-faces { transform: none; }

.card-back { transform: none; opacity: 0; transition: opacity 200ms linear; }

.card-toggle:checked + .card-faces .card-back { opacity: 1; }

.postcard:hover .card-faces { transform: none; }

}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .postcard:hover .card-back { opacity: 1; }

}

/* ------------------------------------------------------------------
   Uebernommene Seiten: Datenschutz, Support, Einladung

   Der Fliesstext dieser Seiten wird woertlich aus dem Site-Repo
   uebernommen und von tool/tests/test_site_legal.py per Pruefsumme
   bewacht. Die Klassen hier heissen deshalb genau wie dort, und
   /pair/ teilt sich dieses Stylesheet, ohne je getemplatet zu werden.
   ------------------------------------------------------------------ */

.legal-page, .support-page { max-width: 940px; margin-inline: auto; }

.legal-hero { width: var(--rail); margin-inline: auto; padding: 94px 0 70px; }

.legal-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(40px, 6.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.language-switch { display: flex; gap: 10px; margin-top: 30px; }

.language-switch a {
  padding: 8px 16px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.language-tag, .faq-index, .section-number {
  display: block;
  color: var(--rose);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.translation-note { margin: 20px 0 0; color: var(--rose); font-size: 14px; font-weight: 650; }

.legal-document {
  width: var(--rail);
  margin: 0 auto 42px;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--outline);
  border-radius: 28px;
  background: var(--surface);
  scroll-margin-top: 20px;
}

.document-heading {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--outline);
}

.document-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.legal-document section { max-width: 72ch; margin-bottom: 44px; }

.legal-document section:last-child { margin-bottom: 0; }

.legal-document h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.28; }

.legal-document p, .legal-document li { color: var(--ink-soft); }

.legal-document p { margin: 0 0 14px; }

.legal-document ul { padding-left: 22px; }

.legal-document li + li { margin-top: 7px; }

.contact-card {
  padding: 20px 24px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-soft);
  font-style: normal;
}

.faq-list { width: var(--rail); margin: 0 auto 60px; display: grid; gap: 18px; }

.faq-card {
  padding: clamp(26px, 5vw, 46px);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: var(--surface);
}

.faq-card h2 {
  margin: -4px 0 13px;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
}

.faq-card p { max-width: 70ch; margin: 0; color: var(--ink-soft); }

.english-copy {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--outline);
}

.support-note {
  width: var(--rail);
  margin: 0 auto 110px;
  padding: clamp(32px, 6vw, 62px);
  border-radius: 28px;
  background: var(--teal);
  color: white;
}

.support-note h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.support-note .section-number { color: #cfe5e6; }

.support-note p { max-width: 65ch; margin: 18px 0 0; color: #eaf3f3; }

/* Die Einladungsseite. Sie wird woertlich kopiert, nie erzeugt. */

.invite-main { width: var(--rail); max-width: 840px; margin-inline: auto; padding: 84px 0 44px; }

.invite-card {
  margin-bottom: 24px;
  padding: clamp(30px, 7vw, 72px);
  border: 1px solid var(--outline);
  border-radius: 30px;
  background: linear-gradient(145deg, var(--surface), var(--rose-soft));
  box-shadow: 0 22px 65px rgb(46 33 38 / 8%);
}

.invite-card--english { background: var(--surface); box-shadow: none; }

.invite-mark { display: block; margin-bottom: 32px; border: 1px solid var(--outline); border-radius: 21px; }

.invite-card h1 { max-width: 720px; font-size: clamp(42px, 7vw, 68px); line-height: 1.02; letter-spacing: -.04em; }

.invite-card h2 { margin: 14px 0 20px; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; }

.invite-card > p { color: var(--ink-soft); }

.invite-steps { margin: 38px 0; padding-left: 24px; }

.invite-steps li { padding-left: 8px; color: var(--ink-soft); }

.invite-steps li + li { margin-top: 18px; }

.invite-notice {
  margin: 34px 0 22px;
  padding: 20px 22px;
  border-left: 4px solid var(--rose);
  border-radius: 0;
  background: rgb(255 253 251 / 78%);
}

.invite-notice p { margin: 4px 0 0; color: var(--ink-soft); }

.invite-privacy { margin-bottom: 0; font-size: 14px; }

@media (max-width: 860px) {
  .legal-hero { padding: 70px 0 48px; }

.legal-document { border-radius: 20px; }

.faq-card { grid-template-columns: 1fr; gap: 12px; }

.invite-main { padding-top: 52px; }

.invite-card { border-radius: 22px; }

}

/* Ein Name, wie ihn die App zeigt: die Karte und ihre Rueckseite */

.name-section { margin-bottom: 96px; }

.name-pair {
  width: var(--rail);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 54px;
}

.name-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--paper-deep);
  box-shadow: 0 14px 34px rgb(46 33 38 / 12%);
}

.name-card picture { width: 100%; height: 100%; }

.name-card-plate {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgb(255 253 251 / 93%);
}

.name-card-name {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.name-card-meaning {
  display: block;
  margin-top: 2px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 650;
}

.name-front .card-hint { margin-top: 12px; }

.name-back {
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--outline);
  border-radius: 22px;
  background: var(--surface);
}

.name-back h3 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.name-row { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }

.name-row-label {
  display: block;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.name-meaning {
  margin: 18px 0 16px;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
}

.name-chips {
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.name-chips li {
  padding: 4px 12px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.name-about, .name-rank-block { margin-bottom: 22px; }

.name-about h4, .name-rank-block h4 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.name-about p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.name-ranks { margin: 0; padding: 0; list-style: none; }

.name-ranks li {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--outline-soft);
  font-size: 15px;
}

.name-ranks li:last-child { border-bottom: 0; }
.name-ranks strong { color: var(--rose); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .name-pair { grid-template-columns: 1fr; gap: 26px; }
  .name-front { max-width: 280px; }
  .name-section { margin-bottom: 68px; }
}
