/* The Anglican Ledger: coming-soon placeholder.
 * Black and copper on white, light theme only (the page sets
 * data-theme="light", which keeps tokens.css in its light values).
 *
 * Copper is the single accent. Per the brand guide it appears only in rules,
 * link underlines, large numerals and graphics, never as small text
 * (copper on white is ~3.8:1). The warm band behind the feature cards is a
 * light tint of copper; all text on it stays ink or ink-soft (> 10:1).
 */
@import url("tokens.css");

:root {
  color-scheme: light;
  --serif: var(--font-display);
  --sans: "Source Sans 3", var(--font-ui);
  --tint: #FAF4EE;                                   /* fallback */
  --tint: color-mix(in srgb, var(--copper) 7%, var(--paper));
  --tint-rule: color-mix(in srgb, var(--copper) 22%, var(--paper));
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.2rem/1.6 var(--serif);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--copper); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--ink); color: var(--paper);
  font: 600 15px var(--sans); padding: 0.6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- Masthead ---------------------------------------------------------- */

.masthead { text-align: center; padding: 4rem 16px 2.5rem; }
.masthead .logo.wide { width: min(560px, 100%); }
.masthead .logo.narrow { display: none; width: 200px; }
@media (max-width: 560px) {
  .feature { max-width: none; }
  .masthead { padding-top: 2.5rem; }
  .masthead .logo.wide { display: none; }
  .masthead .logo.narrow { display: inline-block; }
}

main:focus { outline: none; }

/* ---- Intro ------------------------------------------------------------- */

.intro {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 16px 4rem;
  text-align: center;
}
.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--copper);
  border-radius: 999px;
  font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink);
}
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper);
}
.lead {
  margin: 0 auto;
  max-width: 18ch;
  font: 500 clamp(2.1rem, 6vw, 3.4rem)/1.12 var(--serif);
  letter-spacing: -0.01em;
}
/* A short copper rule under the headline, echoing the logo's ruled line. */
.lead::after {
  content: ""; display: block;
  width: 72px; height: 2px; margin: 1.6rem auto 0;
  background: var(--copper);
}
.intro-text p {
  margin: 1.6rem auto 0;
  max-width: 36rem;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---- Feature cards ----------------------------------------------------- */

.features {
  background: var(--tint);
  border-top: 1px solid var(--tint-rule);
  border-bottom: 1px solid var(--tint-rule);
  padding: 3.5rem 16px 4rem;
}
.features-inner { max-width: 64rem; margin: 0 auto; }
.features h2 {
  margin: 0 0 2rem;
  text-align: center;
  font: 600 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-soft);
}
/* Flex rather than grid so a short last row (5 = 3 + 2) stays centred. */
.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.25rem;
}
.feature {
  flex: 1 1 260px;
  max-width: 320px;
  background: var(--paper);
  border: 1px solid var(--tint-rule);
  border-top: 3px solid var(--copper);
  padding: 1.5rem 1.4rem 1.6rem;
}
.feature .num {
  display: block;
  font: 500 2.2rem/1 var(--serif);
  color: var(--copper);              /* large numeral: graphics-size use */
  margin-bottom: 0.9rem;
}
.feature h3 { margin: 0 0 0.4rem; font: 500 1.4rem/1.2 var(--serif); }
.feature p { margin: 0; font: 400 15px/1.55 var(--sans); color: var(--ink-soft); }

/* ---- Simple pages (privacy, 404) --------------------------------------- */

.page { max-width: 40rem; margin: 0 auto; padding: 1rem 16px 4rem; border-top: 1px solid var(--rule); padding-top: 3rem; }
.eyebrow {
  display: inline-block;
  font: 600 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--copper); padding-bottom: 0.4rem; margin: 0 0 1.75rem;
}
.prose p { margin: 0 0 1.1em; }
.prose h2 { font: 500 1.5rem/1.25 var(--serif); margin: 2rem 0 0.6rem; }
.prose p:last-child { margin-top: 1.5rem; }

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

.site-footer {
  border-top: 2px solid var(--copper);
  padding: 2rem 16px;
  text-align: center;
  font: 400 14px/1.5 var(--sans);
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-soft); }
.features + .site-footer, main:has(.features) + .site-footer { border-top: 0; }
