:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #16181d;
  --ink-soft: #3d4149;
  --muted: #6b7079;
  --line: #e4e2dd;
  --line-soft: #efeeea;
  --bg: #ffffff;
  --bg-warm: #faf9f6;
  --ph: #ece9e3;
  --serif: Georgia, "Times New Roman", "PT Serif", "Liberation Serif", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gap: 28px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  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;
  left: 12px; top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 200;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--ink);
  color: #d9dade;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topbar__date { margin: 0; color: #b7b9c0; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { color: #c9cbd1; transition: color .15s ease; }
.topbar__links a:hover { color: #fff; }

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: center;
}
.logo__mark { border-radius: 5px; flex: none; }
.logo__type {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo__accent { color: var(--red); }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.search-btn:hover { border-color: var(--red); color: var(--red); }

.subscribe-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  transition: background .15s ease, transform .1s ease;
}
.subscribe-pill:hover { background: var(--red-dark); }
.subscribe-pill:active { transform: translateY(1px); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  justify-self: start;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  border-top: 1px solid var(--line-soft);
}
.primary-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav a {
  display: inline-block;
  padding: 13px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:hover { color: var(--red); }
.primary-nav a.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--red);
}

.searchbar {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}
.searchbar__inner {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
  align-items: center;
}
.searchbar input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.searchbar input:focus { outline: none; border-color: var(--red); }
.searchbar button[type="submit"] {
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.searchbar button[type="submit"]:hover { background: var(--red-dark); }
.searchbar__close {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

/* ---------- Ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  overflow: hidden;
}
.ticker__label {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.ticker__list {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding-left: 14px;
}
.ticker__list a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--line);
}
.ticker__list a:hover { color: var(--red); }

/* ---------- Typography blocks ---------- */
.kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.kicker--red { color: var(--red); }

.headline {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.18;
  margin: 0 0 10px;
  font-size: 21px;
}
.headline a { transition: color .15s ease; }
.headline a:hover { color: var(--red); }
.headline--xl {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.lead-text {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
}

.byline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.byline__author { color: var(--ink); font-weight: 600; }

/* ---------- Lead block ---------- */
.lead {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--gap);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.lead__feature-body { padding-top: 18px; }
.lead__feature .lead-text { font-size: 17px; max-width: 44ch; }

.lead__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card__media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ph);
  aspect-ratio: 3 / 2;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.card__media:hover img { transform: scale(1.035); }
.card__media--xl { aspect-ratio: 16 / 10; }

.card--side {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.card--side:last-child { border-bottom: none; padding-bottom: 0; }
.card--side .card__media { aspect-ratio: 1 / 1; border-radius: 6px; }
.card--side .headline { font-size: 16.5px; }
.card--side .kicker { margin-bottom: 5px; font-size: 10.5px; }
.card--text { grid-template-columns: 1fr; border-left: 3px solid var(--red); padding-left: 14px; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.section-head__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.section-head__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.section-head__more:hover { text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
}
.card .card__media { margin-bottom: 13px; }
.card .headline { font-size: 18px; }

.loadmore { text-align: center; margin-top: 38px; }
.btn-ghost {
  height: 46px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Aside ---------- */
.layout__aside { display: flex; flex-direction: column; gap: 30px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 24px;
  background: var(--bg);
}
.panel__title {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rank li:last-child { border-bottom: none; padding-bottom: 0; }
.rank li::before {
  content: counter(r);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.rank a {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  transition: color .15s ease;
}
.rank a:hover { color: var(--red); }

.panel--editor .editor-pick {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.panel--editor .editor-pick:last-child { border-bottom: none; padding-bottom: 0; }
.editor-pick .headline { font-size: 16px; }
.editor-pick .kicker { font-size: 10.5px; margin-bottom: 6px; }

.panel--quote {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.panel--quote blockquote {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  font-style: italic;
}
.panel--quote cite {
  font-size: 12.5px;
  font-style: normal;
  color: #aeb0b8;
}

/* ---------- Newsletter ---------- */
.newsletter {
  margin: 8px 0 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(0deg, var(--bg-warm), var(--bg-warm)),
    radial-gradient(circle at 92% 12%, rgba(200,16,46,.06), transparent 42%);
  overflow: hidden;
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 44px;
}
.newsletter h2 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.newsletter__text p { margin: 0; color: var(--ink-soft); max-width: 42ch; }
.newsletter__form { position: relative; }
.newsletter__form input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
}
.newsletter__form input:focus { outline: none; border-color: var(--red); }
.newsletter__form button {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease;
}
.newsletter__form button:hover { background: var(--red-dark); }
.newsletter__note {
  margin: 10px 0 0;
  font-size: 13px;
  min-height: 18px;
  color: var(--red);
}
.newsletter__note.ok { color: #1a7a3c; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--bg-warm);
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding: 48px 24px 36px;
}
.footer__brand p {
  margin: 14px 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 38ch;
}
.logo--footer .logo__type { font-size: 24px; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  transition: color .15s ease, border-color .15s ease, transform .12s ease;
}
.social a:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }

.footer__col h3 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer__col ul { margin: 0; padding: 0; list-style: none; }
.footer__col li { margin-bottom: 10px; font-size: 14.5px; color: var(--ink-soft); }
.footer__col a { transition: color .15s ease; }
.footer__col a:hover { color: var(--red); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom a:hover { color: var(--red); }

/* ---------- Article page ---------- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 24px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 7px; color: var(--line); }

.article__head .kicker { margin-bottom: 12px; }
.article__title {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.article__standfirst {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.article__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ph);
  object-fit: cover;
  flex: none;
}
.article__author-name { font-weight: 700; font-size: 15px; }
.article__author-meta { font-size: 13px; color: var(--muted); }
.article__share { margin-left: auto; display: flex; gap: 8px; }
.article__share a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  transition: color .15s ease, border-color .15s ease;
}
.article__share a:hover { color: var(--red); border-color: var(--red); }

.article__hero {
  border-radius: 10px;
  overflow: hidden;
  background: var(--ph);
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__caption {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 28px;
  padding-left: 2px;
}

.article__body { font-size: 18px; line-height: 1.7; color: var(--ink); }
.article__body p { margin: 0 0 22px; }
.article__body h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  margin: 38px 0 14px;
}
.article__body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article__body blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--red);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.article__body ul { margin: 0 0 22px; padding-left: 22px; }
.article__body li { margin-bottom: 8px; }
.article__figure { margin: 30px 0; }
.article__figure img { width: 100%; border-radius: 10px; background: var(--ph); }
.article__figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.tags a {
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.tags a:hover { border-color: var(--red); color: var(--red); }

.read-next {
  border-top: 1px solid var(--line);
  padding: 36px 0 60px;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 56vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound__code {
  font-family: var(--serif);
  font-size: clamp(88px, 18vw, 180px);
  line-height: 1;
  color: var(--red);
  margin: 0;
  letter-spacing: -.04em;
}
.notfound h1 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 12px 0 12px;
}
.notfound p { color: var(--ink-soft); margin: 0 auto 28px; max-width: 46ch; }
.notfound .btn-ghost { background: var(--red); color: #fff; border-color: var(--red); }
.notfound .btn-ghost:hover { background: var(--red-dark); }

/* ---------- Mobile nav drawer ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,24,29,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 140;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 36px; }
  .layout__aside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
  .panel--quote { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .masthead { grid-template-columns: auto 1fr auto; padding-top: 14px; padding-bottom: 14px; }
  .burger { display: flex; }
  .logo { justify-self: center; }
  .logo__type { font-size: 26px; }
  .subscribe-pill { display: none; }

  .primary-nav {
    position: fixed;
    top: 0; left: 0;
    width: min(82vw, 340px);
    height: 100dvh;
    background: var(--bg);
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform .26s ease;
    z-index: 150;
    overflow-y: auto;
    padding: 24px 8px;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  .primary-nav .wrap { padding: 0; }
  .primary-nav ul { flex-direction: column; gap: 0; overflow: visible; }
  .primary-nav a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 17px;
  }
  .primary-nav a.is-active { border-bottom-color: var(--line-soft); }
  .primary-nav a.is-active::after {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--red);
    vertical-align: middle;
  }

  .lead { grid-template-columns: 1fr; gap: 30px; padding: 26px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 22px; padding: 30px 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; padding: 38px 24px 28px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .topbar__links { display: none; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .layout__aside { grid-template-columns: 1fr; }
  .card--side { grid-template-columns: 96px 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .article__body { font-size: 17px; }
  .article__share { display: none; }
}

/* ---------- Empty feed state ---------- */
.feed-empty {
  margin: 28px 0 0;
  padding: 26px 22px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-warm);
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(22, 24, 29, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Info modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.modal-open .modal { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 29, .5);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  border-radius: 14px;
  padding: 34px 34px 28px;
  box-shadow: 0 24px 60px rgba(22, 24, 29, .28);
  animation: modalIn .22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.modal__close:hover { color: var(--red); border-color: var(--red); }
.modal__title {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 14px;
  padding-right: 36px;
  letter-spacing: -.01em;
}
.modal__body {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.modal__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.modal__mail {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  transition: background .15s ease;
}
.modal__mail:hover { background: var(--red-dark); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
