/* Shepherd's Stewardship — theme.css
   SS_FILE_VER: 1.0.0
   Design tokens first, then layout, then components. */

/* ---------------------------------------------------------------
   1. Tokens
   Palette is derived from a bound ledger: slate ink on a barely-warm
   page, ruled in grey, with a muted brass accent for anything the
   reader is meant to act on. Surplus reads sage, deficit reads clay.
   ---------------------------------------------------------------
   CONFIRM THESE AGAINST THE CHURCH BRAND GUIDE BEFORE LAUNCH.
   Every colour the site uses is defined here and nowhere else. */
:root {
  --ss-ink:        #1b2b3a;
  --ss-ink-soft:   #46586a;
  --ss-ink-faint:  #7b8b99;
  --ss-page:       #fbfaf7;
  --ss-panel:      #ffffff;
  --ss-rule:       #d8dce0;
  --ss-rule-soft:  #ecefF1;
  --ss-brass:      #8a6a2f;
  --ss-brass-dark: #6d5324;
  --ss-sage:       #4a6656;
  --ss-clay:       #8c3a2e;

  --ss-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ss-sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale, 1.25 ratio off a 17px body */
  --ss-t-xs:   0.75rem;
  --ss-t-sm:   0.875rem;
  --ss-t-base: 1.0625rem;
  --ss-t-md:   1.25rem;
  --ss-t-lg:   1.5rem;
  --ss-t-xl:   2rem;
  --ss-t-2xl:  2.75rem;

  --ss-measure: 64ch;
  --ss-gutter: 1.5rem;
  --ss-max: 68rem;
  --ss-max-narrow: 44rem;

  --ss-radius: 4px;
  --ss-shadow: 0 1px 2px rgba(27, 43, 58, 0.06);
}

/* ---------------------------------------------------------------
   2. Reset and base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ss-page);
  color: var(--ss-ink);
  font-family: var(--ss-sans);
  font-size: var(--ss-t-base);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ss-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--ss-t-2xl); }
h2 { font-size: var(--ss-t-xl); }
h3 { font-size: var(--ss-t-lg); }
h4 { font-size: var(--ss-t-md); }

p, li { max-width: var(--ss-measure); }
p { margin: 0 0 1.1em; }

a { color: var(--ss-brass-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ss-ink); }

img { max-width: 100%; height: auto; display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--ss-rule);
  margin: 2.5rem 0;
}

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

.ss-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ss-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.ss-skip-link:focus { left: 0; }

.ss-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------
   3. Layout shell
   --------------------------------------------------------------- */
.ss-wrap {
  width: 100%;
  max-width: var(--ss-max);
  margin-inline: auto;
  padding-inline: var(--ss-gutter);
}

.ss-wrap--narrow { max-width: var(--ss-max-narrow); }

.ss-site-header {
  background: var(--ss-ink);
  color: #fff;
  border-bottom: 3px solid var(--ss-brass);
}

.ss-site-header a { color: #fff; }

.ss-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.ss-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.ss-brand img { max-height: 54px; width: auto; }

.ss-brand-mark { flex: none; }

.ss-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ss-brand-name {
  font-family: var(--ss-serif);
  font-size: var(--ss-t-md);
  font-weight: 600;
}

.ss-brand-sub {
  font-size: var(--ss-t-xs);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

/* Navigation */
.ss-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.ss-nav li { max-width: none; }

.ss-nav a {
  font-size: var(--ss-t-sm);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.ss-nav a:hover,
.ss-nav .current-menu-item > a {
  border-bottom-color: var(--ss-brass);
  color: #fff;
}

.ss-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font: inherit;
  font-size: var(--ss-t-sm);
  padding: 0.4rem 0.8rem;
  border-radius: var(--ss-radius);
  cursor: pointer;
}

@media (max-width: 46rem) {
  .ss-nav-toggle { display: block; }
  .ss-nav {
    flex-basis: 100%;
    display: none;
  }
  .ss-nav.is-open { display: block; }
  .ss-nav ul { flex-direction: column; gap: 0; }
  .ss-nav li { border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .ss-nav a { display: block; padding: 0.7rem 0; border-bottom: 0; }
}

.ss-main { padding-block: 3.5rem 4.5rem; }

/* ---------------------------------------------------------------
   4. Front page — the statement of stewardship
   The hero is a plain-language statement, not a figure. This site
   exists to be trusted, so the first thing it does is explain itself.
   --------------------------------------------------------------- */
.ss-statement {
  border-top: 1px solid var(--ss-rule);
  border-bottom: 1px solid var(--ss-rule);
  padding-block: 3rem;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 52rem) {
  .ss-statement { grid-template-columns: 1fr; gap: 2.25rem; }
}

.ss-statement h1 {
  font-size: var(--ss-t-2xl);
  margin-bottom: 0.7em;
}

.ss-statement-lede {
  font-family: var(--ss-serif);
  font-size: var(--ss-t-md);
  line-height: 1.55;
  color: var(--ss-ink-soft);
}

.ss-statement-verse {
  font-family: var(--ss-serif);
  font-style: italic;
  color: var(--ss-ink-soft);
  border-left: 2px solid var(--ss-brass);
  padding-left: 1.1rem;
  margin: 2rem 0 0;
  max-width: 46ch;
}

.ss-statement-verse cite {
  display: block;
  font-style: normal;
  font-size: var(--ss-t-sm);
  color: var(--ss-ink-faint);
  margin-top: 0.5rem;
}

/* Office card beside the statement */
.ss-office {
  background: var(--ss-panel);
  border: 1px solid var(--ss-rule);
  border-radius: var(--ss-radius);
  padding: 1.6rem;
  box-shadow: var(--ss-shadow);
}

.ss-office h2 {
  font-size: var(--ss-t-md);
  margin-bottom: 1rem;
}

.ss-office dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1rem;
  font-size: var(--ss-t-sm);
}

.ss-office dt { color: var(--ss-ink-faint); }
.ss-office dd { margin: 0; }

/* ---------------------------------------------------------------
   5. Info sections
   --------------------------------------------------------------- */
.ss-section { margin-bottom: 3.5rem; }

.ss-section > h2 {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ss-rule);
  margin-bottom: 1.75rem;
}

.ss-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.25rem;
}

.ss-col h3 {
  font-size: var(--ss-t-md);
  margin-bottom: 0.5rem;
}

.ss-col p {
  font-size: var(--ss-t-sm);
  color: var(--ss-ink-soft);
  margin-bottom: 0;
}

/* Ledger-ruled calendar of what gets published and when */
.ss-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ss-t-sm);
}

.ss-schedule caption {
  text-align: left;
  color: var(--ss-ink-faint);
  font-size: var(--ss-t-sm);
  padding-bottom: 0.85rem;
}

.ss-schedule th,
.ss-schedule td {
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--ss-rule-soft);
  vertical-align: top;
}

.ss-schedule thead th {
  border-bottom: 1px solid var(--ss-rule);
  font-weight: 600;
  color: var(--ss-ink-soft);
}

.ss-schedule tbody tr:last-child td { border-bottom: 1px solid var(--ss-rule); }

/* ---------------------------------------------------------------
   6. Buttons
   --------------------------------------------------------------- */
.ss-btn {
  display: inline-block;
  font: inherit;
  font-size: var(--ss-t-sm);
  font-weight: 500;
  padding: 0.65rem 1.35rem;
  border-radius: var(--ss-radius);
  border: 1px solid var(--ss-brass);
  background: var(--ss-brass);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ss-btn:hover { background: var(--ss-brass-dark); border-color: var(--ss-brass-dark); color: #fff; }

.ss-btn--quiet {
  background: transparent;
  color: var(--ss-brass-dark);
}

.ss-btn--quiet:hover { background: rgba(138, 106, 47, 0.08); color: var(--ss-brass-dark); }

.ss-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------------------------------------------------------------
   7. Pages and entries
   --------------------------------------------------------------- */
.ss-entry-title { margin-bottom: 1.5rem; }

.ss-entry-content > * { max-width: var(--ss-measure); }
.ss-entry-content > .ss-full { max-width: none; }

.ss-entry-content table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  font-size: var(--ss-t-sm);
}

.ss-entry-content th,
.ss-entry-content td {
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--ss-rule-soft);
  text-align: left;
}

/* ---------------------------------------------------------------
   8. Footer
   --------------------------------------------------------------- */
.ss-site-footer {
  background: var(--ss-ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 2.75rem;
  font-size: var(--ss-t-sm);
  margin-top: auto;
}

.ss-site-footer a { color: #fff; }

.ss-footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.ss-footer-inner p { max-width: 34ch; margin-bottom: 0.4em; }

.ss-footer-heading {
  font-family: var(--ss-serif);
  color: #fff;
  font-size: var(--ss-t-base);
  margin-bottom: 0.75rem;
}

.ss-colophon {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  font-size: var(--ss-t-xs);
  color: rgba(255, 255, 255, 0.55);
}

body { min-height: 100vh; display: flex; flex-direction: column; }
.ss-main { flex: 1 0 auto; }

/* ---------------------------------------------------------------
   9. Motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------
   10. Print — reports are printed and filed
   --------------------------------------------------------------- */
@media print {
  .ss-site-header, .ss-site-footer, .ss-actions, .ss-nav { display: none; }
  body { background: #fff; font-size: 11pt; }
  .ss-wrap { max-width: none; padding: 0; }
}
