:root {
  --ink: #201e2b;
  --muted-ink: #575461;
  --accent: #4939ae;
  --paper: #f8f7f3;
  --line: #dedbe2;
  --green: #4939ae;
  --muted: #575461;
  --mint: #eeebf9;
  --panel: #fff;
  --body-font: 'Inter', 'Noto Sans KR', 'Segoe UI', 'Malgun Gothic', sans-serif;
}

body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body-font); }
a { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6955da; outline-offset: 4px; }
.site-header { position: static; height: auto; border: 0; padding: 0; display: block; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-header nav, .site-footer nav { margin: 0; }
.site-header nav a { border-radius: 0; }
.site-header .site-nav a.active { background: transparent; }
.site-bar, .footer-inner { width: min(100% - 6rem, 84rem); margin: 0 auto; }
.site-bar { min-height: 5.125rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.site-brand { display: inline-flex; align-items: center; gap: .58rem; width: max-content; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.45rem; letter-spacing: -.06em; white-space: nowrap; }
.site-mark { width: 2rem; height: 2rem; display: grid; place-content: center; border-radius: .55rem; background: var(--accent); color: #fff; font: 1.24rem/1 system-ui; }
.site-nav, .site-tools { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { padding: .6rem 0; border-bottom: 2px solid transparent; color: var(--muted-ink); text-decoration: none; font-size: .94rem; font-weight: 675; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); border-color: var(--accent); }
.site-tools { justify-content: end; gap: .85rem; }
.language-choice { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 50px; padding: 3px; }
.language-choice button { background: transparent; color: var(--muted-ink); border: 0; min-width: 2.35rem; min-height: 2.25rem; padding: 0 .4rem; border-radius: 40px; font-size: .875rem; }
.language-choice button[aria-pressed='true'] { background: #e8e3fb; color: #332988; }
.language-choice button:disabled { opacity: .65; }
.site-wallet { display: inline-flex; align-items: center; white-space: nowrap; min-height: 2.7rem; padding: 0 .78rem; border-radius: 36px; color: var(--ink); border: 1px solid var(--line); text-decoration: none; font-size: .875rem; font-weight: 760; }
.site-wallet:hover { background: #eee9fc; }
main#main { min-height: 58vh; width: min(100% - 6rem, 84rem); max-width: none; margin: 0 auto; padding: 2.5rem 0 5rem; outline: none; }
.editorial { line-height: 1.5; }
.landing-hero { display: grid; grid-template-columns: .91fr 1.09fr; min-height: 31rem; background: #ede9fa; border-radius: 1.35rem; overflow: hidden; }
.landing-copy { padding: clamp(2.1rem, 5.05vw, 5.6rem); align-self: center; }
.editorial h1, .editorial h2, .editorial h3 { color: var(--ink); margin: 0; }
.landing-copy h1 { font-size: clamp(3.1rem, 5.6vw, 6.4rem); font-weight: 850; letter-spacing: -.088em; line-height: 1.02; word-break: keep-all; }
:lang(en) .landing-copy h1 { letter-spacing: -.072em; }
.landing-copy h1 span { color: var(--accent); }
.landing-copy p { max-width: 30rem; margin: 1.55rem 0 1.75rem; color: #49445b; font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.65; word-break: keep-all; }
.landing-photo { min-height: 25rem; background: #5e513e url('/memory-hero.webp') center 57% / cover no-repeat; }
.landing-actions { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; }
.site-cta, .site-soft { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: .6rem; min-height: 3.25rem; padding: .7rem 1.16rem; font-size: 1rem; font-weight: 720; }
.site-cta { background: var(--accent); color: white; }
.site-cta:hover { background: #36268d; color: white; }
.site-soft { border: 1px solid #bdafd8; background: transparent; color: var(--accent); }
.site-soft:hover:not(:disabled) { background: #f6f2ff; color: var(--accent); }
.site-text-link { font-weight: 735; color: #33277d; text-underline-offset: .29em; text-decoration-thickness: 1px; }
.site-text-link:hover, .activity-card a:hover .activity-more { color: #5c42bd; }
.editorial-section { margin-top: clamp(3rem, 5.6vw, 5.6rem); }
.editorial-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.editorial-heading h2, .oni-strip h2 { font-size: clamp(1.7rem, 3.15vw, 3.05rem); font-weight: 810; line-height: 1.15; letter-spacing: -.067em; word-break: keep-all; }
.editorial-heading a { white-space: nowrap; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.25vw, 2rem); }
.activity-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: .9rem .9rem 0 0; padding-bottom: 1.22rem; border-bottom: 1px solid var(--line); }
.activity-card:focus-within a { border-color: var(--accent); }
.activity-card h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); font-weight: 815; letter-spacing: -.055em; line-height: 1.2; }
.activity-card p { margin: .6rem 0 .75rem; color: var(--muted-ink); line-height: 1.62; word-break: keep-all; }
.activity-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 1rem 0 .58rem; color: #534d66; font-size: .9rem; font-weight: 650; }
.activity-meta span + span { padding-left: 1rem; border-left: 1px solid #ccc6d6; }
.activity-more { color: var(--accent); font-weight: 735; margin-top: auto; text-decoration: underline; text-underline-offset: .23em; }
.activity-cover { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.72; border-radius: .85rem; }
.activity-cover { container-type: inline-size; }
.oni-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2.7rem, 5vw, 4.5rem); border-radius: 1rem; background: #ece8f7; }
.oni-strip h2 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); }
.oni-strip p { margin: .62rem 0 0; color: var(--muted-ink); }
.directory-intro { padding-top: clamp(1.4rem, 4vw, 4.05rem); padding-bottom: 2rem; }
.directory-intro h1, .detail-copy h1 { font-size: clamp(2.65rem, 5.25vw, 5.25rem); line-height: 1.05; font-weight: 845; letter-spacing: -.075em; word-break: keep-all; }
.directory-intro p, .detail-copy p { color: var(--muted-ink); margin: 1.05rem 0 0; max-width: 47rem; font-size: 1.09rem; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-block: 1px solid var(--line); padding: .9rem 0; margin-bottom: 1.65rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter-group button { min-height: 2.75rem; padding: .45rem .95rem; font-size: .95rem; background: transparent; border: 1px solid var(--line); border-radius: 90px; color: var(--ink); }
.filter-group button[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-group button:hover:not([aria-pressed='true']) { background: #efebfa; }
.catalog-count { font-size: .91rem; color: var(--muted-ink); white-space: nowrap; }
.back-link { display: inline-block; margin-bottom: 1.4rem; }
.activity-detail { display: grid; grid-template-columns: 1fr 1.05fr; align-items: start; gap: clamp(2rem, 5vw, 5.85rem); }
.activity-detail .activity-cover { aspect-ratio: 1.13; }
.detail-copy .activity-meta { margin: 0 0 .8rem; }
.detail-copy h2 { margin-top: 1.65rem; font-size: 1.36rem; letter-spacing: -.035em; }
.detail-copy ol { margin: .65rem 0 0; padding-inline-start: 1.65rem; }
.detail-copy li { padding-inline-start: .25rem; margin: .35rem 0; }
.detail-copy .landing-actions { margin-top: 1.7rem; }
.detail-reward { font-weight: 700; font-size: .95rem; color: var(--muted-ink); }
.company-page {
  --company-night: #0a111b;
  --company-steel: #152333;
  --company-text: #182738;
  --company-blue: #acd6ee;
  --company-faint: #c6d4e1;
  color: var(--company-text);
  background: #f6f8fa;
}
body:has(.company-page) main#main { width: 100%; padding: 0; }
body:has(.company-page) .site-header { background: #0a111b; border-color: #2d3d4d; }
body:has(.company-page) .site-header :is(.site-brand,.site-wallet,.site-nav a) { color: #edf4fa; }
body:has(.company-page) .site-header :is(.site-wallet,.language-choice) { border-color: #3b4b5d; }
body:has(.company-page) .site-header .site-mark { background: #abd6eb; color: #102237; }
body:has(.company-page) .site-header .site-wallet:hover { background: #203347; }
body:has(.company-page) .site-header .language-choice button { color: #d4deea; }
body:has(.company-page) .site-header .language-choice button[aria-pressed='true'] { color: #14293c; background: #c8e5f4; }
body:has(.company-page) .site-header .site-nav a:is(.active,:hover) { border-color: #acd6ee; color: #c4e5f8; }
body:has(.company-page) .site-header :focus-visible { outline-color: #b5dff6; }
body:has(.company-page) .site-footer { background: #eaf0f5; border-color: #dce4ec; }

.company-wrap { width: min(100% - 6rem, 84rem); margin-inline: auto; }
.company-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(31rem, 52vw, 46rem); background: var(--company-night); color: #f4f8fc; overflow: hidden; }
.company-hero-image { position: absolute; z-index: -1; inset: 0; }
.company-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right 47%; }
.company-hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0a111b 0%, #0a111bf3 15%, #0a111bb8 35%, #0a111b38 55%, transparent 70%); }
.company-hero-copy { padding-block: clamp(3.5rem, 6vw, 6.4rem); }
.company-label { margin: 0 0 .95rem; color: #416783; font-size: .94rem; font-weight: 740; }
.company-hero .company-label { color: var(--company-blue); }
.company-hero h1 { font-size: clamp(2.9rem, 5.15vw, 6.05rem); line-height: 1.13; letter-spacing: -.075em; font-weight: 825; word-break: keep-all; }
.company-hero h1 span { color: #b7dcf4; }
.company-hero .company-lead { max-width: min(35rem, 49%); margin: clamp(1.1rem, 2.5vw, 1.85rem) 0 1.55rem; color: #deebf7; font-size: clamp(1.01rem, 1.36vw, 1.26rem); line-height: 1.75; }
.company-button { display: inline-flex; min-height: 3.15rem; align-items: center; justify-content: center; border: 1px solid #c5e4f6; border-radius: .42rem; padding: .68rem 1.1rem; background: #c5e4f6; color: #112335; font-weight: 720; }
.company-button:hover { background: #e7f4fc; border-color: #e7f4fc; }
.company-hero .company-button:focus-visible { outline-color: #c9e9fd; }
.company-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.1rem, 6.4vw, 7.75rem); align-items: center; padding-block: clamp(3.4rem, 8vw, 7.5rem); }
.company-page h2 { font-size: clamp(2rem, 3.35vw, 3.95rem); line-height: 1.18; letter-spacing: -.063em; font-weight: 800; }
.company-story-copy p:not(.company-label), .company-research p { margin: .95rem 0 0; max-width: 38rem; color: #3f5465; line-height: 1.78; }
.company-story-copy h2 + p { margin-top: 1.25rem; }
.company-story-photo { margin: 0; aspect-ratio: 1.33; overflow: hidden; border-radius: .5rem; background: #263743; }
.company-story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.company-process { background: var(--company-steel); color: #f0f6fc; }
.company-process .company-label { color: var(--company-blue); }
.company-research { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2.75rem, 6vw, 5.25rem); }
.company-research h2 { font-size: clamp(1.8rem, 2.8vw, 3rem); }
.company-button-dark { background: #152c40; border-color: #152c40; color: #f0f7fc; }
.company-button-dark:hover { background: #294a62; border-color: #294a62; }
.site-footer { padding: 0; border-top: 1px solid var(--line); background: #f0edf6; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; padding: 1.8rem 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; align-items: center; }
.footer-inner nav a, .footer-inner nav button { font-size: .9rem; color: #41385f; padding: .25rem 0; margin: 0; text-decoration: underline; text-underline-offset: .22em; }
.footer-inner nav button { min-height: 2.75rem; padding: 0; border: 0; background: none; }
.footer-inner p { grid-column: 1/-1; margin: 0; color: var(--muted-ink); font-size: .88rem; }
.route-activity .intro h1, .route-activity .routine-page h1 { font-size: clamp(2rem, 4vw, 3.65rem); color: var(--ink); line-height: 1.12; letter-spacing: -.063em; }
.route-activity .secondary, .route-activity .routine-link-button.secondary { background: #efebfa; color: #45339c; }
.route-activity .routine-steps li[aria-current], .route-activity .routine-choices button[aria-pressed='true'] { background: #e9e0fc; color: #392a83; border-color: #5e4cb8; }
.route-activity .routine-steps li[aria-current] { box-shadow: inset 0 -3px #5e4cb8; }
.route-activity .memory-card { background-color: #e8e1f9; }
.route-activity .memory-card.revealed, .route-activity .memory-card.matched { background-color: #f8f4ff; }
.route-activity .memory-card .card-back { background-color: #c7b9ed; color: #35258d; }
.route-activity .game-screen, .route-activity .reading, .route-activity .routine-wrap { margin-inline: auto; }
.editorial .activity-card a, .editorial a:hover { opacity: 1; }

@media (max-width: 950px) {
  .site-bar, .footer-inner, main#main { width: calc(100% - 3rem); }
  .site-bar { gap: 1rem; }
  .site-nav { gap: 1rem; }
  .landing-hero { min-height: 25rem; }
  .landing-photo { min-height: 22rem; }
  .company-wrap { width: calc(100% - 3rem); }
}
@media (max-width: 760px) {
  .company-wrap { width: calc(100% - 2.5rem); }
  .company-hero { min-height: 0; grid-template-rows: auto auto; }
  .company-hero-image { position: relative; grid-row: 2; min-height: 14rem; aspect-ratio: 1.52; }
  .company-hero-image img { position: absolute; inset: 0; object-position: right 42%; }
  .company-hero-image::after { background: linear-gradient(180deg, #0a111b, #0a111b1a 30%, transparent 55%); }
  .company-hero-copy { grid-row: 1; padding-block: 2.55rem 1rem; }
  .company-hero h1 { font-size: clamp(2.55rem, 8.7vw, 4.6rem); }
  .company-hero .company-lead { max-width: min(100%, 32rem); }
  .company-story { grid-template-columns: 1fr; }
  .company-story-photo { aspect-ratio: 1.42; }
}
@media (max-width: 700px) {
  .site-bar, .footer-inner, main#main { width: calc(100% - 2rem); }
  .site-bar { grid-template-columns: 1fr auto; gap: .15rem .65rem; padding-top: .6rem; }
  .site-nav { grid-column: 1/-1; grid-row: 2; justify-content: start; overflow: auto; scrollbar-width: thin; gap: 1.05rem; }
  .site-nav a { padding: .6rem 0; }
  .site-tools { gap: .55rem; }
  main#main { padding: 1.25rem 0 3rem; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-copy { padding: clamp(1.55rem, 6.5vw, 2.8rem); }
  .landing-photo { min-height: 0; aspect-ratio: 1.4; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-detail { grid-template-columns: 1fr; gap: 1.55rem; }
  .activity-detail .activity-cover { aspect-ratio: 1.8; }
  .editorial-heading { align-items: start; }
  .footer-inner { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 430px) {
  .activity-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .editorial-heading { display: grid; gap: .5rem; }
  .catalog-toolbar { flex-wrap: wrap; }
}
