/* Callandor Studio — shared styles for callandor.app and every project subdomain.
   Each project page sets --accent on <body> (see the .p-* classes below). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
  --ink: #0E1116;
  --surface: #161B22;
  --line: #222A35;
  --line-strong: #3A4554;
  --text: #F2F4F7;
  --text-2: #C3CBD6;
  --mist: #9AA4B2;
  --crystal: #E6F0FF;
  --ember: #FF6B4A;
  --amber: #F5B83D;
  --teal: #2EC4B6;
  --accent: var(--crystal);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
.p-airing { --accent: var(--ember); }
.p-brker { --accent: var(--amber); }
.p-loo { --accent: var(--teal); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--body);
}
a { color: var(--accent); }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
p { margin: 0; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--crystal); color: var(--ink); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.accent-bar { height: 4px; background: var(--accent); }

/* Header / nav */
.site-header { border-bottom: 1px solid var(--line); }
.nav { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.wordmark { font-family: var(--display); font-weight: 600; letter-spacing: 0.18em; font-size: 16px; }
.app-name { font-family: var(--display); font-weight: 600; font-size: 20px; }
.badge { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 15px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links a { padding: 10px 14px; text-decoration: none; color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); font-weight: 600; }

/* Type */
.eyebrow { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.eyebrow.accent { color: var(--accent); }
.display { font-weight: 700; font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.lede { font-size: 20px; line-height: 1.6; color: var(--text-2); max-width: 600px; }
.h2 { font-size: clamp(30px, 4.5vw, 40px); line-height: 1.15; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { color: var(--ink); filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--mist); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > :first-child { flex: 1 1 320px; min-width: 0; }
.split > :last-child { flex: 2 1 520px; min-width: 0; }

/* Home hero */
.hero { padding-top: 96px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 340px; height: auto; }
.spectrum { display: flex; gap: 6px; }
.spectrum span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }

/* Project cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card::before { content: ''; height: 6px; background: var(--accent); }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.card-host { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 26px; }
.card .muted { flex-grow: 1; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

/* Product page */
.product { padding-top: 96px; padding-bottom: 64px; }
.product .display { max-width: 820px; }
.shot { margin-top: 32px; min-height: 280px; border-radius: 20px; border: 1px dashed var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--mist); font-size: 15px; padding: 24px; text-align: center; }
.features { display: flex; flex-wrap: wrap; gap: 20px; }
.feature { flex: 1 1 440px; min-width: 0; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 21px; }
.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 16px; color: var(--text-2); font-size: 16px; }
.note { font-size: 14px; color: var(--mist); }

/* Forms */
form { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.row > .field { flex: 1 1 220px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 14px; font-weight: 500; color: var(--text-2); }
input, select, textarea { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--text); font: inherit; width: 100%; }
textarea { padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-size: 15px; color: var(--text-2); }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--ember); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--mist); }
.footer-row a { color: var(--mist); }
.footer-row a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.studio-link { display: flex; align-items: center; gap: 10px; color: var(--text-2) !important; text-decoration: none; }
.dots { display: flex; gap: 4px; }
.dots span { width: 24px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.dots span.on { background: var(--accent); }

@media (max-width: 600px) {
  .section, .hero, .product { padding-top: 64px; padding-bottom: 64px; }
  .lede { font-size: 18px; }
  .nav-links a { padding: 10px 10px; }
}
