@font-face {
  font-family: PortfolioSans;
  src: url('/assets/pretendard.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root { --paper: #f6f5f1; --ink: #252622; --muted: #65685f; --line: #d9dad2; --accent: #b94627; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: PortfolioSans, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, [role="tabpanel"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #edd4c5; }
h1, h2, h3, p { margin: 0; }
.page { width: min(1100px, calc(100% - 96px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; letter-spacing: -.04em; }
.site-header nav { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
.site-header nav a { padding: 8px 0; }
.site-header nav a:hover { color: var(--accent); }
.page-tabs { display: flex; gap: 28px; }
.page-tabs [role="tab"] { border-bottom: 2px solid transparent; }
.page-tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panels { min-height: 590px; padding-bottom: 54px; }
.tab-panels [hidden] { display: none !important; }
.tab-panels [role="tabpanel"]:not([hidden]) { animation: panel-in .22s ease-out; }
@keyframes panel-in { from { opacity: .35; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.intro { display: grid; grid-template-columns: 1fr 180px; gap: 64px; align-items: center; padding: 58px 0 62px; }
.intro h1 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 550; letter-spacing: -.06em; line-height: 1.3; word-break: keep-all; }
.intro h1 > span, .section-heading h2 > span { color: var(--accent); }
.intro-description { font-size: 15px; line-height: 1.9; color: var(--muted); margin-top: 23px; word-break: keep-all; }
.intro-art { aspect-ratio: 1; display: grid; place-items: center; background: #eae8df; border-radius: 8px; }
.intro-art svg { width: 75%; height: 75%; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { font-size: 29px; font-weight: 550; letter-spacing: -.05em; }
.section-heading > p { font-size: 12px; color: var(--muted); }
.project-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.project { min-width: 0; }
.project-link { display: block; border-radius: 6px; }
.project-visual { aspect-ratio: 1.4; overflow: hidden; border-radius: 6px; background: #e4e6dc; }
.project-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-link:hover .project-visual img { transform: scale(1.025); }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; }
.project-heading h3 { font-size: 25px; font-weight: 550; letter-spacing: -.04em; line-height: 1.4; }
.project-arrow { font-size: 25px; color: var(--muted); }
.project-link:hover h3, .project-link:hover .project-arrow { color: var(--accent); }
.project-description { font-size: 14px; color: var(--muted); line-height: 1.85; margin-top: 8px; word-break: keep-all; }
.project-domain { display: inline-block; font-size: 11px; color: var(--muted); margin-top: 14px; }
.about { margin: 0; padding: 0; }
.about-content { max-width: 700px; border: 1px solid var(--line); border-radius: 8px; padding: 32px; background: #eeeee6; }
.about-content h3 { font-size: 24px; font-weight: 550; letter-spacing: -.04em; }
.about-content p { font-size: 15px; line-height: 2; color: var(--muted); word-break: keep-all; margin-top: 18px; }
.about-github { display: inline-flex; gap: 28px; border-bottom: 1px solid #a9aca1; padding-bottom: 8px; margin-top: 28px; font-size: 13px; }
.about-github:hover { color: var(--accent); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding: 26px 0 30px; }
.site-footer a { display: inline-flex; gap: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 16px; background: var(--ink); color: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.error-page { padding-top: 120px; }
.error-page h1 { font-size: 32px; margin-top: 16px; letter-spacing: -.04em; }
.error-page p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 16px; }
.error-page a { display: inline-block; font-size: 14px; margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
@media (max-width: 900px) {
  .page { width: calc(100% - 64px); }
  .intro { grid-template-columns: 1fr 140px; gap: 30px; padding-block: 48px; }
  .intro h1 { font-size: 36px; }
  .project-list { gap: 22px; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 40px); }
  .site-header { padding: 20px 0; }
  .wordmark { font-size: 15px; gap: 5px; }
  .wordmark img { width: 26px; height: 26px; }
  .site-header nav { gap: 16px; font-size: 11px; }
  .page-tabs { gap: 16px; }
  .tab-panels { min-height: 480px; padding-bottom: 34px; }
  .intro { position: relative; display: block; padding: 48px 0; }
  .intro h1 { font-size: 32px; max-width: calc(100% - 42px); }
  .intro-description { font-size: 13px; margin-top: 18px; }
  .intro-art { position: absolute; width: 38px; height: 38px; top: 47px; right: 0; background: none; }
  .intro-art svg { width: 100%; height: 100%; }
  .section-heading { display: block; margin-bottom: 21px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading > p { margin-top: 9px; font-size: 11px; }
  .project-list { grid-template-columns: 1fr; gap: 34px; }
  .project-heading { margin-top: 15px; }
  .project-heading h3 { font-size: 23px; }
  .project-description { font-size: 13px; }
  .project-domain { margin-top: 10px; }
  .about-content { padding: 24px; }
  .about-content p { font-size: 14px; }
  .site-footer { font-size: 10px; padding: 22px 0; }
}
@media (max-width: 350px) { .site-header nav, .page-tabs { gap: 12px; } .intro-art { width: 30px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .project-visual img { transition: none; } .tab-panels [role="tabpanel"] { animation: none !important; } }
