/* BOLDBIT Official Site — v0.1
   Shared stylesheet. All resource paths in this project are relative. */

:root {
  --bg: #0c0c0b;
  --bg-2: #151513;
  --line: #2a2926;
  --text: #f1f0ea;
  --muted: #a19f96;
  --dim: #6b6962;
  --accent: #ffd23f;
  --accent-ink: #0c0c0b;
  --head: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Logo (same wordmark as the publisher page) ---------- */
.logo {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
}
.logo b {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  background: var(--accent);
  margin-left: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: rgba(12, 12, 11, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; gap: 4px; }
.nav a {
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--text); }

/* ---------- Common type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.h-display {
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
  font-size: clamp(48px, 10vw, 140px);
  margin: 0;
}
.h-section {
  font-weight: 900; letter-spacing: -0.035em; line-height: 1.1;
  font-size: clamp(32px, 5vw, 56px);
  margin: 16px 0 0;
}
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 40em; }
.lead strong { color: var(--text); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: clamp(72px, 12vw, 160px) 0 clamp(48px, 6vw, 80px); }
.page-hero .h-display { font-size: clamp(56px, 12vw, 168px); margin-top: 18px; }
.page-hero .lead { margin-top: 28px; }

/* ---------- Main: hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--head));
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  display: grid; grid-template-columns: repeat(3, 1fr);
  opacity: .22; filter: grayscale(.5) blur(1.5px);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,.35) 35%, var(--bg) 92%),
    linear-gradient(90deg, rgba(12,12,11,.85) 0%, rgba(12,12,11,0) 70%);
}
.hero .h-display { margin-top: 22px; }
.hero .h-display .sq {
  display: inline-block; width: .32em; height: .32em; background: var(--accent);
  margin-left: .06em; vertical-align: baseline;
}
.hero-sub { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero-sub .lead { margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Main: games strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip a { display: block; }
.strip figure { margin: 0; }
.strip .thumb { overflow: hidden; border-radius: 10px; background: var(--bg-2); aspect-ratio: 16 / 9; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.strip a:hover img { transform: scale(1.04); }
.strip figcaption { margin-top: 14px; }
.strip .t { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.strip .g { font-size: 14px; color: var(--muted); }

/* ---------- Main: manifesto band ---------- */
.band { background: var(--accent); color: var(--accent-ink); }
.band .eyebrow { color: var(--accent-ink); }
.band .eyebrow::before { background: var(--accent-ink); }
.band .h-section { margin: 16px 0 0; max-width: 18em; }
.band p { font-size: clamp(17px, 1.8vw, 20px); max-width: 38em; margin: 24px 0 32px; }
.band .btn { background: var(--accent-ink); color: var(--accent); }

/* ---------- About ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 36px 32px 8px 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .num { font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.principle h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; margin: 14px 0 14px; }
.principle p { color: var(--muted); margin: 0; }

.doing { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.doing ol { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.doing li { counter-increment: d; padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.doing li:last-child { border-bottom: 1px solid var(--line); }
.doing li::before { content: counter(d, decimal-leading-zero); font-weight: 900; color: var(--dim); font-size: 20px; line-height: 1.5; }
.doing li strong { display: block; font-size: 20px; letter-spacing: -0.02em; }
.doing li span { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: var(--bg-2); border-radius: 12px; padding: 24px; }
.fact dt { font-size: 13px; color: var(--dim); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fact dd { margin: 8px 0 0; font-size: 18px; font-weight: 700; }

/* ---------- Games ---------- */
.game {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--head);
}
.game:nth-child(even) .game-art { order: 2; }
.game-art { border-radius: 14px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 9; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-info .idx { font-size: 14px; font-weight: 800; color: var(--dim); letter-spacing: .1em; }
.game-info h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 16px; }
.game-info .genre { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.game-info .genre::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.game-info p { color: var(--muted); font-size: 18px; margin: 20px 0 0; }
.game-info p em { font-style: normal; color: var(--text); font-weight: 700; }
.status { margin-top: 24px; display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--text); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.mail-big {
  display: inline-block; font-weight: 900; letter-spacing: -0.035em; line-height: 1.05;
  font-size: clamp(28px, 5vw, 60px);
  border-bottom: 4px solid var(--accent); padding-bottom: 6px;
  word-break: break-all;
}
.mail-big:hover { color: var(--accent); }
.topics { list-style: none; padding: 0; margin: 0; }
.topics li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.topics li:last-child { border-bottom: 1px solid var(--line); }
.topics strong { font-size: 18px; }
.topics span { color: var(--muted); text-align: right; }
.info { margin-top: 48px; display: grid; gap: 4px; color: var(--muted); }
.info b { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer .logo { font-size: 20px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principles { border-top: 0; }
  .doing, .contact-grid { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
  .game:nth-child(even) .game-art { order: 0; }
  .facts { grid-template-columns: 1fr; }
  .hero-bg { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  :root { --head: 60px; }
  body { font-size: 16px; }
  .logo { font-size: 22px; }
  .nav { gap: 0; }
  .nav a { font-size: 12px; padding: 6px 8px; letter-spacing: .03em; }
  .strip { grid-template-columns: 1fr; }
  .topics li { flex-direction: column; gap: 2px; }
  .topics span { text-align: left; }
}
@media (max-width: 360px) {
  .logo { font-size: 19px; }
  .nav a { padding: 6px 6px; font-size: 11px; }
}

/* ---------- About: name card (v0.1 rev2) ---------- */
.name-card { background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: clamp(28px, 5vw, 56px); }
.name-eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(36px, 7vw, 88px); }
.name-eq i { font-style: normal; font-weight: 400; opacity: .55; }
.name-eq .logo { font-size: 1em; color: var(--accent-ink); }
.name-eq .logo b { background: var(--accent-ink); }
.name-card p { margin: 24px 0 0; font-size: clamp(17px, 1.8vw, 20px); max-width: 40em; }
.strip { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .strip { grid-template-columns: 1fr; } }

/* ---------- Games grid (v0.1 rev3) ---------- */
.ggrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); padding-bottom: clamp(72px, 10vw, 140px); }
.gcard { background: var(--bg-2); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: calc(var(--head) + 16px); }
.gcard-art { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.gcard-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gcard:hover .gcard-art img { transform: scale(1.03); }
.gcard-body { padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; flex: 1; }
.gcard-top { display: flex; align-items: center; gap: 12px; }
.gcard .idx { font-size: 13px; font-weight: 800; color: var(--dim); letter-spacing: .1em; }
.gcard .genre { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.gcard .genre::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: 0 0 auto; }
.gcard h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; margin: 12px 0 0; }
.gcard p { color: var(--muted); margin: 14px 0 0; font-size: 16px; }
.gcard p em { font-style: normal; color: var(--text); font-weight: 700; }
.gcard .tags { margin-top: 12px; font-size: 13px; color: var(--dim); }
.progress { margin-top: auto; padding-top: 24px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.progress-label b { color: var(--text); font-weight: 800; }
.progress .bar { margin-top: 8px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.strip { grid-template-columns: repeat(4, 1fr); }
.hero-bg { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .ggrid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .hero-bg { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
}
@media (max-width: 600px) { .strip { grid-template-columns: 1fr; } }

/* ---------- v0.1 rev4 ---------- */
/* Contact email: always one line, scales with the column width */
.mail-big { white-space: nowrap; word-break: normal; overflow-wrap: normal; font-size: clamp(22px, 3.4vw, 48px); }
@media (max-width: 960px) { .mail-big { font-size: clamp(20px, 6.6vw, 48px); } }
.contact-grid > * { min-width: 0; }
.gcard h2 { margin-top: 0; }
