/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS  (mirrors portfolio design system)
══════════════════════════════════════════════════════════ */
:root {
  --bg:            #000000;
  --on-bg:         #ffffff;
  --muted:         #888888;
  --surface-bg:    rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --surface-border:rgba(255,255,255,0.09);

  --green-accent:      #66bb6a;
  --green-bg:          rgba(27, 94, 32, 0.22);
  --shared-cursor-accent: var(--green-accent);

  --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:  1240px;
  --nav-h:  68px;
  --pad-h:  44px;

  --r-pill: 9999px;
  --r-xl:   32px;
  --r-lg:   22px;
  --r-md:   14px;
  --r-sm:    8px;
}

[data-theme="light"] {
  --bg:            #ffffff;
  --on-bg:         #000000;
  --muted:         #555555;
  --surface-bg:    rgba(0,0,0,0.03);
  --surface-hover: rgba(0,0,0,0.05);
  --surface-border:rgba(0,0,0,0.08);

  --green-accent:  #2e7d32;
  --green-bg:      rgba(165, 214, 167, 0.22);
}

/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

img  { max-width:100%; height:auto; display:block; }
a    { color:inherit; text-decoration:none; }
ul   { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; color:inherit; }

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--surface-border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 15px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--green-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo-icon img { width:100%; height:100%; object-fit:cover; border-radius:0; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: color 0.18s, background 0.18s;
}
.nav-back i { font-size: 12px; }
.nav-back:hover { color: var(--on-bg); background: var(--surface-bg); }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
.icon-btn:hover { color: var(--on-bg); background: var(--surface-bg); }

/* Theme toggle icon rules → icons.css (shared) */

/* ══════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════ */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ══════════════════════════════════════════════════════════
   SURFACE CARD
══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s, border-color 0.2s;
}
.card:hover { background: var(--surface-hover); }
.card--no-hover:hover { background: var(--surface-bg); }

/* ══════════════════════════════════════════════════════════
   STATUS PILL
══════════════════════════════════════════════════════════ */
.pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill-green {
  color: var(--green-accent);
  background: color-mix(in srgb, var(--green-accent) 14%, transparent);
}
.pill-muted {
  color: var(--muted);
  background: color-mix(in srgb, var(--on-bg) 8%, transparent);
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
  text-decoration: none;
  user-select: none;
}
.btn:hover  { opacity: 0.82; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-filled  { background: var(--on-bg); color: var(--bg); }
.btn-outline {
  background: var(--surface-bg);
  color: var(--on-bg);
  border: 1px solid var(--surface-border);
}
.btn-outline:hover { background: var(--surface-hover); }

.is-release-disabled {
  opacity: 0.34;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.25);
}

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════════════ */
.display   { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.title-lg  { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.title-md  { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.body-lg   { font-size: 17px; line-height: 1.65; }
.body-md   { font-size: 15px; line-height: 1.7; }
.body-sm   { font-size: 13px; line-height: 1.6; }
.muted     { color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0;
  transition: border-color 0.3s;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.footer-link {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
.footer-link:hover { color: var(--on-bg); background: var(--surface-bg); }
.footer-notice { font-size: 13px; color: var(--muted); padding-left: 14px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1119px) {
  :root { --pad-h: 30px; }
  .display { font-size: 52px; }
}

@media (max-width: 759px) {
  :root { --nav-h: 60px; --pad-h: 20px; }
  .display { font-size: 40px; }
  .title-lg { font-size: 28px; }
}

::selection { background: color-mix(in srgb, var(--on-bg) 15%, transparent); }
