/* Palette and type borrowed from the previous brandonyoung.com: ink #16191d, brand blue #0b63c5, DM Sans + DM Mono. */
@font-face { font-family: "DM Sans"; src: url(/fonts/DMSans-300-700.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/DMMono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Always dark (this was the old dark-mode variant; the light palette was removed). */
  --bg: #111317; --fg: #eef1f4; --muted: #9aa3ad; --border: #2c3137;
  --panel: #111317; --card: #1a1d22; --input: #14171b; --field-border: #626b76;
  --brand: #0b63c5; --brand-hover: #0058aa; --brand-text: #6aaef0;
  --ink: #0c0e11; --ink-fg: #f4f6f8; --ink-muted: #b4bac1; --ink-line: #2c3137;
  --ok: #6fd39a; --err: #ff8a80;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.625; color: var(--fg); background: var(--panel); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); color: var(--fg); padding: .5rem .75rem; border-radius: 6px; }

.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.eyebrow-brand { color: var(--brand-text); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-fg); border-bottom: 1px solid var(--ink-line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 75% 40%, rgba(11,99,197,.16), transparent 70%); pointer-events: none; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.net-lines line { stroke: #0b63c5; stroke-opacity: .28; stroke-width: 1; }
.net-dots circle { fill: #2f7fd6; fill-opacity: .7; }
.hero-inner { position: relative; padding-top: clamp(5rem, 14vh, 9rem); padding-bottom: clamp(4rem, 11vh, 7rem); }
.hero .eyebrow { color: var(--ink-muted); }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0 0 1.25rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.375rem); line-height: 1.5; color: var(--ink-muted); max-width: 34rem; margin: 0 0 2.5rem; font-weight: 400; }
.lede a { color: var(--ink-fg); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 0; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--ink-line); max-width: 40rem; font-family: var(--mono); font-size: .8rem; color: var(--ink-muted); }
.tags li + li::before { content: "|"; margin: 0 .9rem; color: var(--ink-line); }
.hero h1 + .tags { margin-top: 2.5rem; }
.hero-short .hero-inner { padding-bottom: 5rem; }

/* Body */
.grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; padding-top: 5rem; padding-bottom: 5rem; align-items: start; } }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; margin: 0 0 1rem; }
.about p { color: var(--muted); margin: 0 0 1rem; max-width: 32rem; }

/* Contact card */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.card-sub { color: var(--muted); margin: -.25rem 0 1.75rem; }
.field { margin-bottom: 1.1rem; }
.contact label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.contact input, .contact textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--input); border: 1px solid var(--field-border); border-radius: 6px; padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s; }
.contact textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,99,197,.2); }
.contact button { display: inline-flex; align-items: center; height: 2.875rem; padding: 0 1.4rem; font: inherit; font-size: .95rem; font-weight: 500; color: #fff; background: var(--brand); border: 0; border-radius: 6px; cursor: pointer; transition: background .15s; }
.contact button:hover { background: var(--brand-hover); }
.contact button:focus-visible { outline: 3px solid rgba(11,99,197,.45); outline-offset: 2px; }
.contact button:disabled { opacity: .6; cursor: default; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 1rem 0 0; font-size: .95rem; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }

.foot { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.foot { flex-wrap: wrap; row-gap: .4rem; }
.foot span { white-space: nowrap; }
.foot a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 640px) {
  .tags { flex-direction: column; gap: .35rem; }
  .tags li::before, .tags li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 .6rem 0 0; border-radius: 50%; background: #2f7fd6; vertical-align: .1em; color: transparent; }
}
