/* Sunset Watch — the free site check (check.sunsetsys.com). The look of the landing (sunsetsys.com): paper, ink,
   one accent (the sun orange), Newsreader self-hosted. No JavaScript, nothing loads from third parties. The page's
   CSP allows this stylesheet and the font from this site and nothing else to run. Tokens copied from landing/styles.css. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  --paper: #F3F3F0;
  --ink: #101010;
  --text: #2B2A28;
  --muted: #6E6B66;
  --rule: #CFCDC7;
  --sun: #FF5B00;
  --on-sun: #101010;
  --good: #1F7A3D;       /* a measured all-clear, not a verdict of "secure" */
  --font: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --step-1: clamp(2.4rem, 6vw, 4.2rem);
  --step-3: clamp(1.45rem, 2.4vw, 1.9rem);
  --step-4: 0.85rem;
  --measure: 34em;
  --gutter: clamp(16px, 5vw, 72px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412; --ink: #F3F3F0; --text: #DAD8D2; --muted: #A09C95; --rule: #3A3834; --good: #6FBF8B;
  }
}
:root[data-theme="dark"] {
  --paper: #151412; --ink: #F3F3F0; --text: #DAD8D2; --muted: #A09C95; --rule: #3A3834; --good: #6FBF8B;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--text); font-family: var(--font);
  font-size: 19px; line-height: 1.5; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { color: var(--ink); font-weight: 500; }

.wrap { max-width: 820px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header, same wordmark as the landing */
header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  padding: 28px var(--gutter) 12px; border-bottom: 1px solid var(--ink); max-width: 820px; margin: 0 auto;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--ink); }
.wordmark .mark { width: 1.15em; height: 1.15em; color: var(--sun); flex: none; }

main { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 24px; }
main > * + * { margin-top: clamp(20px, 3vw, 32px); }
h1 { font-size: var(--step-3); line-height: 1.15; }
h2 { font-size: var(--step-3); line-height: 1.15; margin-top: clamp(28px, 4vw, 44px); }
.kicker { display: block; color: var(--muted); font-size: var(--step-4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.note { color: var(--muted); font-size: var(--step-4); line-height: 1.5; max-width: var(--measure); }

/* The one orange call to action */
.cta, button {
  display: inline-block; padding: 13px 24px; font-family: inherit; font-size: 1em;
  background: var(--sun); color: var(--on-sun); font-weight: 500; text-decoration: none;
  border: 0; border-radius: 4px; cursor: pointer;
}
.cta:hover, button:hover { background: var(--ink); color: var(--paper); }
.cta:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Form */
form p { max-width: var(--measure); }
label { display: block; color: var(--ink); font-weight: 500; }
input[type="text"], input[type="email"], input:not([type]) {
  display: block; width: 100%; max-width: 24em; margin-top: 6px; padding: 10px 12px;
  font-family: inherit; font-size: 1em; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
}
input:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }

/* The score, the hero number of a result */
.score { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: clamp(16px, 2.5vw, 24px); }
.score .num { font-size: var(--step-1); line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.score .cap { color: var(--muted); font-size: var(--step-4); text-transform: uppercase; letter-spacing: 0.06em; }

/* The full report (sitecheck.report) is plain h1/h2/p/hr: give its separators the landing's rule line */
hr { border: 0; border-top: 1px solid var(--rule); margin: clamp(28px, 4vw, 44px) 0; }
main h1 + p, main h2 + p { margin-top: 8px; }

/* Findings as lines, not cards */
.section h2 { margin-bottom: 8px; }
.lines li { padding: 14px 0; border-top: 1px solid var(--rule); }
.lines li:first-child { border-top: 0; }
.lines .t { color: var(--ink); font-weight: 500; }
.lines .d { color: var(--text); margin-top: 2px; }
.ok { color: var(--good); }
.waiting-step { color: var(--ink); font-weight: 500; font-size: 1.1em; }

footer {
  margin-top: clamp(48px, 8vw, 96px); padding: 20px var(--gutter) 40px; max-width: 820px; margin-left: auto; margin-right: auto;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--step-4);
}
footer a { color: var(--muted); }

@media (max-width: 720px) { body { font-size: 17px; } }
