:root {
  /* Palette "Клетка": the red-and-white gingham of Kirill's shirt. Swap these to recolour. */
  --paper: #ffffff;
  --ink: #1c1716;
  --soft-ink: #5b524f;
  --accent: #d42a3c;        /* primary button fill */
  --on-accent: #ffffff;
  --accent-text: #b3162b;   /* accent text, hover and focus on paper */
  --mark: #d42a3c;          /* underlines, squiggle */
  --field: #9f1d2e;         /* language switch, route pill, photo disc, channel panel */
  --on-field: #ffffff;
  --field-soft: #ffd3d8;    /* secondary text on a field */
  --field-accent: #ffffff;  /* emphasis on a field */
  --field-mark: #ffffff;    /* current-stop dot, link underline on a field */
  --note: #ffe3e6;          /* sticky notes */
  --check: 212, 42, 60;     /* gingham check (rgb) */
  --check-paper: #ffffff;   /* gingham ground */
  --on-note: #1c1716;
  --photo-ground: #efeceb;
  --rule: rgba(28, 23, 22, .16);
  --shadow: 70, 10, 15;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171313;
    --ink: #f6efee;
    --soft-ink: #b9aeac;
    --accent: #ff6b7a;
    --on-accent: #1a0e10;
    --accent-text: #ff8593;
    --mark: #ff6b7a;
    --field: #6e1722;
    --on-field: #ffffff;
    --field-soft: #ffc9cf;
    --field-accent: #ffffff;
    --field-mark: #ffffff;
    --note: #e3b9bf;          /* light paper notes stand off the dark field */
    --check: 255, 107, 122;
    --check-paper: #2a1a1d;
    --on-note: #1c1716;
    --photo-ground: #2c2525;
    --rule: rgba(246, 239, 238, .16);
    --shadow: 0, 0, 0;
  }
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--note); color: var(--on-note); }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

:is(a, button, summary):focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 4px;
  border-radius: 4px;
}

html[data-lang="ru"] .en,
html[data-lang="en"] .ru { display: none !important; }
/* Without JavaScript the EN link lands on #en, and CSS alone switches the text. */
html:not(.js):has(#en:target) .ru { display: none !important; }
html:not(.js):has(#en:target) .en { display: revert !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand { width: 17px; height: 17px; flex-basis: 17px; fill: currentColor; stroke: none; }
.arrow { width: 14px; height: 14px; flex-basis: 14px; margin-left: 7px; stroke-width: 2.2; }

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.8vw, 70px) 20px;
}

/* Gingham: the check of Kirill's shirt, used for notes and tape. */
:root {
  /* Soft check keeps note text legible; bold check is the shirt at full strength, for tape. */
  --gingham-soft:
    repeating-linear-gradient(0deg, rgba(var(--check), .26) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(90deg, rgba(var(--check), .26) 0 7px, transparent 7px 14px),
    var(--check-paper);
  --gingham-bold:
    repeating-linear-gradient(0deg, rgba(var(--check), .55) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(90deg, rgba(var(--check), .55) 0 7px, transparent 7px 14px),
    var(--check-paper);
}
.gingham { background: var(--gingham-soft); }

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 83px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 19px;
  letter-spacing: -.04em;
}
.identity strong { font-weight: 750; }
.identity .slash { color: var(--accent-text); font-weight: 500; }

.name-story { position: relative; }
.name-story summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  list-style: none;
  color: var(--soft-ink);
  line-height: 1.1;
  cursor: pointer;
}
.name-story summary::-webkit-details-marker { display: none; }
.name-story .nickname { border-bottom: 1px dashed var(--soft-ink); }
.name-story summary:hover .nickname { color: var(--ink); }
.spark {
  width: 11px;
  height: 11px;
  flex-basis: 11px;
  margin: -9px 0 0 4px;
  color: var(--accent-text);
  stroke-width: 2.4;
  transition: transform 330ms var(--ease-out);
}
.name-story summary:hover .spark,
.name-story[open] .spark { transform: rotate(60deg); }

.story {
  position: absolute;
  top: calc(100% + 8px);
  left: -32px;
  z-index: 4;
  width: min(340px, 83vw);
  padding: 21px 22px;
  background: var(--note);
  color: var(--on-note);
  box-shadow: 0 12px 28px rgba(var(--shadow), .12);
  white-space: normal;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
  transform: rotate(-1.5deg);
}
.story::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 28px;
  width: 64px;
  height: 20px;
  background: var(--gingham-bold);
  opacity: .92;
  box-shadow: 0 1px 4px rgba(var(--shadow), .12);
  transform: rotate(4deg);
}
.story b { display: block; margin-bottom: 8px; font-size: 16px; }
.story p { margin: 0; }

.languages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 108px;
  padding: 3px;
  border-radius: 999px;
  background: var(--field);
  isolation: isolate;
}
.languages::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(var(--shadow), .08);
  transition: transform 330ms var(--ease-out);
}
html[data-lang="en"] .languages::before { transform: translateX(100%); }
.languages a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  color: var(--field-soft);
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms ease;
}
.languages a[aria-current="true"] { color: var(--ink); }
.languages a:focus-visible { outline-color: var(--ink); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 34px 0 47px;
}
.copy { position: relative; z-index: 1; min-width: 0; }

.route { max-width: 100%; margin: 0 0 15px; }
.route-list {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 6px 2px 8px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--mark) transparent;
  scroll-snap-type: x proximity;
}
.route-list li { display: flex; flex: 0 0 auto; align-items: center; --route-index: 0; }
.route-list li + li::before {
  content: "";
  display: block;
  width: clamp(14px, 2.2vw, 26px);
  height: 2px;
  margin: 0 5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
  transform-origin: left center;
}
.route-stop {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 8px;
  min-height: 32px;       /* the visible capsule */
  padding: 0 14px 0 11px; /* a little more room after the text than before the dot */
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}
.route-stop::after { content: ""; position: absolute; inset: -6px -2px; } /* 44px tap target around the 32px capsule */
.route-stop[aria-pressed="true"] { color: var(--on-field); background: var(--field); }
.route-stop:hover { transform: translateY(-2px); }
.route-stop:not([aria-pressed="true"]):hover { color: var(--on-note); background: var(--note); }
.route-stop:active { transform: translateY(1px) scale(.97); }
.route-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
}
.route-stop[aria-pressed="true"] .route-dot {
  background: var(--field-mark);
  outline: 4px solid color-mix(in srgb, var(--field-mark) 30%, transparent);
}
.route-now { margin-left: 2px; color: var(--field-accent); font-size: 11px; font-weight: 750; }
.route-caption {
  min-height: 20px;
  margin: 0 11px;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.4;
}

h1 {
  margin: 0 0 25px;
  padding-top: .12em; /* headroom for the hat on the "!" */
  font-size: clamp(58px, 6.5vw, 88px);
  font-weight: 760;
  line-height: .99;
  letter-spacing: -.055em;
}
h1 .name {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: .1em;
  text-underline-offset: .06em;
}

.copy .hat-fact {
  position: absolute;
  z-index: 5;
  width: min(300px, 82vw);
  padding: 20px 20px 18px;
  background: var(--note);
  color: var(--on-note);
  box-shadow: 0 12px 28px rgba(var(--shadow), .14);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  transform: rotate(1.5deg);
  animation: fact-in 300ms var(--ease-out);
}
.hat-fact[hidden] { display: none; }
.hat-fact p { margin: 0; }
.hat-fact::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 64px;
  height: 20px;
  background: var(--gingham-bold);
  opacity: .92;
  box-shadow: 0 1px 4px rgba(var(--shadow), .12);
  transform: translateX(-50%) rotate(-3deg);
}
@keyframes fact-in { from { opacity: 0; transform: translateY(-8px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: rotate(1.5deg); } }

/* The "!" with Luffy's hat. JS splits the glyph into stick and dot. */
.bang { position: relative; display: inline-block; }
.bang-baseline { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.bang-rig { display: none; }
.bang.is-rigged { color: transparent; margin-inline-start: .03em; }
.bang.is-rigged > .bang-rig { display: block; position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.bang-stick,
.bang-dot { position: absolute; inset: 0; color: var(--ink); user-select: none; }
.bang-dot { clip-path: inset(var(--split) 0 0 0); }
.bang-stick { clip-path: inset(0 0 calc(100% - var(--split)) 0); }
.bang.is-moving .bang-stick,
.bang.is-moving .bang-hat { will-change: transform; } /* only while the physics runs */
.bang-hat {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 .03em .03em rgba(var(--shadow), .25));
}
.bang-hat.is-focused { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 40%; }

.lead {
  max-width: 540px;
  margin: 0;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.5;
  letter-spacing: -.018em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 22px;
}
.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-size: 15px;
  font-weight: 700;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  padding: 0 23px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 5px 10px rgba(var(--shadow), .14);
  transform: rotate(-1deg);
  transition: transform 190ms var(--ease-out), box-shadow 190ms ease;
}
.blog-link .icon { width: 19px; height: 19px; flex-basis: 19px; }
.blog-link .arrow { margin-left: 0; }
.blog-link:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: 0 9px 16px rgba(var(--shadow), .18); }
.blog-link:active { transform: rotate(0) translateY(2px) scale(.97); box-shadow: 0 2px 4px rgba(var(--shadow), .12); }

.underline-link {
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  border-bottom: 2px solid var(--mark);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}
.underline-link:hover { color: var(--accent-text); transform: translateX(3px); }
.underline-link:active { transform: translateX(1px) scale(.98); }

.photo-area { position: relative; padding: 10px 10px 28px 0; }
.tape {
  position: absolute;
  z-index: 3;
  top: -4px;
  left: 50%;
  width: 92px;
  height: 26px;
  background: var(--gingham-bold);
  opacity: .92;
  box-shadow: 0 2px 5px rgba(var(--shadow), .12);
  transform: translateX(-50%) rotate(-4deg);
}
.photo-area::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -5%;
  left: -10%;
  width: 53%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--field);
}
.portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(550px, 54vw);
  overflow: hidden;
  border-radius: 13px 13px 54px 13px;
  background: var(--photo-ground);
  box-shadow: 12px 14px 28px rgba(var(--shadow), .16);
  transform: translate3d(var(--photo-x, 0px), var(--photo-y, 0px), 0) rotate(2.2deg);
  transition: transform 300ms var(--ease-out);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.07);
  transform-origin: center 20%;
}
.photo-note {
  position: absolute;
  z-index: 2;
  right: -12px;
  bottom: 10px;
  padding: 9px 13px;
  color: var(--ink); /* on the gingham ground, like the rest of the page text */
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(var(--shadow), .1);
  transform: rotate(-6deg);
}

/* Social */

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  padding: 20px 0 13px;
  color: var(--soft-ink);
  font-size: 14px;
}
.social h2 { margin: 0 6px 0 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.social ul { display: contents; }
.social li { list-style: none; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 5px;
  border-radius: 8px;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}
.social a .arrow { width: 12px; height: 12px; flex-basis: 12px; margin-left: 0; }
.social a:hover { color: var(--accent-text); transform: translateY(-2px); }
.social a:active { transform: translateY(1px) scale(.97); }

/* Sections */

.section-title {
  margin: 0;
  font-size: clamp(31px, 3.4vw, 45px);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 6vw, 90px);
  padding: 68px 0 72px;
  border-top: 1px solid var(--rule);
}
.about-squiggle {
  display: block;
  width: 64px;
  height: 36px;
  margin-top: 18px;
  color: var(--mark);
  stroke-width: 3;
  transform: rotate(-12deg);
}
.about-copy { max-width: 660px; }
.about-copy p { margin: 0 0 22px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.about-copy p:last-child { margin-bottom: 0; }

.channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: end;
  gap: 25px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 20px 20px 72px 20px;
  background: var(--field);
  color: var(--on-field);
}
.channel-text { max-width: 720px; }
.channel .underline-link { border-bottom-color: var(--field-mark); }
.channel .underline-link:hover { color: var(--field-accent); }
.channel a:focus-visible { outline-color: var(--field-accent); }
.channel p {
  max-width: 690px;
  margin: 22px 0 24px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
}
.channel .underline-link,
.project-row .underline-link { justify-self: start; min-height: 44px; font-size: 16px; }
.channel-note {
  justify-self: end;
  align-self: end;
  margin: 0 0 5px;
  padding: 12px 16px 14px;
  background: var(--note);
  box-shadow: 0 6px 14px rgba(var(--shadow), .22);
  color: var(--on-note);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.03em;
  transform: rotate(-8deg);
}

.projects { padding: 76px 0 82px; }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: 26px;
  padding: 27px 0 29px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project-title { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.project-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; }
.project-row h3 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.project-row p { margin: 0; color: var(--soft-ink); font-size: 17px; line-height: 1.5; }
.more-projects { margin: 16px 0 0; color: var(--soft-ink); font-size: 14px; line-height: 1.5; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 22px 0 14px;
  border-top: 1px solid var(--rule);
  color: var(--soft-ink);
  font-size: 13px;
}
.footer p { margin: 0; }

/* 404 */

.missing {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: calc(100svh - 140px);
  padding: 40px 0 80px;
}
a.identity { min-height: 44px; }
.missing p { max-width: 460px; margin: 0 0 26px; font-size: clamp(18px, 1.65vw, 21px); line-height: 1.5; }

/* Motion: content is visible by default; these only run when JS enables them. */

.route-caption.is-changing { animation: caption-in 260ms var(--ease-out); }
.name-story[open] .story { animation: story-in 270ms var(--ease-out); }
@keyframes caption-in { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes story-in { from { opacity: .6; transform: translateY(-7px) rotate(-1.5deg); } to { opacity: 1; transform: rotate(-1.5deg); } }

.motion .route-list li + li::before {
  transform: scaleX(0);
  transition: transform 520ms var(--ease-out);
  transition-delay: calc(var(--route-index) * 160ms + 120ms);
}
.motion .route.is-visible .route-list li + li::before { transform: scaleX(1); }
.motion .route-stop[aria-pressed="true"] .route-dot { animation: dot-arrive 700ms var(--ease-out) 500ms both; }
@keyframes dot-arrive {
  from { outline-width: 0; outline-color: transparent; }
  60% { outline-width: 7px; }
  to { outline-width: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep colour and shadow feedback; drop movement. */
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .route-stop, .blog-link, .underline-link, .social a, .portrait, .skip-link, .spark, .languages a {
    transition-property: color, background-color, border-color, box-shadow, opacity !important;
  }
  .languages::before { transition-duration: 120ms; }
  .route-stop:hover, .route-stop:active, .social a:hover, .social a:active,
  .underline-link:hover, .underline-link:active { transform: none; }
  .blog-link:hover, .blog-link:active { transform: rotate(-1deg); }
  .name-story summary:hover .spark, .name-story[open] .spark { transform: none; }
}

/* Responsive */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 22px 0 32px; }
  .photo-area::before { top: -2%; }
  .photo-area { width: min(520px, 96%); margin: 0 auto; }
  .portrait { height: min(480px, 64vw); }
  h1 { font-size: clamp(58px, 9vw, 88px); }
}

@media (max-width: 760px) {
  .page { padding: 0 25px 20px; }
  .hero { gap: 40px; padding: 18px 0 24px; }
  .header { align-items: flex-start; min-height: 75px; padding-top: 14px; }
  .identity { position: relative; }
  .name-story { position: static; }
  .story { left: -4px; width: min(340px, calc(100vw - 44px)); }
  h1 { font-size: clamp(52px, 11vw, 79px); }
  .portrait { height: min(390px, 88vw); }
  .about { grid-template-columns: 1fr; gap: 15px; padding: 48px 0 54px; }
  .about-squiggle { display: none; }
  .about-copy p { font-size: 17px; }
  .channel { grid-template-columns: 1fr; gap: 10px; padding: 30px 27px 28px; border-radius: 18px 18px 48px 18px; }
  .channel-note { margin-top: 12px; font-size: 16px; }
  .projects { padding: 55px 0 65px; }
  .project-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Phones: the whole route fits without sideways scrolling. */
@media (max-width: 520px) {
  .route-list { padding-right: 0; padding-left: 0; }
  .route-stop { gap: 7px; min-height: 30px; padding: 0 11px 0 9px; font-size: 12px; }
  .route-list li + li::before { width: 10px; margin: 0 2px; }
  .route-now { display: none; }
}
@media (max-width: 380px) {
  .route-stop { gap: 6px; min-height: 28px; padding: 0 9px 0 8px; font-size: 11px; }
  .route-list li + li::before { width: 8px; margin: 0 1px; }
}

@media (max-width: 420px) {
  .page { padding-right: 18px; padding-left: 18px; }
  .identity { gap: 6px; font-size: 16px; }
  .languages { width: 92px; }
  h1 { font-size: 50px; }
  .photo-area { width: 95%; }
  .portrait { height: min(330px, 83vw); }
  .photo-note { right: -8px; }
  .route { margin-bottom: 13px; }
  .social h2 { flex-basis: 100%; }
  .route-caption { margin: 0 7px; }
  .lead { font-size: 17px; line-height: 1.45; }
  .links { margin-top: 18px; }
}
