:root {
  --paper: #f2efe7;
  --paper-deep: #e6e0d3;
  --ink: #17201d;
  --muted: #676d68;
  --line: #c8c2b5;
  --accent: #e85c3f;
  --forest: #163f36;
  --white: #fbfaf6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 16px; padding: 12px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { width: min(1320px, calc(100% - 48px)); height: 88px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: Georgia, serif; font-style: italic; }
.main-nav { display: flex; gap: 34px; font-size: 14px; }
.main-nav a, .admin-link, .section-heading > a { border-bottom: 1px solid transparent; }
.main-nav a:hover, .admin-link:hover, .section-heading > a:hover { border-color: currentColor; }
.admin-link { justify-self: end; font-size: 14px; font-weight: 700; }

.hero { min-height: 670px; padding: 112px 0 72px; display: flex; flex-direction: column; justify-content: space-between; }
.eyebrow, .section-number, .article-meta, .project-type { font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.eyebrow { margin: 0 0 26px; color: var(--accent); }
.hero h1 { max-width: 1120px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 9.2vw, 128px); font-weight: 400; line-height: .92; letter-spacing: -.065em; word-break: keep-all; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 70px; }
.hero-copy { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.7; word-break: keep-all; }
.circle-link { flex: 0 0 auto; width: 100px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; transition: .2s ease; }
.circle-link:hover { background: var(--ink); color: var(--paper); transform: translateY(4px); }
.circle-link b { font-size: 20px; font-weight: 400; }

.manifesto { padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(25px, 3.5vw, 43px); line-height: 1.35; letter-spacing: -.035em; word-break: keep-all; }
.manifesto p { margin: 0; }
.manifesto p:last-child { margin-left: 12%; }
.manifesto strong { color: var(--accent); font-weight: 400; font-style: italic; }

.content-section { padding: 128px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 54px; }
.section-heading h2 { margin: 12px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -.05em; }
.section-heading > a { padding-bottom: 4px; font-size: 13px; font-weight: 700; }
.section-number { margin: 0; color: var(--accent); }
.writing-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 7%; }
.featured-writing a { display: block; }
.visual { min-height: 390px; display: flex; align-items: end; padding: 36px; overflow: hidden; background: var(--forest); color: var(--paper); }
.visual-notes { background: radial-gradient(circle at 75% 20%, #d9a648 0 5%, transparent 5.5%), linear-gradient(145deg, transparent 55%, rgba(232,92,63,.92) 55%), var(--forest); }
.visual span { font-family: Georgia, serif; font-size: clamp(52px, 7vw, 90px); font-style: italic; line-height: .72; letter-spacing: -.08em; opacity: .92; }
.article-meta { display: flex; justify-content: space-between; margin-top: 22px; color: var(--muted); }
.featured-writing h3, .writing-list h3 { margin: 13px 0 8px; font-family: Georgia, "Noto Serif KR", serif; font-size: 30px; font-weight: 400; letter-spacing: -.035em; }
.featured-writing p, .writing-list p { margin: 0; color: var(--muted); line-height: 1.65; }
.writing-list article { position: relative; padding: 8px 48px 34px 0; border-bottom: 1px solid var(--line); }
.writing-list article + article { padding-top: 36px; }
.writing-list .article-meta { margin-top: 0; }
.writing-list .arrow { position: absolute; right: 4px; bottom: 36px; font-size: 22px; transition: transform .2s; }
.writing-list article:hover .arrow { transform: translate(4px, -4px); }

.projects-section { background: var(--forest); color: var(--white); }
.section-heading.inverse { align-items: end; }
.section-heading.inverse > p { max-width: 340px; margin: 0; color: #b8c8c2; line-height: 1.6; }
.project-card { min-height: 270px; display: grid; grid-template-columns: 80px 1fr auto; gap: 28px; align-items: start; padding: 42px 0; border-top: 1px solid rgba(255,255,255,.24); }
.project-card:last-child { border-bottom: 1px solid rgba(255,255,255,.24); }
.project-index { color: #9eb1aa; font-family: Georgia, serif; font-size: 22px; }
.project-body { max-width: 700px; }
.project-type { margin: 3px 0 20px; color: #9eb1aa; }
.project-body h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(44px, 6vw, 72px); font-weight: 400; letter-spacing: -.055em; }
.project-body > p:not(.project-type) { max-width: 620px; color: #c3d0cb; line-height: 1.7; }
.project-body ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.project-body li { padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #d9e1de; font-size: 12px; }
.project-card > a, .coming-soon { align-self: center; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 700; }
.project-placeholder { opacity: .58; }

.github-strip { padding: 90px 0; background: var(--paper-deep); }
.github-inner { display: grid; grid-template-columns: .85fr 1.5fr; gap: 10%; align-items: start; }
.github-inner h2 { margin: 12px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(34px, 4vw, 54px); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; }
.github-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.github-content > p { grid-column: 1 / -1; color: var(--muted); }
.github-repo { min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.25); transition: transform .2s ease; }
.github-repo:hover { transform: translateY(-3px); }
.github-repo strong { overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.github-repo span { color: var(--muted); font-size: 11px; }
.github-profile { grid-column: 1 / -1; justify-self: end; margin-top: 10px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 700; }

.about { padding: 130px 0 150px; }
.about-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 10%; margin-top: 45px; }
.about h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(42px, 5.3vw, 72px); font-weight: 400; line-height: 1.17; letter-spacing: -.055em; }
.about-grid > div > p { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.about-links { display: flex; gap: 28px; margin-top: 38px; font-size: 13px; font-weight: 700; }
.about-links a { padding-bottom: 5px; border-bottom: 1px solid var(--ink); }
.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner > div { display: flex; align-items: center; gap: 12px; }
.inverse-mark { background: var(--paper); color: var(--ink); }
.footer-inner p { color: #a8afab; font-size: 12px; }

@media (max-width: 760px) {
  .section-shell, .site-header { width: min(100% - 32px, 1180px); }
  .site-header { grid-template-columns: 1fr auto; height: 72px; }
  .main-nav { display: none; }
  .hero { min-height: 620px; padding-top: 80px; }
  .hero-bottom, .section-heading { align-items: flex-start; }
  .circle-link { width: 78px; }
  .manifesto { padding: 58px 0; }
  .manifesto p:last-child { margin: 12px 0 0; }
  .content-section { padding: 90px 0; }
  .writing-grid, .about-grid { grid-template-columns: 1fr; gap: 54px; }
  .github-inner, .github-content { grid-template-columns: 1fr; gap: 20px; }
  .github-profile { grid-column: 1; justify-self: start; }
  .visual { min-height: 310px; padding: 24px; }
  .section-heading.inverse { display: block; }
  .section-heading.inverse > p { margin-top: 20px; }
  .project-card { grid-template-columns: 42px 1fr; min-height: auto; }
  .project-card > a, .coming-soon { grid-column: 2; justify-self: start; }
  .about-grid > div > p { margin-top: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.page-shell { width: min(940px, calc(100% - 48px)); min-height: 70vh; margin-inline: auto; padding: 110px 0 140px; }
.page-heading { margin-bottom: 72px; }
.page-heading h1 { margin: 14px 0 18px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(56px, 9vw, 100px); font-weight: 400; letter-spacing: -.065em; }
.page-heading > p:last-child { max-width: 600px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.archive-list { border-top: 1px solid var(--line); }
.facets { display: grid; grid-template-columns: 1fr 1fr auto; gap: 36px; margin: -24px 0 64px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.facets > div { display: flex; flex-wrap: wrap; gap: 10px 16px; }.facets strong { width: 100%; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }.facets a { font-weight: 700; }.search-shortcut { align-self: end; }
.archive-list article { padding: 38px 0 42px; border-bottom: 1px solid var(--line); }
.archive-list h2 { max-width: 780px; margin: 14px 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -.04em; }
.archive-list h2 a:hover { color: var(--accent); }
.archive-list article > p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; color: var(--forest); font-size: 12px; font-weight: 700; }
.empty-state { padding: 45px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.search-form { display: flex; max-width: 680px; margin-top: 36px; }
.search-form input { min-width: 0; flex: 1; padding: 15px 18px; border: 1px solid var(--line); border-right: 0; background: rgba(255,255,255,.4); color: var(--ink); font: inherit; }
.search-form button { padding: 0 24px; border: 0; background: var(--ink); color: var(--paper); font-weight: 700; }
.article-page > header { padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.article-page h1 { max-width: 900px; margin: 18px 0 22px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(46px, 7vw, 82px); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; }
.article-lead { max-width: 720px; color: var(--muted); font-size: 19px; line-height: 1.75; }
.article-page .article-meta { justify-content: flex-start; gap: 24px; }
.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts div { padding: 18px 0; }.project-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.project-facts dt { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.project-facts dd { margin: 0; font-size: 14px; font-weight: 700; }
.prose { max-width: 760px; margin: 64px auto 0; font-size: 17px; line-height: 1.85; word-break: keep-all; }
.prose h2, .prose h3, .prose h4, .prose h5 { margin: 2.2em 0 .7em; font-family: Georgia, "Noto Serif KR", serif; line-height: 1.3; letter-spacing: -.03em; }
.prose h2 { font-size: 36px; }.prose h3 { font-size: 29px; }
.prose p { margin: 1.15em 0; }.prose li { margin: .45em 0; }
.prose a { color: var(--forest); border-bottom: 1px solid currentColor; }
.prose code { padding: .15em .35em; border-radius: 4px; background: var(--paper-deep); font-size: .9em; }
.prose pre { overflow-x: auto; padding: 22px; background: var(--ink); color: var(--paper); }.prose pre code { padding: 0; background: transparent; }
.prose .mermaid { overflow-x: auto; margin: 2rem 0; padding: 24px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: center; }
.prose .mermaid svg { max-width: 100%; height: auto; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }

@media (max-width: 760px) { .page-shell { width: calc(100% - 32px); padding: 78px 0 100px; }.page-heading { margin-bottom: 48px; }.search-form button { padding-inline: 17px; }.facets { grid-template-columns: 1fr; }.search-shortcut { justify-self: start; }.project-facts { grid-template-columns: 1fr; }.project-facts div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; } }
