/* Palette generated by AccentPal (packages/core) from the Tuanopoly accent #12468f,
   split-complementary pairing. Same roles, same dark-mode rules as accentpal.tuanopoly.com.
   Regenerate with the engine rather than editing hex values by hand (see README). */
:root {
  --ap-accent: #12468f;
  --ap-on-accent: #ffffff;
  --ap-accent-hover: #01387f;
  --ap-secondary: #b45b26;
  --ap-background: #f8fafe;
  --ap-surface: #ffffff;
  --ap-border: #dadee4;
  --ap-text: #1a2028;
  --ap-text-muted: #5d646e;
  --ap-success: #238430;
  --ap-warning: #946900;
  --ap-error: #b94642;

  --display: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1080px;
  --radius: 14px;
  --t: 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ap-accent: #12468f;
    --ap-on-accent: #ffffff;
    --ap-accent-hover: #22559f;
    --ap-secondary: #e78956;
    --ap-background: #0c1015;
    --ap-surface: #191b1d;
    --ap-border: #2d333c;
    --ap-text: #dae9ff;
    --ap-text-muted: #97a6bc;
    --ap-success: #6bc670;
    --ap-warning: #dfa11a;
    --ap-error: #ff847d;
  }
}

:root[data-theme="dark"] {
  --ap-accent: #12468f;
  --ap-on-accent: #ffffff;
  --ap-accent-hover: #22559f;
  --ap-secondary: #e78956;
  --ap-background: #0c1015;
  --ap-surface: #191b1d;
  --ap-border: #2d333c;
  --ap-text: #dae9ff;
  --ap-text-muted: #97a6bc;
  --ap-success: #6bc670;
  --ap-warning: #dfa11a;
  --ap-error: #ff847d;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ap-text);
  background: var(--ap-background);
  transition: background-color var(--t), color var(--t);
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.hint { color: var(--ap-text-muted); font-size: 0.9rem; }
.muted { color: var(--ap-text-muted); }
:focus-visible { outline: 3px solid var(--ap-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ap-border);
  font: 600 0.95rem var(--body); text-decoration: none; cursor: pointer;
  background: var(--ap-surface); color: var(--ap-text);
  transition: background-color var(--t), color var(--t), border-color var(--t), transform 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--ap-accent); color: var(--ap-on-accent); border-color: transparent; }
.btn-accent:hover { background: var(--ap-accent-hover); }
.btn-quiet { background: transparent; }

/* ---------- nav ---------- */
.nav {
  max-width: var(--max); margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.05rem var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ap-accent); transition: background-color var(--t); }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav > a:not(.btn) { text-decoration: none; color: var(--ap-text-muted); font-weight: 500; }
.nav nav > a:not(.btn):hover { color: var(--ap-text); }
@media (max-width: 640px) { .nav nav > a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 24px;
  display: grid; gap: 22px; justify-items: start;
}
.eyebrow { font: 600 0.8rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-secondary); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.035em; max-width: 16ch;
}
.lede { max-width: 58ch; font-size: 1.15rem; color: var(--ap-text-muted); }
.lede strong { color: var(--ap-text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.socials {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin: 6px 0 0; padding: 0; list-style: none;
  font: 500 0.85rem var(--mono);
}
.socials a {
  display: inline-flex; gap: 0.5em; align-items: baseline; padding-block: 12px;
  text-decoration: none; color: var(--ap-text-muted); transition: color var(--t);
}
.socials a:hover { color: var(--ap-text); }
.socials a b { font-weight: 500; color: var(--ap-text); }

/* ---------- sections ---------- */
section.building, section.how, section.contact { max-width: var(--max); margin: 0 auto; padding: 88px 24px 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 60ch; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; }
.section-head p { color: var(--ap-text-muted); }

/* ---------- projects ---------- */
.projects { display: grid; gap: 18px; }
.project {
  border: 1px solid var(--ap-border); border-radius: var(--radius); background: var(--ap-surface); padding: 26px;
  display: grid; gap: 16px; align-content: start;
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--ap-text) 40%, transparent);
  transition: background-color var(--t), border-color var(--t);
}
.project-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.project-mark { width: 26px; height: 26px; border-radius: 8px; background: #c9461a; }
.project h3 { font-size: 1.35rem; font-weight: 700; }
.chip {
  border: 1px solid var(--ap-secondary); color: var(--ap-secondary); border-radius: 999px;
  padding: 2px 10px; font-size: 0.8rem; font-weight: 500;
}
.project-lede { max-width: 64ch; color: var(--ap-text-muted); }
.build-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 70ch; font-size: 0.95rem; color: var(--ap-text-muted); }
.build-log li { padding-left: 18px; position: relative; }
.build-log li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ap-accent); }
.build-log b { color: var(--ap-text); font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li {
  counter-increment: step; padding: 22px; border-radius: var(--radius); border: 1px solid var(--ap-border); background: var(--ap-surface);
  display: grid; gap: 8px; align-content: start; transition: background-color var(--t), border-color var(--t);
}
.steps li::before { content: counter(step); font: 500 1.6rem var(--mono); color: var(--ap-accent); line-height: 1; transition: color var(--t); }
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { color: var(--ap-text-muted); font-size: 0.95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- about (accent block) ---------- */
.about {
  max-width: var(--max); margin: 88px auto 0; padding: 40px 28px; border-radius: var(--radius);
  background: var(--ap-accent); color: var(--ap-on-accent); display: grid; gap: 12px;
  transition: background-color var(--t), color var(--t);
}
.about p { max-width: 70ch; font-size: 1.05rem; opacity: 0.92; }
@media (max-width: 1128px) { .about { margin-left: 24px; margin-right: 24px; } }

/* ---------- contact ---------- */
.contact { display: grid; gap: 12px; padding-bottom: 40px; }
.contact p { max-width: 60ch; color: var(--ap-text-muted); }
.notify { justify-self: start; margin-top: 4px; }

/* ---------- footer ---------- */
.foot {
  max-width: var(--max); margin: 40px auto 0; padding: 24px; border-top: 1px solid var(--ap-border);
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--ap-text-muted); font-size: 0.9rem;
}
.foot-links { display: inline-flex; gap: 16px; }
.foot a { text-decoration: none; color: var(--ap-text); }
.foot a:hover { color: var(--ap-accent); }
.foot .mono { font-size: 0.8rem; }
