/* oakmountaindigital.com: one stylesheet, in the same look as surveyrock.com (Bricolage Grotesque headings, Instrument
   Sans body, the SurveyRock palette). The fonts are our own files under /fonts; nothing loads from another site. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-500-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-400-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-400-italic.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --text: #16203b;
  --muted: #5f6b85;
  --bg: #fff;
  --subtle: #f6f8fc;
  --border: #e3e7f0;
  --accent: #2447d6;
  --accent-hover: #1c38ae;
  --accent-soft: #e8edfc;
  --on-accent: #fff;
  --focus: #2447d6;
  --wash-a: #e1f5f1;
  --wash-b: #efe9fe;
  --gradient-brand: linear-gradient(100deg, #0d9488 0%, #2447d6 52%, #7c3aed 100%);
  --gradient-spectrum: linear-gradient(90deg, #14b8a6, #0ea5e9, #4f6ef7, #8b5cf6, #ec4899);
  --night: #0b1024;
  --night-border: #252e52;
  --night-text: #eef1f8;
  --night-muted: #9aa4bf;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-md: 0 4px 16px #16203b14;
  --max-width: 72rem;
  --measure: 44rem;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eef1f8;
    --muted: #9aa4bf;
    --bg: #0b1024;
    --subtle: #141b36;
    --border: #252e52;
    --accent: #7d96f5;
    --accent-hover: #a3b4f8;
    --accent-soft: #1c2650;
    --on-accent: #0b1024;
    --focus: #9fb2ff;
    --wash-a: #0e2c33;
    --wash-b: #231a4d;
    --shadow-md: 0 4px 16px #00000066;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(46rem 20rem at 10% -3rem, var(--wash-a), transparent 72%),
    radial-gradient(46rem 20rem at 92% -5rem, var(--wash-b), transparent 72%);
  background-repeat: no-repeat;
  overflow-x: clip;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-md);
  z-index: 20;
}
.skip:focus { top: 1rem; }

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.mark { flex: none; display: block; }

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav li + li { margin-top: 0; }
.site-header nav a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 34rem) {
  .site-header nav { width: 100%; }
  .site-header nav ul { gap: 0 1.25rem; }
}

/* layout */

.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
main > * { max-width: var(--measure); }
main > .table-wrap, main > .cards, main > .hero { max-width: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 6.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
}
h2 { font-size: 1.5rem; line-height: 1.2; margin: 3rem 0 0.8rem; }
h3 { font-size: 1.15rem; line-height: 1.25; margin: 2rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li + li { margin-top: 0.4rem; }
strong { font-weight: 600; }

.lede { font-size: 1.25rem; line-height: 1.5; color: var(--muted); }
.note { font-size: 0.92rem; color: var(--muted); }
.meta { font-size: 0.95rem; color: var(--muted); margin-top: -0.4rem; }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .gradient-text { background-image: linear-gradient(100deg, #2dd4bf 0%, #7d96f5 52%, #c084fc 100%); }
}

/* home page */

.hero { padding: 1rem 0 2.25rem; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.hero .lede { max-width: 32rem; margin-bottom: 0; }

.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 46rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
.cards > li {
  margin: 0;
  padding: 1.6rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.cards h2 { margin: 0 0 0.6rem; font-size: 1.45rem; }
.cards h2 a { color: var(--text); text-decoration: none; }
.cards h2 a:hover { color: var(--accent); }
.cards p:last-child { margin-bottom: 0; }
.cards .icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
}

/* content */

code, pre { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.35em; }
pre {
  margin: 0 0 1.1rem;
  padding: 1rem 1.15rem;
  background: var(--night);
  color: var(--night-text);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
caption { text-align: left; font-weight: 600; padding: 0 0 0.7rem; caption-side: top; }
th, td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--subtle);
  border-bottom-color: var(--border);
}
thead tr:first-child th:first-child { border-top-left-radius: calc(var(--radius-lg) - 1px); }
thead tr:first-child th:last-child { border-top-right-radius: calc(var(--radius-lg) - 1px); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover > * { background: var(--subtle); }
tfoot th, tfoot td {
  font-weight: 650;
  background: var(--accent-soft);
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
tfoot tr:last-child th:first-child { border-bottom-left-radius: calc(var(--radius-lg) - 1px); }
tfoot tr:last-child td:last-child { border-bottom-right-radius: calc(var(--radius-lg) - 1px); }

table.counts td, table.counts thead th:not(:first-child) { text-align: right; }
table.counts tbody th { font-weight: 500; }
table.counts { min-width: 36rem; }
.dates td:last-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 34rem) {
  th, td { padding: 0.55rem 0.7rem; }
}

.table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.table-wrap table { border: 0; border-radius: 0; box-shadow: none; }
.table-wrap caption { padding: 0.9rem 0.9rem 0.7rem; }
.table-wrap th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.table-wrap tbody tr:hover > th[scope="row"] { background: var(--subtle); }
.table-wrap tfoot th[scope="row"] { background: var(--accent-soft); }
.table-wrap thead th:first-child { position: sticky; left: 0; z-index: 2; }
.table-wrap:focus-visible { outline-offset: 4px; }

.callout {
  padding: 1.25rem 1.4rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}
.callout p:last-child { margin-bottom: 0; }

/* footer */

.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--night);
  color: var(--night-muted);
  font-size: 0.9rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient-spectrum);
}
.site-footer a { color: var(--night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--night-text); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
}
@media (min-width: 46rem) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.site-footer .brand { color: var(--night-text); padding: 0; }
.site-footer .brand:hover { color: var(--night-text); text-decoration: none; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-brand p { margin-top: 0.9rem; max-width: 22rem; }
.footer-title {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-text);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.5rem; }
.site-footer li + li { margin-top: 0; }
.site-footer :focus-visible { outline-color: #9fb2ff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
