
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* Colours */

:root {
  --navy: #142338;
  --navy-dark: #0d1929;
  --burgundy: #752e43;
  --gold: #d7b77b;
  --cream: #f8f6f1;
  --white: #ffffff;
  --text: #263447;
  --muted: #667180;
}

/* General */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */

.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ffffff20;
}

.navbar {
  max-width: 1100px;
  margin: auto;
  padding: 15px 25px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  color: white;
  font-size: 19px;
  font-weight: 600;
}

.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand strong {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #d9e0e8;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

/* Sections */

.section {
  padding: 65px 25px;
}

/* Resources */

.resources {
  min-height: 420px;
}

.section-heading {
  max-width: 1100px;
  margin: 0 auto 35px;
}

.section-heading h1 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 43px);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
}

/* Cards */

.card-grid {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.resource-card {
  display: flex;
  flex-direction: column;

  padding: 28px;

  background: white;
  border: 1px solid #e6e4df;
  border-radius: 10px;

  box-shadow: 0 3px 15px #14233808;

  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #14233815;
  border-color: var(--gold);
}

.resource-card:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.card-icon {
  width: 55px;
  height: 55px;

  display: grid;
  place-items: center;

  background: #f4eee4;
  border-radius: 10px;

  font-size: 27px;
  margin-bottom: 20px;
}

.resource-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 600;

  color: var(--navy);
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 14px;
  color: var(--muted);

  flex-grow: 1;
  margin-bottom: 22px;
}

.card-link {
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 700;
}

/* About */

.about {
  background: #eeeae2;
  padding: 45px 25px;
}

.about-inner {
  max-width: 1100px;
  margin: auto;
}

.about h2 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 27px;
  margin-bottom: 15px;
}

.about p {
  color: #526071;
  font-size: 14px;
  margin-bottom: 12px;
}

.about strong {
  color: var(--navy);
}

/* Footer */

.footer {
  background: var(--navy-dark);
  color: white;
  padding: 28px 25px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.footer strong {
  color: var(--gold);
  font-size: 15px;
}

.footer p {
  color: #aab5c3;
  font-size: 12px;
  margin-top: 5px;
}

.footer-right {
  text-align: right;
}

/* Mobile */

@media (max-width: 768px) {

  .navbar {
    padding: 14px 20px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    background: var(--navy-dark);
    padding: 20px;

    flex-direction: column;
    gap: 20px;

    border-top: 1px solid #ffffff20;
  }

  .nav-links.active {
    display: flex;
  }

  .section {
    padding: 45px 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resource-card {
    padding: 24px;
  }

  .about {
    padding: 35px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-right {
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
