@import url("/assets/fonts/fonts.css");

:root {
  color-scheme: light;
  --paper: #fcfcfa;
  --ink: #10121a;
  --muted: #374661;
  --blue: #0046d5;
  --wash: #eaf3fc;
  --line: #c7d2df;
  --serif: "LISQU Serif", "Noto Serif KR", "Batang", "AppleMyungjo", Georgia, serif;
  --sans: "LISQU Sans", "Noto Sans KR", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.8 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h1, h2, h3, p, dt, dd { overflow-wrap: anywhere; }
.container { width: min(100% - 8rem, 75rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 6.5rem; gap: 2rem; }
.brand { font-size: 1.65rem; font-weight: 650; letter-spacing: .065em; text-decoration: none; line-height: 1.4; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2.25rem; max-width: 100%; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; font-weight: 550; text-decoration: none; }
nav a:hover, .email-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .25em; }
.language-link { margin-left: .25rem; padding-inline: .25rem; }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 1rem; padding-block: 3rem 4.5rem; min-height: 31rem; }
.hero-copy { position: relative; z-index: 1; }
h1 { font-family: var(--serif); font-size: clamp(3rem, 5.3vw, 4.75rem); line-height: 1.32; letter-spacing: -.06em; word-break: keep-all; }
h1 span { color: var(--blue); }
.introduction { max-width: 30rem; margin-top: 1.6rem; font-size: 1.125rem; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.portfolio-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; margin-top: 1.65rem; padding: .65rem 1.8rem; background: var(--blue); color: white; border-radius: 3rem; font-size: 1rem; font-weight: 600; text-decoration: none; }
.portfolio-link:hover { background: #0037a7; }
.hero-art { display: block; width: 100%; max-width: 31rem; height: auto; justify-self: end; }
.featured-project { background: var(--wash); scroll-margin-top: 2rem; }
.project-grid { display: grid; grid-template-columns: 1fr 1.75fr; gap: 4rem; padding-block: 3.5rem; }
.project-heading { padding-right: 3.5rem; border-right: 1px solid var(--line); }
.eyebrow { font-size: 1rem; font-weight: 550; line-height: 1.5; }
.project-heading .eyebrow { text-decoration: underline; text-underline-offset: .2em; }
.project-heading h2 { margin-top: 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(5.5rem, 9.5vw, 8.5rem); line-height: 1.1; letter-spacing: -.075em; }
.stage { margin-top: .9rem; font-size: 1.0625rem; color: var(--muted); line-height: 1.65; }
.goal + .goal { margin-top: 1.4rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.goal h3 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.55; letter-spacing: -.025em; word-break: keep-all; }
.goal p { margin-top: .45rem; color: var(--muted); font-size: 1rem; line-height: 1.8; word-break: keep-all; }
.woosori h3 { font-size: 1.5rem; }
.development { font-family: var(--sans); font-size: 1.2rem; font-weight: 550; }
.research { display: grid; grid-template-columns: 1fr 1.75fr; gap: 4rem; padding-top: 3.5rem; }
.research-heading h2 { margin-top: .55rem; font-family: var(--serif); font-size: 2.5rem; line-height: 1.4; letter-spacing: -.04em; }
.idea { display: grid; grid-template-columns: minmax(8rem, .8fr) 1.85fr; gap: 1.5rem; padding-block: 1rem; }
.idea:first-child { padding-top: 0; }
.idea + .idea { border-top: 1px solid var(--line); }
.idea dt { font-size: 1.0625rem; font-weight: 650; line-height: 1.8; word-break: keep-all; }
.idea dd { color: var(--muted); font-size: .9375rem; line-height: 2; word-break: keep-all; }
.contact { padding-block: 3.5rem 1.7rem; scroll-margin-top: 2rem; }
.contact h2 { font-family: var(--serif); font-size: clamp(2rem, 3.3vw, 2.8rem); line-height: 1.45; letter-spacing: -.035em; word-break: keep-all; }
.contact-label { margin-top: 1rem; font-size: .9375rem; }
.email-link { display: inline-block; max-width: 100%; min-height: 2.75rem; color: var(--muted); font-size: 1.125rem; text-underline-offset: .25em; overflow-wrap: anywhere; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line); padding-block: 1.3rem 1.8rem; }
.site-footer .brand { font-size: 1.25rem; }
.site-domain { color: var(--muted); font-size: .875rem; }
html[lang="en"] h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5.1vw, 4.4rem); line-height: 1.12; letter-spacing: -.055em; }
html[lang="en"] .introduction { max-width: 32rem; }
html[lang="en"] .goal h3, html[lang="en"] .research-heading h2, html[lang="en"] .contact h2 { font-family: Georgia, "Times New Roman", serif; }
html[lang="en"] .research-heading h2 { max-width: 17rem; font-size: 2.35rem; }
html[lang="en"] .idea { grid-template-columns: minmax(9rem, 1fr) 1.6fr; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 5rem); }
  .hero { grid-template-columns: 1.3fr 1fr; min-height: 28rem; }
  h1 { font-size: 3.55rem; }
  .introduction { font-size: 1.0625rem; }
  .project-grid, .research { grid-template-columns: .8fr 1.7fr; gap: 2.75rem; }
  .project-heading { padding-right: 2rem; }
  .goal h3 { font-size: 1.4rem; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 3rem); }
  .site-header { min-height: 5.75rem; gap: 1rem; }
  nav { gap: 1rem; }
  .brand { font-size: 1.4rem; }
  nav a { font-size: .875rem; }
  .hero { grid-template-columns: 1fr; gap: .5rem; padding-block: 2.5rem 2.5rem; }
  h1 { font-size: clamp(2.25rem, 7.3vw, 3.4rem); }
  .introduction { max-width: 29rem; margin-top: 1.35rem; }
  .hero-art { width: min(80%, 21rem); margin-top: .75rem; justify-self: center; }
  .project-grid, .research { grid-template-columns: 1fr; gap: 2rem; }
  .project-grid { padding-block: 2.5rem; }
  .project-heading { border: 0; padding-right: 0; }
  .project-heading h2 { margin-top: .35rem; font-size: 6rem; }
  .stage { margin-top: .3rem; }
  .goal h3 { font-size: 1.5rem; }
  .research { padding-top: 2.5rem; }
  .research-heading h2 { font-size: 2rem; }
  .contact { padding-top: 2.75rem; }
  html[lang="en"] h1 { font-size: clamp(2.45rem, 7.3vw, 3.4rem); }
  html[lang="en"] .research-heading h2 { max-width: none; font-size: 2rem; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 2.5rem); }
  .site-header { flex-wrap: wrap; justify-content: space-between; padding-block: 1.25rem .5rem; gap: .25rem; }
  .brand { font-size: 1.35rem; }
  nav { gap: .65rem; }
  nav a { font-size: .875rem; }
  .hero { padding-top: 1.75rem; }
  .idea, html[lang="en"] .idea { grid-template-columns: 1fr; gap: .25rem; }
  .goal h3 { font-size: 1.35rem; }
  .development { font-size: 1.0625rem; }
  .site-domain { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .container { width: 100%; }
  nav, .portfolio-link, .hero-art, .skip-link { display: none; }
  .hero { display: block; min-height: 0; padding-block: 1rem; }
  .featured-project { background: white; }
  .project-grid, .research { gap: 2rem; padding-block: 1.5rem; }
  .contact { padding-block: 1.5rem; }
  .goal, .idea { break-inside: avoid; }
}
