/* Pray for Whittier — one stylesheet, no dependencies. */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #ececec;
  --gutter: 24px;
  --max: 1080px;
  --measure: 640px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */

.site-header {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; line-height: 0; }
.brand img { height: 34px; width: auto; display: block; }

.header-cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.header-cta:hover { background: var(--ink); color: var(--bg); }

/* Home */

main { flex: 1; width: 100%; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero .lede {
  margin: 28px 0 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.hero .sub {
  margin: 12px 0 0;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}

.button {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 34px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.button:hover { background: var(--bg); color: var(--ink); }

.reassure {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--muted);
}

/* Text pages (privacy, terms, 404) */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page .updated {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.page h2 {
  margin: 44px 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page p,
.page li { color: #262626; }

.page p { margin: 0 0 16px; }

.page ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.page li { margin-bottom: 6px; }

.page a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .2s ease;
}
.page a:hover { opacity: .6; }

.notfound {
  min-height: 55vh;
  min-height: 55svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}
.notfound h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.notfound p { margin: 16px 0 0; color: var(--muted); }

/* Footer */

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer nav { display: flex; gap: 20px; }

.site-footer a {
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer a:hover { color: var(--ink); }

/* Small screens */

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .brand img { height: 28px; }
  .header-cta { padding: 8px 14px; font-size: 13px; }
  .button { width: 100%; max-width: 320px; text-align: center; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

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