/* 색상·글꼴 원본은 config/site.yaml입니다. tokens.css는 빌드에서 생성합니다. */
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/PretendardVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-muted: color-mix(in srgb, var(--color-text) 70%, var(--color-bg));
  --color-faint: color-mix(in srgb, var(--color-text) 44%, var(--color-bg));
  --color-line: color-mix(in srgb, var(--color-text) 16%, var(--color-bg));
  --color-soft: color-mix(in srgb, var(--color-brand) 4%, var(--color-bg));
  --color-tint: color-mix(in srgb, var(--color-brand) 8%, var(--color-bg));
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

:root[data-theme='dark'] { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--font-size-body);
  font-weight: var(--weight-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection { color: var(--color-bg); background: var(--color-brand); }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: var(--weight-heading); }
a:focus-visible, button:focus-visible, [tabindex='0']:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 5px; border-radius: 2px; }
main:focus { outline: none; }
.container { width: min(var(--width-content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 10; padding: .5rem 1rem; transform: translateY(-200%); background: var(--color-brand); color: var(--color-bg); font-weight: var(--weight-heading); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--color-line); }
.header-inner { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.18rem; font-weight: var(--weight-heading); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.wordmark > .club-logo { width: 40px; height: 30px; flex-shrink: 0; }
.header-controls { display: flex; align-items: center; gap: 2rem; }
.primary-nav { display: flex; align-items: center; gap: 2.3rem; align-self: stretch; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; text-decoration: none; position: relative; }
.primary-nav a::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 2px; background: var(--color-brand); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.primary-nav a[aria-current='page'] { color: var(--color-brand); font-weight: var(--weight-heading); }
.primary-nav a[aria-current='page']::after, .primary-nav a:hover::after { transform: scaleX(1); }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--color-line); border-radius: 50%; background: var(--color-bg); }
.theme-toggle:hover { border-color: var(--color-brand); color: var(--color-brand); }
.theme-icon { width: 19px; height: 19px; }
.theme-icon-sun, [data-theme='dark'] .theme-icon-moon { display: none; }
[data-theme='dark'] .theme-icon-sun { display: block; }
.eyebrow { font-size: .68rem; line-height: 1.5; font-weight: var(--weight-heading); letter-spacing: .13em; text-transform: uppercase; }
.hero { padding: 66px 0 70px; }
.hero-eyebrow { display: flex; justify-content: space-between; align-items: center; color: var(--color-muted); margin-bottom: 21px; }
.hero-eyebrow .eyebrow { color: var(--color-brand); }
.hero-edition { font-size: .64rem; letter-spacing: .13em; }
.hero h1 { font-size: clamp(3.55rem, 10.9vw, 9.5rem); line-height: 1.05; font-weight: var(--weight-heading); letter-spacing: -.073em; }
.hero-period { display: inline-block; width: .104em; height: .104em; margin-left: .035em; background: var(--color-brand); }
.hero-bottom { display: grid; grid-template-columns: 1fr 310px; align-items: center; gap: 2rem; margin-top: 35px; }
.hero-description { max-width: 31rem; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.7; letter-spacing: -.035em; word-break: keep-all; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 44px; font-size: .9rem; font-weight: var(--weight-heading); text-decoration: none; }
.text-link > span[aria-hidden] { font-weight: var(--weight-body); font-size: 1.3em; transition: transform 160ms ease; }
.text-link:hover { color: var(--color-brand); text-decoration: underline; }
.text-link:hover > span[aria-hidden] { transform: translate(2px, -1px); }
.hero-contact { color: var(--color-brand); margin-top: 22px; font-size: .9rem; font-weight: var(--weight-heading); overflow-wrap: anywhere; }
.screen-art { height: 174px; width: 280px; position: relative; margin-left: auto; }
.screen-art-orbit { position: absolute; width: 132px; height: 132px; right: 6px; top: 16px; border-radius: 50%; border: 1px solid var(--color-line); }
.club-logo { color: var(--color-brand); }
.screen-art > .club-logo { width: 224px; height: 168px; position: absolute; top: 0; left: 2px; }
.club-logo-screen { fill: var(--color-bg); }
.screen-art-square { position: absolute; right: 12px; bottom: 5px; width: 26px; height: 26px; background: var(--color-brand); }
.screen-art-square::after { content: ''; position: absolute; width: 17px; height: 17px; right: -8px; bottom: -8px; background: var(--color-accent); }
.screen-art-cross { position: absolute; right: 7px; top: -12px; color: var(--color-brand); font-size: 1.5rem; line-height: 1; }
.section-divider { border-top: 1px solid var(--color-line); }
.section-kicker { display: flex; align-items: center; gap: 1rem; color: var(--color-muted); }
.section-number { font-size: .68rem; color: var(--color-brand); font-variant-numeric: tabular-nums; font-weight: var(--weight-heading); }
.recent-section { padding: 51px 0 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 29px; }
.section-heading h2 { font-size: 2rem; line-height: 1.4; letter-spacing: -.055em; margin-top: 12px; }
.section-heading > .text-link { margin-bottom: -4px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 237px; padding: 35px 20px; background: var(--color-soft); border: 1px solid var(--color-line); text-align: center; }
.empty-icon { width: 43px; height: 43px; margin-bottom: 16px; color: var(--color-brand); }
.empty-title { font-size: .96rem; font-weight: var(--weight-heading); letter-spacing: -.025em; }
.empty-description { margin-top: 4px; font-size: .82rem; color: var(--color-muted); }
.site-footer { border-top: 1px solid var(--color-line); background: var(--color-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 32px 0 35px; }
.footer-wordmark { display: inline-flex; align-items: baseline; gap: .4rem; font-size: 1.1rem; font-weight: var(--weight-heading); letter-spacing: -.04em; text-decoration: none; }
.brand-square { display: inline-block; width: 7px; height: 7px; background: var(--color-brand); }
.footer-inner p { color: var(--color-muted); font-size: .72rem; margin-top: 5px; }
.footer-inner .copyright { text-align: right; margin-top: 0; font-size: .69rem; line-height: 1.9; }
.archive-page { padding: 67px 0 82px; min-height: calc(100svh - 250px); }
.page-heading .section-kicker { gap: .65rem; }
.page-heading h1 { font-size: clamp(3.6rem, 7vw, 5.5rem); letter-spacing: -.065em; line-height: 1.16; margin-top: 14px; }
.heading-period { display: inline-block; width: .11em; height: .11em; background: var(--color-brand); margin-left: .055em; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--color-line); margin-top: 51px; }
.category-nav { display: flex; gap: 1.7rem; flex-wrap: wrap; }
.category-nav a { display: inline-flex; align-items: center; gap: .35rem; padding: 14px 0 17px; font-size: .91rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.category-nav a:hover, .category-nav a[aria-current='page'] { color: var(--color-brand); }
.category-nav a[aria-current='page'] { font-weight: var(--weight-heading); border-color: var(--color-brand); }
.category-count { font-size: .64rem; font-weight: var(--weight-body); color: var(--color-muted); align-self: flex-start; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.archive-count { color: var(--color-muted); font-size: .77rem; white-space: nowrap; }
.archive-count strong { color: var(--color-text); font-weight: var(--weight-heading); }
.archive-results > .empty-state { margin-top: 24px; min-height: 310px; }
.post-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--color-line); }
.post-row:first-child { padding-top: 0; }
.archive-results .post-row:first-child { padding-top: 28px; }
.post-thumbnail { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-tint); text-decoration: none; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.post-row:hover .post-thumbnail img { transform: scale(1.025); }
.thumbnail-placeholder { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; color: var(--color-brand); }
.thumbnail-placeholder svg { width: 53px; height: 42px; opacity: .75; }
.thumbnail-placeholder > span { font-size: .6rem; font-weight: var(--weight-heading); letter-spacing: -.025em; }
.post-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .73rem; line-height: 1.7; color: var(--color-muted); }
.category-label { color: var(--color-brand); font-weight: var(--weight-heading); }
a.category-label { text-decoration: underline; }
.meta-dot { width: 2px; height: 2px; background: var(--color-faint); border-radius: 50%; }
.post-meta time { font-variant-numeric: tabular-nums; }
.post-row-title { font-size: 1.35rem; line-height: 1.45; letter-spacing: -.035em; margin-top: 9px; overflow-wrap: anywhere; word-break: keep-all; }
.post-row-title a { display: flex; align-items: start; justify-content: space-between; gap: 1rem; text-decoration: none; }
.post-row-title a:hover { color: var(--color-brand); text-decoration: underline; }
.post-arrow { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 5px; }
.post-summary { color: var(--color-muted); font-size: .87rem; line-height: 1.7; margin-top: 9px; overflow-wrap: anywhere; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-top: 35px; }
.pagination > div:last-child { text-align: right; }
.pagination p { font-size: .88rem; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.pagination p > span:first-child { color: var(--color-brand); font-weight: var(--weight-heading); }
.page-separator { display: inline-block; padding-inline: .7rem; color: var(--color-line); }
.article-page { padding: 47px 0 82px; }
.article-container { width: min(var(--width-article), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.back-link { color: var(--color-muted); font-size: .8rem; }
.article-heading { padding: 42px 0 36px; border-bottom: 1px solid var(--color-line); margin-bottom: 36px; }
.article-heading h1 { font-size: clamp(2rem, 4.3vw, 3rem); letter-spacing: -.05em; line-height: 1.3; margin-top: 18px; overflow-wrap: anywhere; word-break: keep-all; }
.article-summary { margin-top: 20px; color: var(--color-muted); font-size: 1.06rem; line-height: 1.75; }
.article-cover { margin: 0 0 38px; }
.article-cover img { width: 100%; height: auto; max-height: 550px; object-fit: contain; background: var(--color-soft); }
.prose { font-size: var(--text-normal); line-height: 1.85; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose .table-wrapper { margin: 1.35em 0; }
.prose h2, .prose h3, .prose h4 { margin: 2.1em 0 .75em; line-height: 1.45; letter-spacing: -.03em; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose a { color: var(--color-brand); text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose li { padding-left: .3rem; }
.prose li + li { margin-top: .4em; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li::marker { color: var(--color-brand); }
.prose blockquote { padding: .6rem 1.25rem; margin-inline: 0; border-left: 3px solid var(--color-brand); background: var(--color-soft); color: var(--color-muted); }
.prose blockquote p { margin: .3rem 0; }
.prose img { max-width: 100%; height: auto; margin-inline: auto; }
.prose code { padding: .16em .35em; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .87em; background: var(--color-tint); border-radius: 3px; }
.prose pre { overflow-x: auto; max-width: 100%; padding: 1.25rem; border: 1px solid var(--color-line); background: var(--color-soft); border-radius: 3px; line-height: 1.65; }
.prose pre code { padding: 0; background: none; border-radius: 0; overflow-wrap: normal; }
.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; width: max-content; min-width: 100%; font-size: .9em; }
.prose th, .prose td { padding: .65rem .9rem; border: 1px solid var(--color-line); text-align: left; min-width: 6rem; }
.prose th { background: var(--color-soft); font-weight: var(--weight-heading); }
.prose .table-wrapper { overflow-x: auto; }
.prose .table-wrapper table { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--color-line); margin: 2.5rem 0; }
.prose .text-small { font-size: var(--text-small); }
.prose .text-normal { font-size: var(--text-normal); }
.prose .text-large { font-size: var(--text-large); }
.article-footer { margin-top: 56px; padding-top: 23px; border-top: 1px solid var(--color-line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.article-footer > span { font-weight: var(--weight-heading); letter-spacing: -.035em; }
.not-found { padding-block: 84px 110px; min-height: calc(100svh - 260px); }
.not-found > .eyebrow { color: var(--color-brand); }
.error-number { font-size: clamp(6rem, 14vw, 10rem); font-weight: var(--weight-heading); letter-spacing: -.075em; line-height: 1.1; margin: 14px 0 25px; }
.not-found h1 { font-size: 1.65rem; letter-spacing: -.04em; }
.not-found > p:not(.eyebrow, .error-number) { color: var(--color-muted); margin-top: 12px; }
.not-found-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-top: 30px; }
.button-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .7rem 1.2rem; color: var(--color-bg); background: var(--color-brand); font-size: .9rem; font-weight: var(--weight-heading); text-decoration: none; }
.button-link:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .header-inner { height: 84px; }
  .hero { padding: 52px 0; }
  .hero-bottom { grid-template-columns: 1fr 210px; gap: 1.5rem; margin-top: 28px; }
  .screen-art { width: 210px; transform: scale(.8); transform-origin: center right; }
  .screen-art > .club-logo { left: -24px; }
  .screen-art-square { right: 0; }
  .screen-art-cross { right: -12px; }
  .recent-section { padding-block: 40px 45px; }
  .archive-page { padding-block: 48px 65px; }
  .archive-toolbar { margin-top: 36px; }
  .post-row { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
  .post-row-title { font-size: 1.18rem; }
  .category-nav { gap: 1.2rem; }
}

@media (max-width: 540px) {
  .header-inner { height: 75px; gap: .5rem; }
  .wordmark { font-size: 1rem; gap: .35rem; }
  .wordmark > .club-logo { width: 32px; height: 24px; }
  .header-controls { gap: .65rem; }
  .primary-nav { gap: 1rem; }
  .primary-nav a { font-size: .76rem; }
  .theme-toggle { width: 34px; height: 34px; border: none; }
  .theme-icon { width: 18px; height: 18px; }
  .hero { padding-block: 42px 39px; }
  .hero-eyebrow { margin-bottom: 22px; }
  .hero-edition { font-size: .52rem; letter-spacing: .075em; }
  .hero-eyebrow .eyebrow { font-size: .56rem; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(3.2rem, 12.2vw, 4.8rem); letter-spacing: -.07em; }
  .hero-bottom { display: block; margin-top: 28px; position: relative; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-description { max-width: 18rem; font-size: 1.03rem; line-height: 1.75; }
  .hero-contact { margin-top: 17px; font-size: .8rem; }
  .screen-art { display: none; }
  .section-heading h2 { font-size: 1.65rem; margin-top: 10px; }
  .section-kicker { gap: .75rem; }
  .section-heading { margin-bottom: 22px; gap: .6rem; }
  .section-heading > .text-link { font-size: .78rem; gap: .45rem; }
  .recent-section { padding-block: 31px 36px; }
  .empty-state { min-height: 225px; padding-inline: 14px; }
  .empty-title { font-size: .88rem; }
  .empty-description { font-size: .76rem; }
  .footer-inner { align-items: start; gap: 1rem; padding-block: 25px; }
  .footer-wordmark { font-size: .95rem; }
  .footer-inner p { font-size: .6rem; }
  .footer-inner .copyright { font-size: .58rem; }
  .archive-page { padding-block: 42px 56px; }
  .page-heading h1 { font-size: 3.4rem; margin-top: 13px; }
  .archive-toolbar { display: block; margin-top: 27px; }
  .category-nav { justify-content: space-between; gap: .7rem; }
  .category-nav a { font-size: .79rem; gap: .2rem; padding-block: 13px 15px; }
  .category-count { font-size: .55rem; }
  .archive-count { padding: 15px 0 13px; font-size: .7rem; border-top: 1px solid var(--color-line); }
  .archive-results > .empty-state { min-height: 275px; margin-top: 20px; }
  .post-row { grid-template-columns: 94px minmax(0, 1fr); gap: 15px; padding-block: 22px; align-items: start; }
  .archive-results .post-row:first-child { padding-top: 22px; }
  .post-thumbnail { aspect-ratio: 1 / 1; }
  .thumbnail-placeholder { gap: .35rem; }
  .thumbnail-placeholder svg { width: 36px; height: 29px; }
  .thumbnail-placeholder > span { font-size: .48rem; }
  .post-meta { font-size: .61rem; gap: .4rem; }
  .post-row-title { font-size: .97rem; line-height: 1.5; margin-top: 5px; }
  .post-row-title a { gap: .25rem; }
  .post-arrow { display: none; }
  .post-summary { margin-top: 6px; font-size: .74rem; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .pagination { padding-top: 24px; }
  .pagination .text-link { font-size: .78rem; }
  .article-page { padding-block: 30px 55px; }
  .article-heading { padding: 29px 0 27px; margin-bottom: 27px; }
  .article-heading h1 { font-size: 1.95rem; margin-top: 15px; }
  .article-heading .post-meta { font-size: .74rem; }
  .article-summary { font-size: .96rem; margin-top: 17px; }
  .article-cover { margin-bottom: 28px; }
  .prose h2 { font-size: 1.42rem; }
  .prose h3 { font-size: 1.2rem; }
  .prose pre { padding: 1rem; }
  .article-footer { margin-top: 40px; }
  .article-footer > span { font-size: .94rem; }
  .article-footer .text-link { font-size: .78rem; }
  .not-found { padding-block: 60px 80px; }
  .not-found h1 { font-size: 1.45rem; }
  .not-found > p:not(.eyebrow, .error-number) { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
.prose .align-left { text-align: left; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
