/* HOM International: single stylesheet, no build step. */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --surface: #ffffff;
  --text: #1c2733;
  --text-muted: #4f5b67;
  --accent: #a4471f;
  --accent-contrast: #ffffff;
  --border: #e3dbcf;
  --focus: #1d5fbf;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 14px;
  --container: 68rem;
  --header-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161d;
    --bg-alt: #171e27;
    --surface: #1c2430;
    --text: #ece7df;
    --text-muted: #b3ada4;
    --accent: #f0a27a;
    --accent-contrast: #1a1108;
    --border: #2b3542;
    --focus: #8ab4ff;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

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

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow {
  max-width: 44rem;
}

.center {
  text-align: center;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Hero */
.hero {
  padding-block: clamp(4rem, 12vw, 8rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, var(--focus) 10%, transparent), transparent 70%);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

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

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.button-primary:hover {
  background: transparent;
  color: var(--accent);
}

.button-ghost {
  background: transparent;
  color: var(--accent);
}

.button-ghost:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-intro {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.center .section-intro {
  margin-inline: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card p:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--accent);
  font-weight: 600;
}

/* Scripture */
.verse {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--text);
  color: var(--bg);
}

.verse figure {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.verse blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.4;
}

.verse figcaption {
  margin-top: 1rem;
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Beliefs */
.beliefs {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: belief;
}

.beliefs li {
  position: relative;
  padding: 1.1rem 0 1.1rem 3rem;
  border-top: 1px solid var(--border);
  counter-increment: belief;
}

.beliefs li:last-child {
  border-bottom: 1px solid var(--border);
}

.beliefs li::before {
  content: counter(belief, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.1rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
}

.location {
  margin-top: 2rem;
  font-style: normal;
  color: var(--text-muted);
}

.location strong {
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.75rem;
}

.footer-inner p {
  margin: 0;
}

/* Simple error page */
.error-page {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
}
