@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;700&display=swap');

:root { --font-plex-kr: 'IBM Plex Sans KR'; }

:root {
  --cream: #f6f0e6;
  --cream-deep: #efe5d3;
  --paper: #fffaf2;
  --ink: #33271f;
  --ink-soft: #5f5043;
  --muted: #998976;
  --line: #e7dac4;
  --line-soft: #efe7d8;
  --rust: #b5562b;
  --rust-deep: #8d3f1d;
  --rust-soft: #f6e3d4;
  --amber: #c98a3c;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 16px 40px rgba(141, 63, 29, 0.12);
  --shadow-soft: 0 8px 20px rgba(141, 63, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% -6%, rgba(181, 86, 43, 0.1), transparent 26rem),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-plex-kr), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--rust-deep);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-plex-kr), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
}

main {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Briefing header (left brand + week chip, single row) ---------- */
.brief-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(246, 240, 230, 0));
}

.brief-header-inner {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--rust-soft);
  color: var(--rust-deep);
  border: 1px solid #eccfb8;
}

.brand-text strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-kicker {
  display: inline-block;
  margin-top: 3px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.week-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.week-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px rgba(181, 86, 43, 0.16);
}

.week-chip-week {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}

.week-chip-range {
  font-size: 0.82rem;
  color: var(--muted);
}

.brief-nav {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.brief-nav a:hover {
  color: var(--rust-deep);
}

/* ---------- Lead (left aligned, text + visual) ---------- */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 56px 0 40px;
}

.lead-stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--rust-soft);
  color: var(--rust-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.lead-stamp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
}

.lead h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.34;
}

.lead-lede {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.85;
  max-width: 34ch;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.lead-meta span {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

.lead-visual {
  height: clamp(220px, 30vw, 340px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(51, 39, 31, 0.05), rgba(51, 39, 31, 0.22)),
    url("/images/autumnsignal-lead.jpg") center / cover no-repeat,
    linear-gradient(150deg, #e9c8a4, #d98a52 55%, #b5562b);
  box-shadow: var(--shadow);
}

/* ---------- Section heading ---------- */
.band-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rust-soft);
}

.band-heading h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.band-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.weekly,
.archive,
.briefs,
.about {
  padding: 46px 0;
}

/* ---------- Weekly change feed (signature, compact dated cards) ---------- */
.change-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.change-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.change-card:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow);
}

.change-date {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--rust-deep);
  padding-top: 2px;
  white-space: nowrap;
}

.change-kind {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.change-title {
  display: block;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.change-note {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.68;
}

/* ---------- Weekly archive strip (signature calendar) ---------- */
.archive-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.archive-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.archive-cell.is-current {
  background: var(--rust-soft);
  border-color: #e9c1a6;
}

.archive-week {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--rust-deep);
  letter-spacing: -0.01em;
}

.archive-range {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.archive-count {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.archive-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rust);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
}

/* ---------- Recent briefs (date-first rows) ---------- */
.brief-list {
  display: grid;
  gap: 10px;
}

.brief-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.brief-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.brief-row-date {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rust-deep);
  white-space: nowrap;
}

.brief-row-kind {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 700;
}

.brief-row-text strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.brief-row-text p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.62;
}

.brief-row-go {
  color: var(--rust);
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---------- About ---------- */
.about h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  margin-bottom: 14px;
}

.about-lede {
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  max-width: 760px;
}

.note-list li {
  position: relative;
  padding: 16px 20px 16px 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  line-height: 1.68;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--rust);
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  width: min(1060px, calc(100% - 40px));
  margin: 36px auto 0;
  padding: 30px 0 54px;
  border-top: 2px solid var(--rust-soft);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-size: 1.06rem;
}

.footer-desc {
  margin: 8px 0 16px;
  max-width: 520px;
  line-height: 1.65;
  font-size: 0.92rem;
}

.footer-disclosure {
  display: inline-block;
  margin: 0;
  padding: 8px 15px;
  border-radius: 8px;
  background: var(--rust-soft);
  color: var(--rust-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- Article (single column, date-first) ---------- */
.article-shell {
  max-width: 760px;
  padding: 30px 0 80px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--rust-deep);
}

.article-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 50px);
  box-shadow: var(--shadow-soft);
}

.article-datebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.article-date-main {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rust-deep);
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--rust-soft);
}

.article-date-upd {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}

.article-kind {
  margin-left: auto;
  display: inline-block;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
}

.article-head h1 {
  margin: 16px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.34;
}

.article-byline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.change-summary {
  margin: 26px 0 6px;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.change-summary-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--rust-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.change-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.72;
}

.article-content {
  margin-top: 28px;
  color: #3a2d24;
  font-size: 1.04rem;
  line-height: 1.85;
}

.article-content h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  padding-left: 14px;
  border-left: 5px solid var(--rust);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--rust-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.article-content ul li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  line-height: 1.62;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--rust);
  transform: rotate(45deg);
}

.article-content ol {
  counter-reset: step;
}

.article-content ol li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  line-height: 1.62;
  counter-increment: step;
}

.article-content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--rust-soft);
  color: var(--rust-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-content blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border: 1px solid #ecd9c3;
  border-left: 4px solid var(--amber);
  background: #fbf2e6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--rust-deep);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--rust-soft);
  color: var(--rust-deep);
  font-weight: 700;
}

.article-content tbody tr:nth-child(even) td {
  background: #fdf6ec;
}

.faq-section,
.source-note {
  margin-top: 38px;
}

.faq-section h2,
.source-note h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  margin-bottom: 8px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--rust);
  font-weight: 700;
}

.faq-section details[open] summary::before {
  content: "–";
}

.faq-section details p,
.source-note p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.faq-section details p {
  margin: 10px 0 0 1.2em;
}

.source-note {
  padding: 20px 24px;
  background: #fbf4ea;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.article-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rust-deep);
  font-weight: 700;
}

.back-link::before {
  content: "←";
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .archive-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brief-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brief-nav {
    gap: 14px 20px;
  }

  .change-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brief-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brief-row-go {
    display: none;
  }

  .archive-strip {
    grid-template-columns: 1fr;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
