/* CHAMP Interpreters — site styles */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("../fonts/cardo_normal_400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("../fonts/cardo_normal_700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("../fonts/cardo_italic_400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: #161616;
  --surface-2: #222;
  --border: #333;
  --text: #f9f9f9;
  --muted: #b7b7b7;
  --accent: #e9c46a;
  --accent-ink: #000;
  --error: #ff8a7a;
  --radius: 14px;
  --max: 1100px;
  --prose: 68ch;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Cardo", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand img { width: 150px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

@media (max-width: 480px) {
  .brand img { width: 110px; }
}

/* Hero */
.hero {
  padding-block: clamp(40px, 8vw, 88px) clamp(28px, 5vw, 56px);
  text-align: center;
}
.hero h1 {
  max-width: 22ch;
  margin-inline: auto;
}
.hero .lede {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 auto 1.75em;
  font-size: 1.125rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.button[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Sections */
.section { padding-block: clamp(40px, 7vw, 80px); }
.section-tight { padding-block: clamp(24px, 4vw, 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.page-title {
  text-align: center;
  padding-block: clamp(36px, 6vw, 64px) 0;
}

.prose {
  max-width: var(--prose);
  margin-inline: auto;
}
.prose .photo { margin-block: 2em; }

.bio {
  margin-top: 2.5em;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  margin-top: 3em;
}

.tiktok-wrap {
  display: flex;
  justify-content: center;
}
.tiktok-wrap blockquote { margin: 0; }

/* Contact form */
.form {
  max-width: 560px;
  margin: 2em auto 0;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 0.9em; }
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.form-status {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
}
.form-status:empty { display: none; }
.form-status.ok { background: #1e2b1a; color: #cfe8c2; }
.form-status.err { background: #2e1714; color: var(--error); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-name { font-family: var(--font-heading); font-size: 1.35rem; color: var(--text); margin-bottom: 0.3em; }

@media (max-width: 640px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
