/* ShowPapers site. Author: Nirbhay Pherwani. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Android 0.91.5 / c4a153f. Sources and role mapping: docs/android-design-reference.md. */

:root {
  color-scheme: light;
  --paper: #F7F9FA;
  --paper-2: #E5F3EF;
  --card: #FFFFFF;
  --ink: #233342;
  --ink-2: #63727E;
  --ink-3: #63727E;
  --line: #E1E7EA;
  --line-2: #63727E;
  --midnight: #233342;
  --accent: #007976;
  --accent-soft: #E5F3EF;
  --on-accent: #FFFFFF;
  --focus: #007976;
  --quiet-shadow: #23334218;
  --measure: 38rem;
  --wrap: 80rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4rem, 7vw, 7rem);
  --radius: 1.5rem;
  --radius-sm: 0.75rem;
  --corner-action: 1.125rem;
  --corner-panel: 1.5rem;
  --touch-target: 3rem;
  --space-4: .25rem;
  --space-8: .5rem;
  --space-12: .75rem;
  --space-16: 1rem;
  --space-20: 1.25rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text-0: 1rem;
  --text-1: 1.25rem;
  --text-2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --text-3: clamp(2rem, 4vw, 3.5rem);
  --text-4: clamp(2.5rem, 6vw, 5rem);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131D25;
  --paper-2: #243F3D;
  --card: #1D2934;
  --ink: #E6EDF3;
  --ink-2: #A8B7C4;
  --ink-3: #A8B7C4;
  --line: #33434F;
  --line-2: #A8B7C4;
  --midnight: #E6EDF3;
  --accent: #7BD7C2;
  --accent-soft: #243F3D;
  --on-accent: #102B24;
  --focus: #7BD7C2;
  --quiet-shadow: #00000030;
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
    color-scheme: dark;
  --paper: #131D25;
  --paper-2: #243F3D;
  --card: #1D2934;
  --ink: #E6EDF3;
  --ink-2: #A8B7C4;
  --ink-3: #A8B7C4;
  --line: #33434F;
  --line-2: #A8B7C4;
  --midnight: #E6EDF3;
  --accent: #7BD7C2;
  --accent-soft: #243F3D;
  --on-accent: #102B24;
  --focus: #7BD7C2;
  --quiet-shadow: #00000030;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 5.25rem) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--midnight);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h2 {
  font-size: var(--text-3);
}

h3 {
  font-size: var(--text-1);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin: 0;
}

p + p,
p + ul,
p + ol,
ul + p,
ol + p {
  margin-top: 1em;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: text-decoration-color 160ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.lede {
  font-size: var(--text-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 0.9375rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem var(--space-16);
  background: var(--midnight);
  color: var(--paper);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 4.5rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--midnight);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  min-height: var(--touch-target);
}

.brand .mark {
  color: var(--accent);
  width: 2rem;
  height: 2rem;
  flex: none;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
  line-height: 1.2;
}

.menu {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--touch-target);
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: 0.5rem 0.8rem;
  border-radius:var(--corner-action);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-list a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.menu[aria-expanded="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

@media (hover: hover) and (pointer: fine) {
.nav-list a:hover,
  .menu:hover {
    color: var(--accent);
    background: var(--accent-soft);
  }
}

@media (max-width: 47.99rem) {
.js .menu {
    display: inline-flex;
  }

.js .nav-list {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 1;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.75rem var(--gutter);
    max-height: calc(100svh - var(--header-height, 5.25rem) - 1rem);
    overflow-y: auto;
    background: var(--paper);
    box-shadow: 0 12px 20px var(--quiet-shadow);
    border-top: 1px solid var(--line);
  }

.js .nav-list.open {
    display: flex;
  }

.js .nav-list a {
    min-height: 3rem;
    border-radius: var(--radius-sm);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--midnight);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-32);
}

/* Sections */

.section {
  padding-block: var(--section);
}

/* Two-column editorial blocks */

.split {
  display: grid;
  gap: clamp(var(--space-32), 5vw, 4rem);
  align-items: start;
}

@media (min-width: 56rem) {
.split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.split > div > h2 + p {
  margin-top: var(--space-16);
}

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

.list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.list li:last-child {
  border-bottom: 1px solid var(--line);
}

.list strong {
  display: block;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 0.2rem;
}

.list p {
  color: var(--ink-2);
}

/* Sources and attribution */

/* Contact */

/* Inner pages */

.page-head {
  padding-block: clamp(var(--space-40), 7vw, 5rem) clamp(var(--space-24), 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-head .lede {
  margin-top: var(--space-20);
}

.page-head .meta {
  margin-top: var(--space-16);
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.prose {
  max-width: var(--measure);
  padding-block: clamp(var(--space-32), 5vw, 3.5rem) var(--section);
}

.prose h2 {
  font-size: var(--text-2);
  margin-top: var(--space-40);
  margin-bottom: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose ul,
.prose ol {
  padding-left: var(--space-20);
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose .note {
  margin-top: var(--space-24);
  padding: var(--space-16) var(--space-20);
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(var(--space-40), 6vw, 4rem) var(--space-32);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.foot-grid {
  display: grid;
  gap: var(--space-32);
}

@media (min-width: 48rem) {
.foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

.foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
.foot-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  }

.foot-grid > div:first-child {
    grid-column: auto;
  }
}

.foot-grid .brand {
  margin-bottom: 0.75rem;
}

.foot-grid p {
  max-width: 22rem;
}

.foot-col strong {
  display: block;
  color: var(--midnight);
  margin-bottom: 0.5rem;
}

.foot-col a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: var(--touch-target);
  color: var(--ink-2);
  text-decoration: none;
  transition: color 160ms ease;
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--space-32);
  margin-top: var(--space-40);
  padding-top: var(--space-24);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Reduced motion */

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

*,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

.track {
    scroll-behavior: auto;
  }
}

/* Scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ShowPapers: quiet confidence, a clear record, and room to breathe. */

body { font-size:1rem; }

h1,h2 { font-weight:700; letter-spacing:-.045em; }

h2 { line-height:1.13; }

.nav { min-height:5.5rem; padding-block:.85rem; }

.site-head { background:var(--paper); border-bottom:1px solid var(--line); }

.brand { font-size:1.3rem; font-weight:700; letter-spacing:-.04em; }

.brand .mark { width:2.5rem; height:2.5rem; }

.nav-list a { border-radius:var(--corner-action); font-size:.9375rem; padding:.6rem .85rem; }

.hero-copy { max-width:none; }

.eyebrow { font-size:.8125rem; line-height:1.6; font-weight:600; letter-spacing:.1em; color:var(--accent); margin:0 0 var(--space-24); }

.hero-lede { color:var(--ink-2); font-size:clamp(1.125rem,1.6vw,1.375rem); line-height:1.65; margin-top:var(--space-32); }

.btn { border-radius:1rem; background:var(--accent); color:var(--on-accent); padding:.85rem 1.35rem; min-height:3.4rem; gap:1.7rem; box-shadow:none; }

.btn span { font-size:1.25rem; }

.text-link { display:inline-flex; align-items:center; gap:.8rem; min-height:3rem; color:var(--ink); font-weight:600; font-size:.9375rem; text-decoration-thickness:1px; }

.sharing-heading { max-width:48rem; }

.sharing-heading .lede { margin-top:var(--space-24); }

.sharing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-24); margin-top:var(--space-32); }

.sharing-card { display:flex; flex-direction:column; align-items:flex-start; padding:clamp(var(--space-20),4vw,var(--space-32)); border:1px solid var(--line); border-radius:var(--corner-panel); background:var(--card); }

.sharing-card-heading { display:flex; align-items:center; gap:var(--space-12); }

.sharing-card-heading .app-symbol { color:var(--accent); }

.sharing-card h3 { font-size:1.25rem; line-height:1.4; }

.sharing-card p { margin-top:var(--space-16); }

.sharing-card .sharing-detail { color:var(--ink-2); font-size:.875rem; }

.sharing-card .action { margin-top:auto; align-self:flex-start; }

.sharing-card p:last-of-type { margin-bottom:var(--space-24); }

.privacy-section { background:var(--paper); color:var(--ink); border-block:1px solid var(--line); }

.privacy-section .lede { color:var(--ink-2); }

.privacy-heading { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; }

.privacy-heading .text-link { margin-top:var(--space-20); }

.closing { text-align:center; }

.closing p:not(.eyebrow) { margin-top:var(--space-24); color:var(--ink-2); }

.closing .actions { justify-content:center; align-items:center; gap:var(--space-32); }

.site-foot { background:var(--paper); border-top:1px solid var(--line); }

.foot-bottom { font-size:.8125rem; line-height:1.8; }

.foot-grid .brand small { font-size:.8125rem; margin-top:.4rem; letter-spacing:0; }

.page-head { padding-block:4rem 3rem; border-bottom:1px solid var(--line); }

.page-head h1 { max-width:17ch; }

.page-head .lede { margin-top:var(--space-24); }

.prose { max-width:46rem; margin-inline:auto; }

.prose p { font-size:1.0625rem; line-height:1.8; }

.prose h2 { font-size:1.8rem; }

@media(max-width:47.99rem) {
.nav { min-height:5rem; }

.privacy-heading { grid-template-columns:1fr; gap:var(--space-24); }

.privacy-heading { gap:var(--space-24); }

.closing .actions { gap:var(--space-16); }

}

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

*,*::before,*::after { animation:none!important; transition:none!important; }
}

[hidden] { display:none!important; }

/* Store previews and quiet, tactile actions. */

.store-buttons { display:flex; flex-wrap:wrap; gap:var(--space-12); margin-top:var(--space-32); }

.closing .store-buttons { justify-content:center; }

.text-link { text-decoration:none; border:1px solid var(--line-2); border-radius:var(--corner-action); padding:.65rem var(--space-16); background:transparent; }

/* The app is the hero. Controls stay calm and explicit. */

.nav-tools { display:flex; gap:.65rem; align-items:center; }

.nav-list { margin-left:auto; }

.theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex:none; width:var(--touch-target); min-height:var(--touch-target); padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; color:var(--ink); }

.theme-toggle:hover { background:var(--paper-2); }

.theme-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.sun { display:none; }

:root[data-theme="dark"] .sun { display:initial; }

:root[data-theme="dark"] .moon { display:none; }

h1,h2,h3 { text-wrap:balance; }

p { text-wrap:pretty; }

.store-buttons { gap:var(--space-24); padding-block:.8rem; align-items:center; }

.store-badge { display:inline-flex; align-items:center; min-height:var(--touch-target); padding:0; line-height:0; text-decoration:none; border-radius:9px; }

.store-badge img { display:block; margin:0; height:52px; width:auto; max-width:100%; transition:transform 180ms ease, filter 180ms ease; }

@media (hover:hover) and (pointer:fine) {
.store-badge:hover img { transform:translateY(-2px); filter:drop-shadow(0 4px 5px var(--quiet-shadow)); }
}

.app-carousel { min-width:0; padding:1.35rem 1.2rem 1.1rem; background:var(--accent-soft); border-radius:var(--corner-panel); color:var(--ink); }

.carousel-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-16); font-size:.6875rem; letter-spacing:.06em; font-weight:600; }

.app-slide { margin:var(--space-24) 0 0; }

.screen-frame { width:min(100%,235px); margin-inline:auto; padding:5px; background:var(--line); border-radius:23px; box-shadow:0 16px 40px -24px var(--quiet-shadow); }

.screen-frame img { display:block; width:100%; height:auto; border-radius:18px; }

.screen-frame .screen-dark { display:none; }

:root[data-theme="dark"] .screen-frame .screen-light { display:none; }

:root[data-theme="dark"] .screen-frame .screen-dark { display:block; }

.app-slide figcaption { margin:1.35rem auto .85rem; text-align:center; }

.app-slide h2 { color:inherit; font-size:1.1rem; letter-spacing:-.02em; }

.app-slide p { font-size:.8125rem; margin-top:.45rem; line-height:1.5; }

.carousel-controls { display:flex; justify-content:center; gap:var(--space-4); flex-wrap:wrap; }

.carousel-controls button { padding:.65rem .7rem; min-height:var(--touch-target); border:0; background:transparent; color:inherit; cursor:pointer; font-size:.8125rem; border-radius:8px; }
/* The app's saved-copy and packing model, shown as a short demonstration. */

.app-symbol { flex:none; width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

/* Compact resource rows keep the reading list calm and easy to scan. */
.reading-list { display:grid; gap:0; margin-block:var(--space-32); border-top:1px solid var(--line); }
.reading-card { display:block; min-width:0; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--line); padding:1.4rem .25rem; background:transparent; overflow-wrap:anywhere; }
.reading-meta { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.35rem 1rem; font-size:.75rem; line-height:1.6; color:var(--ink-2); }
.reading-source { font-weight:600; color:var(--accent); }
.reading-card h3 { font-size:1.0625rem; margin:.55rem 0 0; line-height:1.5; letter-spacing:-.01em; }
.reading-card p { font-size:.9375rem; margin:.45rem 0 0; line-height:1.65; color:var(--ink-2); }
.reading-card:hover { text-decoration:none; }
.reading-card:hover h3 { text-decoration:underline; text-underline-offset:.2em; }
.reading-card:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:3px; }

.prose { padding-block:var(--space-32) 4.5rem; }

.prose .meta { font-size:.875rem; color:var(--ink-3); }

.prose .note { font-size:1rem; padding:var(--space-20); background:var(--paper-2); border-radius:10px; }

.foot-grid p { font-size:.9375rem; line-height:1.7; }

.foot-bottom { align-items:center; justify-content:space-between; gap:.6rem var(--space-32); }

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

@media(max-width:65rem) {
.nav { gap:var(--space-12); }

.nav-list { order:3; width:100%; justify-content:center; margin:0; }

.store-buttons { gap:var(--space-16); }

.store-badge img { height:44px; }
}

@media(max-width:47.99rem) {

.sharing-grid { grid-template-columns:minmax(0,1fr); }

.app-carousel { max-width:32rem; width:100%; justify-self:center; }

.screen-frame { width:215px; }

.nav-tools { margin-left:auto; }

.theme-toggle span { display:none; }

.theme-toggle { padding:.65rem; }

.nav-list { justify-content:initial; }



.foot-bottom { display:grid; }

.carousel-top { font-size:.625rem; }

.store-buttons { column-gap:1.1rem; row-gap:var(--space-16); }
}

@media(max-width:24rem) {
.brand { font-size:1.15rem; gap:.4rem; }

.brand .mark { width:2rem; height:2rem; }

.nav { gap:.45rem; }

.nav-tools { gap:.4rem; }

.menu { padding:var(--space-8) .65rem; }

.store-buttons { flex-wrap:wrap; }

.app-carousel { padding:1.1rem .7rem; }

.carousel-controls button { padding:.6rem var(--space-8); font-size:.75rem; }
}

@media(prefers-color-scheme: dark) {
:root:not([data-theme]) .screen-light { display:none; }

:root:not([data-theme]) .screen-frame .screen-dark { display:block; }
}

.carousel-controls { display:none; }

.js .carousel-controls { display:flex; }

/* A restrained reading path from the moment of need to the chosen copies. */

.hero-reassurance { margin-top:var(--space-16); color:var(--ink-2); font-size:.875rem; max-width:30rem; }

.hero-lede { max-width:36rem; }

/* Native 1080 × 2400 captures: hide the 132 px status bar and 63 px gesture area without altering app pixels. */

.screen-crop { aspect-ratio:1206/2334; overflow:hidden; border-radius:18px; }

.screen-crop img { margin-top:-15.422885572%; border-radius:0; }

.app-carousel { position:relative; }

.carousel-top { align-items:center; flex-wrap:wrap; font-size:.75rem; }

.app-slide { margin-top:.8rem; }

.app-slide figcaption { min-height:4.4rem; }

.carousel-controls button { font-size:.875rem; }

.carousel-note { margin-top:.85rem; text-align:center; font-size:.875rem; line-height:1.5; color:inherit; }

/* Use primary ink on tinted panels to meet AA contrast at small text sizes. */

.prose .article-actions { margin-top:var(--space-32); }

.prose > p + p { margin-top:var(--space-20); }

.people-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:var(--space-16); margin-block:var(--space-24) var(--space-40); }

.person-identity { display:flex; flex-direction:column; gap:.4rem; }

.person-role { color:var(--ink-2); font-size:.875rem; font-weight:500; }

.person-link { display:flex; flex-direction:column; align-items:flex-start; gap:1.3rem; border:1px solid var(--line); background:linear-gradient(145deg,var(--card),var(--paper-2)); border-radius:20px; padding:var(--space-24); color:var(--ink); text-decoration:none; transition:border-color .18s ease,box-shadow .18s ease; }

.person-link strong { font-size:1.125rem; line-height:1.5; text-wrap:balance; }

.person-link .profile-action { display:inline-flex; align-items:center; justify-content:center; gap:.8rem; max-width:100%; min-height:48px; padding:.7rem var(--space-16); border:1px solid var(--line); border-radius:999px; background:var(--accent-soft); color:var(--accent); font-size:.875rem; font-weight:750; line-height:1.5; text-align:center; }

.profile-action img { flex:0 0 24px; width:24px; height:24px; }

.person-link:hover { border-color:var(--accent); box-shadow:0 6px 24px color-mix(in srgb,var(--accent) 12%,transparent); text-decoration:none; }

.person-link:focus-visible { outline:3px solid var(--focus); outline-offset:5px; }

@media(prefers-reduced-motion:reduce) {
.person-link { transition:none; }
}

@media(max-width:47.99rem) {

.people-links { grid-template-columns:1fr; }
}

.analytics-settings { border:0; background:transparent; font:inherit; font-size:.875rem; font-weight:500; padding:.65rem 0; min-height:var(--touch-target); color:var(--ink-2); text-align:left; cursor:pointer; text-decoration:none; transition:color 160ms ease; }

.analytics-settings:hover { color:var(--accent); }

.analytics-settings[hidden],.analytics-banner[hidden] { display:none; }

.analytics-banner { position:fixed; z-index:30; bottom:1rem; left:1rem; width:min(calc(100% - 2rem),25rem); max-height:45vh; overflow:auto; padding:var(--space-16); border:1px solid var(--line); border-radius:var(--corner-action); background:var(--card); box-shadow:0 3px 16px var(--quiet-shadow); }

.analytics-banner strong { font-size:.875rem; }

.analytics-banner p { margin-top:.2rem; font-size:.875rem; color:var(--ink-2); line-height:1.6; }

.analytics-banner a { color:var(--accent); }

.analytics-actions { display:grid; grid-template-columns:1fr 1fr; margin-top:var(--space-12); gap:.65rem; }

.analytics-actions button { min-height:var(--touch-target); padding:.65rem .85rem; border:1px solid var(--line-2); border-radius:var(--corner-action); background:var(--paper-2); color:var(--ink); font:inherit; font-size:.875rem; cursor:pointer; }
/* Let enlarged text determine height, without letting min-content widen the page. */
.people-links > * { min-width:0; }

.screen-frame { max-width:100%; }

.nav .brand { min-width:0; max-width:100%; }

.nav .brand span { min-width:0; overflow-wrap:anywhere; }

@media(max-width:47.99rem) {
.people-links { grid-template-columns:minmax(0,1fr); }

}
.privacy-heading > *, .foot-grid > * { min-width:0; }

@media(max-width:47.99rem) {
.privacy-heading { grid-template-columns:minmax(0,1fr); }
}

.reading-list { grid-template-columns:minmax(0,1fr); }

.reading-card { min-width:0; overflow-wrap:anywhere; }

/* Quiet surfaces for actions; selected controls carry the strongest emphasis. */

:is(a, button).action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-8);
  max-width:100%;
  min-height:var(--touch-target);
  padding:.65rem var(--space-16);
  border:0;
  border-radius:var(--corner-action);
  background:var(--accent-soft);
  color:var(--accent);
  box-shadow:none;
  text-decoration:none;
  font:inherit;
  font-size:.875rem;
  font-weight:600;
  line-height:1.5;
  cursor:pointer;
  transition:background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

:is(a, button).action:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }

:is(a, button).action:active { transform:translateY(1px); }

.app-carousel .action { background:transparent; color:inherit; }

.carousel-top { gap:.65rem; }

.carousel-top-tools { display:flex; align-items:center; gap:.4rem; margin-inline-start:auto; }

.carousel-top-tools [data-slide-count] { font-variant-numeric:tabular-nums; }

/* Icon-only play/pause control for the hero's automatic preview; hidden until JS can drive it, like .theme-toggle. */
.carousel-play { display:inline-flex; align-items:center; justify-content:center; flex:none; width:1.85rem; height:1.85rem; padding:0; border:0; border-radius:50%; background:transparent; color:inherit; cursor:pointer; }

.carousel-play svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

.carousel-play .icon-play { display:none; fill:currentColor; stroke:none; }

.carousel-play[aria-pressed="false"] .icon-pause { display:none; }

.carousel-play[aria-pressed="false"] .icon-play { display:block; }

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

@media (hover:hover) and (pointer:fine) {
.carousel-play:hover { background:color-mix(in srgb,currentColor 12%,transparent); }
}

/* A quiet entrance for each slide, whether autoplay or a visitor brings it in; reduced motion strips animation
   site-wide already (the global rule near the top of this file), so this never plays for those visitors. */
@keyframes hero-slide-in { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:none; } }

@keyframes hero-caption-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.app-slide.entering .screen-frame { animation:hero-slide-in .5s cubic-bezier(.22,.61,.36,1) both; }

.app-slide.entering figcaption { animation:hero-caption-in .45s ease .08s both; }

.carousel-controls {
  width:fit-content;
  max-width:100%;
  margin-inline:auto;
  padding:.3rem;
  gap:.2rem;
  border-radius:14px;
  background:color-mix(in srgb,currentColor 7%,transparent);
}

.carousel-controls .action { flex:1 1 auto; padding:.65rem .8rem; }

.carousel-controls .action[aria-pressed="true"] {
  background:var(--card);
  color:var(--ink);
  box-shadow:0 2px 6px var(--quiet-shadow);
}

.analytics-actions .action { background:var(--paper-2); color:var(--ink); }

.person-link .profile-action {
  gap:.65rem;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--accent);
}



@media (hover:hover) and (pointer:fine) {
:is(a, button).action:hover {
    background:color-mix(in srgb,var(--accent) 10%,var(--accent-soft));
    text-decoration:none;
  }

.app-carousel .action:hover { background:color-mix(in srgb,currentColor 10%,transparent); }

.carousel-controls .action[aria-pressed="true"]:hover { background:var(--card); }

.analytics-actions .action:hover { background:var(--accent-soft); }

}

@media (prefers-reduced-motion:reduce) {
.action:active { transform:none; }

.store-badge:hover img { transform:none; filter:none; }

}

/* Keep text and surfaces in the same theme during a preference change. */

:root.theme-changing *, :root.theme-changing *::before, :root.theme-changing *::after { transition:none!important; }

/* Give supporting copy a clear place in the reading hierarchy. */

.lede, .hero-lede { font-weight:600; }
.hero-reassurance, .app-slide figcaption p, .prose .note { font-weight:500; }

.reading-card time, .reading-type { color:var(--ink-2); font-size:inherit; }



/* Report a Problem template: wraps at any width, keeps the page's type. */

.report-template { margin-top:var(--space-20); padding:var(--space-20); background:var(--card); border:1px solid var(--line); border-radius:10px; font:inherit; font-size:1rem; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }

.report-template:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }

.prose .report-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-12); margin-top:var(--space-20); }

.prose .report-status { margin-top:var(--space-12); font-size:.9375rem; color:var(--ink-2); }

.prose .report-status:empty { display:none; }

.prose .report-context { font-size:.9375rem; color:var(--ink-2); }

/* Language switch: the other language in the primary navigation; both, with the current one marked, in the footer. */

.foot-lang { display:flex; flex-wrap:wrap; align-items:center; gap:0 var(--space-12); margin-top:var(--space-8); }

.foot-lang [aria-current] { color:var(--ink); font-weight:600; }

.foot-lang a { display:inline-flex; align-items:center; min-height:var(--touch-target); color:var(--ink-2); text-decoration:none; transition:color 160ms ease; }

.foot-lang a:hover { color:var(--accent); }

@media(max-width:47.99rem) {
.js .nav-lang { margin-top:var(--space-4); padding-top:var(--space-4); border-top:1px solid var(--line); }
}

/* Long words in a card title wrap inside the card instead of widening it (Spanish titles at 200% text). */

.sharing-card-heading { max-width:100%; }

.sharing-card-heading h3 { min-width:0; }

/* Longer Spanish notes (the gallery note, the policy date lines) wrap in balanced lines. */

:lang(es) :is(.carousel-note, .prose .meta) { text-wrap:balance; }

/* Policy dates and scope remain readable independently of the policy prose. */
.policy-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 2rem; padding-block:1.25rem; border-block:1px solid var(--line); margin-block:1.5rem 2rem; font-size:.875rem; }
.policy-meta div:last-child { grid-column:1/-1; }
.policy-meta dt { font-weight:600; color:var(--ink); }
.policy-meta dd { margin:.3rem 0 0; }
@media (max-width:35rem) { .policy-meta { grid-template-columns:minmax(0,1fr); } }
