:root {
  --forest-olive: #394A16; /* headings, buttons */
  --golden-amber: #E49A1A; /* accents, highlights */
  --warm-ivory:   #FAF5EF; /* page background */
  --deep-olive:   #28390E; /* body text, borders */
  --natural-brown:#79501F; /* small rustic accents */
  --soft-sage:    #A7AD8A; /* supporting backgrounds */
}

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

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

body {
  margin: 0;
  background: var(--warm-ivory);
  color: var(--deep-olive);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--forest-olive);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

/* Hero */

.hero,
.section,
.strip {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.hero {
  padding-top: 20px;
  padding-bottom: 40px;
  text-align: center;
}

.hero__logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 14px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--golden-amber);
  color: #3a2706;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero__text {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__text {
  max-width: 50ch;
}

/* Buttons */

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 20px auto 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid var(--forest-olive);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--forest-olive);
  color: var(--warm-ivory);
}

.btn--secondary {
  background: transparent;
  color: var(--forest-olive);
}

a:focus-visible {
  outline: 3px solid var(--natural-brown);
  outline-offset: 3px;
}

.btn:active {
  border-color: var(--golden-amber);
  background: var(--golden-amber);
  color: #3a2706;
}

.actions__note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--natural-brown);
}

/* Sections */

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 36px;
  padding-bottom: 36px;
  text-align: center;
}

.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 22px 20px;
  border: 1px solid rgba(57, 74, 22, 0.18);
  border-top: 4px solid var(--golden-amber);
  border-radius: 10px;
  background: #fff;
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  margin: 0;
}

/* Details strip */

.strip {
  padding-top: 28px;
  padding-bottom: 28px;
  background: var(--soft-sage);
  color: var(--deep-olive);
}

.strip__list {
  display: grid;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
  font-weight: 600;
}

/* Contact */

.contact__email {
  color: var(--forest-olive);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact__email:active {
  color: var(--natural-brown);
}

/* Footer */

.footer {
  padding: 28px max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid rgba(57, 74, 22, 0.15);
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  max-width: 46ch;
  margin: 0 auto 8px;
  text-wrap: balance;
}

.footer__note {
  color: var(--natural-brown);
}

/* Wider screens */

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero__logo {
    max-width: 520px;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .btn {
    min-width: 260px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
  }

  .strip {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .strip__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--deep-olive);
    border-color: var(--deep-olive);
  }

  .btn--secondary:hover {
    background: rgba(57, 74, 22, 0.08);
  }

  .contact__email:hover {
    color: var(--natural-brown);
  }
}

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