:root {
  --paper: #f4f0e8;
  --ink: #171615;
  --muted: #6d675f;
  --line: #d8d0c3;
  --accent: #245744;
  --accent-soft: #dfe8dd;
  --white: #fffaf2;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.68;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  z-index: 10;
}
.skip-link:focus { top: 16px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(244, 240, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}
.brand strong,
.brand small { display: block; }
.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.top-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
}
.top-nav a:hover { color: var(--ink); }
.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(44px, 8vw, 96px) clamp(18px, 4vw, 56px) clamp(28px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}
.archive-hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 7vw, 98px);
}
.archive-hero p:last-child {
  align-self: end;
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
}
.archive-tools {
  padding: 22px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.search-box {
  display: grid;
  gap: 8px;
  max-width: 680px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.filter-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.filter-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.post-card {
  min-height: 280px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-card a {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: clamp(20px, 2.6vw, 34px);
  text-decoration: none;
}
.post-card:hover {
  background: var(--accent-soft);
}
.card-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.post-card h2 {
  font-size: clamp(24px, 2.5vw, 36px);
}
.post-card p {
  margin: 0;
  color: var(--muted);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag-row span {
  border: 1px solid var(--line);
  padding: 4px 7px;
  color: var(--muted);
  font-size: 12px;
}
.empty-state {
  margin: 40px clamp(18px, 4vw, 56px);
  color: var(--muted);
}
.simple-page,
.article {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
}
.simple-page h1,
.article h1 {
  font-size: clamp(38px, 6vw, 72px);
}
.simple-page p,
.article-header p {
  color: var(--muted);
  font-size: 18px;
}
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.article-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.article-notice {
  margin: 28px 0;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 16px;
  color: #304536;
  font-size: 15px;
}
.article-body {
  font-size: 18px;
}
.article-body h2,
.article-body h3 {
  margin-top: 2.1em;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.28;
}
.article-body h2 {
  font-size: 28px;
}
.article-body h3 {
  font-size: 22px;
}
.article-body p,
.article-body li {
  color: #25221f;
}
.article-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}
.article-body th {
  background: var(--accent-soft);
}
.article-body blockquote {
  margin: 28px 0;
  border-left: 3px solid var(--line);
  padding-left: 18px;
  color: var(--muted);
}
.article-body .wp-block-image,
.article-body figure {
  margin: 30px 0;
}
.article-body figcaption {
  color: var(--muted);
  font-size: 14px;
}
.article-meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.article-meta code {
  white-space: normal;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer p {
  margin: 0;
}
@media (max-width: 980px) {
  .archive-hero {
    grid-template-columns: 1fr;
  }
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .post-card {
    min-height: auto;
  }
}