/* getkeepingscore.com: direction B, light only (D-190, D-191). Tokens from research/identity.md. */

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

:root {
  color-scheme: light;
  --paper: #F6F1E7;
  --raised: #FFFDF8;
  --line: #E4DCCB;
  --text: #1D1B26;
  --text2: #5C5866;
  --blue: #2F5BD3;
  --serif: "Newsreader", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: 24px;
}

@media (prefers-contrast: more) {
  :root { --text2: #45414E; --blue: #2346B0; }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: the mark and the name (D-202); links only on desktop (D-201). */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark:hover { text-decoration: none; }
/* Mark F (D-202), the small cut at 40 pt and below. Lockup (build sheet 1d): the mark before the name, its drawn
   height the name's cap height plus descender, the gap a quarter of its width. */
.mark { display: block; width: 34px; height: 34px; margin-right: 8px; }
.site-header nav { display: none; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
nav a { font-size: 16px; }

main { flex: 1; }

/* Footer, on every page */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 28px 0 40px;
}
.site-footer p { margin: 12px 0 0; font-size: 14px; color: var(--text2); }

/* Home */
.home { padding-top: 40px; }
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--blue);
  margin: 0 0 12px;
}
.home h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.intro { color: var(--text2); margin: 0; }
.shot {
  margin: 40px auto;
  max-width: 246px;
}
/* The screenshot slot (the redrawn Website frames): the screen in an ink phone outline with a soft shadow. */
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 7px solid var(--text);
  border-radius: 38px;
  box-shadow: 0 20px 40px rgba(29, 27, 38, 0.16);
}
.fine { font-size: 15px; color: var(--text2); margin: 0 0 12px; }

/* Long pages: privacy, terms, support. One column of 640 on desktop. */
.long { max-width: 640px; margin: 0 auto; padding-top: 36px; }
.long h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.long h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 32px 0 8px;
}
.long p { margin: 0 0 16px; }
.long .updated { color: var(--text2); font-size: 15px; margin-bottom: 24px; }
.long a { overflow-wrap: anywhere; }

/* 404 */
.lost { text-align: center; padding: 96px 0 32px; }
.lost .emoji { font-size: 96px; line-height: 1; margin: 0 0 24px; }
.lost h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.lost p { color: var(--text2); margin: 0; }
.lost p a { display: block; margin-top: 16px; font-weight: 600; }

@media (min-width: 768px) {
  :root { --gutter: 96px; }
  .site-header { padding-top: 36px; }
  .site-header nav { display: block; }
  .wordmark { font-size: 24px; }
  .mark { width: 36px; height: 36px; margin-right: 9px; }
  .long { padding-top: 56px; }
  .long h1 { font-size: 52px; }
  .long h2 { font-size: 24px; }

  .home {
    display: grid;
    grid-template-columns: minmax(0, 560px) 1fr;
    column-gap: 64px;
    align-items: start;
    padding-top: 48px;
  }
  .home > * { grid-column: 1; }
  .home .tagline { margin-top: 62px; }
  .home .shot { grid-column: 2; grid-row: 1 / span 6; justify-self: end; margin: 0 24px 0 0; width: 300px; max-width: 300px; }
  .shot img { border-width: 8px; border-radius: 46px; }
  .home h1 { font-size: 54px; line-height: 1.1; margin-bottom: 28px; }
  .intro { font-size: 19px; }
  .home .fine.first { margin-top: 48px; }

  .lost { padding-top: 120px; }
  .lost h1 { font-size: 52px; }
}
