@font-face { font-family: 'Baloo Da 2'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/baloo-da-2-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Baloo Da 2'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/baloo-da-2-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Baloo Da 2'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/baloo-da-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Baloo Da 2'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/baloo-da-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Baloo Da 2'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/baloo-da-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Serif KR'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/noto-serif-kr-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f3eddc;
  --fg-light-base-body: #1d2a21;
  --fg-light-base-heading: #1d2a21;
  --fg-light-base-muted: #4a5a4e;
  --fg-light-base-link: #2c6a42;
  --fg-light-base-inverse: #24352a;
  --bg-light-card: #fbf7ec;
  --fg-light-card-body: #1d2a21;
  --fg-light-card-heading: #1d2a21;
  --fg-light-card-muted: #4a5a4e;
  --fg-light-card-link: #2c6a42;
  --fg-light-card-inverse: #24352a;
  --bg-light-elevated: #e3e9d6;
  --fg-light-elevated-body: #1d2a21;
  --fg-light-elevated-heading: #1d2a21;
  --fg-light-elevated-muted: #4a5a4e;
  --fg-light-elevated-link: #2c6a42;
  --fg-light-elevated-inverse: #24352a;
  --brand-light-accent: #2c6a42;
  --brand-light-accent-hover: #1f5233;
  --brand-light-on-accent: #fbf7ec;
  --focus-light-ring: #2c6a42;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #6d8471;
  --border-light-subtle: #c8d2bd;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --font-heading: 'Baloo Da 2', 'Trebuchet MS', sans-serif;
  --font-body: 'Noto Serif KR', Georgia, serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --leaf: var(--brand-light-accent);
  --leaf-deep: var(--brand-light-accent-hover);
  --rule: var(--border-light-subtle);
  --rule-strong: var(--border-light-default);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--fg-heading);
  line-height: 1.15;
  font-weight: 600;
  overflow-wrap: normal;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.6rem 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1.15rem; }

a { color: var(--fg-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--leaf-deep); text-decoration-thickness: 2px; }

/* ---------- Journal frame ---------- */

.journal { min-height: 100vh; }

.journal-page {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- Masthead (phone first) ---------- */

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.masthead-brand { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.masthead-brand .site-logo { width: 176px; height: auto; display: block; }

.masthead-sprig { display: none; }

.masthead nav.site-nav { display: none; }

.site-menu { flex: 0 0 auto; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--leaf);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--fg-body);
  background: var(--bg-light-card);
}

.site-menu > summary:hover { background: var(--bg-light-elevated); color: var(--fg-body); }

.menu-icon {
  display: inline-block;
  position: relative;
  width: 1rem;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  box-shadow: 0 -5px 0 var(--leaf), 0 5px 0 var(--leaf);
}

.site-menu[open] .menu-icon { box-shadow: none; transform: rotate(45deg); }

.site-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  background: var(--bg-light-card);
  border-bottom: 2px solid var(--leaf);
  box-shadow: 0 18px 30px -20px rgba(29, 42, 33, 0.45);
}

.site-menu > ul a {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.site-menu > ul li:last-child a { border-bottom: 0; }

.site-menu > ul a:hover { color: var(--leaf-deep); text-decoration: underline; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding: 1.25rem var(--gutter) 0; font-size: 0.92rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--fg-muted); }

/* ---------- Prose ---------- */

.prose { max-width: 38rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--leaf); }
.prose > :first-child { margin-top: 0; }

.photo-hero, .photo-inline { margin: 0 0 1.75rem; }
.photo-hero img { display: block; width: 100%; object-fit: cover; border-radius: 2.75rem 0.5rem 2.75rem 0.5rem; }
.photo-inline img { display: block; border-radius: 1.25rem; }

/* ---------- Home: cover split ---------- */

.cover {
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3.5rem;
}

.cover-head { position: relative; margin-bottom: 2.25rem; }

.cover-art { display: block; width: min(15rem, 62vw); height: auto; margin: 0 0 1.5rem auto; }

.cover-head h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); max-width: 12ch; line-height: 1.02; }

.cover-lines { max-width: 34rem; border-left: 3px solid var(--leaf); padding-left: 1.1rem; }

.display-line { margin: 0 0 0.6rem; font-size: 1.12rem; line-height: 1.6; }
.display-line:first-child { font-size: 1.28rem; font-style: normal; font-weight: 600; }

.cover-column {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 0 2.5rem 0 2.5rem;
  border: 1px solid var(--rule);
  align-self: start;
}

.cover-column h2 { margin: 0 0 1rem; font-size: 1.45rem; }

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

.entry-stack li { padding: 0.85rem 0; border-top: 1px solid var(--rule); }

.entry-stack a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.entry-stack a:hover { text-decoration: underline; color: var(--leaf-deep); }

.entry-topic { display: block; font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- Topic hub: opener and grid ---------- */

.opener { padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3.5rem; }

.opener-head { margin-bottom: 2.25rem; }
.opener-head h1 { max-width: 18ch; }
.opener-art { display: block; width: 100%; max-width: 44rem; height: auto; border-radius: 1.5rem 1.5rem 3rem 0.5rem; }

.opener-body { margin-bottom: 2.5rem; }

.entry-grid {
  padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem) 2rem;
  border-radius: 2.25rem 0.5rem 2.25rem 0.5rem;
}

.entry-grid h2 { margin: 0 0 1.25rem; }

.entry-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.entry-grid li {
  background: var(--bg-light-card);
  border-radius: 1.25rem 0.35rem 1.25rem 0.35rem;
  border-top: 4px solid var(--leaf);
}

.entry-grid li a {
  display: block;
  min-height: 6.5rem;
  padding: 1rem 1.15rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  color: var(--brand-light-accent);
}

.entry-grid li a:hover { color: var(--leaf-deep); text-decoration: underline; }

/* ---------- Article: two-column feature ---------- */

.feature { padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3.5rem; }

.feature-head h1 { max-width: 20ch; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }

.feature-spread { display: grid; gap: 2rem; margin-top: 2rem; }

.feature-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 0.82;
  margin: 0.35rem 0.6rem 0 0;
  color: var(--brand-light-accent);
}

.feature-side {
  align-self: start;
  padding: 1.5rem;
  border-radius: 50% 50% 1.5rem 1.5rem / 30% 30% 1.5rem 1.5rem;
  max-width: 18rem;
}

.feature-art { display: block; width: 100%; height: auto; }

/* ---------- About: editor's letter ---------- */

.letter { padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3.5rem; }

.letter-panel {
  max-width: 44rem;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border-radius: 0.5rem 3rem 0.5rem 3rem;
  border: 1px solid var(--rule);
}

.letter-sign {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.letter-vial { width: 2.6rem; height: auto; flex: 0 0 auto; }

.letter-name { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; font-style: normal; }

/* ---------- Contact: letter to the editor ---------- */

.editor { padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3.5rem; }

.editor-frame {
  max-width: 42rem;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border: 1.5px solid var(--leaf);
  border-radius: 1.75rem;
}

.editor-note { margin-bottom: 1.75rem; }

.editor-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.field { margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }

.field label { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; }

.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--fg-body);
  background: var(--bg-light-base);
  border: 1.5px solid var(--rule-strong);
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 10rem; }

.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--leaf); }

.field-wide:last-child { margin: 0.4rem 0 0; }

.editor-submit {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
  cursor: pointer;
}

.editor-submit:hover { background: var(--brand-light-accent-hover); color: var(--brand-light-on-accent); }
.editor-submit:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ---------- Thank you ---------- */

.thanks { padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3.5rem; }

.thanks-card {
  max-width: 38rem;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border-radius: 2.5rem 0.5rem 2.5rem 0.5rem;
  border: 1px solid var(--rule);
}

.thanks-art { display: block; width: 5.5rem; height: auto; margin-bottom: 1.25rem; }

.thanks-back { margin: 1.5rem 0 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }

/* ---------- Colophon ---------- */

.colophon {
  margin-top: auto;
  padding: 1.75rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--rule);
}

.colophon-line { margin: 0 0 0.35rem; max-width: 36rem; }
.colophon-name { margin: 0; font-family: var(--font-heading); font-weight: 500; }

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  .editor-form { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .cover-art { float: right; margin: 0 0 1rem 1.5rem; }
}

@media (min-width: 48rem) {
  .feature-spread { grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem; }
  .feature-side { position: static; }
}

@media (min-width: 64rem) {
  .journal {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    align-items: stretch;
  }

  .masthead {
    position: static;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.75rem;
    padding: 2rem 1.5rem 2.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }

  .masthead-brand .site-logo { width: 100%; max-width: 13.5rem; }

  .masthead details.site-menu { display: none; }

  .masthead nav.site-nav { display: block; }

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

  .site-nav li + li { margin-top: 0.15rem; }

  .site-nav a {
    display: block;
    padding: 0.45rem 0.75rem;
    border-left: 3px solid var(--rule);
    border-radius: 0 0.75rem 0.75rem 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
  }

  .site-nav a:hover {
    border-left-color: var(--leaf);
    background: var(--bg-light-elevated);
    color: var(--leaf-deep);
    text-decoration: underline;
  }

  .masthead-sprig { display: block; width: 5.5rem; height: auto; margin-top: auto; opacity: 1; }

  .breadcrumbs { padding-top: 2rem; }
}

@media (min-width: 72rem) {
  .cover {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3rem;
    align-items: start;
  }

  .cover-column { position: static; margin-top: 4.5rem; }
}

@media (min-width: 90rem) {
  .journal { grid-template-columns: 18rem minmax(0, 1fr); }
  .journal-page > * { max-width: 78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
