/* The website in the app's look: app.css's greys, its blue and the system's own font, light or
   dark as the visitor's computer is. Comes after ui.css and app.css on the front page and the
   reading pages, and adds only what a web page needs on top: a size for reading, the header
   and footer, and the shared pieces (.btn, .glass, .field) at a page's size, not a window's. */
:root {
  /* names the pages' own styles still use, pointed at the app's colours */
  --line: var(--sep); --glass-line: var(--edge); --cyan-tint: var(--accent-tint);
  --green: var(--on); --amber: var(--wait); --red: var(--stop);
  /* a panel on the page: a step off the background, both ways */
  --tile: var(--card);
}
@media (prefers-color-scheme: light) { :root:not([data-theme=dark]) { --tile: #f5f5f7 } }

body { height: auto; min-height: 100%; font: 16px/1.55 var(--sans) }
h1, h2, h3 { color: var(--ink); text-wrap: balance }
.wrap { position: relative; width: min(68rem, calc(100% - 40px)); margin: 0 auto }

header { display: flex; align-items: center; gap: 6px; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.01em }
.brand:hover { color: var(--ink) }
.brand img { width: 28px; height: 28px; flex: none }
header nav { display: flex; gap: 2px; margin-right: 10px }
header nav a { color: var(--ink-2); font-size: 14px; padding: 6px 11px; border-radius: 999px } header nav a:hover { color: var(--ink); background: var(--hover) }
@media (max-width: 52rem) { header nav { display: none } }

/* buttons are the app toolbar's capsules, a size up for a finger; .big for the one that matters */
.btn { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px }
.btn.big { height: 44px; padding: 0 22px; font-size: 16px; font-weight: 600 }
.btn[aria-disabled] { opacity: .5; pointer-events: none }

/* a panel: what was glass on the old navy page is a quiet grey card now */
.glass { background: var(--tile); border: 0; box-shadow: inset 0 0 0 .5px var(--sep); -webkit-backdrop-filter: none; backdrop-filter: none }
.mono { font: 600 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none }
.led { width: 8px; height: 8px; background: var(--on); box-shadow: none }
.led.warn { background: var(--wait); box-shadow: none } .led.bad { background: var(--stop); box-shadow: none } .led.off { background: var(--ink-3) }
.tag { background: var(--accent-tint); color: var(--accent-ink) }
.ok { color: color-mix(in srgb, var(--on) 75%, var(--ink)) } .warn { color: var(--wait) } .err { color: var(--stop) }

/* the phone-app waitlist (waitlist.js): fields a finger can hit */
.waitlist { border-radius: 16px; padding: 22px 24px }
.waitlist .field, .waitlist input.field, .waitlist select.field { height: 40px; border-radius: 10px; font-size: 15px }
.waitlist input.field { padding: 0 12px }
.waitlist select.field { padding: 0 32px 0 12px; background-position: right 12px center }
.waitlist .btn { height: 40px }
.waitlist p.msg.ok { color: color-mix(in srgb, var(--on) 75%, var(--ink)) }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 28px 0 48px; margin-top: 64px;
  border-top: 1px solid var(--sep); color: var(--ink-3); font-size: 13px }
footer a { color: var(--ink-2) } footer a:hover { color: var(--ink) }
footer .brand { font-size: 15px; margin-right: auto } footer .brand img { width: 22px; height: 22px }
