/* LoadAlarm site styles: shared by the website and the help pages in the extension.
   The look borrows from highway signs: green guide signs for steady things,
   amber for alerts. Type is Overpass, a free face based on Highway Gothic. */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overpass Mono";
  src: url("fonts/overpass-mono.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --asphalt: #23272b;
  --asphalt-deep: #191c1f;
  --asphalt-line: #393f45;
  --green: #0e6b47;
  --green-deep: #0a5539;
  --green-tint: #e2eee7;
  --amber: #f5b400;
  --amber-hover: #ffc533;
  --amber-tint: #fff3cf;
  --concrete: #e8ebe5;
  --paper: #ffffff;
  --sign-white: #f7f8f4;
  --ink: #1d2124;
  --ink-2: #4c545a;
  --rule: #cbd1c8;
  --red: #b3261e;
  --font: "Overpass", "Bahnschrift", "DIN Alternate", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-led: "Overpass Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius-sign: 6px;
  --radius-window: 10px;
  --wrap: 1160px;
  color-scheme: light;
}

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

[hidden] { display: none !important; }

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

body > main { flex: 1 0 auto; }

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

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Amber focus rings on dark surfaces, white on the green plan sign. */
.hero :focus-visible,
.closing :focus-visible,
.site-nav :focus-visible,
.site-foot :focus-visible,
.skip-link:focus-visible { outline-color: var(--amber); }

.plan :focus-visible { outline-color: var(--sign-white); }

h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

strong { font-weight: 700; }

code, kbd {
  padding: 0.05em 0.35em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--concrete);
  font: 0.88em/1 var(--font-led);
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: var(--radius-sign);
  background: var(--amber);
  color: var(--asphalt-deep);
  font-weight: 700;
}

.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0.72em 1.25em 0.58em;
  border: 2px solid transparent;
  border-radius: var(--radius-sign);
  font: 700 1.0625rem/1.1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn--amber { background: var(--amber); color: var(--asphalt-deep); }
.btn--amber:hover { background: var(--amber-hover); color: var(--asphalt-deep); }

.btn--green { background: var(--green); color: var(--sign-white); }
.btn--green:hover { background: var(--green-deep); color: var(--sign-white); }

.btn--outline { border-color: currentColor; background: transparent; color: inherit; }
.btn--outline:hover { background: rgba(247, 248, 244, 0.1); color: inherit; }

.btn--small {
  min-height: 40px;
  padding: 0.55em 0.95em 0.42em;
  font-size: 0.9375rem;
}

/* Shown in place of Add to Chrome until the store listing is live. */
.btn--soon {
  border: 2px dashed currentColor;
  background: transparent;
  color: inherit;
  white-space: normal;
  text-align: center;
  opacity: 0.85;
  cursor: default;
}

/* ---------- Guide-sign plate ---------- */

.sign {
  display: inline-flex;
  padding: 4px;
  border-radius: 9px;
  background: var(--green);
  color: var(--sign-white);
  text-decoration: none;
}

.sign > span {
  display: block;
  padding: 0.34em 0.75em 0.2em;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-nav {
  position: relative;
  z-index: 2;
  background: var(--asphalt-deep);
  color: var(--sign-white);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.logo:hover { color: inherit; }
.logo svg { flex: none; width: 34px; height: 34px; }
.logo span { padding-top: 0.12em; }

.site-nav__links {
  display: flex;
  gap: 26px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  color: rgba(247, 248, 244, 0.8);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--sign-white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.site-nav__cta { display: flex; gap: 10px; }

@media (max-width: 820px) {
  .site-nav__links { display: none; }
  .site-nav__cta { margin-left: auto; }
}

/* ---------- Document pages: help, privacy, terms ---------- */

.doc-head {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--concrete);
}

.doc-head h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.doc-head .lede {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.doc-head .updated {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.doc {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 72px;
  padding: 52px 0 88px;
}

.doc--single { grid-template-columns: minmax(0, 1fr); }

.doc__toc {
  position: sticky;
  top: 28px;
  align-self: start;
  font-size: 0.9375rem;
}

.doc__toc ul {
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--rule);
  list-style: none;
}

.doc__toc a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 5px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  line-height: 1.3;
  text-decoration: none;
}

.doc__toc a:hover {
  border-left-color: var(--green);
  color: var(--green);
}

.doc__body { max-width: 68ch; }

.doc__body > :first-child { margin-top: 0; }

.doc__body h2 {
  margin: 60px 0 14px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  scroll-margin-top: 28px;
}

.doc__body h2:target { color: var(--green); }

.doc__body h3 {
  margin: 34px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.doc__body p,
.doc__body ul,
.doc__body ol,
.doc__body dl { margin: 12px 0; }

.doc__body ul,
.doc__body ol { padding-left: 1.4em; }

.doc__body li + li { margin-top: 8px; }

.doc__body ol > li::marker {
  color: var(--green);
  font-weight: 800;
}

.doc__body ul > li::marker { color: var(--green); }

.callout {
  margin: 24px 0;
  padding: 16px 20px 14px;
  border-left: 6px solid var(--amber);
  border-radius: 0 var(--radius-sign) var(--radius-sign) 0;
  background: var(--amber-tint);
}

.callout p { margin: 0; }

.faq dt {
  margin-top: 26px;
  font-weight: 700;
  line-height: 1.35;
}

.faq dd { margin: 6px 0 0; }

.muted { color: var(--ink-2); }

.note {
  color: var(--ink-2);
  font-size: 1rem;
}

@media (max-width: 960px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
  }

  .doc__toc {
    position: static;
    padding: 6px 0 22px;
    border-bottom: 1px solid var(--rule);
  }

  .doc__toc ul {
    columns: 2 200px;
    column-gap: 24px;
  }
}

/* ---------- Footer ---------- */

.site-foot {
  padding: 52px 0 44px;
  background: var(--asphalt-deep);
  color: rgba(247, 248, 244, 0.74);
  font-size: 0.9375rem;
}

.site-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 48px;
}

.site-foot .logo { color: var(--sign-white); font-size: 1.25rem; }
.site-foot .logo svg { width: 30px; height: 30px; }

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot a { color: var(--sign-white); }
.site-foot a:hover { color: var(--amber); }
.site-foot__links a { text-decoration: none; font-weight: 600; }
.site-foot__links a:hover { text-decoration: underline; }

.site-foot__legal {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--asphalt-line);
  font-size: 0.875rem;
  line-height: 1.6;
}

.site-foot__legal p { max-width: 92ch; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
