/*
Theme Name: Soonseong Modern
Theme URI: https://blog.seedo.work
Author: Codex
Description: A responsive, editorial travel portfolio and long-form journal theme.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: soonseong-modern
*/

:root {
  --canvas: #f3f6f4;
  --surface: #fcfdfb;
  --surface-muted: #e8efeb;
  --ink: #142024;
  --ink-soft: #425258;
  --muted: #6b7778;
  --line: #d2ded8;
  --line-strong: #b9cac2;
  --blue: #176c9d;
  --blue-strong: #075a8a;
  --coral: #df6248;
  --green: #2e715d;
  --hero-ink: #ffffff;
  --hero-scrim: rgb(6 16 22 / 56%);
  --glass: rgb(252 253 251 / 92%);
  --shadow: 0 24px 60px -36px rgb(18 34 38 / 38%);
  --radius: 6px;
  --content: 820px;
  --wide: 1280px;
  --serif: "Nanum Myeongjo", "Iowan Old Style", "Apple SD Gothic Neo", Palatino, Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101719;
    --surface: #172124;
    --surface-muted: #213035;
    --ink: #f1f5f1;
    --ink-soft: #c6d2cd;
    --muted: #9aaba4;
    --line: #30433f;
    --line-strong: #456158;
    --blue: #6bbce5;
    --blue-strong: #a4d9ef;
    --coral: #ff9b79;
    --green: #8ad0ad;
    --hero-scrim: rgb(3 10 13 / 52%);
    --glass: rgb(16 23 25 / 92%);
    --shadow: 0 28px 70px -42px rgb(0 0 0 / 84%);
  }
}

:root[data-theme="light"] {
  --canvas: #f3f6f4;
  --surface: #fcfdfb;
  --surface-muted: #e8efeb;
  --ink: #142024;
  --ink-soft: #425258;
  --muted: #6b7778;
  --line: #d2ded8;
  --line-strong: #b9cac2;
  --blue: #176c9d;
  --blue-strong: #075a8a;
  --coral: #df6248;
  --green: #2e715d;
  --hero-scrim: rgb(6 16 22 / 56%);
  --glass: rgb(252 253 251 / 92%);
  --shadow: 0 24px 60px -36px rgb(18 34 38 / 38%);
}

:root[data-theme="dark"] {
  --canvas: #101719;
  --surface: #172124;
  --surface-muted: #213035;
  --ink: #f1f5f1;
  --ink-soft: #c6d2cd;
  --muted: #9aaba4;
  --line: #30433f;
  --line-strong: #456158;
  --blue: #6bbce5;
  --blue-strong: #a4d9ef;
  --coral: #ff9b79;
  --green: #8ad0ad;
  --hero-scrim: rgb(3 10 13 / 52%);
  --glass: rgb(16 23 25 / 92%);
  --shadow: 0 28px 70px -42px rgb(0 0 0 / 84%);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue-strong);
}

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

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 0;
  height: 3px;
  background: var(--coral);
  transition: width .1s linear;
}

.admin-bar .reading-progress {
  top: 32px;
}

.site-shell {
  min-height: 100vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.08);
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.is-portfolio {
  position: fixed;
  inset-inline: 0;
  border-color: transparent;
  background: transparent;
  color: var(--hero-ink);
  backdrop-filter: none;
}

.site-header.is-portfolio.is-compact {
  border-color: var(--line);
  background: var(--glass);
  color: var(--ink);
  backdrop-filter: blur(16px) saturate(1.08);
}

.header-inner,
.site-main,
.site-footer-inner {
  width: min(calc(100% - 48px), var(--wide));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.site-header.is-portfolio:not(.is-compact) .brand {
  color: var(--hero-ink);
}

.brand-mark {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}

.brand-text {
  min-width: 0;
}

.site-title {
  display: block;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.site-header.is-portfolio:not(.is-compact) .site-nav {
  color: var(--hero-ink);
}

.site-nav a:hover {
  color: var(--blue-strong);
}

.site-header.is-portfolio:not(.is-compact) .site-nav a:hover {
  color: #ffffff;
}

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--blue);
  background: var(--surface-muted);
  transform: rotate(-8deg);
}

.site-header.is-portfolio:not(.is-compact) .theme-toggle,
.site-header.is-portfolio:not(.is-compact) .menu-toggle {
  border-color: rgb(255 255 255 / 58%);
}

.site-header.is-portfolio:not(.is-compact) .theme-toggle:hover,
.site-header.is-portfolio:not(.is-compact) .menu-toggle:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / 14%);
}

.menu-toggle {
  display: none;
  font-size: 20px;
  line-height: 1;
}

.site-main {
  padding: 34px 0 96px;
}

/* Portfolio home */
.portfolio-home {
  width: 100vw;
  margin-top: -34px;
  margin-left: calc(50% - 50vw);
}

.portfolio-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(470px, 82svh, 780px);
  overflow: hidden;
  background: #123f49;
  color: var(--hero-ink);
}

.portfolio-hero-photo,
.portfolio-hero-scrim {
  position: absolute;
  inset: 0;
}

.portfolio-hero-photo {
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(.86) contrast(1.04);
  transform: scale(1.01);
}

.portfolio-hero-scrim {
  z-index: -1;
  background: var(--hero-scrim);
}

.portfolio-hero.is-empty {
  background: #245e69;
}

.portfolio-hero-inner,
.portfolio-inner {
  width: min(calc(100% - 64px), var(--wide));
  margin-inline: auto;
}

.portfolio-hero-inner {
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 64px), var(--wide));
  min-height: inherit;
  padding: 150px 0 44px;
}

.portfolio-hero-copy {
  max-width: 820px;
}

.portfolio-eyebrow,
.section-kicker {
  display: block;
  color: var(--coral);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.portfolio-eyebrow {
  color: rgb(255 255 255 / 80%);
}

.portfolio-hero h1 {
  max-width: 12ch;
  margin: 16px 0 0;
  color: #ffffff;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 800;
  line-height: 1.06;
  text-wrap: balance;
}

.portfolio-hero-copy p {
  max-width: 46ch;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.72;
}

.portfolio-hero-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 42px;
  align-items: end;
  gap: 28px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 42%);
}

.portfolio-count {
  display: grid;
  gap: 2px;
  min-width: 116px;
}

.portfolio-count strong {
  color: #ffffff;
  font-size: 26px;
  font-weight: 750;
  line-height: 1;
}

.portfolio-count span,
.portfolio-latest span {
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

.portfolio-latest {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid rgb(255 255 255 / 42%);
}

.portfolio-latest a {
  max-width: 58ch;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-latest a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.portfolio-scroll {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 50%;
  color: #ffffff;
  font-size: 21px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease;
}

.portfolio-scroll:hover {
  background: rgb(255 255 255 / 16%);
  color: #ffffff;
  transform: translateY(3px);
}

.portfolio-section {
  padding: 112px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 410px);
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.section-intro h2,
.portfolio-about h2,
.portfolio-archive-intro h1 {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.13;
  text-wrap: balance;
}

.section-intro p,
.portfolio-archive-intro p {
  max-width: 38ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.portfolio-journeys {
  background: var(--canvas);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.journey-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  grid-column: span 3;
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #347983;
  background-position: center;
  background-size: 100%;
  color: #ffffff;
  transition: background-size .35s ease, transform .25s ease, box-shadow .25s ease;
}

.journey-tile:nth-child(1),
.journey-tile:nth-child(2) {
  grid-column: span 6;
  min-height: 360px;
}

.journey-tile.is-plain:nth-child(2n) {
  background: #b85a42;
}

.journey-tile.is-plain:nth-child(3n) {
  background: #2f705f;
}

.journey-tile-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(8 20 25 / 42%);
  transition: background .25s ease;
}

.journey-tile:hover {
  background-size: 106%;
  box-shadow: var(--shadow);
  color: #ffffff;
  transform: translateY(-3px);
}

.journey-tile:hover .journey-tile-scrim {
  background: rgb(8 20 25 / 30%);
}

.journey-tile-body {
  display: grid;
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  padding: 24px;
}

.journey-tile-count {
  grid-column: 1 / -1;
  color: rgb(255 255 255 / 78%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.journey-tile strong {
  align-self: end;
  max-width: 10ch;
  color: #ffffff;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
}

.journey-tile-arrow {
  align-self: end;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.portfolio-stories {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-intro--stories {
  margin-bottom: 48px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 44px 18px;
}

.story-card {
  grid-column: span 4;
  min-width: 0;
}

.story-card--feature {
  grid-column: span 7;
}

.story-card--tall {
  grid-column: span 5;
}

.story-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.story-card--feature .story-media {
  aspect-ratio: 16 / 9;
}

.story-card--tall .story-media {
  aspect-ratio: 5 / 4;
}

.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

.story-media.is-empty {
  background: #2b6978;
}

.story-card--tall .story-media.is-empty {
  background: #a85b42;
}

.story-card:nth-child(3n) .story-media.is-empty {
  background: #31715f;
}

.story-card:hover .story-media img {
  transform: scale(1.035);
}

.story-body {
  padding-top: 15px;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-meta span {
  color: var(--coral);
}

.story-meta time {
  white-space: nowrap;
}

.story-card h3 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.38;
}

.story-card--feature h3 {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 800;
  line-height: 1.2;
}

.story-card h3 a:hover {
  color: var(--blue-strong);
}

.story-card p {
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}

.portfolio-about {
  background: var(--canvas);
}

.portfolio-about-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: 38px;
}

.about-mark {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.05;
}

.portfolio-about h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.portfolio-about p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.portfolio-archive-intro {
  padding: 154px 0 76px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.portfolio-archive-intro p {
  margin-top: 20px;
}

/* Category, search, and archive pages */
.masthead {
  padding: 58px 0 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--coral);
  content: "";
}

.masthead-title {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.masthead-lede {
  max-width: 48ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.meta-strip strong {
  color: var(--ink);
  font-weight: 750;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}

.chip {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  margin: 42px 0 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-art {
  display: block;
  min-height: 410px;
  background-color: var(--surface-muted);
  background-position: center;
  background-size: cover;
}

.lead-art--empty {
  background-color: #2a6973;
}

.lead-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.lead-catrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker,
.catlabel,
.entry-cat {
  color: var(--coral);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.catlabel {
  color: var(--muted);
}

.lead-title {
  margin: 16px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 45px);
  font-weight: 800;
  line-height: 1.18;
}

.lead-excerpt {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.readmore .arw {
  transition: transform .2s ease;
}

.lead-card:hover .readmore .arw {
  transform: translateX(5px);
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}

.list-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
}

.list-head span {
  color: var(--muted);
  font-size: 13px;
}

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

.entry-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 21px 8px;
  border-top: 1px solid var(--line);
  transition: background .2s ease, padding .2s ease;
}

.entry-card:not(.has-thumbnail) {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.entry-card:hover {
  padding-left: 16px;
  background: var(--surface);
}

.entry-thumb {
  display: block;
  width: 120px;
  height: 80px;
  border-radius: 4px;
  background-color: var(--surface-muted);
  background-position: center;
  background-size: cover;
}

.entry-body {
  min-width: 0;
}

.entry-cat {
  display: block;
  margin-bottom: 5px;
}

.entry-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.38;
}

.entry-date {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.pagination a.page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.pagination .current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

/* Long-form articles */
.article {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-top: 34px;
}

.article-header {
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.article-meta a {
  color: var(--coral);
}

.entry-title.article-title,
.article .entry-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.article-content,
.naver-imported-post {
  max-width: var(--content);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.92;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > p:first-of-type::first-letter {
  float: left;
  padding: 8px 12px 0 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 3.2em;
  font-weight: 800;
  line-height: .82;
}

.article-content p,
.article-content li {
  line-height: 1.92;
}

.article-content p,
.naver-imported-post p {
  margin-bottom: 1.35em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2.2em 0 .7em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.28;
}

.article-content h2 {
  font-size: 31px;
}

.article-content h3 {
  font-size: 25px;
}

.article-content a,
.naver-imported-post a {
  color: var(--blue-strong);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.article-content img,
.naver-imported-post img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.7em auto;
  border-radius: var(--radius);
}

.article-content figure {
  margin: 2em auto;
}

.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 2px 0 2px 22px;
  border-left: 4px solid var(--coral);
  color: var(--ink);
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content code {
  padding: .12em .32em;
  border-radius: 4px;
  background: var(--surface-muted);
  font-size: .92em;
}

.article-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: #152126;
  color: #f4f8f5;
}

.naver-imported-post p,
.naver-imported-post span,
.naver-imported-post div,
.naver-imported-post li {
  font-size: 19px !important;
  line-height: 1.92 !important;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: min(100%, var(--content));
  margin: 54px auto 0;
}

.post-navigation a {
  display: block;
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .18s ease, transform .18s ease;
}

.post-navigation a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.post-navigation span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-transform: uppercase;
}

.post-navigation strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.post-navigation .nav-next {
  text-align: right;
}

.empty-state {
  width: min(100%, 720px);
  margin: 40px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 46px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .section-intro,
  .portfolio-about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-intro p,
  .portfolio-about p {
    max-width: 54ch;
  }

  .about-mark {
    display: none;
  }

  .journey-tile,
  .journey-tile:nth-child(1),
  .journey-tile:nth-child(2) {
    grid-column: span 6;
    min-height: 290px;
  }

  .story-card,
  .story-card--feature,
  .story-card--tall {
    grid-column: span 6;
  }

  .story-card--feature .story-media,
  .story-card--tall .story-media {
    aspect-ratio: 4 / 3;
  }

  .lead-card {
    grid-template-columns: 1fr;
  }

  .lead-art {
    min-height: 330px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .reading-progress {
    top: 46px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .site-main,
  .site-footer-inner {
    width: min(calc(100% - 28px), var(--wide));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    font-size: 13px;
  }

  .site-title {
    font-size: 16px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    display: none;
    min-width: 176px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 0;
  }

  .site-nav a,
  .site-nav .theme-toggle {
    min-height: 42px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 0 10px;
  }

  .site-nav .theme-toggle {
    justify-self: start;
    margin: 4px 4px 2px;
  }

  .site-header.is-portfolio:not(.is-compact) .site-nav.is-open {
    border-color: rgb(255 255 255 / 28%);
    background: rgb(8 17 22 / 94%);
    color: #ffffff;
  }

  .site-main {
    padding: 28px 0 72px;
  }

  .portfolio-home {
    margin-top: -28px;
  }

  .portfolio-hero-inner,
  .portfolio-inner {
    width: min(calc(100% - 32px), var(--wide));
  }

  .portfolio-hero-inner {
    padding: 120px 0 26px;
  }

  .portfolio-eyebrow,
  .section-kicker {
    font-size: 11px;
  }

  .portfolio-hero h1 {
    max-width: 10ch;
    margin-top: 13px;
    font-size: clamp(42px, 13vw, 66px);
    line-height: 1.1;
  }

  .portfolio-hero-copy p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
  }

  .portfolio-hero-footer {
    grid-template-columns: 1fr 42px;
    gap: 18px;
    padding-top: 18px;
  }

  .portfolio-count {
    display: none;
  }

  .portfolio-latest {
    padding-left: 0;
    border-left: 0;
  }

  .portfolio-latest a {
    max-width: 30ch;
    font-size: 15px;
  }

  .portfolio-section {
    padding: 76px 0;
  }

  .section-intro,
  .section-intro--stories {
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-intro h2,
  .portfolio-about h2,
  .portfolio-archive-intro h1 {
    margin-top: 10px;
    font-size: clamp(31px, 9vw, 44px);
  }

  .section-intro p,
  .portfolio-about p,
  .portfolio-archive-intro p {
    font-size: 16px;
  }

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

  .journey-tile,
  .journey-tile:nth-child(1),
  .journey-tile:nth-child(2) {
    grid-column: auto;
    min-height: 245px;
  }

  .journey-tile-body {
    padding: 20px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .story-card,
  .story-card--feature,
  .story-card--tall {
    grid-column: auto;
  }

  .story-card h3,
  .story-card--feature h3 {
    max-width: none;
    font-size: 20px;
    line-height: 1.36;
  }

  .story-card--feature .story-media,
  .story-card--tall .story-media {
    aspect-ratio: 4 / 3;
  }

  .story-card p {
    font-size: 14px;
  }

  .portfolio-archive-intro {
    padding: 118px 0 54px;
  }

  .masthead {
    padding-top: 42px;
  }

  .masthead-title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .masthead-lede {
    font-size: 16px;
  }

  .meta-strip {
    gap: 8px 18px;
  }

  .chip {
    padding: 7px 12px;
    font-size: 12px;
  }

  .lead-card {
    margin: 30px 0 52px;
  }

  .lead-art {
    min-height: 220px;
  }

  .lead-body {
    padding: 26px 22px 30px;
  }

  .lead-title {
    font-size: 28px;
  }

  .entry-card,
  .entry-card:not(.has-thumbnail) {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 4px;
  }

  .entry-card:hover {
    padding-left: 8px;
  }

  .entry-thumb {
    width: 86px;
    height: 62px;
  }

  .entry-title {
    font-size: 17px;
  }

  .entry-date {
    display: none;
  }

  .article {
    padding-top: 16px;
  }

  .article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .article-content,
  .naver-imported-post {
    font-size: 17px;
    line-height: 1.86;
  }

  .naver-imported-post p,
  .naver-imported-post span,
  .naver-imported-post div,
  .naver-imported-post li {
    font-size: 17px !important;
    line-height: 1.86 !important;
  }

  .article-content > p:first-of-type::first-letter {
    font-size: 2.8em;
  }

  .article-content h2 {
    font-size: 27px;
  }

  .article-content h3 {
    font-size: 22px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0 36px;
  }
}

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

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