@font-face {
  font-family: "Crimson Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/crimson-text-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}

:root {
  --gold: #cfb53b;
  --gold-hover: #e7cb4a;
  --gold-text: #877624;
  --heading: #1b1b1b;
  --text: #575757;
  --muted: #5e5e5e;
  --band: #f6f6f6;
  --border: #e2e2e2;
  --sidebar-width: 280px;
  --content-width: 984px;
  --font-heading: "Crimson Text", Georgia, serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-text);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: #fff;
}

/* Header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--heading);
  text-decoration: none;
}

.nav-toggle {
  position: absolute;
  left: 24px;
  display: inline-flex;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--heading);
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  padding: 8px 24px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-text);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 48px 40px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .brand {
    font-size: 20px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    margin-top: 56px;
    padding: 0;
    border: 0;
  }

  .site-nav a {
    padding: 6px 0;
    font-size: 14px;
  }

  .page {
    margin-left: var(--sidebar-width);
  }
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: var(--heading);
}

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

/* Buttons */

.button {
  display: inline-block;
  padding: 16px 32px;
  border: 0;
  border-radius: 0;
  background: var(--gold);
  color: #000;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--gold-hover);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
  background-color: #6a8aa3;
  background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    image-set(url("../img/hero-1280.webp") 1x, url("../img/hero-1920.webp") 2x);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1280px) {
  .hero {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
      url("../img/hero-1920.webp");
  }
}

.hero h1 {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #fff;
  font-size: 40px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero p {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 56px;
  }

  .hero p {
    font-size: 26px;
  }
}

/* Feature rows */

.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature ul {
  margin: 0;
  padding-left: 22px;
}

.feature p {
  margin: 0;
}

.feature h3 {
  font-size: 26px;
}

@media (min-width: 768px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .feature--reverse .feature-media {
    order: 2;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info p {
  margin: 0 0 16px;
}

.contact-info h3:not(:first-child) {
  margin-top: 32px;
}

.contact-info a {
  text-decoration: none;
}

.contact-info .button {
  margin-top: 24px;
}

.contact-photo img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: var(--band);
  font: inherit;
  color: var(--heading);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-text);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form .button {
  width: 100%;
  margin-top: 8px;
}

.form .honeypot {
  display: none;
}

.form .button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  background: #f3efd9;
  color: var(--heading);
}

.form-status.is-error {
  background: #fbeaea;
  color: #8a1f1f;
}

/* FAQ */

.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary {
  color: var(--gold-text);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details p {
  margin: 0 0 20px;
}

.intro {
  text-align: center;
  margin: 0 0 40px;
}

/* Legal pages */

.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  margin-top: 40px;
  font-size: 24px;
}

.legal h3 {
  margin-top: 28px;
  font-size: 19px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

/* Footer */

.site-footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
