/* RememberMe: Day by Day website. Large text, strong contrast, no motion, no tracking.
   Change the accent here once the new app icon exists. */

:root {
  --page: #f1f4f9;
  --sheet: #ffffff;
  --surface: #f4f6fa;
  --text: #17181c;
  --muted: #4a4d57;
  --line: #dde1e9;
  --accent: #1f5fbf;
  --accent-soft: #eaf1fc;
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgba(20, 30, 60, 0.06), 0 8px 28px rgba(20, 30, 60, 0.08);
  --serif: ui-serif, "New York", Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1014;
    --sheet: #191b21;
    --surface: #22252d;
    --text: #f1f2f5;
    --muted: #c3c6cf;
    --line: #33363f;
    --accent: #8ab8ff;
    --accent-soft: #1d2a40;
    --accent-text: #0b1a2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.25rem;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 0.5rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.brand-tag {
  color: var(--muted);
  font-size: 1rem;
}

header.site nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

header.site nav a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  color: var(--text);
  font-size: 1.125rem;
}

header.site nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--accent);
}

/* The white card that holds each page */

.sheet {
  background: var(--sheet);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 2rem;
}

/* Text */

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

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

.meta {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

/* Boxes */

.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.card > :last-child,
.callout > :last-child {
  margin-bottom: 0;
}

.card h2,
.callout h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.375rem;
}

.toc-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.toc ol {
  display: grid;
  gap: 0.375rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  counter-increment: toc;
}

.toc li::before {
  content: counter(toc) ".";
  flex: 0 0 1.75rem;
  text-align: right;
  color: var(--muted);
}

@media (min-width: 44rem) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(8, auto);
    grid-auto-flow: column;
  }
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.875rem 1.375rem;
  border-radius: 0.75rem;
}

.links {
  list-style: none;
  padding: 0;
}

.links li {
  margin-bottom: 0.75rem;
}

/* Footer */

footer.site {
  color: var(--muted);
  font-size: 1rem;
}

footer.site .wrap {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

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

/* Phones */

@media (max-width: 36rem) {
  body {
    font-size: 1.1875rem;
  }

  .wrap {
    padding: 0 0.75rem;
  }

  .sheet {
    padding: 1.75rem 1.25rem 1.5rem;
    border-radius: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
