:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --paper: #fcfaf6;
  --ink: #302e29;
  --muted: #736d63;
  --red: #8b4a3d;
  --red-dark: #713b30;
  --line: #ddd7cb;
  --green: #5e6c59;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
img {
  display: block;
  max-width: 100%;
}
button,
select,
input,
textarea,
a {
  outline-offset: 5px;
}
:focus-visible {
  outline: 2px solid var(--red);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.5;
}
button svg,
a svg {
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}
.serif {
  font-family: var(--serif);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
}
.eyebrow:before {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--red);
}
.mono {
  font-family: Georgia, serif;
  font-variant-numeric: tabular-nums;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--red);
  color: white;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 98px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  background: var(--bg);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.brand-icon {
  width: 36px;
  height: 43px;
  color: var(--red);
}
.brand-name {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: 6px;
}
.brand-subtitle {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
  margin-top: 3px;
}
.main-nav {
  display: flex;
  height: 100%;
  gap: 36px;
  align-items: center;
}
.main-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.main-nav a.active {
  color: var(--red);
}
.main-nav a.active:after {
  content: "";
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}
.main-nav a:hover {
  color: var(--red);
}
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.account-button {
  background: none;
  border: none;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.account-button .icon {
  width: 15px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 45px;
  padding: 11px 21px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 2px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: #ece7dc;
  border-color: #c5bba9;
}
.button.small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.button.ghost {
  color: var(--red);
  background: none;
  border-color: transparent;
}
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 15px;
  color: var(--red);
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  letter-spacing: 0.5px;
}
.text-link:hover .icon {
  transform: translateX(3px);
}
.text-link .icon {
  transition: transform 0.2s;
  width: 17px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eee8dd;
}
.mobile-menu {
  display: none;
}
.preview-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  padding-top: 25px;
}
.preview-note .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #87917b;
  margin-right: 7px;
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.17fr;
  gap: 78px;
  align-items: center;
  padding: 47px 0 65px;
}
.hero-copy {
  padding: 2px 0 0;
}
.hero-copy .eyebrow {
  margin-bottom: 24px;
}
.hero-copy h1 {
  font-size: clamp(44px, 4.45vw, 64px);
  letter-spacing: 3px;
  line-height: 1.45;
  font-weight: 500;
}
.hero-copy h1 span {
  display: block;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-desc {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.05;
  margin: 25px 0 28px;
  letter-spacing: 0.8px;
}
.hero-actions {
  display: flex;
  gap: 23px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-actions .button {
  padding-inline: 24px;
  min-height: 48px;
}
.hero-dedication {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 41px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 2px;
}
.seal {
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.35;
  display: inline-flex;
  padding: 4px 5px;
  letter-spacing: 1px;
  transform: rotate(-4deg);
}
.hero-figure {
  margin: 0;
  position: relative;
  padding: 12px 0 0 13px;
}
.hero-figure:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 14px;
  bottom: 43px;
  border: 1px solid #d7cdbc;
  z-index: -1;
}
.hero-image {
  height: 390px;
  width: 100%;
  object-fit: cover;
  object-position: 49% center;
  filter: saturate(0.67);
  border: 5px solid var(--paper);
  outline: 1px solid #dfd9ce;
}
.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.6px;
}
.photo-caption span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.photo-caption .icon {
  width: 13px;
  height: 13px;
}
.memory-strip {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: center;
  min-height: 99px;
}
.strip-intro {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 1px;
}
.strip-intro span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 3px;
}
.stat {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
}
.stat strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--red);
}
.stat span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}
.section-block {
  padding: 64px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.section-heading h2 {
  font-size: 28px;
  letter-spacing: 2px;
}
.section-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.section-number {
  font-size: 10px;
  color: var(--red);
  font-family: Georgia, serif;
  letter-spacing: 2px;
  margin-right: 14px;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(252, 250, 246, 0.5);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px #40362608;
}
.story-card-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #e6e0d3;
}
.story-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
  transition: transform 0.5s;
}
.story-card:hover .story-card-visual img {
  transform: scale(1.035);
}
.story-card-visual .photo-tag {
  position: absolute;
  left: 15px;
  bottom: 12px;
  color: var(--paper);
  font-size: 10px;
  text-shadow: 0 1px 6px #0009;
}
.story-card-text {
  min-width: 0;
  padding: 24px 26px 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 15px;
}
.story-meta .source {
  flex-shrink: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}
.source-dot {
  width: 4px;
  height: 4px;
  display: inline-block;
  background: var(--green);
  border-radius: 50%;
  margin-right: 3px;
}
.story-card h3 {
  overflow-wrap: anywhere;
  font-size: 23px;
  letter-spacing: 0.7px;
  line-height: 1.6;
  margin-bottom: 13px;
}
.story-card .excerpt {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
}
.story-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.narrator-mini {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  background: #e6e2d8;
  color: #746e61;
  border-radius: 50%;
  font-size: 10px;
}
.story-card-footer .icon {
  width: 17px;
  color: var(--red);
}
.letter-art {
  background: #eee8dd;
  display: grid;
  place-items: center;
  position: relative;
}
.letter-art:after {
  content: "记忆里的片刻";
  position: absolute;
  bottom: 15px;
  right: 18px;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  font-family: var(--serif);
  font-size: 10px;
  color: #9b8d77;
}
.letter-paper {
  background: #f8f5ef;
  width: 175px;
  height: 114px;
  box-shadow: 0 6px 15px #4c3c2420;
  transform: rotate(-7deg);
  padding: 23px 22px;
  color: #9d8b75;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 2.2;
}
.letter-paper:after {
  content: "";
  display: block;
  height: 37px;
  background: repeating-linear-gradient(
    transparent 0 12px,
    #c7baa64f 12px 13px
  );
}
.quote-art {
  background: #e4e6dc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.quote-art .giant-quote {
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 1;
  color: #bac1ad;
  padding-top: 40px;
}
.quote-art p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  color: #68705e;
  letter-spacing: 2px;
}
.chapter-section {
  border-top: 1px solid var(--line);
  padding-bottom: 70px;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.chapter-card {
  padding: 27px 31px 14px 0;
  display: flex;
  gap: 20px;
}
.chapter-card + .chapter-card {
  border-left: 1px solid var(--line);
  padding-left: 31px;
}
.chapter-index {
  font-family: Georgia, serif;
  font-size: 13px;
  color: #a89b85;
  padding-top: 5px;
}
.chapter-card h3 {
  font-size: 21px;
  margin-bottom: 9px;
  letter-spacing: 1px;
}
.chapter-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.chapter-card .text-link {
  font-size: 11px;
  margin-top: 12px;
}
.invitation {
  position: relative;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 39px 44px;
  background: #eee9df;
  margin-bottom: 66px;
}
.invitation .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.invitation h2 {
  font-size: 27px;
  letter-spacing: 2px;
}
.invitation p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.invitation .button {
  flex-shrink: 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 10px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-left {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--ink);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-right button {
  font-size: 10px;
  color: var(--muted);
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
}
.page-top {
  padding: 49px 0 37px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 30px;
  min-height: 30px;
}
.breadcrumb .icon {
  width: 13px;
}
.page-top h1 {
  font-size: 43px;
  letter-spacing: 3px;
  margin: 12px 0 12px;
}
.page-intro {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
  line-height: 2;
}
.page-top-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.page-top-row .button {
  flex-shrink: 0;
}
.page-body {
  min-height: 45vh;
  padding-bottom: 80px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 21px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-tab {
  min-height: 44px;
  border: 0;
  background: none;
  padding: 8px 17px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 2px;
}
.filter-tab:hover {
  background: #eae4d9;
}
.filter-tab.active {
  background: var(--red);
  color: var(--paper);
}
.search-box {
  position: relative;
  min-width: 245px;
}
.search-box input {
  width: 100%;
  padding: 10px 15px 10px 39px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}
.search-box .icon {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.results-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 22px;
  align-items: center;
  gap: 20px;
}
.results-label select {
  border: 0;
  color: var(--muted);
  background: none;
  min-height: 36px;
  font-size: 11px;
  max-width: 180px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 8px;
  background: #e8e9e0;
  color: var(--green);
  font-size: 10px;
  gap: 5px;
  letter-spacing: 0.3px;
  border-radius: 2px;
}
.chip.red {
  background: #efe1db;
  color: var(--red);
}
.chip.neutral {
  background: #eee9df;
  color: var(--muted);
}
.empty-state {
  padding: 68px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  background: #fcfaf640;
}
.empty-state > .icon {
  width: 33px;
  height: 33px;
  color: #a99a87;
  margin-bottom: 17px;
}
.empty-state h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.empty-state p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.empty-state .button {
  margin-inline: 6px;
}
.gate-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px 24px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}
.gate-note > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gate-note > .text-link {
  flex-shrink: 0;
}
.timeline-layout {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 45px;
}
.timeline-aside {
  align-self: start;
  position: sticky;
  top: 30px;
  padding-top: 20px;
}
.timeline-aside p {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 18px;
}
.timeline-aside button {
  display: block;
  min-height: 45px;
  text-align: left;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}
.timeline-aside button.active {
  color: var(--red);
}
.timeline-aside button:before {
  content: "—";
  margin-right: 12px;
  color: var(--line);
}
.timeline-aside button.active:before {
  color: var(--red);
}
.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 30px;
  padding: 28px 0 40px;
}
.timeline-event + .timeline-event {
  border-top: 1px solid var(--line);
}
.timeline-year {
  font-family: Georgia, var(--serif);
  color: var(--red);
  font-size: 27px;
  line-height: 1.5;
  padding-top: 32px;
}
.timeline-year small {
  display: block;
  font: 11px var(--sans);
  margin-top: 8px;
  color: var(--muted);
}
.event-kicker {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  display: flex;
  gap: 12px;
  margin-bottom: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.event-body h2 {
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.event-summary {
  font-family: var(--serif);
  font-size: 17px;
  color: #625d53;
  line-height: 2.05;
  white-space: pre-line;
}
.event-sources {
  margin-top: 25px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.event-sources summary {
  cursor: pointer;
  min-height: 52px;
  padding: 13px 18px;
  font-size: 12px;
  color: var(--green);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.event-sources summary::-webkit-details-marker {
  display: none;
}
.event-sources[open] summary {
  border-bottom: 1px solid var(--line);
}
.source-story {
  display: block;
  padding: 18px 21px;
}
.source-story + .source-story {
  border-top: 1px solid var(--line);
}
.source-story header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.source-story p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  color: #676256;
}
.source-story:hover {
  background: #f0ece3;
}
.difference-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 2px solid #9c8970;
  color: var(--muted);
  font-size: 12px;
  background: #eee9df;
}
.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
}
.segmented button {
  min-height: 38px;
  padding: 6px 15px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.segmented button.active {
  background: var(--paper);
  color: var(--red);
  box-shadow: 0 1px 4px #423e3012;
}
.story-reading {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}
.story-reading .breadcrumb {
  margin-bottom: 28px;
}
.reading-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.story-reading h1 {
  font-size: 40px;
  line-height: 1.6;
  letter-spacing: 2px;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}
.byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block: 1px solid var(--line);
  padding: 19px 0;
  margin-bottom: 34px;
  gap: 20px;
}
.byline-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.byline .avatar {
  width: 39px;
  height: 39px;
  font-size: 13px;
}
.byline-person strong {
  font-size: 12px;
  font-weight: 500;
}
.byline-person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.reading-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2.1;
  color: #49453e;
  overflow-wrap: anywhere;
}
.reading-body p {
  margin-bottom: 1.5em;
  white-space: pre-line;
}
.reading-attachments {
  margin: 35px 0;
}
.reading-attachments img {
  width: auto;
  max-height: 600px;
  object-fit: contain;
}
.reading-attachments figure {
  margin: 25px 0;
}
.reading-attachments figcaption {
  color: var(--muted);
  font-size: 11px;
  margin-top: 12px;
}
.reading-end {
  text-align: center;
  color: #b1a592;
  font-size: 16px;
  letter-spacing: 10px;
  margin: 36px 0;
}
.story-context {
  padding: 22px 26px;
  background: #eee9df;
  margin-top: 32px;
}
.story-context p {
  font-size: 12px;
  color: var(--muted);
}
.story-context h3 {
  font-size: 20px;
  margin: 7px 0;
}
.reading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.media-card {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  color: var(--ink);
  min-width: 0;
}
.media-preview {
  height: 240px;
  background: #e9e3d8;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.media-card:hover img {
  transform: scale(1.02);
}
.media-preview > .icon {
  width: 46px;
  height: 46px;
  color: #97856c;
}
.media-card h3 {
  font-size: 20px;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.media-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.media-type-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.editor-form {
  min-width: 0;
}
.form-section {
  padding: 27px 0 32px;
  border-top: 1px solid var(--line);
}
.form-section h2 {
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.form-section h2 small {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-left: 13px;
  letter-spacing: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 19px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  color: #605b51;
}
.field label .optional {
  color: var(--muted);
  font-size: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 11px 14px;
  border-radius: 2px;
  color: var(--ink);
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  line-height: 1.9;
}
.field textarea.story-body-input {
  min-height: 275px;
  font-family: var(--serif);
  font-size: 17px;
  padding: 20px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #7b7367;
  font-size: 12px;
}
.field small {
  color: var(--muted);
  font-size: 10px;
}
.editor-aside {
  position: sticky;
  top: 35px;
  background: #eee9df;
  padding: 27px;
}
.editor-aside .eyebrow {
  font-size: 9px;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.editor-aside h3 {
  font-size: 23px;
  margin-bottom: 15px;
}
.editor-aside p {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 15px;
}
.editor-aside hr {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 24px 0;
}
.editor-aside .tip {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.9;
}
.draft-note {
  padding: 12px 16px;
  background: #e9ecdf;
  color: var(--green);
  font-size: 12px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.draft-note button {
  background: none;
  border: 0;
  color: inherit;
  min-height: 36px;
  text-decoration: underline;
  font-size: 11px;
}
.upload-zone {
  position: relative;
  display: block;
  border: 1px dashed #baad99;
  background: #f9f6ef;
  padding: 26px;
  text-align: center;
  cursor: pointer;
}
.upload-zone:hover {
  background: #eee8dd;
}
.upload-zone .icon {
  width: 26px;
  height: 26px;
  color: #8c7961;
  margin-bottom: 8px;
}
.upload-zone strong {
  display: block;
  font-size: 12px;
  font-weight: 400;
}
.upload-zone small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-zone:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.upload-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}
.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 9px 13px;
  min-width: 0;
}
.upload-item .file-info {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.upload-item .file-info span {
  overflow-wrap: anywhere;
}
.upload-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.upload-item .icon-button {
  width: 36px;
  height: 36px;
  border: 0;
}
.form-bottom {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.form-bottom .save-status {
  font-size: 10px;
  color: var(--muted);
}
.form-bottom .form-buttons {
  display: flex;
  gap: 12px;
}
.error-message {
  color: #9d3e31;
  font-size: 12px;
  background: #f5e4de;
  padding: 12px 15px;
  margin-block: 14px;
  border-left: 2px solid #aa5545;
}
.field .counter {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  max-width: min(560px, calc(100vw - 32px));
  width: 560px;
  max-height: calc(100dvh - 48px);
  box-shadow: 0 30px 120px #211b1a35;
}
dialog::backdrop {
  background: #28251f70;
  backdrop-filter: blur(3px);
}
.dialog-content {
  padding: 35px;
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.dialog-header h2 {
  font-size: 28px;
  letter-spacing: 1px;
}
.dialog-header .icon-button {
  border: 0;
  margin-top: -6px;
  margin-right: -10px;
}
.dialog-lede {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 23px;
}
.dialog-content .wide {
  width: 100%;
}
.dialog-content .tab-row {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tab-row button {
  flex: 1;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.tab-row button.active {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}
.demo-entry {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.demo-entry p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.dialog-fineprint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.8;
}
.account-panel {
  display: grid;
  gap: 12px;
}
.account-panel .button {
  width: 100%;
  justify-content: space-between;
}
.media-dialog {
  width: 980px;
  max-width: min(980px, calc(100vw - 32px));
}
.lightbox-image {
  max-height: 62vh;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
}
.media-caption {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.media-caption h3 {
  font-size: 21px;
  margin-bottom: 5px;
}
.media-caption p {
  font-size: 11px;
  color: var(--muted);
}
.media-caption .lightbox-actions {
  display: flex;
  gap: 8px;
}
.media-player {
  width: 100%;
  max-height: 60vh;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #343b30;
  color: #f9f7ee;
  padding: 13px 22px;
  font-size: 12px;
  box-shadow: 0 8px 35px #3028181a;
  max-width: calc(100vw - 40px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  position: sticky;
  top: 25px;
}
.admin-nav button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 15px;
  font-size: 12px;
  text-align: left;
  background: none;
  border: 0;
  color: var(--muted);
}
.admin-nav button.active {
  background: #eae3d8;
  color: var(--red);
}
.admin-content {
  min-width: 0;
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.admin-section-head h2 {
  font-size: 25px;
}
.admin-section-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.admin-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.admin-row h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.admin-row p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.admin-row-actions button {
  font-size: 10px;
  padding: 7px 12px;
  letter-spacing: 0;
}
.selection-list {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.selection-row {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 12px;
}
.selection-row + .selection-row {
  border-top: 1px solid var(--line);
}
.selection-row input {
  accent-color: var(--red);
  margin-top: 7px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.selection-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.confirmation-preview {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  margin: 20px 0;
  max-height: 280px;
  overflow: auto;
}
.confirmation-preview h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.confirmation-preview p {
  font-family: var(--serif);
  font-size: 15px;
  white-space: pre-line;
  line-height: 2;
  color: #625c51;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0;
}
.check-label input {
  margin-top: 6px;
  accent-color: var(--red);
}
.loading-state {
  padding: 160px 24px;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
}
.access-panel {
  width: min(600px, 100%);
  margin: 40px auto 80px;
  text-align: center;
  padding: 48px 38px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.access-panel > .icon {
  width: 32px;
  height: 32px;
  color: var(--red);
  margin-bottom: 20px;
}
.access-panel h2 {
  font-size: 28px;
  margin-bottom: 15px;
}
.access-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 25px;
}
.access-panel .button {
  margin: 5px;
}
.log-line {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.log-line time {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.page-enter {
  animation: page-in 0.35s ease-out;
}
.ownership-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.privacy-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.privacy-label .icon {
  width: 13px;
  height: 13px;
}
.wide-dialog {
  width: 740px;
  max-width: min(740px, calc(100vw - 32px));
}
.wide-dialog .form-row {
  gap: 15px;
}
.example-inline {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.7px;
  margin: 15px 0;
}
.story-list-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.subtle-select {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 10px 0;
}
.timeline-none {
  padding: 20px 0;
}
.admin-count {
  font-family: Georgia, serif;
}
.source-select-preview {
  font-family: var(--serif);
  margin-top: 7px !important;
  line-height: 1.8;
  font-size: 12px !important;
}
.attachment-open {
  border: 1px solid var(--line);
  background: none;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1550px) {
  .container {
    width: min(1280px, calc(100% - 120px));
  }
  .home-hero {
    gap: 100px;
    padding-top: 65px;
    padding-bottom: 75px;
  }
  .hero-image {
    height: 450px;
  }
  .hero-copy h1 {
    font-size: 68px;
  }
  .section-block {
    padding-block: 75px;
  }
}
@media (max-width: 1150px) {
  .container {
    width: calc(100% - 64px);
  }
  .main-nav {
    gap: 23px;
  }
  .header-inner {
    gap: 20px;
  }
  .header-actions {
    gap: 12px;
  }
  .account-button span {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .home-hero {
    gap: 38px;
  }
  .hero-copy h1 {
    font-size: 49px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-image {
    height: 360px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions .button {
    padding-inline: 18px;
  }
  .hero-dedication {
    margin-top: 29px;
  }
  .story-card-text {
    padding: 20px;
  }
  .story-card h3 {
    font-size: 21px;
  }
  .form-layout {
    grid-template-columns: 1fr 235px;
    gap: 30px;
  }
  .editor-aside {
    padding: 22px;
  }
  .timeline-layout {
    gap: 20px;
    grid-template-columns: 140px 1fr;
  }
}
@media (max-width: 900px) {
  .site-header {
    height: 87px;
  }
  .brand-name {
    font-size: 25px;
  }
  .brand-icon {
    width: 31px;
  }
  .main-nav {
    gap: 20px;
  }
  .header-actions .button {
    padding-inline: 12px;
    gap: 7px;
    font-size: 11px;
  }
  .account-button {
    font-size: 11px;
  }
  .account-button .icon {
    display: none;
  }
  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .header-inner {
    gap: 17px;
  }
  .home-hero {
    gap: 30px;
    padding: 37px 0 45px;
  }
  .hero-copy h1 {
    font-size: 42px;
    letter-spacing: 2px;
  }
  .hero-desc {
    font-size: 14px;
    margin: 19px 0 24px;
  }
  .hero-image {
    height: 330px;
  }
  .hero-actions {
    gap: 13px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding: 10px 15px;
    gap: 9px;
  }
  .hero-actions .text-link {
    font-size: 11px;
    gap: 8px;
  }
  .hero-dedication {
    font-size: 10px;
    gap: 12px;
  }
  .photo-caption {
    font-size: 9px;
  }
  .photo-caption span:last-child {
    display: none;
  }
  .story-grid {
    gap: 16px;
  }
  .story-card-text {
    padding: 17px;
  }
  .story-card h3 {
    font-size: 19px;
  }
  .story-card-visual {
    height: 140px;
  }
  .story-meta {
    font-size: 9px;
    gap: 7px;
  }
  .story-card .excerpt {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .chapter-card {
    padding-right: 20px;
    gap: 13px;
  }
  .chapter-card + .chapter-card {
    padding-left: 20px;
  }
  .chapter-card h3 {
    font-size: 19px;
  }
  .invitation {
    padding: 30px;
  }
  .invitation h2 {
    font-size: 24px;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .editor-aside {
    display: none;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-layout {
    grid-template-columns: 145px 1fr;
    gap: 25px;
  }
  .admin-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-inner {
    align-items: flex-start;
  }
  .footer-right {
    gap: 15px;
  }
  .footer-left {
    gap: 12px;
  }
  .footer-left > span:last-child {
    max-width: 185px;
  }
  .timeline-event {
    grid-template-columns: 65px 1fr;
    gap: 20px;
  }
  .timeline-year {
    font-size: 22px;
  }
  .timeline-layout {
    grid-template-columns: 120px 1fr;
    gap: 15px;
  }
  .event-body h2 {
    font-size: 25px;
  }
}
@media (max-width: 700px) {
  .container {
    width: calc(100% - 44px);
  }
  .site-header {
    height: 118px;
  }
  .header-inner {
    height: 70px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
  }
  .brand {
    gap: 10px;
  }
  .brand-name {
    font-size: 24px;
    letter-spacing: 5px;
  }
  .brand-icon {
    width: 29px;
    height: 35px;
  }
  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .header-actions {
    gap: 14px;
  }
  .header-actions .button {
    font-size: 11px;
    min-height: 39px;
    padding: 7px 12px;
  }
  .header-actions .button .icon {
    width: 14px;
  }
  .account-button {
    font-size: 11px;
  }
  .account-button span {
    max-width: 70px;
  }
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 47px;
    justify-content: space-around;
    gap: 15px;
    border-top: 1px solid #e5dfd4;
  }
  .main-nav a {
    font-size: 12px;
  }
  .main-nav a.active:after {
    bottom: 6px;
    width: 3px;
    height: 3px;
  }
  .preview-note {
    padding-top: 17px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .preview-note > span:last-child {
    font-size: 8px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 17px;
    font-size: 10px;
    letter-spacing: 2px;
  }
  .hero-copy h1 {
    font-size: 45px;
    line-height: 1.4;
    letter-spacing: 3px;
  }
  .hero-copy h1 span {
    display: inline;
  }
  .hero-copy h1 span:first-child:after {
    content: "";
    display: block;
  }
  .hero-desc {
    font-size: 15px;
    margin: 19px 0 22px;
    line-height: 1.95;
    letter-spacing: 0.5px;
  }
  .hero-dedication {
    display: none;
  }
  .hero-actions {
    gap: 25px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 11px 18px;
    min-height: 47px;
    gap: 13px;
  }
  .hero-actions .text-link {
    font-size: 12px;
    gap: 12px;
  }
  .hero-figure {
    padding: 8px 0 0 8px;
  }
  .hero-figure:before {
    bottom: 38px;
    right: 9px;
  }
  .hero-image {
    height: 270px;
    border-width: 4px;
  }
  .photo-caption {
    font-size: 9px;
    margin-top: 10px;
  }
  .photo-caption span:last-child {
    display: block;
    font-size: 8px;
  }
  .memory-strip {
    grid-template-columns: repeat(3, 1fr);
    padding: 19px 0;
    gap: 17px;
    min-height: 0;
  }
  .strip-intro {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
  }
  .strip-intro span {
    font-size: 9px;
    margin-top: 0;
  }
  .stat {
    gap: 11px;
  }
  .stat:nth-child(2) {
    border-left: 0;
    justify-content: flex-start;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat span {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .section-block {
    padding: 36px 0;
  }
  .section-heading {
    gap: 14px;
    margin-bottom: 21px;
  }
  .section-heading h2 {
    font-size: 23px;
    letter-spacing: 1px;
  }
  .section-heading p {
    font-size: 10px;
    margin-top: 5px;
  }
  .section-heading .text-link {
    font-size: 10px;
    gap: 8px;
    white-space: nowrap;
  }
  .section-number {
    font-size: 9px;
    letter-spacing: 1px;
    margin-right: 9px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story-card-visual {
    height: 190px;
  }
  .story-card-text {
    padding: 22px 24px;
  }
  .story-card h3 {
    font-size: 24px;
  }
  .story-card .excerpt {
    font-size: 15px;
    margin-bottom: 22px;
    -webkit-line-clamp: 3;
  }
  .story-meta {
    font-size: 10px;
  }
  .story-card-footer {
    font-size: 11px;
  }
  .story-grid.home-stories .story-card:not(:first-child) {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 0;
  }
  .story-grid.home-stories .story-card:not(:first-child) .story-card-visual {
    height: auto;
    min-height: 220px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .story-card-text {
    padding: 17px;
  }
  .story-grid.home-stories .story-card:not(:first-child) h3 {
    font-size: 20px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: 15px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .story-meta {
    font-size: 9px;
    gap: 8px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .letter-paper {
    transform: rotate(-9deg);
    width: 75px;
    padding: 15px 10px;
    height: 130px;
    font-size: 9px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .letter-art:after {
    display: none;
  }
  .story-grid.home-stories .story-card:not(:first-child) .quote-art {
    flex-direction: column;
    gap: 0;
  }
  .story-grid.home-stories .story-card:not(:first-child) .giant-quote {
    font-size: 70px;
    line-height: 0.7;
    padding-top: 15px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .quote-art p {
    font-size: 12px;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
  }
  .chapter-grid {
    grid-template-columns: 1fr;
  }
  .chapter-card {
    padding: 22px 0;
    gap: 20px;
  }
  .chapter-card + .chapter-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }
  .chapter-card > div:last-child {
    flex: 1;
  }
  .chapter-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .chapter-card p {
    font-size: 12px;
  }
  .chapter-card .text-link {
    margin-top: 7px;
    font-size: 11px;
    min-height: 36px;
  }
  .chapter-index {
    font-size: 12px;
    min-width: 25px;
  }
  .chapter-section {
    padding-bottom: 24px;
  }
  .invitation {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 26px;
    margin-bottom: 36px;
  }
  .invitation h2 {
    font-size: 24px;
  }
  .invitation p {
    font-size: 12px;
    line-height: 1.9;
  }
  .invitation .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 14px;
  }
  .site-footer {
    padding: 25px 0;
  }
  .footer-left {
    width: 100%;
    justify-content: space-between;
  }
  .footer-left > span:last-child {
    max-width: none;
    font-size: 9px;
  }
  .footer-right {
    font-size: 9px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .page-top {
    padding: 27px 0;
  }
  .breadcrumb {
    font-size: 10px;
    margin-bottom: 21px;
  }
  .page-top h1 {
    font-size: 35px;
    margin: 10px 0;
  }
  .page-top .eyebrow {
    font-size: 9px;
  }
  .page-intro {
    font-size: 14px;
  }
  .page-top-row {
    align-items: flex-start;
  }
  .page-top-row .button {
    font-size: 10px;
    padding: 9px 13px;
    gap: 8px;
    margin-top: 20px;
  }
  .page-top-row .button .icon {
    width: 14px;
  }
  .toolbar {
    gap: 17px;
    padding: 15px 0;
    margin-bottom: 20px;
    align-items: stretch;
  }
  .search-box {
    min-width: 0;
    flex: 1;
  }
  .filter-tabs {
    gap: 3px;
  }
  .filter-tab {
    font-size: 11px;
    padding: 8px 13px;
  }
  .story-list-toolbar {
    width: 100%;
    flex-wrap: nowrap;
    gap: 9px;
  }
  .subtle-select {
    max-width: 125px;
    font-size: 11px;
  }
  .results-label {
    font-size: 10px;
    gap: 10px;
    margin-bottom: 17px;
  }
  .results-label select {
    font-size: 10px;
    max-width: 110px;
  }
  .page-body {
    padding-bottom: 40px;
  }
  .gate-note {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
  }
  .gate-note .text-link {
    font-size: 11px;
  }
  .timeline-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline-aside {
    position: static;
    padding-top: 0;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    overflow: auto;
    margin-bottom: 5px;
  }
  .timeline-aside p {
    display: none;
  }
  .timeline-aside button {
    white-space: nowrap;
    font-size: 11px;
    min-height: 46px;
  }
  .timeline-aside button:before {
    margin-right: 5px;
  }
  .timeline-event {
    display: block;
    padding: 23px 0 30px;
  }
  .timeline-year {
    padding: 0;
    margin-bottom: 17px;
    font-size: 24px;
    display: flex;
    gap: 13px;
    align-items: center;
  }
  .timeline-year small {
    margin: 0;
    font-size: 10px;
  }
  .event-body h2 {
    font-size: 26px;
    margin-bottom: 14px;
  }
  .event-summary {
    font-size: 16px;
    line-height: 2;
  }
  .event-kicker {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .event-sources {
    margin-top: 20px;
  }
  .event-sources summary {
    font-size: 11px;
    padding: 12px 14px;
  }
  .source-story {
    padding: 16px;
  }
  .source-story header {
    font-size: 10px;
  }
  .source-story p {
    font-size: 14px;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    font-size: 11px;
    min-height: 40px;
  }
  .story-reading {
    padding-top: 28px;
    width: calc(100% - 44px);
  }
  .story-reading h1 {
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 23px;
  }
  .reading-meta {
    gap: 7px;
    margin-bottom: 15px;
  }
  .byline {
    padding: 17px 0;
    margin-bottom: 26px;
  }
  .byline-person strong {
    font-size: 11px;
  }
  .byline-person small {
    font-size: 9px;
  }
  .reading-body {
    font-size: 18px;
    line-height: 2;
  }
  .byline .privacy-label {
    font-size: 9px;
    gap: 4px;
  }
  .byline .avatar {
    width: 33px;
    height: 33px;
    font-size: 12px;
  }
  .media-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .media-preview {
    height: 255px;
  }
  .media-card h3 {
    font-size: 21px;
  }
  .form-section {
    padding: 22px 0;
  }
  .form-section h2 {
    font-size: 21px;
  }
  .form-section h2 small {
    font-size: 9px;
    margin-left: 8px;
  }
  .form-row {
    gap: 14px;
  }
  .field label {
    font-size: 11px;
  }
  .field input,
  .field select {
    font-size: 12px;
    padding-inline: 11px;
  }
  .field textarea.story-body-input {
    font-size: 16px;
    min-height: 260px;
    padding: 16px;
  }
  .form-bottom {
    gap: 9px;
    flex-direction: column;
    align-items: stretch;
    padding: 13px 0;
  }
  .form-bottom .save-status {
    font-size: 9px;
  }
  .form-bottom .form-buttons {
    justify-content: space-between;
    gap: 10px;
  }
  .form-buttons .button {
    flex: 1;
    gap: 8px;
    font-size: 11px;
    padding-inline: 10px;
  }
  .dialog-content {
    padding: 25px;
  }
  .dialog-header {
    gap: 15px;
    margin-bottom: 20px;
  }
  .dialog-header h2 {
    font-size: 25px;
  }
  .dialog-lede {
    font-size: 14px;
  }
  .dialog-content .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .media-dialog .dialog-content {
    padding: 19px;
  }
  .media-caption {
    align-items: flex-start;
  }
  .media-caption h3 {
    font-size: 19px;
  }
  .media-caption p {
    font-size: 10px;
  }
  .media-caption .lightbox-actions {
    gap: 5px;
  }
  .lightbox-actions .icon-button {
    width: 37px;
    height: 37px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .admin-nav {
    position: static;
    flex-direction: row;
    overflow: auto;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    gap: 5px;
  }
  .admin-nav button {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 11px;
    gap: 6px;
  }
  .admin-section-head {
    gap: 15px;
  }
  .admin-section-head h2 {
    font-size: 23px;
  }
  .admin-section-head p {
    font-size: 10px;
  }
  .admin-section-head .button {
    font-size: 10px;
    padding-inline: 11px;
  }
  .admin-row {
    gap: 13px;
  }
  .admin-row-actions {
    gap: 7px;
  }
  .admin-row-actions button {
    font-size: 10px;
  }
  .access-panel {
    padding: 32px 22px;
    margin: 15px auto 40px;
  }
  .access-panel h2 {
    font-size: 25px;
  }
  .access-panel p {
    font-size: 12px;
  }
  .access-panel .button {
    font-size: 11px;
  }
  .log-line {
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
  }
  .page-enter {
    animation-duration: 0.25s;
  }
}
@media (max-width: 380px) {
  .container {
    width: calc(100% - 36px);
  }
  .hero-copy h1 {
    font-size: 41px;
  }
  .header-actions {
    gap: 9px;
  }
  .header-actions .button {
    padding: 6px 9px;
  }
  .brand-name {
    font-size: 22px;
  }
  .brand-subtitle {
    font-size: 7px;
  }
  .main-nav {
    gap: 8px;
  }
  .main-nav a {
    font-size: 11px;
  }
  .hero-actions {
    gap: 17px;
  }
  .hero-image {
    height: 240px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-number {
    margin-right: 6px;
  }
  .story-grid.home-stories .story-card:not(:first-child) {
    grid-template-columns: 80px 1fr;
  }
  .story-grid.home-stories .story-card:not(:first-child) .story-card-text {
    padding: 14px;
  }
  .story-card-footer {
    font-size: 10px;
  }
  .stat {
    gap: 8px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 9px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-desc {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .reading-actions,
  .toast,
  .breadcrumb,
  .gate-note {
    display: none;
  }
  .story-reading {
    width: 100%;
    padding: 0;
  }
  .reading-body {
    font-size: 13pt;
  }
  body {
    background: #fff;
    color: #000;
  }
  .story-reading h1 {
    font-size: 24pt;
  }
}
/* Final optical adjustments: keep the dedication in two complete phrases. */
#main:focus {
  outline: none;
}
.hero-copy h1 {
  font-size: clamp(32px, 3.55vw, 52px);
  letter-spacing: 1px;
  line-height: 1.52;
}
.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}
.hero-copy h1 span:first-child:after {
  display: none;
}
@media (min-width: 1550px) {
  .hero-copy h1 {
    font-size: 57px;
  }
}
@media (max-width: 700px) {
  .hero-copy h1 {
    font-size: 36px;
    letter-spacing: 1px;
    line-height: 1.55;
  }
  .hero-figure {
    margin-top: 0;
  }
}
@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 34px;
    letter-spacing: 0.5px;
  }
}
.timeline-event:focus {
  outline: none;
}
@media (max-width: 700px) {
  .timeline-aside {
    flex-wrap: wrap;
    overflow: visible;
    gap: 2px 16px;
    padding: 5px 0 10px;
  }
  .timeline-aside button {
    min-height: 42px;
  }
}
.story-meta > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Account and editor controls shared by the desktop and phone layouts. */
.mobile-nav,
.mobile-editor-back {
  display: none;
}
.password-field {
  position: relative;
  width: 100%;
}
.password-field input {
  padding-right: 76px;
}
.password-toggle {
  position: absolute;
  inset: 3px 3px 3px auto;
  min-width: 64px;
  min-height: 40px;
  border: 0;
  border-radius: 2px;
  padding: 4px 10px;
  background: transparent;
  color: var(--red);
  font-size: 13px;
}
.password-toggle:hover {
  background: #eee9df;
}
.editor-details {
  border-top: 1px solid var(--line);
}
.editor-details.form-section {
  padding: 0;
}
.editor-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 22px;
}
.editor-details > summary::-webkit-details-marker {
  display: none;
}
.editor-details > summary > .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--red);
  transition: transform 0.2s;
}
.editor-details[open] > summary > .icon {
  transform: rotate(180deg);
}
.editor-details > summary h2 {
  margin: 0;
  font-size: inherit;
}
.editor-details > summary small {
  color: var(--muted);
  font: 12px/1.8 var(--sans);
  margin-left: 10px;
}
.editor-details .details-body {
  padding-bottom: 26px;
}
.editor-details .details-body > :last-child {
  margin-bottom: 0;
}

/* Phone layout: readable type, one-handed navigation, and an unobstructed editor. */
@media screen and (max-width: 700px) {
  html {
    scroll-padding-top: 84px;
    scroll-padding-bottom: 148px;
  }
  body {
    font-size: 16px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .container,
  .story-reading {
    width: calc(100% - 40px);
  }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 68px;
    background: rgba(246, 243, 236, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .header-inner {
    height: 100%;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .brand {
    gap: 10px;
    min-height: 48px;
  }
  .brand-name {
    font-size: 24px;
    letter-spacing: 4px;
  }
  .brand-subtitle {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 0;
  }
  .main-nav,
  .header-actions > a.button {
    display: none;
  }
  .header-actions {
    min-width: 0;
    margin-left: auto;
  }
  .account-button {
    min-height: 48px;
    min-width: 44px;
    gap: 7px;
    font-size: 14px;
    color: var(--red);
  }
  .account-button .icon {
    display: block;
    width: 18px;
    height: 18px;
  }
  .account-button span {
    display: block;
    max-width: min(112px, 29vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding: 5px max(8px, env(safe-area-inset-right, 0px))
      calc(5px + env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
    background: rgba(252, 250, 246, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 24px #40362608;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .mobile-nav > a,
  .mobile-nav > button {
    min-width: 0;
    min-height: 54px;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 5px;
    background: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
  }
  .mobile-nav .icon {
    width: 22px;
    height: 22px;
  }
  .mobile-nav > .active,
  .mobile-nav > [aria-current="page"] {
    color: var(--red-dark);
    background: #eee4db;
  }
  .mobile-nav > .active .icon {
    stroke-width: 1.8;
  }
  .mobile-editor-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    font-size: 14px;
    color: var(--red);
    margin: 0;
  }
  body[data-editing="true"] .brand {
    display: none;
  }
  body[data-editing="true"] .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  body[data-editing="true"] {
    padding-bottom: calc(134px + env(safe-area-inset-bottom, 0px));
  }
  body[data-editing="true"] .page-enter {
    animation: none;
    transform: none;
  }
  body[data-editing="true"] .mobile-nav,
  body.keyboard-open .mobile-nav,
  body.keyboard-open .form-bottom {
    display: none;
  }
  .button,
  .button.small,
  .header-actions .button,
  .form-buttons .button,
  .page-top-row .button,
  .admin-section-head .button,
  .admin-row-actions .button,
  .access-panel .button {
    min-height: 48px;
    padding: 11px 16px;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .text-link,
  .chapter-card .text-link,
  .section-heading .text-link,
  .gate-note .text-link,
  .hero-actions .text-link,
  .footer-right button {
    min-height: 44px;
    font-size: 13px;
  }
  .icon-button,
  .upload-item .icon-button,
  .lightbox-actions .icon-button {
    width: 44px;
    height: 44px;
  }
  input,
  select,
  textarea,
  .field input,
  .field select,
  .field textarea,
  .search-box input,
  .results-label select,
  .subtle-select {
    font-size: 16px;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select,
  .field input,
  .field select,
  .search-box input,
  .results-label select,
  .subtle-select {
    min-height: 48px;
  }
  .field input::placeholder,
  .field textarea::placeholder {
    font-size: 16px;
  }
  .upload-item .attachment-caption {
    font-size: 16px !important;
    min-height: 48px;
  }
  .toolbar > .muted {
    font-size: 13px !important;
  }
  .field label,
  .upload-zone strong,
  .selection-row,
  .check-label,
  .tab-row button {
    font-size: 14px;
  }
  .field small,
  .field .counter,
  .field label .optional,
  .form-hint,
  .ownership-note,
  .error-message,
  .draft-note,
  .dialog-fineprint,
  .selection-row small,
  .upload-zone small,
  .upload-item .file-info,
  .upload-item small {
    font-size: 13px;
    line-height: 1.8;
  }
  .preview-note {
    gap: 6px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 16px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .preview-note > span:last-child {
    font-size: 12px;
  }
  .eyebrow,
  .hero-copy .eyebrow,
  .page-top .eyebrow,
  .invitation .eyebrow {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .home-hero {
    gap: 25px;
    padding: 24px 0 28px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 13px;
  }
  .hero-copy h1 {
    font-size: clamp(30px, 9.2vw, 38px);
    line-height: 1.5;
    letter-spacing: 0;
  }
  .hero-desc {
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0;
    margin: 15px 0 19px;
  }
  .hero-actions {
    gap: 8px 18px;
  }
  .hero-actions .button {
    min-height: 48px;
    padding: 11px 16px;
    font-size: 14px;
    gap: 8px;
  }
  .hero-image {
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 340px;
  }
  .photo-caption {
    flex-wrap: wrap;
    gap: 2px 12px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .photo-caption span:last-child {
    display: block;
    font-size: 12px;
  }
  .hero-figure:before {
    bottom: 58px;
  }
  .memory-strip {
    gap: 14px 0;
    padding-block: 18px;
  }
  .strip-intro {
    display: block;
    font-size: 16px;
  }
  .strip-intro span {
    font-size: 12px;
    margin-top: 3px;
    letter-spacing: 0;
  }
  .stat,
  .stat:nth-child(2) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
  }
  .stat strong {
    font-size: 28px;
    line-height: 1.35;
  }
  .stat span {
    font-size: 12px;
    letter-spacing: 0;
  }
  .section-block {
    padding: 30px 0;
  }
  .section-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 14px;
    margin-bottom: 17px;
  }
  .section-heading h2 {
    font-size: 24px;
    letter-spacing: 0;
  }
  .section-heading p,
  .chapter-card p,
  .invitation p,
  .gate-note,
  .admin-section-head p,
  .access-panel p {
    font-size: 14px;
    line-height: 1.85;
  }
  .section-number {
    font-size: 12px;
    letter-spacing: 0;
    margin-right: 9px;
  }
  .story-grid,
  .media-grid {
    gap: 22px;
  }
  .story-card,
  .story-grid.home-stories .story-card:not(:first-child) {
    display: flex;
    flex-direction: column;
  }
  .story-card-visual,
  .story-grid.home-stories .story-card:not(:first-child) .story-card-visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  .story-card-text,
  .story-grid.home-stories .story-card:not(:first-child) .story-card-text {
    padding: 20px;
  }
  .story-card h3,
  .story-grid.home-stories .story-card:not(:first-child) h3 {
    font-size: 24px;
    line-height: 1.6;
  }
  .story-card .excerpt,
  .story-grid.home-stories .story-card:not(:first-child) .excerpt {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
    -webkit-line-clamp: 3;
  }
  .story-meta,
  .story-grid.home-stories .story-card:not(:first-child) .story-meta {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px 12px;
    margin-bottom: 12px;
  }
  .story-card-footer,
  .story-card-visual .photo-tag,
  .reading-attachments figcaption,
  .media-type-label,
  .media-card p,
  .media-caption p,
  .privacy-label,
  .example-inline,
  .event-kicker,
  .timeline-year small,
  .source-story header {
    font-size: 12px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .letter-paper {
    width: 175px;
    height: 114px;
    padding: 23px 22px;
    transform: rotate(-7deg);
    font-size: 12px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .quote-art {
    flex-direction: row;
    gap: 20px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .giant-quote {
    font-size: 90px;
  }
  .story-grid.home-stories .story-card:not(:first-child) .quote-art p {
    writing-mode: horizontal-tb;
    font-size: 17px;
  }
  .empty-state {
    padding: 30px 18px;
  }
  .empty-state > .icon {
    margin-bottom: 12px;
  }
  .empty-state h3 {
    font-size: 23px;
  }
  .empty-state p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 18px;
  }
  .empty-state .button {
    max-width: 100%;
    margin: 4px 0;
  }
  .invitation {
    padding: 23px;
    gap: 18px;
    margin-bottom: 30px;
  }
  .page-top {
    padding: 24px 0 26px;
  }
  .breadcrumb {
    min-height: 44px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 13px;
  }
  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .page-top h1 {
    font-size: 32px;
    letter-spacing: 1px;
  }
  .page-intro {
    font-size: 16px;
    line-height: 1.95;
  }
  .page-top-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .page-top-row .button {
    margin-top: 0;
  }
  .toolbar {
    gap: 12px;
  }
  .filter-tabs {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding-block: 3px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .filter-tab {
    min-height: 46px;
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
  .story-list-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .search-box,
  .subtle-select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .search-box .icon {
    top: 16px;
  }
  .results-label {
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
  }
  .results-label select {
    max-width: 100%;
  }
  .chip {
    min-height: 28px;
    font-size: 12px;
    padding: 3px 8px;
    line-height: 1.6;
  }
  .timeline-aside {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 3px 0 9px;
    scrollbar-width: thin;
  }
  .timeline-aside button {
    flex-shrink: 0;
    min-height: 48px;
    font-size: 14px;
  }
  .event-summary {
    font-size: 17px;
    line-height: 1.95;
  }
  .event-sources summary,
  .difference-note {
    font-size: 14px;
  }
  .source-story header {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .source-story p {
    font-size: 16px;
  }
  .segmented {
    overflow-x: auto;
  }
  .segmented button {
    min-height: 44px;
    font-size: 14px;
    white-space: nowrap;
  }
  .story-reading {
    padding-top: 20px;
    padding-bottom: 38px;
  }
  .story-reading h1 {
    font-size: 32px;
    line-height: 1.55;
  }
  .byline {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
  }
  .byline-person {
    min-width: 0;
  }
  .byline-person > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .byline-person strong {
    font-size: 14px;
  }
  .byline-person small,
  .byline .privacy-label {
    font-size: 12px;
  }
  .reading-body {
    font-size: 18px;
    line-height: 1.95;
  }
  .reading-body p {
    margin-bottom: 1.35em;
  }
  .story-context {
    padding: 20px;
  }
  .story-context p {
    font-size: 14px;
  }
  .media-preview {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .media-card h3 {
    font-size: 23px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-section {
    padding: 23px 0;
  }
  .form-section h2 {
    font-size: 23px;
    margin-bottom: 18px;
  }
  .form-section h2 small,
  .editor-details > summary small {
    display: block;
    margin: 5px 0 0;
    font-size: 13px;
  }
  .field {
    margin-bottom: 22px;
    gap: 8px;
  }
  .field textarea.story-body-input {
    font-size: 18px;
    line-height: 1.95;
    min-height: 310px;
    padding: 16px;
  }
  .field input,
  .field textarea,
  .field select {
    scroll-margin-top: 88px;
    scroll-margin-bottom: 28px;
  }
  .password-field input {
    padding-right: 76px;
  }
  .password-toggle {
    min-height: 44px;
    font-size: 14px;
    inset-block: 2px;
  }
  .editor-details > summary {
    min-height: 76px;
    padding: 22px 0;
    font-size: 22px;
  }
  .editor-details .details-body {
    padding-bottom: 24px;
  }
  .draft-note {
    flex-wrap: wrap;
    gap: 6px;
  }
  .draft-note button,
  .draft-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }
  .upload-zone {
    padding: 24px 16px;
  }
  .upload-item {
    padding: 10px;
    gap: 8px;
  }
  .form-bottom {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    gap: 7px;
    padding: 10px max(20px, env(safe-area-inset-right, 0px))
      calc(12px + env(safe-area-inset-bottom, 0px))
      max(20px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #cec4b5;
    box-shadow: 0 -4px 24px #4036260a;
    background: var(--paper);
  }
  .form-bottom .save-status {
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .form-bottom .form-buttons {
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .form-buttons .button {
    padding-inline: 10px;
    min-height: 48px;
  }
  dialog,
  .wide-dialog,
  .media-dialog {
    --dialog-top-gap: max(12px, env(safe-area-inset-top, 0px));
    position: fixed;
    inset: auto 0 auto;
    top: calc(var(--visible-top, 0px) + var(--dialog-top-gap));
    transform: none;
    width: calc(100% - 24px);
    max-width: none;
    max-height: calc(var(--visible-height, 100dvh) - var(--dialog-top-gap) - 12px);
    margin: 0 auto;
    border-width: 1px;
    border-radius: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 86px 24px;
    -webkit-overflow-scrolling: touch;
  }
  .dialog-content,
  .media-dialog .dialog-content {
    padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .dialog-header {
    position: sticky;
    top: 0;
    z-index: 3;
    align-items: center;
    min-height: 77px;
    margin: 0 -20px 20px;
    padding: 16px 16px 14px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .dialog-header h2 {
    font-size: 25px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .dialog-header .icon-button {
    width: 44px;
    height: 44px;
    margin: 0;
    background: #eee9df;
  }
  .dialog-lede {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
  }
  .dialog-content .tab-row {
    margin-bottom: 22px;
  }
  .tab-row button {
    min-height: 48px;
  }
  .auth-dialog .dialog-header {
    min-height: 68px;
    padding-block: 11px;
    margin-bottom: 16px;
  }
  .auth-dialog .dialog-header h2 { font-size: 23px; }
  .auth-dialog .dialog-lede { display: none; }
  .auth-dialog .dialog-content .tab-row { margin-bottom: 16px; }
  .auth-dialog .field { margin-bottom: 16px; }
  .auth-dialog .dialog-fineprint { margin-top: 14px; }
  .selection-row {
    padding: 14px 12px;
  }
  .selection-row input,
  .check-label input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
  }
  .confirmation-preview {
    padding: 16px;
  }
  .confirmation-preview p {
    font-size: 16px;
  }
  .media-caption {
    flex-wrap: wrap;
    gap: 12px;
  }
  .media-caption > div:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .media-caption .lightbox-actions {
    margin-left: auto;
    gap: 10px;
  }
  .lightbox-image,
  .media-player {
    max-height: calc(var(--visible-height, 100dvh) - 230px);
  }
  .admin-layout {
    gap: 21px;
  }
  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 3px 0 12px;
    overflow: visible;
  }
  .admin-nav button {
    flex-shrink: 0;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
    gap: 9px;
  }
  .admin-section-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
  }
  .admin-section-head h2 {
    font-size: 25px;
  }
  .admin-row {
    gap: 15px;
  }
  .admin-row > div:first-child {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
  }
  .admin-row h3 {
    font-size: 16px;
    line-height: 1.8;
  }
  .admin-row p {
    font-size: 13px;
  }
  .admin-row-actions {
    width: 100%;
    gap: 9px;
  }
  .admin-row-actions .button {
    flex: 1 1 auto;
  }
  .log-line {
    font-size: 14px;
    overflow-wrap: anywhere;
    gap: 5px;
  }
  .log-line time {
    font-size: 12px;
  }
  .access-panel {
    padding: 30px 20px;
    margin-block: 8px 30px;
  }
  .site-footer {
    padding: 24px 0 16px;
    font-size: 12px;
  }
  .footer-left {
    flex-wrap: wrap;
    gap: 9px 16px;
  }
  .footer-left > span:last-child,
  .footer-right {
    font-size: 12px;
  }
  .footer-right {
    gap: 4px 18px;
  }
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    font-size: 14px;
    padding: 13px 18px;
    width: max-content;
  }
  body[data-editing="true"] .toast {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
  body.keyboard-open .toast {
    bottom: 20px;
  }
}

@media print {
  .mobile-nav,
  .mobile-editor-back,
  .form-bottom {
    display: none;
  }
}

/* Three destinations, with secondary information opened when it is needed. */
.story-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.story-search-row .search-box { flex: 1; max-width: 460px; }
.story-filters { margin-bottom: 20px; }
.story-filters > summary,
.collection-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  list-style: none;
  cursor: pointer;
}
.story-filters > summary::-webkit-details-marker,
.collection-more > summary::-webkit-details-marker { display: none; }
.story-filters[open] > summary > .icon,
.collection-more[open] > summary > .icon { transform: rotate(180deg); }
.filter-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.filter-options .filter-tabs { flex: 1 1 100%; }
.filter-options .subtle-select { min-height: 44px; }
.collection-more,
.collection-back { display: none; }
.my-page {
  max-width: 640px;
  padding-top: 34px;
  padding-bottom: 54px;
}
.my-page > h1 { font: 30px/1.5 var(--serif); margin: 0 0 24px; }
.my-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
}
.my-identity > .avatar {
  width: 52px;
  height: 52px;
  font-size: 21px;
}
.my-identity h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.my-identity p { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.my-actions { border-block: 1px solid var(--line); }
.my-action,
.my-drafts > a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 16px;
}
.my-action:last-child { border-bottom: 0; }
.my-action > span,
.my-drafts > a > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.my-action > .icon,
.my-drafts > a > .icon { flex-shrink: 0; color: var(--red); }
.my-action:hover,
.my-drafts > a:hover { color: var(--red); }
.my-drafts { margin-top: 28px; }
.my-drafts h2 { margin: 0 0 8px; font-size: 20px; }
.my-note { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 20px 0; }
.my-note + .button { min-height: 48px; font-size: 16px; }
.profile-page > .collection-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 14px; color: var(--red); font-size: 15px; }
.profile-form { max-width: 480px; }
.profile-form > .button { min-height: 48px; width: 100%; font-size: 16px; }
.narrator-template { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; }
.narrator-template .text-link { min-height: 44px; font-size: 15px; }
.narrator-template > span { color: var(--muted); font-size: 14px; }

@media screen and (min-width: 701px) {
  .story-filters > summary { display: none; }
}

@media screen and (max-width: 700px) {
  .mobile-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-nav > a,
  .mobile-nav > button { font-size: 14px; }
  body:not([data-editing="true"]) .header-actions,
  #footer { display: none; }
  body[data-editing="true"] .header-actions { display: flex; }
  .page-top .breadcrumb,
  .page-top .eyebrow,
  .page-top .page-intro { display: none; }
  .page-top { padding: 22px 0 20px; }
  .page-top h1 { font-size: 28px; letter-spacing: 0; }
  .page-body { padding-bottom: 28px; }

  .mobile-home { padding-top: 12px; padding-bottom: 18px; }
  .compact-cover { margin: 0; position: relative; }
  .compact-cover picture { display: block; overflow: hidden; border-radius: 3px; }
  .compact-cover .hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 55%;
  }
  .compact-cover figcaption {
    margin-top: 6px;
    color: var(--muted);
    text-align: right;
    font-size: 12px;
    line-height: 1.5;
  }
  .compact-intro { padding: 18px 0 24px; }
  .compact-intro h1 {
    margin: 0 0 8px;
    font: 29px/1.55 var(--serif);
    letter-spacing: 0;
  }
  .compact-intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
  .recent-memories { border-top: 1px solid var(--line); padding-top: 13px; }
  .compact-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .compact-heading h2 { margin: 0; font-size: 21px; }
  .compact-heading > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--red); font-size: 15px; }
  .memory-row { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .memory-row:last-child { border-bottom: 0; }
  .memory-row h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
  .memory-row p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
  }
  .memory-row small { color: var(--muted); font-size: 13px; }
  .compact-empty { padding: 10px 0 4px; }
  .compact-empty p { margin: 0 0 16px; font-size: 16px; color: var(--muted); line-height: 1.8; }
  .compact-empty .button { min-height: 48px; font-size: 16px; }

  .stories-page .page-top-row { flex-wrap: nowrap; gap: 12px; }
  .stories-page .page-top h1 { white-space: nowrap; }
  .stories-page .page-top-row > .button { padding: 10px 14px; font-size: 16px; }
  .story-search-row { margin-bottom: 2px; }
  .story-search-row .search-box { max-width: none; }
  .story-filters { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
  .story-filters > summary { font-size: 15px; color: var(--muted); }
  .filter-options { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 4px 0 16px; }
  .filter-options .filter-tabs { flex-wrap: wrap; overflow: visible; }
  .filter-options .subtle-select { width: 100%; font-size: 16px; }
  .stories-page .results-label { margin-bottom: 12px; }
  .stories-page .story-grid { gap: 0; }
  .stories-page .story-card { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .stories-page .story-card:hover { transform: none; box-shadow: none; }
  .stories-page .story-card-visual,
  .stories-page .story-meta,
  .stories-page .narrator-mini .avatar { display: none; }
  .stories-page .story-card-text { padding: 18px 0; }
  .stories-page .story-card h3 { font-size: 21px; line-height: 1.55; margin-bottom: 8px; }
  .stories-page .story-card .excerpt { -webkit-line-clamp: 2; margin-bottom: 9px; font-size: 16px; line-height: 1.8; }
  .stories-page .story-card-footer { padding-top: 0; border: 0; font-size: 13px; }
  .stories-page .gate-note { display: none; }
  .collection-more { display: block; margin-top: 20px; border-top: 1px solid var(--line); }
  .collection-more > summary { color: var(--muted); font-size: 15px; }
  .collection-more > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 0 12px; }
  .collection-more > div > a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line); font-size: 16px; }
  .collection-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-size: 15px; color: var(--red); }
  .collection-back + .page-top { padding-top: 8px; }
  .my-page { padding-top: 24px; padding-bottom: 24px; }
  .my-page > h1 { font-size: 28px; margin-bottom: 24px; }
  .my-page .access-panel { padding: 20px 0; border: 0; background: none; text-align: left; }
}

/* A life told through the family's own memories, along one continuous line. */
.timeline-home {
  max-width: 900px;
  padding-top: 42px;
  padding-bottom: 66px;
}
.timeline-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.timeline-intro h1 {
  font-size: 40px;
  line-height: 1.45;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.timeline-intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
}
.timeline-intro > .button {
  flex-shrink: 0;
  min-height: 48px;
  font-size: 16px;
}
.story-tree { position: relative; }
.story-tree::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 18px;
  left: 8px;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.story-tree:not(:has(.tree-group))::before { display: none; }
.tree-group {
  position: relative;
  padding-left: 36px;
  margin-bottom: 34px;
  scroll-margin-top: 105px;
}
.tree-group:last-child { margin-bottom: 0; }
.tree-year {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.5;
}
.tree-year::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -32px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--bg);
}
.tree-year time {
  font-family: Georgia, var(--serif);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tree-year small {
  color: var(--muted);
  font: 14px/1.7 var(--sans);
  letter-spacing: 0;
}
.tree-branches { min-width: 0; }
.tree-story {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}
.tree-story:last-child { border-bottom: 0; }
.tree-story::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 36px;
  width: 16px;
  height: 1px;
  background: var(--line);
}
.tree-story-copy { flex: 1; min-width: 0; }
.tree-story h3 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: color 0.18s;
}
.tree-story p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-bottom: 12px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #625d54;
  font-size: 16px;
  line-height: 1.85;
}
.tree-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.tree-story-photo {
  width: 176px;
  flex: 0 0 176px;
  padding-top: 4px;
}
.tree-story-photo .media-frame {
  aspect-ratio: 4 / 3;
  border-radius: 2px;
}
.tree-story-photo .media-frame img { object-fit: cover; }
.tree-tail {
  padding: 16px 0 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.tree-empty {
  max-width: 560px;
  margin: 4px 0 24px 8px;
  padding: 8px 0 8px 28px;
  border-left: 1px solid var(--line);
}
.tree-empty h2 { font-size: 24px; margin-bottom: 10px; }
.tree-empty p { color: var(--muted); font-size: 16px; line-height: 1.9; margin-bottom: 22px; }
.tree-empty .button { min-height: 48px; font-size: 16px; }
@media (hover: hover) {
  .tree-story:hover h3 { color: var(--red); }
}

/* Photos always reserve room, including before a lazy request starts. */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--media-ratio, 4 / 3);
  overflow: hidden;
  isolation: isolate;
  background: #eae5dc;
  color: var(--muted);
}
.media-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.media-frame img,
.reading-attachments .media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.18s;
}
.media-frame[data-state="loaded"] img { opacity: 1; }
.media-loading,
.media-failure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font: 14px/1.8 var(--sans);
  overflow-wrap: anywhere;
}
.media-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 25%, #fcfaf660 50%, transparent 75%);
  background-size: 220% 100%;
  animation: media-loading-shimmer 1.8s ease-in-out infinite;
}
.media-failure { display: none; color: var(--red); }
.media-frame[data-state="error"] { cursor: pointer; background: #efe9e0; }
.media-frame[data-state="error"] .media-failure { display: flex; }
.media-frame[data-state="error"] .media-loading,
.media-frame[data-state="loaded"] .media-loading { display: none; }
.reading-attachments .media-card { display: block; width: 100%; }
.reading-attachments .media-frame { max-height: 720px; }
.media-preview > .media-frame { height: 100%; }
.tree-story-photo .media-loading,
.tree-story-photo .media-failure { padding: 10px; font-size: 12px; line-height: 1.6; }
@keyframes media-loading-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .media-loading::before { animation: none; }
  .media-frame img,
  .tree-story h3 { transition: none; }
}
@media screen and (max-width: 700px) {
  .timeline-home { padding-top: 22px; padding-bottom: 30px; }
  .timeline-intro { align-items: flex-start; gap: 12px; padding-bottom: 20px; margin-bottom: 23px; }
  .timeline-intro h1 { font-size: 29px; line-height: 1.5; letter-spacing: 0; margin-bottom: 7px; }
  .timeline-intro p { font-size: 15px; line-height: 1.8; }
  .timeline-intro > .button { min-height: 46px; padding: 9px 12px; font-size: 15px; margin-top: 1px; }
  .timeline-intro > .button > .icon { display: none; }
  .story-tree::before { left: 5px; top: 19px; bottom: 18px; }
  .tree-group { padding-left: 27px; margin-bottom: 25px; scroll-margin-top: 85px; }
  .tree-year { font-size: 26px; gap: 3px 9px; margin-bottom: 3px; }
  .tree-year::before { width: 9px; height: 9px; left: -26px; top: 15px; }
  .tree-year small { font-size: 13px; }
  .tree-story { gap: 13px; padding: 16px 0 20px; }
  .tree-story::before { left: -22px; width: 12px; top: 31px; }
  .tree-story h3 { font-size: 21px; line-height: 1.65; margin-bottom: 7px; }
  .tree-story p { font-size: 16px; line-height: 1.8; -webkit-line-clamp: 2; margin-bottom: 8px; }
  .tree-story-meta { gap: 2px 8px; font-size: 13px; line-height: 1.8; }
  .tree-story-photo { width: 76px; flex-basis: 76px; padding-top: 6px; }
  .tree-story-photo .media-frame { aspect-ratio: 1; }
  .tree-story-photo .media-loading,
  .tree-story-photo .media-failure { padding: 6px; font-size: 11px; line-height: 1.6; }
  .tree-tail { padding-left: 27px; font-size: 13px; }
  .tree-empty { margin-left: 5px; padding-left: 22px; }
  .tree-empty h2 { font-size: 22px; }
  .tree-empty p { margin-bottom: 18px; }
  .reading-attachments .media-frame { max-height: none; }
}
.tree-year time > span { margin-left: 5px; font: 15px/1.5 var(--sans); color: var(--muted); }
.tree-story-date { display: block; color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 5px; overflow-wrap: anywhere; }
.tree-story-meta > .icon { width: 17px; height: 17px; margin: 3px 0 0 auto; color: var(--red); }
.tree-empty { position: relative; }
.tree-empty-dot { position: absolute; left: -5px; top: 20px; width: 9px; height: 9px; border: 2px solid var(--red); border-radius: 50%; background: var(--bg); }
.media-frame.lightbox-image { min-height: 160px; max-height: min(62vh, 720px); }
@media screen and (max-width: 700px) {
  .tree-year time > span { font-size: 13px; }
  .tree-story-date { font-size: 12px; margin-bottom: 4px; }
  .tree-story::before { top: 50px; }
  .media-frame.lightbox-image { max-height: max(160px, calc(var(--visible-height, 100dvh) - 230px)); }
}
@media screen and (max-width: 700px) {
  .tree-story:has(.tree-story-photo) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    column-gap: 13px;
    row-gap: 0;
  }
  .tree-story:has(.tree-story-photo) .tree-story-copy { display: contents; }
  .tree-story:has(.tree-story-photo) .tree-story-date { grid-column: 1 / -1; grid-row: 1; }
  .tree-story:has(.tree-story-photo) h3 { grid-column: 1 / -1; grid-row: 2; }
  .tree-story:has(.tree-story-photo) p { grid-column: 1; grid-row: 3; margin-bottom: 0; }
  .tree-story:has(.tree-story-photo) .tree-story-meta { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; }
  .tree-story-photo { grid-column: 2; grid-row: 3; padding-top: 0; }
}
.timeline-editor-layout { display: block; max-width: 820px; margin-inline: auto; }
.timeline-editor-layout .editor-form { min-width: 0; }
.timeline-editor-layout .time-section { padding-top: 0; }
