:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #202124;
  --muted: #646861;
  --line: #dedbd2;
  --accent: #276749;
  --accent-strong: #174a35;
  --accent-soft: #e8f2ec;
  --warm: #9f6b1f;
  --shadow: 0 18px 45px rgba(38, 43, 34, 0.08);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-color: rgba(39, 103, 73, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-title__mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-main {
  padding: 4rem 0 5rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2rem 0 4rem;
}

.home-hero__copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.page-hero h1,
.post-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-hero p,
.page-hero p,
.post-header p {
  max-width: 680px;
  color: var(--muted);
}

.home-hero__copy > p:last-child {
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.home-hero__panel {
  display: grid;
  gap: 1rem;
}

.home-hero__panel a {
  display: grid;
  align-content: end;
  min-height: 180px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.home-hero__panel span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.home-hero__panel strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.35rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.25;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-list--full {
  gap: 1.25rem;
}

.post-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-card h2,
.post-card h3 {
  margin: 0;
  line-height: 1.35;
}

.post-card h2 {
  font-size: 1.35rem;
}

.post-card h3 {
  font-size: 1.15rem;
}

.post-card h2 a,
.post-card h3 a {
  text-decoration: none;
}

.post-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.post-card__meta {
  margin: 0 0 0.45rem !important;
  color: var(--accent) !important;
  font-size: 0.88rem;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.page-hero,
.post {
  max-width: 820px;
}

.page-hero {
  padding: 1rem 0 2.5rem;
}

.page-hero--center {
  margin: 0 auto;
  text-align: center;
}

.page-content {
  max-width: 820px;
}

.post {
  margin: 0 auto;
}

.post-header {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-meta span::before {
  content: "# ";
  color: var(--accent);
}

.prose {
  color: var(--text);
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
  line-height: 1.35;
}

.prose p,
.prose li {
  color: #363a35;
}

.prose code {
  border-radius: 5px;
  background: #f0eee7;
  padding: 0.12rem 0.35rem;
  font-size: 0.92em;
}

.prose pre {
  overflow-x: auto;
  border-radius: var(--radius);
  background: #202124;
  color: #f7f5ef;
  padding: 1rem;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-nav a,
.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.45rem 0.85rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .site-main {
    padding-top: 2.5rem;
  }

  .home-hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 0;
  }

  .home-hero__panel a {
    min-height: 132px;
  }

  .section-grid {
    gap: 1rem;
    padding: 2.25rem 0;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 0;
  }
}
