/* AtHisGates.com: the same warm colors, fonts and large, easy-to-read text as the app. */

@font-face { font-family: 'Lora'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Lora_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Lora'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Lora_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/Lora_400Regular_Italic.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Nunito_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/Nunito_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/Nunito_800ExtraBold.ttf') format('truetype'); }

:root {
  --bg: #FAF6EF;
  --card: #FFFFFF;
  --ink: #2F2A25;
  --muted: #62574D;
  --line: #E3D8C8;
  --gold: #C7853A;
  --gold-deep: #8F5414;
  --gold-soft: #F6E7D2;
  --sage-deep: #4A6650;
  --sage-soft: #E5EDE5;
  --dawn-1: #FFF1D9;
  --dawn-2: #FBD7B5;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
}

a { color: var(--gold-deep); font-weight: 700; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- header and footer ---------- */

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 26px; }
.brand img { width: 56px; height: 56px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.top nav a:hover { background: var(--gold-soft); }
.top nav a[aria-current='page'] { background: var(--gold-soft); color: var(--gold-deep); }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
main.wide { max-width: 1040px; }

.foot { border-top: 1px solid var(--line); text-align: center; padding: 28px 16px 40px; color: var(--muted); font-size: 18px; }
.foot p { margin: 6px 0; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: 40px; margin: 18px 0 8px; text-align: center; }
h2 { font-size: 28px; margin: 32px 0 10px; }
h3 { font-size: 23px; margin: 24px 0 8px; }
.lead { font-size: 22px; color: var(--muted); text-align: center; margin: 8px auto 20px; max-width: 640px; }
.small { font-size: 18px; color: var(--muted); }
.subtitle { margin: 0; text-align: center; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; font-size: 17px; color: var(--gold-deep); }

/* ---------- home ---------- */

.hero { text-align: center; padding: 18px 0 8px; background: radial-gradient(ellipse at top, var(--dawn-1), transparent 70%); border-radius: 28px; }
.hero h1 { margin-top: 6px; }
.hero-gates { width: 180px; height: 180px; }

.verse { margin: 28px auto 8px; max-width: 600px; text-align: center; }
.verse p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.55; margin: 0; }
.verse cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 220px; min-height: 64px; padding: 8px 22px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; text-align: left;
}
.store.soon { background: var(--card); color: var(--ink); border: 2px dashed var(--line); }
.store-small { font-size: 15px; font-weight: 700; opacity: .85; }
.store-big { font-size: 22px; font-weight: 800; line-height: 1.2; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.card h2 { font-size: 24px; margin: 0 0 6px; }
.card p { margin: 0; }

.band { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 6px 24px 18px; }
.band.soft { background: var(--sage-soft); border-color: transparent; }
.band h2 { margin-top: 18px; }

.ticks { padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 36px; margin: 10px 0; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--sage-deep); font-weight: 800; font-size: 22px; }

.qr { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.qr-code svg { width: 100%; height: auto; display: block; }
.qr h2 { margin-top: 0; }
@media (max-width: 560px) { .qr { grid-template-columns: 1fr; text-align: center; } .qr-code { max-width: 220px; margin: 0 auto; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px;
  border-radius: 999px; background: var(--gold-deep); color: #fff; text-decoration: none; font-weight: 800;
}
.button:hover { background: #7A460E; }

/* ---------- support and churches ---------- */

.safety { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 18px; padding: 6px 20px; margin: 24px 0; }
.dedication { margin: 18px 0; background: var(--sage-soft); border-radius: 18px; padding: 16px 22px; }
.dedication p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 10px 0; }
summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
details p { margin: 0 0 16px; }

/* ---------- privacy policy and terms ---------- */

.legal h1 { text-align: left; font-size: 34px; }
.legal h2 { font-size: 25px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 18px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--gold-soft); }
.legal td { background: var(--card); }

/* On a phone, each table row becomes a small card, each cell labelled with its heading. */
@media (max-width: 700px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; left: -9999px; }
  .legal tr { border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin: 12px 0; padding: 4px 0; }
  .legal td { border: 0; border-top: 1px solid var(--line); background: transparent; }
  .legal td:first-child { border-top: 0; font-weight: 800; }
  .legal td::before { content: attr(data-label); display: block; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

@media (max-width: 560px) {
  body { font-size: 19px; }
  h1 { font-size: 34px; }
  .brand { font-size: 23px; }
  .brand img { width: 48px; height: 48px; }
}

@media print {
  .top nav, .skip, .stores, .foot { display: none; }
  body { background: #fff; }
}
