:root {
  --bg: #f8f7f2;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #101010;
  --muted: #66655f;
  --line: rgba(16, 16, 16, 0.1);
  --shadow: 0 22px 60px rgba(16, 16, 16, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.045), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero,
.section,
.article-shell {
  padding-top: 44px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.section-head h2,
.article-section h2 {
  margin-top: 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.post-card,
.article-shell {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.post-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card h3 {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.post-summary,
.article-shell p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.9;
}

.read-link,
.inline-link {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.read-link {
  display: inline-block;
  margin-top: 18px;
}

.article-shell h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.article-section + .article-section {
  margin-top: 34px;
}

.article-list {
  margin-top: 16px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section,
  .article-shell {
    padding-top: 34px;
  }

  .post-card,
  .article-shell {
    padding: 20px;
    border-radius: 22px;
  }
}
