/*
Theme Name: Yulia
Theme URI: https://yulia.ee
Description: Julia Prokoptšuki isiklik veebileht ja blogi. Betheme alamteema, mis jätab olemasolevad postitused ja meedia alles.
Author: Julia Prokoptšuk
Template: betheme
Version: 1.1.6
Text Domain: yulia
Requires at least: 6.4
Requires PHP: 8.0
*/

:root {
  --bg: #f3efe8;
  --bg-2: #faf7f2;
  --ink: #1b1916;
  --muted: #5f584f;
  --line: #e3dbd0;
  --navy: #1c314d;
  --navy-2: #142538;
  --cream: #f7f3ec;
  --plum: #6a4e78;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(28, 25, 22, 0.07);
  --header: 4.5rem;
  --wide: 1120px;
  --measure: 40rem;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body.yulia-site {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button,
input,
textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: white;
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(243, 239, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28, 25, 22, 0.08);
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.header-inner,
.wrap {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.2rem 0 0.35rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}

.site-nav .menu { display: none; }

.site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: auto;
  top: 100%;
  z-index: 45;
  width: 100%;
  min-width: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 1.25rem 1.2rem;
}

.site-nav.is-open .menu { display: block; }

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

.menu a {
  display: block;
  text-decoration: none;
  padding: 0.8rem 0;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--line);
}

.menu li:last-child a { border-bottom: 0; }

.menu .current-menu-item > a,
.menu .current_page_item > a {
  color: var(--navy);
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: 0.35rem;
  flex: 0 0 auto;
}

.header-inner { flex-wrap: nowrap; }
.site-logo { overflow: hidden; text-overflow: ellipsis; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switch {
  position: relative;
  flex: 0 0 auto;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.2rem 0.6rem 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(28, 25, 22, 0.05);
  cursor: pointer;
}

.lang-pill:hover,
.lang-pill[aria-expanded="true"] {
  border-color: #d5cbbd;
  background: #fff;
}

.lang-chevron {
  display: block;
  flex: none;
  transition: transform 0.16s ease;
}

.lang-switch.is-open .lang-chevron { transform: rotate(180deg); }

.lang-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 60;
  min-width: 13.5rem;
  padding: 0.35rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(28, 25, 22, 0.1);
}

.lang-switch.is-open .lang-panel { animation: lang-panel-in 0.16s ease; }

@keyframes lang-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-heading {
  margin: 0.15rem 0.7rem 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 40px;
  padding: 0.3rem 0.65rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
}

.lang-option:hover,
.lang-option:focus-visible { background: #f3eee6; }

.lang-option[aria-current="true"] {
  background: #f3e8f4;
  color: var(--navy);
  font-weight: 600;
}

.lang-option-name { flex: 1 1 auto; }

.lang-check {
  display: block;
  flex: none;
  margin-left: auto;
  color: var(--navy);
}

.lang-flag {
  display: block;
  flex: none;
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(28, 25, 22, 0.12);
}

@media (max-width: 759px) {
  .nav-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lang-switch { display: none; }

  .site-nav.is-open .lang-switch {
    display: block;
    width: 100%;
    margin: 0.15rem 0 0.35rem;
  }

  .site-nav.is-open .lang-pill { display: none; }

  .site-nav.is-open .lang-panel,
  .site-nav.is-open .lang-panel[hidden] {
    display: block !important;
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.3rem;
    border-radius: 14px;
    box-shadow: none;
    animation: none;
  }

  .site-nav.is-open .lang-option { min-height: 44px; }
}

@media (min-width: 760px) {
  .lang-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

#trp-floater-ls { display: none !important; }

@media (min-width: 760px) {
  .nav-toggle { display: none; }

  .header-tools { display: none; }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: static;
    width: auto;
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
  }

  .site-nav .menu,
  .menu {
    display: flex;
    align-items: center;
    gap: 1.35rem;
  }

  .site-nav .lang-switch { order: 2; }
  .site-nav .menu { order: 1; }

  .menu a {
    padding: 0.3rem 0;
    font-size: 0.98rem;
    border: 0;
    color: var(--muted);
  }

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

  .menu .current-menu-item > a,
  .menu .current_page_item > a {
    color: var(--ink);
    box-shadow: inset 0 -1px 0 var(--navy);
  }
}

.hero { padding: 1.4rem 0 2.5rem; }

.hero-photo {
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: #241c33;
  box-shadow: var(--shadow);
}

.hero-photo picture {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  margin: 1.25rem 0 0.45rem;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.7rem);
}

.lede,
.entry-content p,
.about-copy p {
  color: var(--muted);
}

.lede {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: 1.14rem;
  line-height: 1.6;
}

.lede p { margin: 0 0 0.8rem; }
.lede p:last-child { margin-bottom: 0; }

.single-shell .page-title {
  font-size: clamp(2.05rem, 4.5vw, 3.3rem);
  line-height: 1.16;
}

.hero-actions,
.section-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: #cfc6b8; color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

@media (min-width: 480px) {
  .hero-actions,
  .section-action { flex-direction: row; flex-wrap: wrap; }
  .btn { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  .hero-photo {
    width: min(100%, 26rem);
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 960px) {
  .hero { padding: 2rem 0 4rem; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: 4.5rem;
    align-items: center;
    min-height: calc(100svh - var(--header) - 2rem);
  }
  .hero-copy { order: 0; }
  .hero-photo {
    order: 1;
    width: 100%;
    margin-inline: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 740px;
  }
  .hero-photo img { object-position: center 18%; }
  .eyebrow { margin-top: 0; }
}

.section { padding: 3.2rem 0; }
.section-alt { background: var(--bg-2); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.section-head h2,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-kicker {
  margin: 0;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d5cbbd;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e7e0d6;
  overflow: hidden;
}

.card-media picture,
.card-media-fallback {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
}

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

.card-media-fallback {
  background:
    linear-gradient(160deg, #ebe4f2, #e7e0d6 55%, #d9e0ea);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.section-dek {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.section-posts {
  background:
    linear-gradient(180deg, rgba(28, 49, 77, 0.04), rgba(28, 49, 77, 0) 90px),
    var(--bg);
}

.card-kicker,
.meta {
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-kicker {
  align-self: flex-start;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #f3e8f4;
  letter-spacing: 0.06em;
}

.card h3,
.featured-copy h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.18;
}

.card time {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.card p,
.featured-copy p { margin: 0; color: var(--muted); }

.more {
  margin-top: auto;
  padding-top: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}

.card .more::after { content: " →"; }

.section-posts .section-action .btn { min-width: 12.5rem; }

.topic-grid { display: grid; gap: 0.9rem; }
.topic-grid:has(> :only-child) { max-width: 28rem; }

.topic {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.3rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(28, 25, 22, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.section-alt .topic { background: var(--bg-2); }

.topic:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.topic strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.topic span { display: block; color: var(--muted); overflow-wrap: anywhere; }
.topic em {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1.1rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (min-width: 720px) {
  .cards-2,
  .topic-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
  .cards-3:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
  .topic-grid.topics-3 { grid-template-columns: 1fr 1fr 1fr; }
  .section { padding: 4.5rem 0; }
}

.about-grid,
.featured,
.contact-grid {
  display: grid;
  gap: 1.4rem;
}

.about-photo {
  position: relative;
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #241c33;
}

.about-photo picture { position: absolute; inset: 0; display: block; }

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-copy h2 { margin: 0.2rem 0 0.8rem; font-size: clamp(2rem, 4vw, 3rem); }

.featured {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.featured-media {
  position: relative;
  display: block;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background: #e7e0d6;
}
.featured-media picture,
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-media picture { position: absolute; inset: 0; }
.featured-copy { padding: 1.3rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.featured-copy h2,
.featured-copy h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; margin: 0; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center; }
  .about-photo { width: 100%; height: 360px; aspect-ratio: auto; }
  .about-photo img { object-position: center 18%; }
  .featured { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .featured-media,
  .featured-media img { height: 100%; min-height: 360px; }
  .featured-copy { padding: 2.2rem 2rem; justify-content: center; }
}

.contact-card,
.fact,
.entry-content .facts div {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
}

.section-contact {
  background: var(--navy);
  color: var(--cream);
}

.section-contact .section-kicker { color: #e6d3ef; }
.section-contact h2,
.section-contact .contact-card,
.section-contact a { color: var(--cream); }

.section-contact .contact-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  padding: 1.15rem 1.2rem;
}

.section-contact .contact-label { color: #d9cbe2; }
.section-contact a { text-underline-offset: 0.16em; }
.section-contact a:hover { color: white; }

.contact-grid a { color: var(--navy); overflow-wrap: anywhere; }
.section-contact .contact-grid a { color: var(--cream); }
.footer-contact a { overflow-wrap: anywhere; }
.contact-label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.2rem; }

@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.site-footer {
  background: var(--navy-2);
  color: #efe8de;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  text-decoration: none;
}

.footer-social a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.08); }

.footer-social svg { width: 1.15rem; height: 1.15rem; display: block; }

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.site-footer a { color: #efe8de; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-name {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}
.footer-note,
.footer-contact { color: #d9d0c4; margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a { display: inline-block; padding: 0.25rem 0; }
.legal {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9c0b4;
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.page-shell,
.archive-shell,
.single-shell { padding: 2.2rem 0 4rem; }

.page-kicker,
.single-kicker { margin-bottom: 0.6rem; }

.single-measure { max-width: 760px; margin-inline: auto; }
.single-cover {
  max-width: 960px;
  margin: 1.4rem auto 0;
}
.single-cover img {
  width: 100%;
  border-radius: 24px;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.byline { color: var(--muted); margin: 0.8rem 0 0; }

.entry-content { font-size: 1.125rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2rem 0 0.7rem; }
.entry-content h3 { font-size: 1.35rem; margin: 1.5rem 0 0.5rem; }
.entry-content a { color: var(--navy); }
.entry-content ul,
.entry-content ol { padding-left: 1.2rem; }
.entry-content img { border-radius: 16px; }
.entry-content table { display: block; width: 100%; overflow-x: auto; }

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.share button,
.share a {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.related { margin-top: 3rem; }
.back-link { display: inline-block; margin-top: 1.5rem; color: var(--navy); font-weight: 600; }

.entry-content h2 {
  margin: 2.8rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.cv,
.facts { list-style: none; margin: 0; padding: 0; }
.facts { display: grid; gap: 0.85rem; margin-top: 0.4rem; }
.cv { margin-top: 0.2rem; }
.cv li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 0 0 2.1rem 1.65rem;
  border: 0;
}
.cv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px var(--bg);
}
.cv li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15rem;
  bottom: 0;
  width: 1px;
  background: #d9d0c4;
}
.cv li:last-child { padding-bottom: 0.2rem; }
.cv li:last-child::after { display: none; }
.cv-when {
  color: var(--plum);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.cv-what strong {
  display: block;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.28;
}
.cv-what em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--muted);
}
.fact dt,
.facts dt { color: var(--muted); font-size: 0.82rem; }
.fact dd,
.facts dd { margin: 0.2rem 0 0; font-size: 1.08rem; }

@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .cv li {
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.4rem 2rem;
    align-items: start;
    padding: 0 0 2.25rem 0;
  }
  .cv li::before { left: 11.15rem; top: 0.45rem; }
  .cv li::after { left: calc(11.15rem + 4px); top: 1.2rem; }
}

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.4rem;
}

.topic-row a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: var(--navy);
}

.topic-row a:hover { border-color: var(--navy); }

.nav-links,
.pagination { margin-top: 1.8rem; }
.nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.page-numbers { display: inline-flex; gap: 0.4rem; list-style: none; padding: 0; }
.page-numbers a,
.page-numbers span {
  display: inline-flex;
  min-width: 2.2rem;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.page-numbers .current { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.empty {
  padding: 1.2rem 0;
  color: var(--muted);
}

.page-portrait {
  position: relative;
  margin: 1.2rem 0 0;
  border-radius: 24px;
  overflow: hidden;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
}
.page-portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

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

::selection { background: #e6d8ef; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 1440px) {
  :root { --wide: 1180px; }
}
