/* D.O.R.F. first-pass static site styles - updated CSS pass */

:root {
  --orange: #e65c20;
  --orange-dark: #bd4519;
  --cream: #f5e8ca;
  --paper: #fff8e8;
  --green: #234232;
  --ink: #111111;
  --muted: #5d655c;
  --line: rgba(35, 66, 50, 0.22);
  --shadow: rgba(35, 66, 50, 0.16);

  --font-heading: "Merriweather", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-height: 72px;
  --seal-size: 195px; /* increased another 50% */
  --content-width: 1120px;
  --section-pad: clamp(2.25rem, 4.5vw, 4rem); /* reduced vertical whitespace */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 36px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px; /* reduced from 18px */
  line-height: 1.6;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Header / navigation */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}

.top-nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 14%),
    var(--orange);
  border-bottom: 4px solid var(--cream);
  color: #fff;
}

.seal-link {
  position: fixed;
  top: 14px;
  left: clamp(1rem, 4vw, 2.5rem);
  z-index: 120;
  width: var(--seal-size);
  height: var(--seal-size);
}

.seal-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.22));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 3.3vw, 2.7rem);
  width: 100%;
  margin: 0;
  padding: 0 calc(var(--seal-size) + 1rem);
  list-style: none;
}

.nav-links a {
  color: #fff;
  font-family: var(--font-heading); /* nav now matches headings */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.86rem;
}

.nav-links a:hover,
.nav-links a:focus {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.material-symbols-outlined {
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: middle;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.flailr-header-link {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
}

.flailr-header-link img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 2px solid rgba(255,255,255,0.75);
  background: transparent;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero */

.hero {
  margin-top: var(--header-height); /* prevents hero top from hiding under fixed nav */
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  background: var(--cream);
}

.hero picture,
.hero-img {
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

/* Layout */

.container {
  width: min(var(--content-width), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section-cream {
  background: var(--cream);
}

.section-paper {
  background: var(--paper);
}

.section-rule {
  width: min(var(--content-width), calc(100% - 2rem));
  height: 4px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  background: var(--orange);
  border-radius: 999px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.section-copy {
  max-width: 720px;
}

.section-copy.narrow {
  max-width: 780px;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--orange-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.14;
  color: var(--ink); /* sub/headings changed from dark green to black */
}

h1,
h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 2.5vw, 2.35rem); /* reduced H1/H2 sizing */
}

h3 {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.65vw, 1.15rem); /* reduced proportionally */
}

p {
  margin: 0 0 1rem;
}

/* Mission checklist */

.checklist-wrap {
  padding-top: 1rem;
}

.checklist-img {
  width: min(100%, 420px);
  margin-inline: auto;
  transform: rotate(2deg);
  box-shadow: 0 16px 28px var(--shadow);
}

/* Resources */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.resource-card,
.access-box {
  border: 2px solid var(--line);
  background: rgba(245, 232, 202, 0.62);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.resource-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.resource-card li {
  margin-bottom: 0.35rem;
}

.resource-card span {
  color: var(--muted);
  font-size: 0.95em;
}

/* Flailr */

.process-list {
  padding-left: 1.45rem;
  margin: 0 0 1.25rem;
}

.process-list li {
  margin-bottom: 0.8rem;
}

.privacy-note {
  color: var(--muted);
  font-size: 0.94rem;
  border-left: 4px solid var(--orange);
  padding-left: 1rem;
}

.access-box {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.store-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.store-badges img {
  height: 42px;
  width: auto;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* Contact */

.contact-section {
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--orange);
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  background: rgba(245, 232, 202, 0.6);
}

.contact-links a:hover,
.contact-links a:focus {
  background: var(--orange);
  color: #fff;
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  background: #26326e;
  color: var(--cream);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Tablet / mobile */

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
    --seal-size: 110px; /* increased another 50% */
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--orange-dark);
    border-bottom: 4px solid var(--cream);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
    text-align: center;
  }

  .flailr-header-link {
    right: 5rem;
}

.flailr-header-link img {
    height: 32px;
    width: auto;
}

  .two-column,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .access-box {
    position: static;
  }

  .store-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --seal-size: 110px;
  }

  body {
    font-size: 16px;
  }

  .top-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .seal-link {
    left: 0.75rem;
    top: 10px;
  }

  .contact-links {
    flex-direction: column;
  }

  .store-badges {
    flex-direction: row;
    align-items: center;
  }

  .store-badges img {
    height: 36px;
  }
}
