@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --blue: #00548a;
  --blue-deep: #003a61;
  --stripe: #ffc60b;
  --ink: #14202b;
  --muted: #52606c;
  --paper: #f3f4f1;
  --surface: #ffffff;
  --line: #d3d7d2;
  --link: #00548a;
  --head: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --stripes: repeating-linear-gradient(-45deg, var(--stripe) 0 12px, #14202b 12px 24px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f5;
    --muted: #a3afb9;
    --paper: #0f171f;
    --surface: #18232e;
    --line: #2d3b48;
    --link: #74bcec;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--stripe); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.bar { background: var(--blue-deep); color: #fff; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-block: 12px; }
.mark { font: 700 20px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.bar nav a { color: #d6e6f1; font-size: 15px; text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent; }
.bar nav a:hover { color: #fff; border-bottom-color: var(--stripe); }
.bar nav a[aria-current] { color: #fff; border-bottom-color: var(--stripe); }
.hazard { height: 10px; background: var(--stripes); }

/* Home hero */
.hero { background: var(--blue); color: #fff; padding-block: clamp(48px, 9vw, 104px) clamp(44px, 7vw, 80px); }
.hero h1 { font-size: clamp(3.1rem, 11vw, 7.5rem); line-height: .95; letter-spacing: -.01em; }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.4; max-width: 34em; margin-top: 24px; color: #e6f0f7; }

/* Home app list */
.apps { padding-block: clamp(20px, 4vw, 40px); }
.app-row {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 8px 32px;
  align-items: center;
  padding-block: clamp(22px, 3.4vw, 36px);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.app-row:last-child { border-bottom: 0; }
.app-row img { grid-row: span 1; }
.icon { border-radius: 22%; box-shadow: 0 0 0 1px rgba(20, 32, 43, .14); background: #fff; }
.when { display: block; font: 700 14px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.app-row h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.app-row p { margin-top: 10px; max-width: 40em; }
.on { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.go { font: 700 17px/1.2 var(--head); color: var(--link); white-space: nowrap; }
.app-row:hover h2 { color: var(--link); }
.app-row:focus-visible { outline: 3px solid var(--stripe); outline-offset: 4px; }

/* App page hero */
.app-hero { background: var(--blue); color: #fff; padding-block: clamp(36px, 6vw, 72px); }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 20px clamp(20px, 4vw, 44px); align-items: center; }
.app-hero .icon { width: clamp(88px, 14vw, 168px); box-shadow: none; }
.app-hero .when { color: #bcd6e8; }
.app-hero h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: .98; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.4; max-width: 34em; margin-top: 14px; color: #e6f0f7; }
.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 22px;
  background: var(--stripe);
  color: #14202b;
  font: 700 18px/1.1 var(--head);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .15s ease-out;
}
.btn:hover { background: #ffd84d; }
.btn:active { background: #eeb600; }
.app-hero .on { color: #d6e6f1; margin-top: 12px; }

/* Sections */
section.block { padding-block: clamp(36px, 6vw, 64px); }
section.block + section.block { padding-top: 0; }
.block h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.sub { color: var(--muted); max-width: 42em; }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shot { border: 1px solid var(--line); border-radius: 10px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px 40px; margin-top: 28px; }
.features h3 { font-size: 1.3rem; padding-top: 12px; border-top: 3px solid var(--blue); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .features h3 { border-top-color: #4a9bd1; } }
.features p { font-size: 16px; }

.next { border-top: 1px solid var(--line); padding-block: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 700 18px/1.2 var(--head); }

/* Contact */
.contact { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(36px, 6vw, 64px); }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.contact p { margin-top: 12px; max-width: 38em; }
.contact .address { font: 700 clamp(1.3rem, 3.6vw, 2rem)/1.2 var(--head); overflow-wrap: anywhere; }

/* Footer */
footer.site { background: var(--blue-deep); color: #d6e6f1; font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: space-between; padding-block: 22px; }
footer.site a { color: #fff; }

/* Kit Tracker sheet example */
.sheet-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table.sheet { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
.sheet th { background: var(--blue); color: #fff; text-align: left; font: 700 15px/1.2 var(--head); padding: 10px 12px; }
.sheet td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.sheet .x { text-align: center; font-weight: 700; }
.sheet .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }

/* LED Monitor status illustration */
.monitor { margin-top: 24px; background: #111a24; color: #e7eef4; border-radius: 10px; padding: clamp(14px, 2.4vw, 22px); }
.monitor-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 15px; color: #a9b8c5; margin-bottom: 14px; }
.monitor-top strong { color: #fff; font: 700 16px/1.3 var(--head); letter-spacing: .06em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pcard { background: #1a2632; border: 1px solid #2c3a48; border-left: 5px solid var(--state); border-radius: 6px; padding: 12px 14px; }
.pcard h3 { font-size: 1.2rem; color: #fff; }
.pcard .meta { font-size: 14px; color: #a9b8c5; margin-top: 3px; }
.pcard .state { display: inline-block; margin-top: 10px; padding: 2px 8px; border-radius: 4px; background: var(--state); color: #0d141b; font: 700 14px/1.4 var(--head); letter-spacing: .05em; }
.pcard .line { font-size: 14px; margin-top: 8px; }
.ok { --state: #3ecf7d; }
.warn { --state: #ffc60b; }
.fault { --state: #ff6a59; }
.off { --state: #94a3b1; }

@media (max-width: 720px) {
  .app-row { grid-template-columns: 72px 1fr; column-gap: 16px; align-items: start; }
  .app-row img { width: 72px; }
  .go { grid-column: 2; margin-top: 8px; }
  .app-hero .wrap { grid-template-columns: 1fr; }
  .bar nav { width: 100%; gap: 0 14px; }
  .bar nav a { font-size: 14px; }
}

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