/* scotthallowood.com: one stylesheet, no build step */

/* ---------- Fonts (Barlow, SIL Open Font License, see ../fonts/OFL.txt) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #08111e;
  --navy-900: #0c1a2c;
  --navy-800: #12243b;
  --navy-700: #1b3352;
  --steel-300: #a9bad0;
  --steel-200: #cbd6e4;
  --amber: #f5a623;
  --amber-hover: #ffb84a;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #142033;
  --ink-soft: #33435a;
  --muted: #56667d;
  --line: #dbe2ec;
  --link: #1c4f8f;
  --accent-text: #8f5400;
  --chip-bg: #eaf0f7;
  --shadow: 0 1px 2px rgba(12, 26, 44, .05), 0 6px 20px rgba(12, 26, 44, .06);

  --radius: 10px;
  --max: 1100px;
  --gutter: 24px;
  --font: "Barlow", "Bahnschrift", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1524;
    --surface: #0f1e33;
    --ink: #e6edf6;
    --ink-soft: #c4d0e0;
    --muted: #98a9c0;
    --line: #213450;
    --link: #8fbcff;
    --accent-text: #f5b74a;
    --chip-bg: #16284180;
    --shadow: none;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: .35em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--navy-950); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-950); color: #fff; border-bottom: 1px solid rgba(169, 186, 208, .14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 7px;
  background: var(--navy-800); border: 1px solid rgba(245, 166, 35, .55); color: var(--amber);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .04em;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: .02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block; padding: 8px 12px; color: var(--steel-200); text-decoration: none;
  font-weight: 500; font-size: 1rem; border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; padding-bottom: 6px; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0; flex-wrap: wrap; margin-left: -9px; }
  .site-nav a { padding: 8px 9px; font-size: .97rem; }
}
@media (max-width: 480px) {
  .site-nav .nav-home { display: none; }
}

/* ---------- Blueprint backgrounds ---------- */
.blueprint {
  position: relative; overflow: hidden; color: #fff;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(ellipse 80% 70% at 30% 40%, rgba(40, 80, 130, .35), transparent 70%),
    linear-gradient(rgba(140, 170, 210, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 210, .08) 1px, transparent 1px),
    linear-gradient(rgba(140, 170, 210, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 210, .035) 1px, transparent 1px);
  background-size: 100% 100%, 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
.corners::before, .corners::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: rgba(169, 186, 208, .45); border-style: solid;
}
.corners::before { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.corners::after { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }

.eyebrow {
  font-family: var(--font); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
}
.rule { width: 56px; height: 3px; background: var(--amber); border: 0; margin: 22px 0; }

/* ---------- Home hero ---------- */
.hero { padding: 88px 0 84px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .1em; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--steel-200); margin: 0; }
.hero-lede { max-width: 40rem; color: var(--steel-200); font-size: 1.2rem; margin: 0 0 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; padding: 0; margin: 30px 0 0; color: var(--steel-300); font-size: 1.02rem; }
.hero-tags li { margin: 0; }
.hero-tags li + li::before { content: "|"; margin: 0 14px; color: rgba(169, 186, 208, .45); }
.trajectory { position: absolute; right: 0; top: 0; height: 100%; width: auto; z-index: 0; opacity: .95; }
@media (max-width: 900px) { .trajectory { opacity: .35; right: -120px; } }
@media (max-width: 560px) {
  .trajectory { display: none; }
  .hero { padding: 56px 0 56px; }
  .hero-tags { flex-direction: column; }
  .hero-tags li + li::before { content: none; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 64px 0 56px; }
.page-header h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-header .lede { color: var(--steel-200); font-size: 1.2rem; max-width: 46rem; margin: 0; }
.page-header .actions { margin-top: 26px; }
.breadcrumb { font-size: .95rem; margin: 0 0 18px; color: var(--steel-300); }
.breadcrumb a { color: var(--steel-200); }
.breadcrumb span[aria-hidden] { margin: 0 8px; opacity: .6; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  font-family: var(--font); font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--amber); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { color: #fff; border-color: rgba(203, 214, 228, .45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { color: var(--link); border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--link); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 46rem; }
.section-head::before { content: ""; display: block; width: 40px; height: 3px; background: var(--amber); margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head h2 { margin-top: 0; }
.prose { max-width: 46rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.more-link { font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); }
.section-alt .stat { background: var(--bg); box-shadow: none; }
.stat dt { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.05; color: var(--ink); }
.stat dd { margin: 6px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.stat .unit { font-size: 1.1rem; color: var(--accent-text); margin-left: 3px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.cards > li { margin: 0; }
.card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section-alt .card { background: var(--bg); box-shadow: none; }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: .45em; }
.card h3 .num { font-family: var(--font); font-size: .82rem; font-weight: 600; letter-spacing: .08em; color: var(--accent-text); border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.card ul { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding-left: 40px; margin: 0 0 40px; }
.timeline > li:last-child { margin-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--amber);
}
.timeline .when { font-weight: 600; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 4px; }
.timeline h3 { margin: 0 0 .15em; font-size: 1.45rem; }
.timeline .where { color: var(--muted); margin: 0 0 12px; }
.timeline ul { color: var(--ink-soft); margin: 0; }
.timeline .note { color: var(--muted); margin: 0; }

/* ---------- Chips / skills ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 40px; }
.skill-groups h3 { font-size: 1.15rem; margin-bottom: .6em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { margin: 0; background: var(--chip-bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .98rem; color: var(--ink-soft); }

@media (min-width: 861px) { .two-col > .stats, .two-col > .callout { margin-top: 58px; } }

/* ---------- Facts list ---------- */
.facts { margin: 0; }
.facts dt { font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.facts dd { margin: 2px 0 14px; color: var(--ink-soft); line-height: 1.45; }
.facts dd:last-child { margin-bottom: 0; }

/* ---------- Callout ---------- */
.callout { border-left: 4px solid var(--amber); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; box-shadow: var(--shadow); }
.section-alt .callout { background: var(--bg); box-shadow: none; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Updates ---------- */
.post-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.post-list > li { margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }
.post-list > li:last-child { border-bottom: 1px solid var(--line); }
.post-list h2, .post-list h3 { font-size: 1.5rem; margin: 0 0 .3em; }
.post-list h2 a, .post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { color: var(--link); text-decoration: underline; }
.post-list p { color: var(--ink-soft); margin: 0; }
.post-date { display: block; font-size: .92rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.page-header .post-date { color: var(--amber); }
.post-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 46rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.contact-grid > li { margin: 0; }
.contact-grid .card h2 { font-size: 1.35rem; margin-bottom: .4em; }
.contact-grid .card a { font-weight: 600; word-break: break-word; }

/* ---------- CTA band ---------- */
.cta { padding: 64px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.cta h2 { color: #fff; margin: 0 0 .25em; }
.cta p { color: var(--steel-200); margin: 0; max-width: 36rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); font-size: 1rem; padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; }
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(169, 186, 208, .14); font-size: .92rem; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; }
  .section { padding: 52px 0; }
  .page-header { padding: 44px 0 40px; }
  .card { padding: 20px; }
  .btn { width: 100%; justify-content: center; }
  .site-footer ul { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .trajectory, .actions, .cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .blueprint { background: none !important; color: #000; padding: 0 0 12pt !important; }
  .blueprint h1, .page-header .lede, .hero-title, .hero-lede, .eyebrow { color: #000 !important; }
  .section, .section-alt { padding: 12pt 0; border: 0; background: none; }
  .card, .stat, .callout { box-shadow: none; break-inside: avoid; }
  a { color: #000; }
}
