:root {
  --bg: #f4f0e7;
  --paper: #fffaf0;
  --ink: #0f1211;
  --accent: #4a7569;
  --accent-soft: #a6b8b161;
  --line: #d6cec0;
  --shadow: 0 20px 35px rgba(30, 40, 35, 0.12);
  background: rgba(255, 250, 240, 0.92);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: #f4f0e7;
  background-image: linear-gradient(160deg, #f4f0e7 0%, #dde4d5 42%, #e8d7b5 100%);
  animation: page-fade-in 260ms ease-out both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.site-shell {
  width: 100%;
  margin: 0;
  padding-top: 0;
}

main {
  max-width: 1200px;
  margin: 5rem auto;
}

.sketch {
  display: block;
  width: 100%;
  max-width: 85%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 0 auto;
  margin-bottom: -3rem;
  margin-top: -1rem;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  margin:0;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 250, 240, 0.92);
  border-radius: 0;
  border-top: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(120px, 18vw, 170px);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 2rem;
  padding: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 500;
}

.site-nav a.current {
  color: var(--accent);
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: #e8d7b5;
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
  margin-bottom: 0.25rem;
}

.hero {
  margin: 2rem 0;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: var(--paper);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 4rem;
}

.hero a {
  color: var(--ink);
}

.hero a.btn {
  color: var(--paper);
}

.hero a.btn:hover {
  color: var(--ink);
}

.hero#home, .hero#values {
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 4rem;
}

.hero.narrow {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 4rem;
}

.hero.image-hero {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.hero.image-hero.reverse {
    flex-direction: row-reverse;
}

.image-hero-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.image-hero-image {
  width: 100%;
  height: auto;
  max-width: 420px;
  justify-self: end;
  border-radius: 1.2rem;
}

@media (max-width: 900px) {
  .hero.image-hero {
  grid-template-columns: 1fr;
  }
  .image-hero-image {
  justify-self: start;
  }
  main {
    margin: 0 auto;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .hero, .highlight, .section {
    margin: 2rem auto !important;
    max-width: 90vw !important;
  }
  .hero#home {
    border-radius: 0 0 1.2rem 1.2rem;
    margin-top: 0 !important;
  }
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  font-weight: 700;
  color: #425e56;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
}

h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  transition: all 0.18s ease;
}

.btn-primary img {
    filter: invert(1);
}

.btn-primary:hover img {
    filter: invert(0);
}

.btn-primary:hover {
  background: #C2CCC1;
  color: var(--ink);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.section {
  margin: 2rem 0;
  padding: 1rem 0;
}

.section-grid {
  display: grid;
  gap: 1rem;
}

.narrow .section-title-wrap h2 {
  display: block !important;
  text-align: center;
  width: 100%;
  min-width: 100%;
}

.narrow p {
  text-align: center;
  width: 100%;
  margin-top: 2rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(30,40,35,0.07);
}

.hero .card {
  justify-content: flex-start;
  background: linear-gradient(180deg, var(--accent-soft), var(--paper));
  box-shadow: none;
}

.card p {
  margin-top: 0;
}

.highlight {
  background: linear-gradient(180deg, var(--paper), var(--accent-soft));
  box-shadow: 0 1px 4px rgba(30,40,35,0.07);
  border-radius: 1rem;
  padding: 1.5rem;
  padding-bottom: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.address-grid {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
}
.address-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
  margin-left: 1.2rem;
}

.btn-action {
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: 0 1px 4px rgba(30,40,35,0.07);
  transition: background 0.18s;
  gap: 1rem;
}
.btn-action:hover {
  background: #C2CCC1;
  color: var(--ink);
}

.btn-action img {
    filter: invert(1);
}
.btn-action:hover img {
    filter: invert(0);
}

address {
  background: #ffffff;
  border: 1px dashed var(--line);
  font-size: 0.9rem;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  padding-bottom: 0.25rem;
  font-style: normal;
}

.site-footer {
  margin: 0;
  padding: 2rem 3rem;
  background: rgba(255, 250, 240, 0.8);
}

.footer-mailing {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-mailing h2 {
  margin-top: 0.3rem;
  margin-bottom: 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

form input,
form textarea {
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--line);
    font-size: 1rem;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form label {
    font-size: 0.9rem;
    font-weight: 600;
}

form button.btn-action {
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
}

.site-footer .address-grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.addresses {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer address {
  background: rgba(255, 255, 255, 0.76);
  min-width: 30%;
}

.footer-meta {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--ink);
}

.footer-meta p {
    margin: 0;
}

.footer-meta a {
    color: var(--ink);
}

.reveal-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-target.revealed {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  width: 50%;
  min-width: 500px;
  margin: 1rem auto;
  margin-bottom: 0;
  justify-content: center;
}

#home .btn-primary {
  margin-top: 2rem;
  margin-bottom: -1rem !important;
}

.narrow .btn-primary {
  margin-top: 2rem;
}

.resources-section {
  max-width: 1000px;
  margin: 0 auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.resource-item {
  margin: 0;
}

.resource-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.35rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(230, 235, 221, 0.92));
  border: 1px dashed var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.resource-link:hover {
  transform: translateY(-3px);
  border: 1px dashed var(--accent);
}

.resource-link h3 {
  margin-bottom: 0;
}

.resource-author {
  margin: 0;
  color: #425e56;
  font-size: 0.95rem;
}

.resource-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  margin-top: auto;
}

.resource-cta img {
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

@media (max-width: 900px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }
  .site-header {
    border-radius: 0;
  }

  .btn-primary {
    width: 100%;
    min-width: 100%;
    justify-content: space-between;
  }

  #home .btn-primary {
    margin-top: 2rem;
    margin-bottom: 0 !important;
  }

  .narrow .btn-primary {
    margin-top: 2rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  form {
    margin-bottom: 1rem;
  }

  .sketch {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0rem);
    background: #e8d7b5;
    padding: 2rem;
    flex-direction: column;
    align-items: flex-end;
    min-width: 100vw;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .footer-mailing {
    grid-template-columns: 1fr;
  }

  .footer-mailing h2 {
    margin-bottom: 0.5rem;
  }
  .site-footer {
    padding: 0;
    max-width: 90vw;
    margin: 0 auto;
    padding-bottom: 2rem;
    background: none;
  }
  .site-footer .address-grid {
    display: flex;
    flex-direction: column;
  }
  .addresses {
    flex-direction: column;
    gap: 1rem;
  }
  .address-actions {
    flex-direction: column;
    gap: 1rem;
    margin-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    justify-content: flex-start;
    align-items: stretch;
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  h2 img {
    display: none;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero.image-hero {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .hero.image-hero.reverse {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
