/* Efficacious — the helm theme from @the-efficacious/brand, resolved to the roles this page uses.
   Gold is a reserve: the mark carries it; links take it only under the hand. Nothing glows. */
:root {
  --surface: #191918;
  --panel: #1e1e1c;
  --field: #191918;
  --border: #3a3a36;
  --border-subtle: #2e2e2b;
  --border-strong: #6b6b65;
  --text: #f4f1e9;
  --text-secondary: #c9c6bc;
  --text-muted: #8f8b7e;
  --text-faint: #6b6b65;
  --commit-bg: #f4f1e9;
  --commit-fg: #191918;
  --commit-bg-hover: #ffffff;
  --link: #f4f1e9;
  --link-underline: #6b6b65;
  --link-hover: #cfb055;
  --field-border: #3a3a36;
  --field-border-focus: #f4f1e9;
  --placeholder: #6b6b65;
  --font-display: 'Rajdhani', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --cap-tl: 12px 3px 3px 3px;
  --cap-tr: 3px 12px 3px 3px;
  --edge: clamp(20px, 5vw, 64px);
  --max: 1100px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--surface); color-scheme: dark; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; transition: color 150ms cubic-bezier(.2,.8,.2,1), text-decoration-color 150ms; }
a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

h1, h2, h3, .logotype, dt { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }

.top, main, .foot { max-width: var(--max); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.mark { width: 34px; height: 34px; flex: none; }
.logotype { font-size: 26px; letter-spacing: 0.01em; }
.top nav { display: flex; gap: 28px; }
.top nav a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--link-hover); }

.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--border-subtle); }
.hero h1 { font-size: clamp(48px, 8.5vw, 112px); letter-spacing: -0.01em; max-width: 15ch; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; max-width: 34em; color: var(--text-secondary); margin: 28px 0 0; }

section { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--border-subtle); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 24px; }
h3 { font-size: 26px; margin: 6px 0 10px; }
h3 a { text-decoration-color: var(--border-strong); }
.muted { color: var(--text-secondary); max-width: 40em; margin: -8px 0 24px; }

/* The contact section sits centred at the foot of the page; the form itself stays left-aligned inside its panel. */
.contact { text-align: center; }
.contact .muted { margin-left: auto; margin-right: auto; }
.contact .panel { margin-left: auto; margin-right: auto; text-align: left; }

.panel { background: var(--panel); border: 1px solid var(--border); padding: 28px 32px; max-width: 44em; }
.panel p { margin: 0; color: var(--text-secondary); }
.panel-tl { border-radius: var(--cap-tl); }
.panel-tr { border-radius: var(--cap-tr); }

/* Every uppercase setting is the monospace's job, tracked and corrected. */
.tag, .mono { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-right: -2px; color: var(--text-muted); }
.panel .tag { margin: 0 0 4px; }

.how dl { margin: 0; display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.how dl > div { min-width: 0; }
.how dt { font-size: 24px; margin-bottom: 8px; }
.how dd { margin: 0; color: var(--text-secondary); max-width: 34em; }

form.panel { display: grid; gap: 18px; }
.row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: block; font-weight: 500; font-size: 15px; color: var(--text); }
.optional { font-weight: 400; color: var(--text-muted); }
input, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: var(--text); background: var(--field); border: 1px solid var(--field-border); border-radius: 3px; padding: 11px 13px; transition: border-color 150ms; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus { outline: none; border-color: var(--field-border-focus); }
textarea { resize: vertical; min-height: 140px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.commit { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; color: var(--commit-fg); background: var(--commit-bg); border: 1px solid var(--commit-bg); border-radius: 3px; padding: 11px 26px; cursor: pointer; transition: background 150ms; }
.commit:hover { background: var(--commit-bg-hover); }
.commit:disabled { opacity: .6; cursor: default; }
.note { margin: 0; color: var(--text-muted); font-size: 15px; }
.sent p:last-child { color: var(--text); font-size: 18px; }

.foot { padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: var(--text-secondary); }

@media (max-width: 600px) {
  .top { flex-wrap: wrap; }
  .panel { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
