/* ── DESIGN TOKENS (v26) ── */
@import url('./styles.css');

/* ═══════════════════════════════════════════════════════════════
   SummonSong · brand.css · v26
   Shared reset, typography, buttons, nav, footer, dialog.
   All custom properties (color + type tokens) now live in the
   token layer, imported above via styles.css.
═══════════════════════════════════════════════════════════════ */

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

/* ── BASE ────────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--t-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--t-head);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

h3 {
  font-family: var(--t-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.eyebrow, .section-eyebrow {
  font-family: var(--t-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.4rem;
}

.section-eyebrow.light { color: var(--violet-light); }

.conceit-label {
  font-family: var(--t-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.section-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-body-dark {
  font-size: 0.93rem;
  color: rgba(228, 216, 184, 0.65);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--t-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--cta);
  color: var(--cta-text);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--cta-hover); }

.btn-outline-light {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(228, 216, 184, 0.35);
}

.btn-outline-light:hover {
  background: rgba(228, 216, 184, 0.08);
  border-color: rgba(228, 216, 184, 0.7);
}

.btn-cream {
  display: inline-block;
  font-family: var(--t-label);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--cta);
  color: var(--cta-text);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  margin-top: 2.5rem;
  transition: background 0.15s ease;
}

.btn-cream:hover { background: var(--cta-hover); }

/* ── FULL-BLEED BANDS ────────────────────────────────────────── */
.band {
  background: var(--oxblood);
  color: var(--action-text);
  padding: 0.8rem 2rem;
  text-align: center;
  font-family: var(--t-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band.verdigris { background: var(--verd-deep); color: var(--bg); }

/* ── SLEEVE-EDGE BORDER — brand law ──────────────────────────── */
/* Every dark section (indigo-deep ground) gets 4px oxblood top + bottom.
   Apply this utility class to any dark section on any page. */
.sleeve-border {
  border-top: 4px solid var(--oxblood);
  border-bottom: 4px solid var(--oxblood);
}

/* ── NAV ──────────────────────────────────────────────────────── */
nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--rule);
}

.nav-wordmark img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.nav-links li { display: flex; align-items: center; }

.nav-links li + li::before {
  content: '·';
  padding: 0 0.7rem;
  color: #4A5240;
  font-weight: 500;
}

.nav-links a { opacity: 0.65; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-disabled="true"] { opacity: 0.35; cursor: default; pointer-events: none; }

.nav-cta { font-size: 0.78rem; padding: 0.55rem 1.2rem; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  color: var(--ink);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--oxblood);
  border-bottom: 4px solid var(--oxblood);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer-year {
  /* Anton, not Coiny: Coiny draws a rounded V, so MMXXVI reads as MMXXUI. */
  font-family: var(--t-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(228, 216, 184, 0.45);
}

.footer-tagline {
  text-align: center;
  font-family: var(--t-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(228, 216, 184, 0.45);
}

.footer-wordmark { display: flex; justify-content: flex-end; align-items: center; }
.footer-wordmark img { width: 140px; height: auto; }

/* ── DIALOG ──────────────────────────────────────────────────── */
dialog {
  background: var(--bg);
  border: none;
  border-radius: 4px;
  padding: 2.25rem 2.25rem 2rem;
  max-width: 480px;
  width: 90%;
}

dialog::backdrop { background: rgba(34, 22, 56, 0.75); }

dialog h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.dialog-sub {
  font-size: 0.88rem;
  color: rgba(28, 32, 24, 0.65);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-family: var(--t-label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28, 32, 24, 0.55);
}

.field input,
.field textarea {
  font-family: var(--t-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(28, 32, 24, 0.25);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus { border-color: var(--oxblood); }

.field textarea { min-height: 90px; }

.form-error {
  font-size: 0.82rem;
  color: var(--oxblood-dark);
  margin-bottom: 0.75rem;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.dialog-cancel {
  background: none;
  border: none;
  font-family: var(--t-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 32, 24, 0.45);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.dialog-cancel:hover { color: var(--ink); }

.dialog-success-state { text-align: center; padding: 1rem 0; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-wordmark { text-align: center; }
  .footer-wordmark img { margin: 0 auto; }
  nav.top { gap: 1rem; }
  .nav-links { display: none; }
}
