@font-face { font-family: Black Han; src: url('./assets/fonts/BlackHanSans-Latin.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-024F,U+2000-206F,U+20A0-20CF,U+2190-21FF; }
@font-face { font-family: Black Han; src: url('./assets/fonts/BlackHanSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+1100-11FF,U+3000-318F,U+3200-33FF,U+A960-A97F,U+AC00-D7FF,U+FF00-FFEF; }
@font-face { font-family: IBM Plex KR; src: url('./assets/fonts/MadangText-Latin.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-024F,U+2000-206F,U+20A0-20CF,U+2190-21FF; }
@font-face { font-family: IBM Plex KR; src: url('./assets/fonts/IBMPlexSansKR-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+1100-11FF,U+3000-318F,U+3200-33FF,U+A960-A97F,U+AC00-D7FF,U+FF00-FFEF; }
:root {
  font-family: IBM Plex KR, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  color: #22262d;
  background: #f1edd9;
  --ink: #22262d;
  --chalk: #f1edd9;
  --yellow: #f0dd48;
  --paper: #f1edd9;
  --text: #22262d;
  --muted: #515b62;
  --rule: #22262d35;
  --field: #fff9e9e8;
  --error: #9b321d;
  --courtyard: #19252b;
  --deep: #22262d;
  --hero-height: max(100svh, 900px);
  --theme-duration: 2200ms;
  --ink-delay: 500ms;
}
[data-theme='night'] {
  color-scheme: dark;
  color: #eee9d3;
  background: #080f1c;
  --paper: #080f1c;
  --text: #eee9d3;
  --muted: #c2cbd3;
  --rule: #eee9d335;
  --field: #17263df0;
  --error: #ffb7a8;
  --courtyard: #050b13;
  --deep: #050a12;
  --ink-delay: 850ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); transition: color 100ms linear var(--ink-delay), background var(--theme-duration) ease; }
button, input { font: inherit; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--yellow); }
h1, h2, p { font-weight: 400; }
h1, h2 { font-family: Black Han, sans-serif; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) p { word-break: keep-all; overflow-wrap: break-word; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -70px; left: 24px; z-index: 10; padding: 12px 18px; color: var(--ink); background: var(--yellow); }
.skip-link:focus { top: 10px; }
.site-header { position: absolute; top: 0; width: 100%; height: 90px; padding: 0 4.5vw; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { position: relative; display: block; width: clamp(168px, 16vw, 218px); aspect-ratio: 4953 / 1000; flex-shrink: 0; line-height: 0; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 100ms linear var(--ink-delay); }
.brand-logo-night { opacity: 0; }
[data-theme='night'] .brand-logo-day { opacity: 0; }
[data-theme='night'] .brand-logo-night { opacity: 1; }
.header-tools, .language-switch { display: flex; align-items: center; }
.header-tools { gap: 20px; }
.language-switch { gap: 3px; }
.language-switch button { min-height: 44px; min-width: 38px; padding: 8px 6px; border: 0; background: none; font-size: 12px; }
.language-switch button[aria-pressed='false'] { opacity: .55; }
.language-switch button[lang='ko'] { font-family: system-ui, sans-serif; }
.language-divider { opacity: .35; font-size: 11px; }
.theme-toggle { display: grid; place-items: center; position: relative; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--rule); border-radius: 50%; background: #828b950c; }
.theme-toggle:hover { background: #828b9520; }
.theme-toggle svg { position: absolute; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity 350ms ease, transform 550ms ease; }
.theme-moon { opacity: 0; transform: rotate(-40deg) scale(.7); }
[data-theme='night'] .theme-sun { opacity: 0; transform: rotate(60deg) scale(.7); }
[data-theme='night'] .theme-moon { opacity: 1; transform: none; }
.journey { height: var(--hero-height); position: relative; }
.stage { height: 100%; position: relative; overflow: hidden; isolation: isolate; }
.courtyard-image, .courtyard-image img, .celestial-sky, .celestial-body { -webkit-user-select: none; user-select: none; }
.courtyard-image { position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity var(--theme-duration) ease; }
.courtyard-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.courtyard-night { opacity: 0; }
[data-theme='night'] .courtyard-day { opacity: 0; }
[data-theme='night'] .courtyard-night { opacity: 1; }
.celestial-sky { position: absolute; inset: 0; pointer-events: none; mask-image: linear-gradient(#000 40%, transparent 51%); -webkit-mask-image: linear-gradient(#000 40%, transparent 51%); }
.celestial-body { position: absolute; top: 12%; left: 86%; width: clamp(162px, 13.5vw, 210px); height: auto; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, -50%); transition: transform var(--theme-duration) cubic-bezier(.6, 0, .3, 1); }
.celestial-moon { transform: translate(calc(-50% + 4vw), calc(-50% + var(--hero-height) * .46)); transition-timing-function: cubic-bezier(.2, .7, .2, 1); }
[data-theme='night'] .celestial-sun { transform: translate(calc(-50% - 5vw), calc(-50% + var(--hero-height) * .46)); transition-timing-function: cubic-bezier(.2, .7, .2, 1); }
[data-theme='night'] .celestial-moon { transform: translate(-50%, -50%); transition-timing-function: cubic-bezier(.6, 0, .3, 1); }
.hero-copy { position: absolute; top: 11%; z-index: 1; width: 100%; padding: 0 30px; text-align: center; }
.hero-kicker { display: flex; align-items: center; justify-content: center; height: 24px; margin: 0 0 22px; font-size: 13px; line-height: 24px; }
.hero-descriptor { display: inline-flex; align-items: center; gap: 9px; }
:lang(ko) .hero-descriptor { flex-direction: row-reverse; }
.giwa-wordmark { position: relative; width: 62px; height: 18px; }
.giwa-logo { position: absolute; inset: 0; width: 62px; height: 18px; object-fit: contain; transition: opacity 100ms linear var(--ink-delay); }
.giwa-logo-night { opacity: 0; }
[data-theme='night'] .giwa-logo-day { opacity: 0; }
[data-theme='night'] .giwa-logo-night { opacity: 1; }
h1 { max-width: 1200px; margin: 0 auto; font-size: clamp(58px, 8.1vw, 116px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.hero-description { max-width: 470px; margin: 19px auto 0; font-size: 14px; line-height: 1.65; text-wrap: pretty; white-space: pre-line; }
.waitlist { width: min(530px, 100%); min-height: 140px; margin: 25px auto 0; scroll-margin-top: 30px; text-align: left; }
.waitlist-controls { display: flex; align-items: stretch; gap: 9px; }
.waitlist-controls input { flex: 1; min-width: 0; width: 0; height: 56px; padding: 0 17px; color: var(--text); background: var(--field); border: 1px solid var(--rule); border-radius: 14px; font-size: 16px; transition: background var(--theme-duration) ease, color var(--theme-duration) ease, border-color 200ms ease; }
.waitlist-controls input::placeholder { color: var(--muted); opacity: .85; }
.waitlist-controls input:focus { outline: none; border-color: #b79b39; box-shadow: inset 0 0 0 1px #b79b3960; }
[data-theme='night'] .waitlist-controls input:focus { border-color: #f3d65b; box-shadow: inset 0 0 0 1px #f3d65b40; }
.waitlist-controls input[aria-invalid='true'] { border-color: var(--error); }
.enter-button { display: inline-flex; align-items: center; justify-content: center; width: 146px; flex-shrink: 0; min-height: 56px; padding: 13px 22px; border: 1px solid #bda43290; border-radius: 15px; color: #252923; background: #f3d65b; box-shadow: inset 0 1px 0 #fff8, 0 4px 12px #111a2220; font-size: 14px; line-height: 1.5; white-space: nowrap; transition: background 200ms ease, box-shadow 200ms ease; }
.enter-button:hover { background: #ffe17b; box-shadow: inset 0 1px 0 #fffa, 0 6px 18px #111a2228; }
.enter-button:active { background: #e8c84b; box-shadow: inset 0 1px 3px #6e5d1c22; }
.enter-button:disabled { cursor: wait; opacity: .75; }
.enter-button:focus-visible { outline-color: var(--text); }
.captcha-container { display: flex; justify-content: center; margin-top: 12px; }
.signup-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.waitlist-note { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.form-error { margin: 8px 0 0; color: var(--error); font-size: 12px; line-height: 1.5; }
.waitlist-success { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.success-mark { width: 17px; height: 17px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.waitlist-success p { margin: 0; font-size: 12px; line-height: 1.6; }
.social-links { display: flex; align-items: center; gap: 9px; }
.social-links svg { flex-shrink: 0; }
.hero-social { justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.social-pill { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 10px 12px 10px 10px; border: 1px solid var(--rule); border-radius: 999px; background: #fff9e950; font-size: 12px; line-height: 1.5; white-space: nowrap; transition: background 200ms ease, border-color 200ms ease; }
[data-theme='night'] .social-pill { background: #17263d70; }
.social-pill:hover { background: var(--field); border-color: var(--muted); }
.telegram-dropdown { position: relative; }
.social-chevron { transition: transform 200ms ease; }
.social-pill[aria-expanded='true'] .social-chevron { transform: rotate(180deg); }
.telegram-menu { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; min-width: 180px; padding: 6px; border: 1px solid var(--rule); border-radius: 14px; background: var(--field); box-shadow: 0 10px 30px #08101c26; text-align: left; }
.telegram-menu a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 9px; font-size: 13px; line-height: 1.5; white-space: nowrap; transition: background 200ms ease; }
.telegram-flag { flex-shrink: 0; font-size: 18px; line-height: 1; }
.telegram-menu a:hover, .telegram-menu a:focus-visible { background: #ffffff80; }
[data-theme='night'] .telegram-menu a:hover, [data-theme='night'] .telegram-menu a:focus-visible { background: #ffffff12; }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: 5px; }
.section-shell { width: min(1200px, 86vw); margin: 0 auto; }
.courtyard-section { background: var(--courtyard); color: var(--chalk); padding: 115px 0 105px; transition: background var(--theme-duration) ease; }
.courtyard-intro { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 9vw; }
.name-block { padding-bottom: 30px; }
.name-block img { display: block; width: clamp(154.8px, 21.672vw, 294.12px); height: auto; }
.dictionary-entry { max-width: 310px; margin-top: 24px; }
.dictionary-reading { margin: 0 0 15px; font-size: 17px; line-height: 1.5; }
.dictionary-reading > span + span { margin-left: 8px; opacity: .65; font-size: 14px; white-space: nowrap; }
.dictionary-meaning { margin: 0 0 9px; font-size: 23px; line-height: 1.4; }
.dictionary-part { display: block; margin-bottom: 5px; font-size: 12px; opacity: .6; }
.dictionary-definition { margin: 0; max-width: 270px; font-size: 14px; line-height: 1.7; opacity: .75; }
.courtyard-copy h2, .market-feature h2, .faq-layout > h2 { margin: 0 0 30px; font-size: clamp(40px, 4.1vw, 62px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.courtyard-copy p, .market-feature p { max-width: 465px; margin: 0 0 17px; font-size: 16px; line-height: 1.8; }
.ideas-section { padding: 115px 0 120px; }
.market-content { display: grid; grid-template-columns: 1fr 1fr; gap: 70px 6vw; align-items: center; }
.market-feature { padding-top: 34px; border-top: 1px solid var(--rule); }
.shop-vignette { position: relative; width: 100%; aspect-ratio: 1114 / 930; margin: -25px 0 0; }
.shop-vignette img { position: absolute; inset: 0; display: block; width: 100%; height: auto; transition: opacity var(--theme-duration) ease; }
.shop-night { opacity: 0; }
[data-theme='night'] .shop-day { opacity: 0; }
[data-theme='night'] .shop-night { opacity: 1; }
.market-explore { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.market-explore h2 { margin-bottom: 0; }
.faq-section { padding-bottom: 115px; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9vw; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0; font-size: 18px; line-height: 1.5; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { max-width: 550px; margin: 0; padding: 0 32px 27px 0; font-size: 14px; line-height: 1.8; }
.faq-mark { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after { content: ''; position: absolute; background: currentColor; }
.faq-mark::before { width: 14px; height: 1px; top: 6px; }
.faq-mark::after { width: 1px; height: 14px; left: 6px; }
.faq-list details[open] .faq-mark::after { display: none; }
.invitation, .site-footer { color: var(--chalk); background: var(--deep); transition: background var(--theme-duration) ease; }
.invitation { padding: 90px 0 105px; }
.invitation-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.invitation h2 { max-width: 780px; margin: 0; font-size: clamp(52px, 6.7vw, 95px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.invitation .enter-button { margin-bottom: 7px; flex-shrink: 0; }
.invitation .enter-button:focus-visible { outline-color: var(--chalk); }
.site-footer { padding-bottom: 26px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid #f1edd940; font-size: 12px; }
.footer-inner > :last-child { white-space: nowrap; }
.footer-social { flex-shrink: 0; gap: 4px; }
.social-icon-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background 200ms ease, color 200ms ease; }
.social-icon-link:hover { color: var(--yellow); background: #f1edd910; }
@media (max-width: 700px) {
  .celestial-body { top: 10%; left: 88%; width: 96px; }
  .site-header { height: 88px; padding: 0 22px; }
  .brand { width: 168px; }
  .header-tools { gap: 10px; }
  .language-switch { gap: 0; }
  .language-switch button { min-width: 32px; padding: 8px 4px; font-size: 11px; }
  .hero-copy { top: 12%; padding: 0 22px; }
  .hero-kicker { font-size: 11px; margin-bottom: 20px; }
  h1 { max-width: 600px; min-height: max(calc(clamp(52px, 11.5vw, 78px) * 2.04), calc(clamp(48px, 10.4vw, 72px) * 2.36)); font-size: clamp(52px, 11.5vw, 78px); }
  :lang(ko) h1 { max-width: 5em; font-size: clamp(48px, 10.4vw, 72px); line-height: 1.18; }
  .hero-description { max-width: 340px; margin-top: 18px; font-size: 12px; }
  .waitlist { margin-top: 22px; min-height: 150px; }
  .waitlist-controls { gap: 7px; }
  .waitlist-controls input { padding: 0 12px; }
  .waitlist-controls .enter-button { width: 118px; padding: 12px 10px; font-size: 12px; }
  .section-shell { width: calc(100% - 54px); }
  .courtyard-section { padding: 66px 0 75px; }
  .courtyard-intro, .market-content, .faq-layout { grid-template-columns: 1fr; gap: 43px; }
  .name-block { padding: 0; }
  .name-block img { width: 161px; }
  .dictionary-entry { margin-top: 21px; }
  .dictionary-reading { margin-bottom: 12px; font-size: 16px; }
  .dictionary-meaning { font-size: 22px; }
  .dictionary-definition { font-size: 13px; }
  .courtyard-copy h2, .market-feature h2, .faq-layout > h2 { font-size: 41px; margin-bottom: 23px; }
  .courtyard-copy p, .market-feature p { font-size: 14px; }
  .ideas-section { padding: 70px 0; }
  .market-content { gap: 53px; }
  .market-feature { padding-top: 27px; }
  .shop-vignette { max-width: 520px; margin: -34px auto -20px; }
  .market-explore { display: block; }
  .market-explore h2 { margin-bottom: 23px; }
  .faq-section { padding-bottom: 70px; }
  .faq-layout { gap: 6px; }
  .faq-list summary { padding: 22px 0; font-size: 16px; }
  .faq-list p { font-size: 13px; }
  .invitation { padding: 65px 0 70px; }
  .invitation-inner { display: block; }
  .invitation h2 { font-size: clamp(46px, 10.8vw, 65px); }
  .invitation .enter-button { margin: 32px 0 0; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 17px; font-size: 11px; }
  .footer-social { justify-self: end; }
  .footer-inner > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 370px) {
  .site-header { padding: 0 16px; gap: 12px; }
  .brand { width: 140px; }
  .hero-copy { padding: 0 18px; }
  h1 { min-height: calc(43px * 2.36); font-size: 46px; }
  :lang(ko) h1 { font-size: 43px; }
  .waitlist-controls .enter-button { padding-inline: 12px; font-size: 11px; }
  .hero-social { gap: 7px; }
  .social-pill { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
