/* Another Perspective of Life, Inc. — apolinc.org */

:root {
  --bg: #FBFBF9;
  --white: #FFFFFF;
  --tint: #F4F8EC;
  --navy: #274472;
  --blue: #3B4EA0;
  --green: #8DC63E;
  --green-dark: #79AE2E;
  --text: #2B2F36;
  --muted: #5A6270;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

p, ul {
  max-width: 68ch;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* Headings */
h1, h2, h3 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin: 1.25rem 0 0.75rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

/* Links */
a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy);
}

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* Hero */
.hero {
  background: var(--white);
  text-align: center;
  padding: 3rem 0 3.5rem;
  border-bottom: 4px solid var(--green);
}

.logo {
  width: clamp(150px, 30vw, 280px);
  height: auto;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 1.75rem;
}

/* Section bands */
.band {
  padding: 3rem 0;
}

.band-tint {
  background: var(--tint);
}

ul {
  padding-left: 1.4rem;
}

li {
  margin: 0.4rem 0;
}

/* Contact form */
.card {
  background: var(--white);
  border: 1px solid #E2E4DC;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 560px;
  margin: 1.5rem 0;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
}

textarea {
  resize: vertical;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}

/* Honeypot — visually hidden, ignored by people */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Form status message */
#form-status {
  font-weight: 600;
  max-width: 560px;
}

#form-status.ok {
  color: var(--navy);
  background: var(--tint);
  border-left: 4px solid var(--green);
  padding: 0.9rem 1rem;
  border-radius: 6px;
}

#form-status.err {
  color: #8A2B2B;
}

.founder {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.orgline {
  color: var(--muted);
  margin-top: 0;
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem 0;
  font-size: 0.95rem;
}

footer a {
  color: var(--white);
}

footer a:hover {
  color: var(--tint);
}

footer :focus-visible {
  outline-color: var(--white);
}

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