/* ── Fonts: Inter and Newsreader, self-hosted from @fontsource (scripts/build.ts) ── */
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-ext-400-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-ext-600-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-latin-500-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-latin-ext-500-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/newsreader-latin-ext-600-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ── Tokens: the bright studio look of the App Store images ── */
:root {
  --ink: #14202b;
  --ink-soft: #4a5866;
  --ink-muted: #5e6b78;
  --ground: #f6f7f9;
  --surface: #ffffff;
  --line: #dfe3e8;
  --accent: #1f6fd1;
  --accent-hover: #1756a6;
  --sun: #ff6b4a;
  --peach: #fff1e6;
  --mist: #e9f1fb;
  /* New York on Apple devices, Newsreader elsewhere. */
  --heading: ui-serif, "New York", "Newsreader", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
/* Inter and Newsreader have no CJK glyphs: the system fonts take over. */
:root:lang(ja) {
  --heading: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body:
    "Inter", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  line-break: strict;
  word-break: auto-phrase;
}
:root:lang(zh-Hans) {
  --heading: ui-serif, "Songti SC", "Noto Serif SC", serif;
  --body:
    "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui,
    sans-serif;
}
:root:lang(zh-Hant) {
  --heading: ui-serif, "Songti TC", "Noto Serif TC", serif;
  --body:
    "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui,
    sans-serif;
}
:root:lang(ko) {
  --heading: ui-serif, "AppleMyungjo", "Noto Serif KR", serif;
  --body:
    "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui,
    sans-serif;
  word-break: keep-all;
}
:is(:lang(ja), :lang(zh), :lang(ko)) :is(h1, h2, h3) {
  line-height: 1.3;
  letter-spacing: 0;
}
:is(:lang(ja), :lang(zh), :lang(ko)) .kicker {
  letter-spacing: 0.04em;
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.skip:focus {
  top: 16px;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Navigation ── */
.site-nav {
  position: relative;
  width: 100%;
  z-index: 2;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgb(20 32 43 / 0.15));
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-size: 15px;
}
.site-nav ul a {
  display: inline-block;
  padding-block: 10px;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--ink);
}
.site-nav ul a[aria-current="page"] {
  text-decoration: underline;
}

/* ── Hero: centered over the floating prints on the mirror floor ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #eaf3fc, #fbf8f6 55%, #fdeee2);
  display: flex;
  flex-direction: column;
}
/* The image sits on the bottom edge at full width, so the prints keep their
   size; the hero's gradient continues its light sky above it. */
.studio img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: max(100%, 900px);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  /* Fades the image's top edge into the gradient above it. */
  mask-image: linear-gradient(transparent, #000 35%);
}
.hero-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: clamp(16px, 4vw, 48px);
  padding-bottom: max(270px, 29vw);
  text-align: center;
}
.hero-icon {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 14px 28px rgb(20 32 43 / 0.18));
}
.hero h1 {
  max-width: 14ch;
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 640px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px 0 20px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgb(20 32 43 / 0.2);
}
a.badge:hover {
  color: #fff;
  background: #1c1c1e;
}
.badge-soon {
  cursor: default;
}
.badge span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.badge small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #d6d6dd;
}
.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid rgb(20 32 43 / 0.18);
  background: rgb(255 255 255 / 0.7);
  backdrop-filter: blur(8px);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.button-ghost:hover {
  color: var(--ink);
  background: #fff;
}
.hero-note {
  font-size: 14px;
  color: var(--ink-muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes settle {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .studio img {
    animation: settle 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .d1 {
    animation-delay: 0.15s;
  }
  .d2 {
    animation-delay: 0.3s;
  }
  .d3 {
    animation-delay: 0.45s;
  }
  .d4 {
    animation-delay: 0.6s;
  }
  .d5 {
    animation-delay: 0.75s;
  }
}

/* ── Sections ── */
.section {
  padding-block: clamp(72px, 10vw, 128px) 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center {
  align-items: center;
  text-align: center;
}
.section-head h2 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 60px);
}
.section-head p:not(.kicker) {
  max-width: 640px;
  font-size: 19px;
  color: var(--ink-soft);
}
#how,
#features,
#privacy {
  scroll-margin-top: 24px;
}

/* ── iCloud → Immich ── */
.mirror {
  max-width: 920px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(20 32 43 / 0.06);
}
.mirror li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.4fr);
  align-items: center;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 36px);
  border-top: 1px solid var(--line);
}
.mirror li > span:first-child {
  font-weight: 600;
}
.mirror li > span:last-child {
  color: var(--ink-soft);
}
.mirror .mirror-head {
  border-top: 0;
  padding-block: 14px;
  background: linear-gradient(90deg, var(--mist), var(--peach));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mirror .mirror-head > span {
  color: var(--ink-soft);
  font-weight: 600;
}
.mirror-arrow {
  color: var(--sun);
  font-size: 22px;
  text-align: center;
}
@media (max-width: 600px) {
  .mirror li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .mirror-arrow,
  .mirror .mirror-head {
    display: none;
  }
}

.untouched {
  max-width: 920px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  border: 1px solid #cfe0f4;
  background: linear-gradient(120deg, var(--mist), #f4f8fd);
}
.untouched h3 {
  font-size: clamp(24px, 2.6vw, 30px);
}
.untouched p {
  color: var(--ink-soft);
}
.untouched .untouched-note {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ── Use case: every source flows into one Immich library ── */
#hub {
  scroll-margin-top: 24px;
}
.hub {
  max-width: 1000px;
  margin-inline: auto;
}
.hub-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.hub-sources li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.hub-sources .hub-mirrored {
  border-color: #cfe0f4;
  background: linear-gradient(160deg, var(--mist), #fff 70%);
  box-shadow: 0 0 0 2px rgb(31 111 209 / 0.12);
}
.hub-sources h3,
.hub-center h3 {
  font-size: 24px;
}
.hub-sources p,
.hub-center p {
  color: var(--ink-soft);
}
.hub-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ground);
  color: var(--accent);
}
.hub-mirrored .hub-icon {
  background: #fff;
}
/* Three lines converging from the sources onto the library. */
.hub-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 56px;
}
.hub-flow span {
  justify-self: center;
  width: 2px;
  background: linear-gradient(var(--line), var(--accent));
}
.hub-flow span:first-child {
  transform: skewX(40deg);
  transform-origin: bottom;
}
.hub-flow span:last-child {
  transform: skewX(-40deg);
  transform-origin: bottom;
}
@media (max-width: 860px) {
  .hub-flow {
    grid-template-columns: 1fr;
    height: 40px;
  }
  .hub-flow span:not(:nth-child(2)) {
    display: none;
  }
}
.hub-center {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: linear-gradient(120deg, #eaf3fc, #fbf8f6 55%, #fdeee2);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgb(20 32 43 / 0.08);
}
.hub-center .hub-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
}
.hub-center div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Features ── */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 104px);
}
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px clamp(40px, 9vw, 128px);
}
.feature:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-copy {
  flex: 1 1 380px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature h3 {
  font-size: clamp(30px, 3.4vw, 42px);
}
.feature-copy p:not(.kicker) {
  font-size: 18px;
  color: var(--ink-soft);
}
/* A screenshot in a simple iPhone frame, standing on the mirror floor. */
.phone {
  flex: 0 1 300px;
  padding: 10px;
  border-radius: 50px;
  background: #0d1117;
  box-shadow:
    0 30px 60px rgb(20 32 43 / 0.18),
    0 0 0 1px rgb(20 32 43 / 0.1);
  -webkit-box-reflect: below 14px
    linear-gradient(transparent 82%, rgb(255 255 255 / 0.22));
  margin-bottom: 72px;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 40px;
}
.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
}
.details li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.details h3 {
  font-size: 24px;
}
.details p {
  color: var(--ink-soft);
}

/* ── Privacy band on the studio backdrop ── */
.privacy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px)
    clamp(160px, 22vw, 300px);
  border-radius: 32px;
  background: #f4f1ee url(/img/studio-1920.webp) 50% 100% / cover;
  text-align: center;
}
.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(250 249 248 / 0.92) 35%,
    rgb(250 249 248 / 0) 75%
  );
}
.privacy > * {
  position: relative;
  max-width: 720px;
}
.privacy h2 {
  font-size: clamp(34px, 5vw, 58px);
}
.privacy p:not(.kicker) {
  font-size: 19px;
  color: var(--ink-soft);
}
.privacy a {
  font-weight: 600;
}

/* ── Requirements ── */
.requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.requirements li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc145, var(--sun));
  color: #fff;
  font-weight: 600;
}
.requirements h3 {
  font-size: 24px;
}
.requirements p {
  color: var(--ink-soft);
}

/* ── Closing ── */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: clamp(80px, 11vw, 136px);
  text-align: center;
}
.closing-icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 14px 28px rgb(20 32 43 / 0.18));
}
.closing h1,
.closing h2 {
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.closing p {
  font-size: 20px;
  color: var(--ink-soft);
}

/* ── Support and privacy pages ── */
.page-header {
  background: linear-gradient(100deg, #eaf3fc, #fbf8f6 55%, #fdeee2);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: clamp(24px, 5vw, 56px);
}
.page-title h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.policy {
  max-width: 900px;
  padding-block: clamp(40px, 6vw, 64px) clamp(64px, 9vw, 96px);
}
.policy-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.policy-summary {
  font-size: 21px;
  line-height: 1.5;
}
.policy-meta {
  font-size: 14px;
  color: var(--ink-muted);
}
.policy-body section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px 32px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.policy-body h2 {
  font-size: 26px;
}
.policy-body div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
}
.policy-body ol,
.policy-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.3em;
}
.policy-body ol {
  list-style: decimal;
}
.policy-body ul {
  list-style: disc;
}
.policy-body strong {
  color: var(--ink);
}
@media (max-width: 640px) {
  .policy-body section {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 32px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}
.footer-row .wordmark {
  font-size: 18px;
}
.footer-row .wordmark img {
  width: 32px;
  height: 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer-links a {
  display: inline-block;
  padding-block: 8px;
}
.footer-note {
  max-width: 760px;
}
.languages {
  position: relative;
}
.languages summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.languages summary::-webkit-details-marker {
  display: none;
}
.languages summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.languages ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: 220px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(20 32 43 / 0.18);
}
.languages a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.languages a:hover,
.languages a[aria-current="page"] {
  background: var(--ground);
}
.languages a[aria-current="page"] {
  font-weight: 600;
}

/* CJK headlines carry more per glyph than Latin ones. */
:is(:lang(ja), :lang(zh), :lang(ko)) .hero h1 {
  max-width: 20ch;
  font-size: clamp(36px, 5.6vw, 72px);
}
:is(:lang(ja), :lang(zh), :lang(ko)) :is(.closing h2, .page-title h1) {
  font-size: clamp(32px, 4.6vw, 60px);
}
