/* artsyficial - design tokens mirror orbixcore.ai (style.css :root) so the
   gallery reads as part of the same family. */

:root {
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --ink: #09090B;
  --ink-soft: #52525B;
  --ink-mute: #71717A;
  --line: rgba(9, 9, 11, 0.08);
  --line-strong: rgba(9, 9, 11, 0.16);
  --accent: #059669;
  --accent-soft: rgba(5, 150, 105, 0.10);
  --accent-ink: #FFF;
  --surface: rgba(9, 9, 11, 0.03);
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 8px 24px -16px rgba(9, 9, 11, 0.10);
  --gold: #b45309;
  --radius: 10px;
}
[data-theme='dark'] {
  --bg: #09090B;
  --bg-2: #0F0F12;
  --ink: #FAFAFA;
  --ink-soft: #A1A1AA;
  --ink-mute: #71717A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: oklch(0.77 0.15 163);
  --accent-soft: oklch(0.77 0.15 163 / 0.12);
  --accent-ink: #052E22;
  --surface: rgba(255, 255, 255, 0.03);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 48px -24px rgba(0, 0, 0, 0.5);
  --gold: #fbbf24;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: 'ss01', 'ss02'; letter-spacing: 0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 18px 32px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand span b { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-soft);
  transition: color 160ms, background 160ms;
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.is-active { color: var(--ink); background: var(--surface); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--line-strong); }

/* --------------------------------------------------------------- page */
.page { max-width: 1200px; margin: 0 auto; padding: 48px 32px 80px; }
.page-header { padding: 16px 0 40px; max-width: 880px; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; color: var(--ink-mute); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-title { margin: 12px 0 10px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.section-title-soft { color: var(--ink-mute); font-weight: 400; }
.page-body { margin: 0; font-size: 17px; color: var(--ink-soft); max-width: 640px; }

.ai-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 12px; color: var(--ink-soft);
}
.ai-badge::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.notice {
  padding: 20px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-soft); background: var(--surface); max-width: 720px;
}
.notice strong { color: var(--ink); }

/* ----------------------------------------------------------- spotlight */
.spotlight { margin: 8px 0 56px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); box-shadow: var(--shadow); }
.spotlight-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 20px; }
.spotlight h2 { margin: 6px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.summary { font-size: 17px; color: var(--ink); max-width: 760px; white-space: pre-wrap; }
.summary-by { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.winners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.winner { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.winner figure { margin: 0; aspect-ratio: 1; background: var(--surface); position: relative; }
.winner img { width: 100%; height: 100%; object-fit: cover; }
.medal {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-strong); font-size: 12px; color: var(--gold);
}
.winner-body { padding: 14px 16px 16px; }
.winner-title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.winner-by { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }
.scores { display: flex; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.scores b { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------- grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.card figure { margin: 0; position: relative; background: var(--surface); aspect-ratio: 1; }
.card figure img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-2); }
.card figure a { display: block; height: 100%; }
.rank-pill { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); font-size: 12px; }
.kind-pill { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 11px; color: var(--ink-mute); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.card-title { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.card-by { font-size: 13px; color: var(--ink-mute); }
.card-by b { color: var(--ink-soft); font-weight: 500; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 4px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .quote { color: var(--ink); font-style: italic; }

details { border-top: 1px solid var(--line); padding-top: 10px; }
details summary { cursor: pointer; font-size: 13px; color: var(--ink-soft); list-style: none; display: flex; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+'; font-family: var(--mono); color: var(--ink-mute); }
details[open] summary::before { content: '-'; }
details summary:hover { color: var(--ink); }
.details-body { padding: 12px 0 2px; display: flex; flex-direction: column; gap: 12px; }
pre.prompt { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: var(--ink-soft); font-family: var(--mono); }
.meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-mute); }

.vote { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.vote-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.vote-head b { font-weight: 500; }
.vote-scores { color: var(--ink-mute); font-size: 12px; }
.vote p { margin-top: 6px; font-size: 14px; }

/* ----------------------------------------------------------- archive */
.archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.archive-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); transition: border-color 160ms, transform 160ms; }
.archive-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.archive-card figure { margin: 0; aspect-ratio: 16/10; background: var(--surface); }
.archive-card img { width: 100%; height: 100%; object-fit: cover; }
.archive-body { padding: 14px 16px 16px; }
.archive-week { font-size: 12px; color: var(--ink-mute); }
.archive-title { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.archive-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* ------------------------------------------------------------- about */
.prose { max-width: 760px; color: var(--ink-soft); font-size: 16px; }
.prose h2 { color: var(--ink); font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 32px 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--ink-mute); }
.footer a:hover { color: var(--ink); }

.skeleton { height: 240px; border-radius: 14px; background: linear-gradient(90deg, var(--surface), transparent, var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

/* --------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .winners, .archive { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { padding: 14px 16px; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .page { padding: 28px 16px 64px; }
  .grid, .winners, .archive { grid-template-columns: 1fr; }
  .spotlight { padding: 20px; }
  .card-body { padding: 16px; }
}
