/* ALTTAKE — alttake.kr
   Design source: ALTTAKE-Design-Package-v1 (spec/DESIGN-GUIDE.ko.md) */

/* ---------- Fonts (self-hosted, SIL OFL — see /assets/fonts/*-OFL.txt) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
/* Lightweight subset with every glyph used on the site */
@font-face {
  font-family: "Noto Sans KR Subset";
  src: url("/assets/fonts/NotoSansKR-SiteSubset.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Full set — only downloaded if a glyph is missing from the subset */
@font-face {
  font-family: "Noto Sans KR";
  src: url("/assets/fonts/NotoSansKR-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0d0c;
  --surface: #121713;
  --paper: #f4f5f1;
  --muted: #a5afa9;
  --mint: #93f5ca;
  --mint-hover: #b9ffdf;
  --green-on-light: #167a55;
  --light-muted: #526158;
  --line: #303a34;
  --control-line: #65766b;

  --font-display: "Space Grotesk", "Noto Sans KR Subset", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR Subset", "Noto Sans KR", sans-serif;

  --container: 1280px;
  --gutter: 48px;
  --header-h: 88px;
  --section-pad: 112px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}
.apps a:focus-visible { outline-color: var(--green-on-light); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mint { color: var(--mint); }
.line { display: block; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  background: var(--mint);
  color: var(--ink);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand { display: block; flex: none; }
.logo { width: 174px; }
.navlinks { display: flex; gap: 32px; font-size: 13px; }
.navlinks a {
  color: #c1c8c3;
  position: relative;
  padding-block: 8px;
  transition: color .18s ease;
}
.navlinks a:hover, .navlinks a[aria-current] { color: var(--paper); }
.navlinks a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 16px;
  height: 2px;
  background: var(--mint);
}
.navend {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}
.navend span { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }
.menubtn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 10px;
  background: none;
  border: 0;
}
.menubtn img { width: 24px; height: 24px; }
.mobile-nav[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  min-height: 812px;
  display: flex;
  flex-direction: column;
}
.heroart {
  position: absolute;
  top: -2px;
  right: -160px;
  width: 1350px;
  height: 844px;
  pointer-events: none;
}
.heroart img { width: 100%; height: 100%; object-fit: contain; }
.herocopy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  padding-top: 110px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--mint); }
.herocopy h1 {
  font-size: 96px;
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 500;
  margin: 32px 0;
}
.lead {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: #b6c0b9;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--control-line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn:hover { border-color: var(--mint); background: #1c2a22; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn.primary:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
.arrow { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.herobottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 120px;
  padding-bottom: 30px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
}
.herobottom a { padding-block: 8px; }
.herobottom .caption { color: #8c9c91; text-align: right; }

/* ---------- Sections ---------- */
.section > .wrap { padding-block: var(--section-pad); }
#about > .wrap, #games > .wrap { border-top: 1px solid var(--line); }

.section-index {
  font-size: 12px;
  letter-spacing: .12em;
  color: #9ca89f;
  display: flex;
  gap: 30px;
}
.section-index b { color: var(--mint); font-weight: 400; }

.sectiontop {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.sectiontop h2 {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  margin-top: 24px;
}
.sectiontop > p {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

/* About */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.about h2 {
  font-family: var(--font-body);
  font-size: 42px;
  line-height: 1.45;
  letter-spacing: -.055em;
  font-weight: 500;
  margin-bottom: 24px;
}
.about-body {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  max-width: 610px;
}
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}
.values span { color: #7a8e80; margin-right: 12px; font-weight: 400; }

/* Project cards (shared) */
.imagebox {
  position: relative;
  overflow: hidden;
  border: 1px solid #28392e;
  background: #101713;
}
.projectart { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pill {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(17, 28, 22, .91);
  border: 1px solid #516358;
  color: #d8e6dc;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  padding: 7px 10px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  border: 1px solid #3d4b42;
  padding: 5px 9px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #c0cec4;
}
.unconfirmed {
  font-family: var(--font-body);
  font-size: 11px;
  color: #8da394;
  margin-top: 12px;
}
.note {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.8;
  color: #9bae9f;
  margin-top: 24px;
}

/* Games */
.gamesgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.projectmeta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
}
.project h3 {
  font-family: var(--font-body);
  font-size: 24px;
  letter-spacing: -.04em;
  font-weight: 600;
  margin-bottom: 12px;
}
.project p:not(.unconfirmed) {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.projectnum { flex: none; font-size: 12px; color: #8ca192; padding-top: 6px; }

/* Apps (paper) */
.apps { background: var(--paper); color: var(--ink); }
.apps .section-index { color: #5a685f; }
.apps .section-index b { color: var(--green-on-light); }
.apps .sectiontop > p { color: #5a685f; }
.apps .note { color: var(--light-muted); }
.appcard { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.appcopy .micro {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--green-on-light);
}
.appcopy h3 {
  font-family: var(--font-body);
  font-size: 40px;
  letter-spacing: -.045em;
  font-weight: 500;
  margin: 10px 0 20px;
}
.appcopy > p:not(.micro):not(.unconfirmed) {
  font-family: var(--font-body);
  color: var(--light-muted);
  font-size: 15px;
  line-height: 1.95;
  max-width: 430px;
}
.appcopy .tags { margin-top: 24px; }
.appcopy .tag { color: #42594b; border-color: #b1c2b7; }
.appcopy .unconfirmed { color: var(--light-muted); }

/* Contact */
.contact > .wrap { padding-top: 110px; }
.contacttop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.contact h2 {
  font-size: 76px;
  letter-spacing: -.055em;
  line-height: 1.04;
  font-weight: 500;
  margin: 28px 0 20px;
}
.contact p:not(.section-index) {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.contact .contactnotice {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #b5c5ba;
  font-size: 13px;
}
.contactnotice i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.contactsymbol { flex: none; width: 132px; margin-top: 30px; }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 72px;
  padding-bottom: 70px;
  color: #98a79d;
  font-size: 11px;
  line-height: 1.8;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}
.site-footer { padding-top: 24px; }
.site-footer a { color: var(--paper); font-weight: 500; letter-spacing: .06em; transition: color .18s ease; }
.site-footer a:hover { color: var(--mint); }

/* ---------- Wide screens ---------- */
@media (min-width: 1600px) {
  .heroart { right: calc((100vw - 1440px) / 2 - 120px); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .navend { display: none; }
  .heroart { right: -360px; opacity: .7; }
  .herocopy h1 { font-size: 84px; }
  .about { gap: 32px; }
  .about h2 { font-size: 35px; }
  .sectiontop h2 { font-size: 56px; }
  .appcard { gap: 32px; }
  .contact h2 { font-size: 68px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --gutter: 24px; --header-h: 72px; --section-pad: 64px; }
  .logo { width: 142px; }
  .navlinks, .navend { display: none; }
  .menubtn { display: grid; place-items: center; }

  .mobile-nav { border-bottom: 1px solid var(--line); }
  .mobile-nav .wrap { display: grid; padding-block: 12px; }
  .mobile-nav a {
    font-size: 18px;
    font-weight: 500;
    padding-block: 12px;
    color: #c1c8c3;
  }
  .mobile-nav a[aria-current] { color: var(--mint); }

  .hero-inner { min-height: 0; }
  .herocopy { padding-top: 64px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .herocopy h1 { font-size: 58px; letter-spacing: -.06em; line-height: 1.03; margin: 26px 0 24px; }
  .lead { font-size: 13px; line-height: 1.95; }
  .actions { margin-top: 28px; gap: 10px; }
  .btn { padding: 0 15px; font-size: 12px; gap: 21px; }

  /* Mobile art flows in the column instead of overlapping text */
  .heroart {
    position: relative;
    top: auto;
    right: auto;
    width: min(340px, 100%);
    height: auto;
    aspect-ratio: 1;
    margin: 24px auto 0;
    opacity: 1;
  }
  .herobottom {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 26px;
    font-size: 9px;
    letter-spacing: .09em;
    gap: 10px;
  }
  .herobottom .caption { font-size: 8px; }

  .section-index { font-size: 11px; gap: 20px; }
  .about { display: block; }
  .about h2 { font-size: 29px; line-height: 1.5; margin: 32px 0 20px; letter-spacing: -.06em; }
  .about-body { font-size: 13px; }
  .values { justify-content: space-between; gap: 12px; font-size: 10px; margin-top: 30px; padding-top: 20px; letter-spacing: 0; }
  .values span { margin-right: 6px; }

  .sectiontop { display: block; margin-bottom: 28px; }
  .sectiontop h2 { font-size: 48px; margin-top: 20px; }
  .sectiontop > p { margin-top: 20px; font-size: 13px; text-align: left; }

  .gamesgrid { grid-template-columns: 1fr; gap: 46px; }
  .pill { top: 12px; left: 12px; font-size: 9px; padding: 6px 8px; }
  .projectmeta { margin-top: 20px; }
  .project h3 { font-size: 21px; }
  .project p:not(.unconfirmed) { font-size: 13px; }
  .tags { margin-top: 16px; }
  .tag { font-size: 9px; }
  .unconfirmed { font-size: 10px; }
  .note { font-size: 10px; }

  .appcard { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .appcopy .micro { font-size: 10px; }
  .appcopy h3 { font-size: 29px; margin: 10px 0 16px; }
  .appcopy > p:not(.micro):not(.unconfirmed) { font-size: 13px; }

  .contact > .wrap { padding-top: 64px; }
  .contacttop { gap: 12px; }
  .contact h2 { font-size: 50px; margin-top: 30px; }
  .contact p:not(.section-index) { font-size: 13px; }
  .contact .contactnotice { font-size: 12px; margin-top: 28px; }
  .contactsymbol { width: 60px; margin-top: 32px; }

  .site-footer { margin-top: 48px; padding-bottom: 32px; font-size: 9px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .herocopy h1 { font-size: clamp(44px, 14.5vw, 52px); }
  .herobottom .caption { display: none; }
  .values { flex-direction: column; }
  .contact h2 { font-size: 42px; }
  .contactsymbol { display: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
