/* BUZ Media — sample media site (Newsprint tone)
   Independent of the main site's styles.css: its own palette, type and layout.
   Plain static pages; no build step. */

/* Warm Magazine tokens (chosen design). Contrast: ink/paper 14.8:1, accent text/paper 5.1:1,
   muted/paper 5.9:1, white on accent buttons 5.7:1 */
:root {
  --paper: #FBF7F0;        /* cream */
  --paper-shade: #F1E9DC;  /* boxes, bands */
  --ink: #2A211B;          /* warm near-black: text */
  --riso: #B0432C;         /* accent fill (buttons, marks) */
  --riso-text: #A33F29;    /* accent as small text (5.3:1 on paper; use on paper, not on paper-shade) */
  --muted: #6B5E52;        /* captions */
  --rule: #D9CDB9;         /* hairlines and dividers */
  --on-accent: #FFFFFF;    /* text on accent-filled buttons */

  /* Fonts (chosen): Lora draws Latin letters, Nanum Myeongjo draws Hangul. */
  --font-display: "Lora", "Nanum Myeongjo", Georgia, serif;
  --font-body: "Lora", "Nanum Myeongjo", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 42rem;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

/* Korean: break between words, not inside them */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }

/* one HTML file carries both languages; the active one is chosen by <html lang> */
html[lang="ko"] [data-lang="en"],
html[lang="en"] [data-lang="ko"] { display: none !important; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font: 500 13px/1 var(--font-mono);
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- concept notice strip ---------- */
.strip {
  margin: 0;
  padding: 6px 16px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  font: 500 11px/1.5 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.strip strong { font-weight: 700; }

/* ---------- header ---------- */
.head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 14px;
  border-bottom: 3px double var(--rule);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand span {
  background: linear-gradient(transparent 62%, var(--riso) 62%);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a { display: inline-block; padding: 8px 0; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }

.head-tools { display: flex; align-items: center; gap: 10px; }

.btn,
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover,
.lang-btn:hover { background: var(--ink); color: var(--paper); }
.btn--riso { background: var(--riso); color: var(--on-accent); }
.btn--riso:hover { background: var(--ink); color: var(--paper); }

/* ---------- shared bits ---------- */
.kicker {
  margin: 0 0 8px;
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--riso-text);
}

.meta {
  margin: 0;
  font: 500 12px/1.5 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.read-link {
  display: inline-block;
  margin-top: 10px;
  font: 500 13px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--riso);
}
.read-link:hover { background: var(--riso); color: var(--on-accent); }

h1, h2, h3 { font-family: var(--font-display); }

.section-title {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- home: lead row ---------- */
.lead-row { border-bottom: 1px solid var(--rule); padding: 32px 0; }

.lead h1,
.lead h2 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lead h1 a, .lead h2 a, .card h2 a { text-decoration: none; }
.lead h1 a:hover, .lead h2 a:hover, .card h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead .meta { margin-top: 14px; }
.lead .deck { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 36em; }

.side { margin-top: 28px; border-top: 1px solid var(--rule); }
.card { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.card:last-child { border-bottom: 0; }
.card h2 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
}
.card p { margin: 0; }

@media (min-width: 900px) {
  .lead-row { display: grid; grid-template-columns: 1.8fr 1fr; gap: 0; }
  .lead { padding-right: 36px; border-right: 1px solid var(--rule); }
  .side { margin-top: 0; border-top: 0; padding-left: 36px; }
  .card:first-child { padding-top: 0; }
}

/* ---------- home: latest list with filter ---------- */
.latest { padding: 40px 0 8px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
  margin-bottom: 8px;
}
.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip:hover { background: var(--paper-shade); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.search {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 320px;
  min-height: 38px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1 var(--font-body);
}
.search::placeholder { color: var(--muted); opacity: 1; }

.story-list { margin: 0; padding: 0; list-style: none; }
.story-row {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.story-row:last-child { border-bottom: 1px solid var(--rule); }
.story-row h3 {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
}
.story-row h3 a { text-decoration: none; }
.story-row h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.story-row p { margin: 0; }
.story-row .tag { margin: 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--riso-text); }

@media (min-width: 720px) {
  .story-row { grid-template-columns: 130px 1fr auto; align-items: baseline; gap: 24px; }
}

.empty { padding: 28px 0; color: var(--muted); }

/* ---------- home: subscribe band & principles ---------- */
.band {
  margin-top: 48px;
  padding: 36px 0;
  background: var(--paper-shade);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.band h2 { margin: 0 0 4px; font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; }
.band p { margin: 0; max-width: 34em; }

.principles { padding: 44px 0 8px; }
.principles ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
}
.principles li { padding: 20px; border-bottom: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 0; }
.principles h3 { margin: 0 0 6px; font-weight: 700; font-size: 20px; line-height: 1.25; }
.principles p { margin: 0; }
@media (min-width: 800px) {
  .principles ul { grid-template-columns: repeat(3, 1fr); }
  .principles li { border-bottom: 0; border-right: 1px solid var(--rule); }
  .principles li:last-child { border-right: 0; }
}

/* ---------- article ---------- */
.article { max-width: var(--measure); margin: 0 auto; padding: 44px 20px 16px; }
.article h1 {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.article .deck { margin: 0 0 18px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; color: var(--muted); }
.article .byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.article .body p { margin: 0 0 1.25em; font-size: 18px; line-height: 1.9; }

.box {
  margin: 32px 0;
  padding: 18px 22px;
  background: var(--paper-shade);
  border: 1px solid var(--rule);
}
.box h2 { margin: 0 0 8px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.box ul { margin: 0; padding-left: 1.2em; }
.box li { margin: 4px 0; }

.comments { margin: 36px 0 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
.comments h2 { margin: 0 0 6px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cm-list p { margin: 0; line-height: 1.7; }
.cm-list .cm-nick { margin-bottom: 2px; font-weight: 700; font-size: 14px; }
.comments .note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.copy-status { font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); min-height: 1em; }

.next-prev {
  display: grid;
  gap: 16px;
  max-width: var(--measure);
  margin: 40px auto 0;
  padding: 24px 20px 0;
  border-top: 3px double var(--rule);
}
.next-prev a { text-decoration: none; display: block; padding: 6px 0; }
.next-prev a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.next-prev strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.3; }
@media (min-width: 720px) { .next-prev { grid-template-columns: 1fr 1fr; gap: 32px; } .next-prev .to-next { text-align: right; } }

.related { padding-top: 40px; }

/* ---------- subscribe / about ---------- */
.page { max-width: var(--measure); margin: 0 auto; padding: 44px 20px 16px; }
.page h1 {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.page > p { margin: 0 0 1.2em; }
.page h2 { margin: 40px 0 10px; font-weight: 700; font-size: 24px; line-height: 1.2; }
.page ul.plain { margin: 0 0 1.2em; padding-left: 1.2em; }
.page ul.plain li { margin: 6px 0; }

.form { margin: 28px 0; padding: 22px; border: 1px solid var(--rule); background: var(--paper-shade); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; margin-bottom: 6px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.field input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1 var(--font-body);
}
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 400 16px/1.4 var(--font-body); text-transform: none; letter-spacing: 0; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--ink); }
.error { margin: 6px 0 0; color: var(--riso-text); font: 500 13px/1.4 var(--font-mono); }
.form .note { margin: 14px 0 0; font: 400 14px/1.6 var(--font-body); color: var(--muted); }
.notice { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--rule); background: var(--paper); }

/* ---------- footer ---------- */
.site-foot { margin-top: 72px; border-top: 3px double var(--rule); padding: 26px 0 36px; }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.site-foot ul a { text-decoration: none; padding: 6px 0; display: inline-block; }
.site-foot ul a:hover { text-decoration: underline; }
.concept-note {
  margin: 0;
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.concept-note strong { font-weight: 700; }

/* ---------- Warm Magazine refinements (the chosen design) ---------- */
body { line-height: 1.85; }
.lead h1,
.article h1,
.page h1 { font-weight: 700; }
.brand { font-style: italic; font-weight: 700; }
.brand span { background: none; color: var(--riso-text); }
.head-main,
.site-foot,
.next-prev { border-width: 1px; border-style: solid; border-left: 0; border-right: 0; }
.head-main { border-top: 0; }
.site-foot { border-bottom: 0; }
.next-prev { border-bottom: 0; }
:is(.btn, .lang-btn, .chip, .search) { border-radius: 999px; border-color: #B8A98F; }
.search { padding: 0 16px; }
.btn--riso { border-color: var(--riso); }
:is(.box, .form, .notice, .principles ul) { border-radius: 16px; }
.principles ul { overflow: hidden; }
.card { padding: 22px 0; }
.story-row { padding: 24px 0; }
.band { background: var(--paper-shade); border-color: var(--rule); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .article .body p { font-size: 17px; }
  .head-tools { width: 100%; }
}

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

@media print {
  .strip, .site-nav, .head-tools, .band, .filters, .next-prev, .related, .site-foot ul { display: none !important; }
  body { background: #fff; }
}

a.lang-btn { text-decoration: none; }
