:root {
  color-scheme: light;
  --bg: #fbfaf4;
  --surface: #ffffff;
  --surface-soft: #f2f0e9;
  --ink: #07134f;
  --muted: #4e5781;
  --primary: #0739c8;
  --primary-deep: #001f91;
  --accent: #ef2f24;
  --accent-soft: #ffe0da;
  --line: #0739c8;
  --line-soft: rgba(7, 57, 200, 0.26);
  --label: #050505;
  --inverse: #ffffff;
  --shadow: 0.5rem 0.5rem 0 rgba(7, 57, 200, 0.1);
  --radius: 0;
  --rail: 3.25rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="rain"] {
  --bg: #f7fbfb;
  --surface: #ffffff;
  --surface-soft: #e5eeee;
  --ink: #102f38;
  --muted: #557074;
  --primary: #0f6f7b;
  --primary-deep: #084854;
  --accent: #ba4e55;
  --accent-soft: #f0d2d3;
  --line: #0f6f7b;
  --line-soft: rgba(15, 111, 123, 0.28);
}

:root[data-theme="evening"] {
  color-scheme: dark;
  --bg: #08152d;
  --surface: #fff8e9;
  --surface-soft: #10254a;
  --ink: #07134f;
  --muted: #506083;
  --primary: #9dc8ff;
  --primary-deep: #071c52;
  --accent: #c9505f;
  --accent-soft: #f5d1d5;
  --line: #9dc8ff;
  --line-soft: rgba(157, 200, 255, 0.34);
  --label: #050505;
  --inverse: #071c52;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 0.1875rem solid var(--accent);
  outline-offset: 0.1875rem;
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  width: var(--rail);
  padding: 1.25rem 0 1.125rem;
  background: var(--primary);
  color: var(--inverse);
  border-right: 0.125rem solid var(--line);
}

.rail-number {
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.rail-tool {
  position: relative;
  width: 2.125rem;
  height: 2.125rem;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.rail-tool span {
  position: absolute;
  left: 0.8125rem;
  width: 1rem;
  height: 0.125rem;
  background: currentColor;
}

.rail-tool span:nth-child(1) {
  top: 0.875rem;
}

.rail-tool span:nth-child(2) {
  top: 1.25rem;
  width: 0.6875rem;
}

.rail-tool span:nth-child(3) {
  top: 1.625rem;
  width: 0.4375rem;
}

.rail-bookmark::before,
.rail-share::before,
.rail-share::after {
  position: absolute;
  content: "";
}

.rail-bookmark::before {
  inset: 0.625rem 0.875rem 0.5rem;
  border: 0.125rem solid currentColor;
  border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}

.rail-share::before {
  inset: 0.75rem;
  border-top: 0.125rem solid currentColor;
  border-left: 0.125rem solid currentColor;
  transform: rotate(45deg);
}

.rail-share::after {
  right: 0.625rem;
  bottom: 0.6875rem;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -0.875rem -0.375rem 0 currentColor;
}

.rail-accent {
  width: 0.625rem;
  height: 0.625rem;
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(26.875rem, 0.72fr) minmax(0, 1fr) auto;
  gap: clamp(1.125rem, 2.8vw, 2rem);
  align-items: center;
  min-height: 7.5rem;
  margin-left: var(--rail);
  padding: 0.625rem clamp(1.375rem, 3.5vw, 2.625rem);
  border-bottom: 0.125rem solid var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9375rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 4.25rem;
  height: 4.75rem;
  flex: 0 0 auto;
  border: 0;
  background: var(--surface);
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy span:first-child {
  color: var(--primary);
  font-size: clamp(3.05rem, 4.18vw, 4.55rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.86;
}

.brand-copy span:nth-child(2),
.brand-copy span:nth-child(3) {
  color: var(--primary-deep);
  font-size: 1.31rem;
  font-weight: 900;
  line-height: 1.18;
  max-width: 25ch;
}

.brand-copy span:nth-child(3),
.jp-line {
  color: var(--primary);
  font-size: 1.31rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.tabs a {
  min-width: 7.375rem;
  padding: 0.8125rem 0.75rem;
  border-right: 0.0625rem solid var(--line-soft);
  color: var(--primary);
  font-size: 1.24rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.tabs a:first-child {
  border-left: 0.0625rem solid var(--line-soft);
}

.tabs a[aria-current] {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.icon-button {
  position: relative;
  width: 2.375rem;
  height: 2.375rem;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

.search-button::before {
  position: absolute;
  inset: 0.6875rem 0.8125rem 0.8125rem 0.6875rem;
  border: 0.125rem solid currentColor;
  border-radius: 50%;
  content: "";
}

.search-button::after {
  position: absolute;
  right: 0.5625rem;
  bottom: 0.625rem;
  width: 0.75rem;
  height: 0.125rem;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-picker span {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.theme-picker select {
  height: 2.875rem;
  min-width: 7.375rem;
  border: 0.125rem solid var(--line);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--inverse);
  font-size: 1.31rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.app-shell {
  margin-left: var(--rail);
}

.grid-panel {
  border: 0.125rem solid var(--line);
  background: var(--surface);
}

.editorial-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.625rem;
  padding: 0.3125rem 0.625rem;
  background: var(--label);
  color: #ffffff;
  font-size: 1.27rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.kicker {
  margin: 0;
  color: var(--primary);
  font-size: 1.33rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: 0;
}

h1 span,
h2 span {
  color: var(--accent);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(23.4375rem, 0.78fr) minmax(30rem, 1.25fr) minmax(11.875rem, 0.34fr);
  grid-template-rows: minmax(13.75rem, 1fr) auto;
  border-bottom: 0.125rem solid var(--line);
}

.hero-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 33.625rem;
  padding: clamp(1.875rem, 4.5vw, 3.25rem);
  border-top: 0;
  border-left: 0;
}

.browse-head h1,
.detail-title h1 {
  max-width: 9.5em;
  margin: 1.375rem 0 1rem;
  color: var(--primary);
  font-size: clamp(3rem, 5.3vw, 5rem);
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-statement h1 {
  max-width: 9.5em;
  margin: 1.5rem 0 1.125rem;
  color: var(--primary);
  font-size: clamp(3.75rem, 6.6vw, 6.25rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-statement p:not(.jp-line) {
  max-width: 35rem;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.5;
}

.hero-actions,
.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.125rem;
}

.primary-action,
.secondary-action,
.load-more,
.browse-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 0.125rem solid var(--line);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 1.33rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-action {
  min-width: 11.875rem;
  background: var(--primary);
  color: var(--inverse);
}

.primary-action::after,
.secondary-action::after,
.section-line a::after {
  margin-left: 1.25rem;
  content: "->";
}

.secondary-action,
.browse-tools button,
.load-more {
  background: var(--surface);
}

.primary-action:hover,
.secondary-action:hover,
.media-card:hover,
.collection-card:hover {
  transform: translateY(-0.125rem);
}

.hero-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 950;
}

.hero-progress span {
  width: 2.375rem;
  height: 0.125rem;
  background: var(--line-soft);
}

.hero-progress span:first-of-type {
  background: var(--accent);
}

.hero-media {
  position: relative;
  min-height: 33.625rem;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  overflow: hidden;
}

.hero-media .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1800ms ease;
}

.hero-media .hero-slide.is-active {
  opacity: 1;
}

.hero-media img,
.detail-media img,
.media-thumb img,
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.daily-card {
  align-self: start;
  margin: 4.5rem 1.25rem 0 -0.875rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.daily-card small {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.33rem;
  font-weight: 900;
}

.daily-card small::after {
  width: 4.75rem;
  height: 0.125rem;
  background: var(--line-soft);
  content: "";
}

.daily-card p {
  margin: 1.125rem 0;
  font-size: 1.67rem;
  font-weight: 950;
  line-height: 1.42;
}

.daily-card strong {
  color: var(--accent);
  font-size: 1.33rem;
  font-weight: 950;
}

.home-grid {
  display: block;
  border-bottom: 0.125rem solid var(--line);
}

.section-line h2,
.browse-module h2,
.related-block h2 {
  margin: 0.875rem 0 0.75rem;
  color: var(--ink);
  font-size: clamp(1.9rem, 2.25vw, 2.45rem);
  font-weight: 950;
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.media-copy small,
.media-copy em,
.collection-card small,
.collection-card em,
.result-count,
.meta-row {
  color: var(--primary-deep);
  font-size: 1.27rem;
  font-style: normal;
  font-weight: 900;
}

.browse-module {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.module-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: 1rem clamp(1.25rem, 3vw, 2.375rem);
  border-bottom: 0.125rem solid var(--line);
}

.module-head h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2.35rem, 3.85vw, 3.85rem);
  line-height: 0.9;
  text-transform: uppercase;
}

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

.home-mission {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.home-mission .prose {
  max-width: 76rem;
  margin: 0 auto;
}

.home-mission .prose p:first-child::first-letter {
  float: none;
  padding: 0;
  color: inherit;
  font: inherit;
}

.category-list {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  padding: 1.375rem 1.25rem;
  border-right: 0.125rem solid var(--line);
}

.category-list a {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
}

.mini-grid,
.browse-grid,
.latest-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

.mini-grid {
  padding: 1.125rem;
}

.browse-module .home-browse-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  padding: clamp(1rem, 2.4vw, 1.625rem);
}

.media-card {
  min-width: 0;
  background: var(--surface);
  transition: transform 180ms var(--ease);
}

.media-card a,
.article-card a,
.collection-card a {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card {
  min-width: 0;
  background: var(--surface);
  transition: transform 180ms var(--ease);
}

.article-copy {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 16.25rem;
  padding: clamp(1.125rem, 3vw, 1.875rem);
  color: var(--ink);
}

.article-copy small {
  color: var(--primary-deep);
  font-size: 1.27rem;
  font-weight: 950;
}

.article-copy strong {
  color: var(--ink);
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 950;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.article-copy > span:not(.editorial-label) {
  color: var(--muted);
  font-size: 1.31rem;
  font-weight: 800;
  line-height: 1.38;
}

.article-card-large {
  grid-row: span 2;
}

.article-card:hover {
  transform: translateY(-0.125rem);
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-bottom: 0.125rem solid var(--line);
}

.media-thumb .editorial-label {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
}

.media-copy {
  display: grid;
  gap: 0.3125rem;
  padding: 0.75rem;
}

.media-copy strong {
  color: var(--ink);
  font-size: clamp(1.57rem, 1.8vw, 1.97rem);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.media-copy span {
  color: var(--muted);
  font-size: 1.31rem;
  font-weight: 750;
  line-height: 1.35;
}

.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.section-line h2 {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
}

.section-line a {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

.collection-card {
  min-height: 11.25rem;
  overflow: hidden;
}

.collection-card a {
  grid-template-rows: 1fr auto;
}

.collection-card img {
  aspect-ratio: 16 / 9;
}

.collection-card span {
  display: grid;
  gap: 0.3125rem;
  padding: 0.75rem;
}

.collection-card strong {
  font-size: 1.67rem;
  font-weight: 950;
}

.gallery-shell {
  padding: clamp(1.125rem, 3vw, 2.25rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-tile {
  overflow: hidden;
  background: var(--surface);
}

.gallery-tile a {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.gallery-tile img,
.gallery-tile video,
.loop-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-viewer {
  width: min(68.75rem, calc(100% - clamp(1.75rem, 6vw, 5.5rem)));
  margin: clamp(1.375rem, 4vw, 3rem) auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.browse-head {
  display: grid;
  grid-template-columns: minmax(18.75rem, 0.72fr) minmax(15.625rem, 1fr);
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.6vw, 2.625rem);
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.browse-head h1 {
  margin-bottom: 0.625rem;
}

.browse-head > p {
  align-self: end;
  max-width: 42rem;
  color: var(--ink);
  font-size: 1.53rem;
  font-weight: 900;
  line-height: 1.45;
}

.browse-head > small {
  color: var(--muted);
  font-size: 1.33rem;
  font-weight: 850;
}

.browse-tools,
.tag-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.search-field {
  display: grid;
  min-width: min(100%, 28.75rem);
}

.search-field span {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-field input {
  width: 100%;
  min-height: 2.875rem;
  border: 0.125rem solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 0.875rem;
  font-size: 1.33rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

.search-field.compact {
  min-width: 0;
}

.tag-row button {
  min-height: 2.625rem;
  min-width: 5.375rem;
  border: 0.125rem solid var(--line);
  background: var(--surface);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 950;
  cursor: pointer;
}

.tag-row button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--inverse);
}

.browse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.375rem clamp(1.125rem, 3vw, 2.25rem) 2.25rem;
}

.filter-panel {
  align-self: start;
  padding: 1rem;
}

.filter-panel fieldset {
  display: grid;
  gap: 0.4375rem;
  margin: 1.125rem 0 0;
  padding: 0;
  border: 0;
}

.filter-panel legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.375rem;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 950;
  text-transform: uppercase;
}

.filter-panel legend::after {
  flex: 1;
  height: 0.0625rem;
  background: var(--line-soft);
  content: "";
}

.filter-panel label {
  display: flex;
  gap: 0.4375rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 850;
}

.filter-panel input {
  accent-color: var(--primary);
}

.result-area {
  min-width: 0;
}

.result-count {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.browse-grid {
  align-items: stretch;
}

.media-card-large {
  grid-row: span 2;
}

.media-card-large .media-thumb {
  aspect-ratio: 4 / 5;
}

.media-card-large .media-copy strong {
  font-size: clamp(1.95rem, 2.65vw, 2.8rem);
}

.load-more {
  width: min(20rem, 100%);
  margin: 1.375rem auto 0;
  background: var(--surface);
}

.detail-shell {
  padding-bottom: 1.875rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(18.75rem, 0.56fr) minmax(26.25rem, 1fr);
  min-height: 21.25rem;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.detail-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.4vw, 2.625rem);
}

.article-title-panel {
  padding: clamp(1.75rem, 5vw, 4.5rem);
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.article-title-panel h1 {
  max-width: 12em;
  margin: 1.125rem 0;
  color: var(--primary);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.article-title-panel p:not(.kicker) {
  max-width: 52rem;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.48;
}

.detail-title h1 {
  margin-top: 1rem;
  font-size: clamp(2.65rem, 4.2vw, 4.15rem);
  overflow-wrap: normal;
}

.detail-title p:not(.kicker) {
  color: var(--ink);
  font-size: 1.49rem;
  font-weight: 850;
  line-height: 1.48;
}

.detail-media {
  min-height: 21.25rem;
  border-left: 0.125rem solid var(--line);
  overflow: hidden;
}

.meta-row,
.reader-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.meta-row span {
  padding-right: 0.75rem;
  border-right: 0.0625rem solid var(--line-soft);
}

.reader-tools {
  margin: 0;
  padding: 0.625rem clamp(1.125rem, 3vw, 2.25rem);
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.reader-tools > span:nth-child(2) {
  flex: 1;
  min-width: 8.75rem;
  height: 0.125rem;
  background: var(--line-soft);
}

.reader-tools button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 1.33rem;
  font-weight: 950;
  cursor: pointer;
}

.video-frame,
.prose,
.related-block {
  margin: 1.375rem clamp(1.125rem, 3vw, 2.25rem);
}

.video-frame {
  padding: 0;
  overflow: hidden;
  background: #000000;
}

.video-player {
  width: 100%;
  max-height: 76vh;
  background: #000000;
}

.prose {
  max-width: 53.75rem;
  padding: clamp(1.5rem, 3.8vw, 3rem);
  color: var(--ink);
  font-size: clamp(1.53rem, 2.1vw, 1.83rem);
  font-weight: 700;
  line-height: 1.7;
}

.prose p:first-child::first-letter {
  float: left;
  padding: 0.02em 0.1em 0 0;
  color: var(--primary);
  font-size: 5.5rem;
  font-weight: 950;
  line-height: 0.78;
}

.related-block {
  padding: 1.125rem;
}

.empty-state {
  margin: 1.5rem clamp(1.125rem, 3vw, 2.25rem);
  padding: 2.125rem;
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 950;
}

.empty-state code {
  color: var(--ink);
  font-size: 0.9em;
}

.loader {
  width: 2.625rem;
  height: 2.625rem;
  border: 0.25rem solid var(--line-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--bg) 92%, var(--primary));
}

.age-panel {
  width: min(38.75rem, 100%);
  padding: clamp(1.75rem, 5vw, 3.375rem);
  box-shadow: var(--shadow);
}

.age-panel h1 {
  margin: 1.125rem 0;
  color: var(--primary);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.age-panel p {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Desktop dimensions share one scale; mobile keeps its original sizing. */
@media (min-width: 761px) {
  html {
    font-size: 67%;
  }
}

@media (max-width: 790px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tabs {
    overflow-x: auto;
  }

  .home-hero,
  .home-grid,
  .browse-layout,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .daily-card {
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .module-body {
    grid-template-columns: 1fr;
  }

  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 0.125rem solid var(--line);
  }

  .detail-media {
    border-left: 0;
    border-top: 0.125rem solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --rail: 0rem;
  }

  .side-rail {
    position: sticky;
    top: 0;
    z-index: 45;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 2.5rem;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.625rem;
    border-right: 0;
    border-bottom: 0.125rem solid var(--line);
  }

  .site-header {
    margin-left: 0;
    padding: 0.625rem;
  }

  .brand-mark {
    width: 3.125rem;
    height: 3.5rem;
  }

  .brand-copy span:first-child {
    font-size: 2.69rem;
  }

  .brand-copy span:nth-child(2),
  .brand-copy span:nth-child(3) {
    font-size: 1.03rem;
  }

  .tabs a {
    flex: 1 1 calc(50% - 0.0625rem);
    min-width: 0;
    padding: 0.625rem 0.75rem;
    font-size: 1.2rem;
  }

  .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    width: 100%;
  }

  .header-actions {
    justify-content: space-between;
  }

  .home-hero {
    grid-template-rows: auto;
  }

  .hero-statement,
  .hero-media {
    min-height: auto;
  }

  .hero-statement {
    padding: 1.375rem 1rem;
  }

  .browse-head h1,
  .detail-title h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }

  .hero-statement h1 {
    font-size: clamp(3.1rem, 18vw, 5.25rem);
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .daily-card {
    padding: 1rem;
  }

  .module-head,
  .browse-head {
    grid-template-columns: 1fr;
  }

  .module-body {
    min-height: auto;
  }

  .mini-grid,
  .browse-grid,
  .related-grid,
  .collection-grid,
  .browse-module .home-browse-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .article-copy {
    min-height: 13.75rem;
  }

  .article-title-panel {
    padding: 1.75rem 1.25rem;
  }

  .article-title-panel h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .category-list {
    grid-template-columns: 1fr 1fr;
  }

  .browse-layout {
    padding: 0.875rem 0.625rem 1.75rem;
  }

  .media-card-large {
    grid-row: auto;
  }

  .media-card-large .media-thumb {
    aspect-ratio: 16 / 10;
  }

  .detail-title {
    padding: 1.375rem 1rem;
  }

  .detail-title,
  .article-title-panel {
    min-width: 0;
  }

  .detail-title h1,
  .article-title-panel h1 {
    overflow-wrap: anywhere;
  }

  .section-line {
    flex-wrap: wrap;
  }

  .detail-media {
    min-height: 14.375rem;
  }

  .reader-tools,
  .video-frame,
  .prose,
  .related-block {
    margin-left: 0.625rem;
    margin-right: 0.625rem;
  }

  .gallery-shell {
    padding: 0.875rem 0.625rem 1.75rem;
  }

  .gallery-viewer {
    width: calc(100% - 1.25rem);
    aspect-ratio: 16 / 9;
  }
}

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