/* Zoignon Studio one-pager. Warm paper + copper, no JS, no build step.
   Light + dark via prefers-color-scheme. */

:root {
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --surface-2: #f1ebe1;
  --ink: #3b3733;
  --ink-soft: #5f5852;
  --line: #e5ddd0;
  --accent: #b06a38;
  --accent-ink: #8c4f22;
  --accent-soft: #f7ecdf;
  --radius: 18px;
  --shadow: 0 4px 24px rgba(80, 66, 52, 0.08);
  --maxw: 960px;
  --ease: 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201d1a;
    --surface: #2a2622;
    --surface-2: #242019;
    --ink: #ece6de;
    --ink-soft: #a8a097;
    --line: #3a342d;
    --accent: #d99a6c;
    --accent-ink: #e4b28b;
    --accent-soft: #352a20;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }
  /* In dark mode the accent is light, so the primary button uses dark text */
  .btn-primary { background: var(--accent); color: var(--bg); }
  .btn-primary:hover { background: var(--accent-ink); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
a { color: var(--accent-ink); }

/* Focus: always visible, generous */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  z-index: 100; transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; gap: 16px; flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
}
.wordmark .mark { color: var(--accent); flex: none; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }

/* Layout */
.hero, .band { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; }
.band { border-top: 1px solid var(--line); }
.band-tint { background: var(--surface-2); max-width: none; border-top: none; }
.band-tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; text-align: center; }
.band-lede { color: var(--ink-soft); max-width: 60ch; margin: 0 auto 28px; font-size: 1.05rem; text-align: center; }

/* Hero */
.hero { padding-top: 48px; text-align: center; }
.badge {
  display: inline-block; margin: 0 0 18px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-size: 0.82rem; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem); margin: 0 auto 18px; max-width: 20ch;
  letter-spacing: -0.02em;
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 52ch; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform 0.12s ease, background var(--ease), border-color var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: #74401a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.card p { margin: 0; color: var(--ink-soft); }
.card-soon { border-style: dashed; }
.card-link { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.pill {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.pill-live { background: #e6f4ea; color: #2e7d52; border-color: #cfe9d8; }
@media (prefers-color-scheme: dark) {
  .pill-live { background: #1e3a2a; color: #8fd6a8; border-color: #2c5440; }
}

/* Team */
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 14px; box-shadow: var(--shadow);
  font: inherit; color: var(--ink); text-align: center; cursor: pointer;
  transition: border-color var(--ease), transform 0.12s ease;
}
.member:hover { border-color: var(--accent); transform: translateY(-2px); }
.member:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.member-name { font-weight: 700; line-height: 1.3; }
.member-role { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.monogram {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint, var(--accent-soft)); color: #3b3733;
  font-weight: 800; font-size: 1.05rem; border: 1px solid rgba(59, 55, 51, 0.12);
}
.avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  object-fit: cover; display: block; border: 1px solid var(--line);
}
.band .microcopy { text-align: center; }
.microcopy { color: var(--ink-soft); font-size: 0.9rem; margin-top: 22px; }

/* Team dialogs */
.member-dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  width: min(420px, 92vw);
}
.member-dialog::backdrop { background: rgba(40, 33, 27, 0.45); }
.dialog-inner {
  position: relative; padding: 30px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.dialog-inner h3 { margin: 6px 0 0; font-size: 1.2rem; }
.member-bio { color: var(--ink-soft); margin: 10px 0 0; }
.member-links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.member-links a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.member-links a:hover { border-color: var(--accent); }
.dialog-close {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background var(--ease);
}
.dialog-close:hover { background: var(--accent-soft); }
.dialog-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Klei dialog */
.card-link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.card-link-btn:hover { text-decoration: underline; }
.card-link-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.klei-dialog { width: min(640px, 94vw); }
.klei-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; width: 100%; }
.klei-gallery figure {
  margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  /* Fixed warm paper so the transparent sprites stay legible in dark mode too */
  background: #f4efe6;
}
.klei-gallery img { width: 100%; height: 140px; object-fit: contain; display: block; }
.klei-gallery figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }
@media (prefers-color-scheme: dark) {
  .klei-gallery figcaption { color: #5f5852; }
}
@media (max-width: 480px) {
  .klei-gallery { grid-template-columns: 1fr; }
}

/* Gentle list */
.gentle-list { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 12px; max-width: 56ch; }
.gentle-list li { position: relative; padding-left: 30px; color: var(--ink); }
.gentle-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface-2);
  padding: 36px 24px; text-align: center;
}
.copyright { color: var(--ink-soft); font-size: 0.88rem; margin: 0 auto; }

/* Responsive */
@media (max-width: 860px) {
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-nav { gap: 16px; font-size: 0.9rem; }
  .hero, .band { padding: 40px 20px; }
}
