/* Dad on the Fringe: a warm, quiet editorial system */
:root {
  --paper: #f4efe5;
  --paper-deep: #e9dfd0;
  --paper-light: #fbf8f1;
  --ink: #173d34;
  --ink-soft: #4b6058;
  --ochre: #b65f37;
  --ochre-dark: #8e452a;
  --rule: rgba(23, 61, 52, 0.22);
  --rule-strong: rgba(23, 61, 52, 0.48);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1280px;
  --reading: 700px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.68), transparent 28rem),
    linear-gradient(180deg, var(--paper-light) 0, var(--paper) 26rem, var(--paper) 100%);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ochre-dark);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  color: var(--paper-light);
  background: var(--ink);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

main {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.9rem;
  color: var(--paper-light);
  background: var(--ink);
  font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform var(--ease);
}

.skip-link:focus {
  color: var(--paper-light);
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 239, 229, 0.91);
}

.js .site-header {
  position: sticky;
  top: 0;
  transition: box-shadow var(--ease), background-color var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.js .site-header.is-scrolled {
  background: rgba(244, 239, 229, 0.97);
  box-shadow: 0 8px 28px rgba(23, 61, 52, 0.08);
}

.header-inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-name {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  font-family: var(--sans);
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.eyebrow,
.essay-language,
.reading-time,
.breadcrumb,
.language-jump,
figcaption,
.theme-label,
.error-code {
  font-family: var(--sans);
}

.eyebrow {
  margin-bottom: 1.35rem;
  color: var(--ochre-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.24rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--ease), gap var(--ease);
}

.text-link:hover {
  gap: 0.88rem;
  color: var(--ochre-dark);
}

/* Home */
.home-hero {
  position: relative;
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  min-height: min(780px, calc(100vh - 82px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5.5rem);
  padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(5rem, 9vw, 8rem);
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(43% - 1px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--rule) 16%, var(--rule) 84%, transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-right: clamp(0rem, 2vw, 2rem);
}

.hero-copy h1 {
  max-width: 740px;
  margin-bottom: 1.7rem;
  font-size: clamp(3.55rem, 6.4vw, 7.35rem);
}

.hero-korean {
  margin-bottom: 2.25rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  letter-spacing: -0.02em;
}

.hero-link {
  margin-top: 0.1rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  justify-self: stretch;
}

.hero-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -1.35rem;
  right: -1.35rem;
  width: 43%;
  height: 36%;
  border-top: 8px solid var(--ochre);
  border-right: 8px solid var(--ochre);
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 28px 60px rgba(32, 46, 41, 0.16);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 61, 52, 0.02), rgba(23, 61, 52, 0.15));
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure figcaption,
.essay-image figcaption {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-figure figcaption a,
.essay-image figcaption a,
.footer-credit a {
  text-decoration-color: var(--ochre);
}

.featured {
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
}

.feature-row {
  display: grid;
  grid-template-columns: 0.34fr 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3.8rem) 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.feature-number,
.journal-index {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-style: italic;
  line-height: 0.85;
}

.essay-language {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-title h3 {
  max-width: 560px;
  margin-bottom: 0.9rem;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
}

.feature-title h3 a,
.journal-entry h2 a {
  text-decoration: none;
}

.feature-title h3 a:hover,
.journal-entry h2 a:hover {
  color: var(--ochre-dark);
}

.feature-title > p:last-child,
.korean-title {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-summary {
  align-self: end;
  max-width: 440px;
}

.feature-summary > p:first-child,
.journal-entry-note > p:first-child {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.reading-time {
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-summary .reading-time {
  margin: 1.25rem 0 1.5rem;
}

.themes {
  display: grid;
  grid-template-columns: minmax(11rem, 0.42fr) 1.58fr;
  background: var(--ink);
  color: var(--paper-light);
}

.theme-label {
  display: flex;
  align-items: center;
  padding: 2.1rem var(--gutter);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  color: #e5c5ac;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.themes ul {
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.themes li {
  padding: 2rem clamp(1rem, 3vw, 3.2rem);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-style: italic;
  text-align: center;
}

.themes li:last-child {
  border-right: 0;
}

.about-teaser {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(6rem, 10vw, 10rem) 0;
  align-items: center;
}

.about-teaser h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5.3vw, 5.6rem);
}

.about-teaser-copy {
  max-width: 450px;
}

.about-teaser-copy p {
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.78;
}

/* Journal */
.page-masthead {
  display: grid;
  grid-template-columns: 0.36fr 1fr 0.58fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
}

.page-masthead .eyebrow {
  align-self: start;
  margin-top: 0.8rem;
}

.page-masthead h1 {
  margin-bottom: 0;
  font-size: clamp(4.4rem, 8.8vw, 9.4rem);
}

.masthead-intro {
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.journal-list {
  padding-bottom: clamp(7rem, 12vw, 12rem);
}

.journal-entry {
  display: grid;
  grid-template-columns: 0.3fr 1.25fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.journal-entry h2 {
  max-width: 650px;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5.1vw, 5.4rem);
}

.journal-entry-note {
  position: relative;
  padding-bottom: 4.4rem;
  align-self: end;
}

.journal-entry-note .reading-time {
  margin-top: 1.2rem;
}

.circle-link {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 3.45rem;
  height: 3.45rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--sans);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), transform var(--ease);
}

.circle-link:hover {
  color: var(--paper-light);
  background: var(--ink);
  transform: rotate(8deg);
}

/* Essay */
.reading-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--ochre);
  pointer-events: none;
}

.essay-header {
  padding: 2.1rem 0 clamp(4rem, 8vw, 7rem);
}

.breadcrumb {
  margin-bottom: clamp(4rem, 9vw, 8rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a {
  text-decoration: none;
}

.essay-heading-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.55fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.essay-heading-grid h1 {
  max-width: 880px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.8rem, 7.6vw, 8.4rem);
}

.essay-title-ko {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  letter-spacing: -0.03em;
}

.essay-header-note {
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--rule-strong);
}

.essay-header-note > p:first-child {
  color: var(--ink-soft);
  line-height: 1.75;
}

.essay-header-note .reading-time {
  margin: 1.35rem 0 0;
}

.language-jump {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-jump span {
  margin-right: 0.35rem;
  color: var(--ink-soft);
}

.language-jump a {
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease);
}

.language-jump a:hover {
  color: var(--paper-light);
  background: var(--ink);
}

.essay-image {
  margin-bottom: clamp(5rem, 10vw, 10rem);
}

.essay-image img {
  width: 100%;
  max-height: 760px;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  background: var(--paper-deep);
}

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

.language-section {
  scroll-margin-top: 7rem;
}

.language-heading {
  margin-bottom: 3.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-strong);
}

.language-heading > p {
  margin-bottom: 0.9rem;
  color: var(--ochre-dark);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.language-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.65rem, 5vw, 4.6rem);
}

.prose {
  color: #263f38;
  font-size: clamp(1.12rem, 1.55vw, 1.28rem);
  line-height: 1.9;
}

.prose p {
  margin-bottom: 1.8em;
}

.prose .opening-paragraph::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: var(--ochre);
  font-size: 4.25em;
  line-height: 0.72;
}

.language-divider {
  position: relative;
  margin: clamp(5rem, 10vw, 9rem) 0;
  color: var(--ink-soft);
  text-align: center;
}

.language-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--rule);
}

.language-divider span {
  position: relative;
  padding: 0 1.3rem;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.korean-prose {
  font-family: var(--serif);
  word-break: keep-all;
}

.korean-prose .opening-paragraph::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.essay-end {
  margin-top: clamp(6rem, 11vw, 11rem);
  padding: 2rem 0 clamp(6rem, 10vw, 9rem);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--rule-strong);
}

/* About */
.about-masthead {
  display: grid;
  grid-template-columns: 1.25fr 0.6fr;
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(5rem, 9vw, 8rem);
}

.about-masthead h1 {
  margin-bottom: 0;
  font-size: clamp(4rem, 7.8vw, 8.4rem);
}

.about-lede {
  margin-bottom: 0.65rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}

.about-story {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: clamp(3rem, 9vw, 10rem);
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--rule-strong);
}

.about-aside {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.large-initial {
  color: var(--ochre);
  font-family: var(--serif);
  font-size: clamp(6rem, 12vw, 12rem);
  font-style: italic;
  line-height: 0.7;
}

.about-aside p {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.9;
  text-transform: uppercase;
}

.about-copy {
  max-width: var(--reading);
}

.about-copy h2 {
  margin-bottom: 2.5rem;
  font-size: clamp(2.9rem, 5vw, 5rem);
}

.about-story-ko {
  padding-bottom: clamp(7rem, 12vw, 12rem);
}

/* 404 */
.not-found {
  min-height: 68vh;
  padding: clamp(6rem, 12vw, 12rem) 0;
  text-align: center;
}

.error-code {
  margin-bottom: 1rem;
  color: var(--ochre);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.not-found h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.not-found > p:not(.eyebrow, .error-code) {
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter);
  color: var(--paper-light);
  background: #12352d;
}

.footer-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-brand img {
  filter: none;
  opacity: 1;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 1.05rem;
}

.footer-brand p,
.footer-note,
.footer-credit {
  margin: 0;
  color: rgba(251, 248, 241, 0.7);
  font-size: 0.78rem;
  line-height: 1.65;
}

.footer-brand p,
.footer-credit {
  font-family: var(--sans);
}

.footer-note {
  max-width: 360px;
  font-size: 0.94rem;
  font-style: italic;
}

.footer-credit {
  justify-self: end;
  text-align: right;
}

/* Medium screens */
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 2.2rem;
  }

  .home-hero::before {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 7.5vw, 5.4rem);
  }

  .feature-row,
  .journal-entry {
    grid-template-columns: 0.22fr 1fr;
  }

  .feature-summary,
  .journal-entry-note {
    grid-column: 2;
    max-width: 560px;
  }

  .page-masthead {
    grid-template-columns: 0.25fr 1fr;
  }

  .masthead-intro {
    grid-column: 2;
    max-width: 620px;
  }

  .essay-heading-grid,
  .about-masthead {
    grid-template-columns: 1fr;
  }

  .essay-header-note,
  .about-lede {
    max-width: 620px;
  }

  .about-story {
    grid-template-columns: 0.45fr 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-credit {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

/* Small screens */
@media (max-width: 640px) {
  :root {
    --gutter: 1.15rem;
  }

  .header-inner {
    min-height: 70px;
    gap: 1rem;
  }

  .brand {
    gap: 0.48rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .site-nav {
    gap: 0.78rem;
  }

  .site-nav a {
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 4rem 0 4.5rem;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 15vw, 4.5rem);
  }

  .hero-figure {
    width: 89%;
    margin: 1.4rem 0 0 auto;
  }

  .hero-figure::before {
    top: -0.8rem;
    right: -0.75rem;
    border-top-width: 5px;
    border-right-width: 5px;
  }

  .section-heading,
  .feature-row,
  .about-teaser,
  .page-masthead,
  .journal-entry,
  .essay-heading-grid,
  .about-masthead,
  .about-story,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 0.25rem;
  }

  .section-heading h2,
  .about-teaser h2 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .feature-row,
  .journal-entry {
    gap: 1.5rem;
  }

  .feature-summary,
  .journal-entry-note,
  .masthead-intro {
    grid-column: 1;
  }

  .themes {
    grid-template-columns: 1fr;
  }

  .theme-label {
    justify-content: center;
    padding: 1.4rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .themes ul {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .themes li {
    padding: 1.35rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .themes li:nth-child(2) {
    border-right: 0;
  }

  .themes li:nth-child(3),
  .themes li:nth-child(4) {
    border-bottom: 0;
  }

  .page-masthead,
  .about-masthead {
    padding-top: 4.5rem;
  }

  .page-masthead {
    gap: 1.5rem;
  }

  .page-masthead h1,
  .about-masthead h1 {
    font-size: clamp(3.55rem, 16vw, 5.4rem);
  }

  .journal-index {
    font-size: 3.4rem;
  }

  .essay-header {
    padding-top: 1.4rem;
  }

  .breadcrumb {
    margin-bottom: 4rem;
  }

  .essay-heading-grid h1 {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .essay-image {
    width: 100%;
  }

  .essay-image img {
    aspect-ratio: 4 / 3;
  }

  .essay-image figcaption {
    padding-inline: var(--gutter);
  }

  .prose {
    font-size: 1.08rem;
    line-height: 1.85;
  }

  .essay-end {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-story {
    gap: 3rem;
  }

  .about-aside {
    grid-template-columns: auto 1fr;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid var(--rule);
  }

  .large-initial {
    font-size: 7rem;
  }

  .footer-credit {
    grid-column: 1;
  }
}

@media (max-width: 390px) {
  .brand-name {
    max-width: 74px;
    line-height: 1.02;
  }

  .site-nav {
    gap: 0.62rem;
  }

  .site-nav a {
    font-size: 0.55rem;
  }

  .hero-copy h1 {
    font-size: 3.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Keep Korean title words together on narrow screens. */
.korean-section .language-heading h2 {
  word-break: keep-all;
  line-height: 1.3;
}

/* Connected essays: added only to series pages and the home series panel. */
.series-panel {
  margin: 0 0 3.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--rule-strong);
  background: rgba(251, 248, 241, 0.65);
}
.series-panel .eyebrow { margin-bottom: 1rem; }
.series-title { max-width: 52rem; font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.3; margin-bottom: 0.65rem; }
.series-title-ko { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); word-break: keep-all; }
.series-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.series-links a, .series-continuation a { display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; line-height: 1.5; }
.series-links a { padding: 1rem; border: 1px solid var(--rule); }
.series-links a[aria-current="page"] { background: var(--paper-deep); border-color: var(--rule-strong); }
.series-links a:hover { border-color: var(--ochre); }
.series-part-label { color: var(--ochre-dark); font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.series-links a > span[lang="ko"] { color: var(--ink-soft); font-family: var(--sans); font-size: 0.84rem; word-break: keep-all; }
.series-continuation { margin-top: 2.5rem; padding: 1.5rem 0; border-block: 1px solid var(--rule-strong); }
.series-continuation a { font-size: 1.2rem; }
.essay-header:has(.series-panel) .breadcrumb { margin-bottom: 2.5rem; }
@media (max-width: 640px) {
  .series-links { grid-template-columns: 1fr; gap: 0.75rem; }
  .series-panel { margin-bottom: 2.75rem; }
  .series-continuation a { word-break: keep-all; }
}
