/*
 * intel402.xyz — one stylesheet, no build step, no third-party assets.
 *
 * System fonts only: no font file is fetched, so the page renders the same on a phone,
 * a laptop and a crawler. The layout is fluid rather than fixed: the only breakpoints
 * adjust spacing and column counts at narrow widths (375), tablet (768) and desktop
 * (1440), and every grid falls back to one column before it can overflow.
 */

:root {
  --ink: #0b1020;
  --paper: #ffffff;
  --muted: #5b6273;
  --line: #e6e8ee;
  --soft: #f6f8fa;
  --accent: #1a5f7a;
  --accent-soft: #eef5f8;
  --warn: #b42318;
  --warn-soft: #fdf2f2;
  --warn-line: #f3c6c3;
  --ok: #1f7a4d;
  --code-bg: #0b1020;
  --code-ink: #e8ecf5;
  --radius: 10px;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #7ab6cc;
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Header and primary navigation */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* The honesty strip. Present on every page, not only the ones that price a route. */

.not-live {
  background: var(--warn-soft);
  border-bottom: 1px solid var(--warn-line);
  color: #7a1a1f;
  font-size: 0.88rem;
  line-height: 1.5;
}

.not-live .wrap {
  padding-top: 10px;
  padding-bottom: 10px;
}

.not-live a {
  color: #7a1a1f;
}

/* Page body */

main {
  padding-top: 44px;
  padding-bottom: 72px;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.3rem;
}

li {
  margin: 0 0 6px;
}

.page-head {
  max-width: 70ch;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 64ch;
  color: #232a3d;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.small {
  font-size: 0.88rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

p code,
li code,
td code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.32em;
  overflow-wrap: anywhere;
}

.code {
  margin: 16px 0 20px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  font-size: 0.86rem;
  line-height: 1.55;
}

.code code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  white-space: pre;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 22px 0 8px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card .card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.card .price {
  color: var(--accent);
  font-size: 1.15rem;
}

.card .more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Buttons */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: #134a60;
}

.btn.secondary {
  background: #fff;
  color: var(--accent);
}

.btn.secondary:hover {
  background: var(--accent-soft);
}

/* Tables */

.table-wrap {
  margin: 16px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Notes and status strips */

.note,
.warn-note,
.ok-note {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 0.93rem;
}

.warn-note {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.ok-note {
  border-left-color: var(--ok);
  background: #f1f8f4;
}

.note p:last-child,
.warn-note p:last-child,
.ok-note p:last-child {
  margin-bottom: 0;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 0.9rem;
}

.stat-strip strong {
  font-variant-numeric: tabular-nums;
}

.answer {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.answer strong {
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 40px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 10px;
}

.site-footer h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0 0 7px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.footer-base p {
  margin: 0;
}

/* Narrow screens: 375px is the smallest width this site is designed for. */

@media (max-width: 768px) {
  .header-inner {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .site-nav {
    gap: 2px 14px;
    font-size: 0.86rem;
  }

  main {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .wrap {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .site-nav {
    font-size: 0.82rem;
    gap: 2px 11px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
}

@media print {
  .site-header,
  .not-live,
  .site-footer,
  .cta-row {
    display: none;
  }

  main {
    padding: 0;
  }
}
