/* wirelesssoftware.com: one stylesheet for every page. System fonts only (no web fonts, no CDN), light and dark. */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Longview High School (Lobos) colors: green, gold and white (Longview ISD: #046A38, #FDD023) */
  --paper: #ffffff;
  --surface: #ffffff;
  --band: #f6f5ef;
  --ink: #17221c;
  --muted: #55615a;
  --rule: #dfe2da;
  --bar: #034d29;             /* deep Lobo green */
  --bar-ink: #ffffff;
  --bar-muted: #cfe3d6;
  --accent: #046a38;          /* Lobo green */
  --accent-ink: #ffffff;
  --accent-soft: #e8f3ec;
  --gold: #fdd023;            /* Lobo gold: on green or as a mark, never as text on white */
  --gold-deep: #8a6d00;       /* gold dark enough for text on white */
  --focus: #1f5fbf;

  --wrap: 72rem;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1612;
    --surface: #16201a;
    --band: #131c16;
    --ink: #e7eee9;
    --muted: #a2b2a7;
    --rule: #2c3a31;
    --bar: #022e19;
    --bar-muted: #a9c9b4;
    --accent: #7fd1a3;
    --accent-ink: #062414;
    --accent-soft: #1b3326;
    --gold-deep: #fdd023;
    --focus: #8ab4ff;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1612; --surface: #16201a; --band: #131c16; --ink: #e7eee9; --muted: #a2b2a7; --rule: #2c3a31;
  --bar: #022e19; --bar-muted: #a9c9b4; --accent: #7fd1a3; --accent-ink: #062414; --accent-soft: #1b3326;
  --gold-deep: #fdd023; --focus: #8ab4ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 0.75rem; }

/* header */
.bar { background: var(--bar); color: var(--bar-ink); border-bottom: 3px solid var(--gold); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; }
.brand svg { width: 44px; height: 30px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bar-muted); }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--bar-muted); text-decoration: none; font-size: 0.98rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--bar-ink); }
.nav a[aria-current="page"] { color: var(--bar-ink); border-bottom-color: var(--gold); }

/* sections */
.section { padding: 4.5rem 0; }
.section + .section:not(.band) { padding-top: 0; }
.band { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.band + .section { padding-top: 4.5rem; }
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }
.section-head .kicker, .page-head .kicker { color: var(--accent); }

/* hero */
.hero { padding: 5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-block; padding: 0.75rem 1.3rem; border-radius: var(--radius); font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.button:hover { filter: brightness(1.12); }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button.quiet:hover { border-color: var(--ink); filter: none; }

/* legacy -> modern bridge card */
.bridge { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; }
.bridge-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; }
.bridge h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.bridge .from h3 { color: var(--gold-deep); }
.bridge .to h3 { color: var(--accent); }
.bridge ul { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.92rem; }
.bridge li { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.bridge li:last-child { border-bottom: 0; }
.bridge .arrow { width: 54px; margin-top: 2.2rem; }
.bridge-foot { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); }

/* figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); }
.figure { padding: 2.25rem 1.5rem; text-align: center; }
.figure + .figure { border-left: 1px solid var(--rule); }
.figure strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.1; color: var(--accent); }
.figure span { color: var(--muted); font-size: 0.98rem; }

/* cards and lists */
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); margin-bottom: 0.5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.point { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.point h3 { margin-bottom: 0.35rem; }
.point p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 3.25rem; }
.steps .card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 1.25rem; left: 1.5rem; font-family: var(--mono); font-size: 0.9rem; color: var(--accent);
}
.steps p { color: var(--muted); }

/* services detail */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 3rem; padding: 3rem 0; border-top: 1px solid var(--rule); }
.service:first-child { border-top: 0; padding-top: 0; }
.service .lead p { color: var(--muted); }
.service .lead .kicker { color: var(--accent); }
.deliver { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.deliver li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.deliver li strong { display: block; }
.deliver li span { color: var(--muted); }
.proof { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0; }
.proof b { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.details { list-style: none; margin: 0; padding: 0; }
.details li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.details li:first-child { border-top: 1px solid var(--rule); }
.details dt, .label { color: var(--muted); font-size: 0.9rem; }
.checks { margin: 0 0 1rem; padding-left: 1.2rem; }
.checks li { margin: 0.3rem 0; }
.note { color: var(--muted); font-size: 0.95rem; }

/* call to action */
.cta { background: var(--bar); border-top: 4px solid var(--gold); color: var(--bar-ink); border-radius: var(--radius); padding: 3rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0 0 0.4rem; }
.cta p { margin: 0; color: var(--bar-muted); max-width: 36rem; }
.cta .button { background: var(--gold); color: #17221c; border-color: var(--gold); }

/* page header (inner pages) */
.page-head { padding: 4rem 0 2.5rem; }
.page-head .lede { margin-bottom: 0; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 2.5rem 0; color: var(--muted); font-size: 0.93rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0.25rem 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
.foot .brand-name { color: var(--ink); margin-bottom: 0.4rem; }
.foot .copy { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.85rem; }

/* 404 */
.lost { padding: 6rem 0; text-align: center; }
.lost .code { font-family: var(--mono); color: var(--accent); }
.lost .actions { justify-content: center; }
.lost .lede { margin: 0 auto; }

@media (max-width: 900px) {
  .hero .wrap, .service, .contact { grid-template-columns: 1fr; gap: 2.25rem; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .section.band + .section { padding-top: 3rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .figures, .grid.two, .grid.three, .grid.four, .points { grid-template-columns: 1fr; }
  .figure + .figure { border-left: 0; border-top: 1px solid var(--rule); }
  .figure { padding: 1.5rem 1rem; }
  .bridge-cols { grid-template-columns: 1fr; }
  .bridge .arrow { transform: rotate(90deg); margin: 0 auto; }
  .details li { grid-template-columns: 1fr; gap: 0.1rem; }
  .cta { padding: 2rem 1.5rem; }
  .nav { gap: 1.1rem; }
  .brand-name small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.actions + .note { margin-top: 1.1rem; }

/* blog */
.wrap.narrow { max-width: 46rem; }
.posts { display: grid; gap: 0; max-width: 52rem; }
.post-card { padding: 2rem 0; border-top: 1px solid var(--rule); }
.post-card:first-child { border-top: 0; padding-top: 0; }
.post-card h2 { margin-bottom: 0.4rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); }
.post-meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.5rem; }
.page-head .post-meta { margin-top: 1rem; }
.draft { color: var(--gold-deep); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 0; }
.tags span { font-size: 0.8rem; padding: 0.15rem 0.6rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.page-head .kicker a { color: inherit; text-decoration: none; }

.prose { font-size: 1.08rem; line-height: 1.75; padding-bottom: 2rem; }
.prose h2 { margin: 2.4rem 0 0.8rem; font-size: 1.7rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.prose blockquote { margin: 1.5rem 0; padding: 0.6rem 1.25rem; border-left: 3px solid var(--gold); background: var(--band); color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--band); border: 1px solid var(--rule); border-radius: 4px; padding: 0.05em 0.35em; }
.prose pre { background: #0f1a14; color: #e2ece5; border-radius: var(--radius); padding: 1.1rem 1.25rem; overflow-x: auto; font-size: 0.88rem; line-height: 1.55; margin: 0 0 1.4em; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; border-bottom: 2px solid var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
