/* MonuFree — Stone & Serif
   Palette: limestone #EFEBE4, slate #3E4A52, bronze #9A7B4F.
   Bronze is used only for large type (1.5rem+), rules, and underlines.
   Type: Cormorant Garamond (headings), Source Serif 4 (body). Both self-hosted, SIL OFL 1.1. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --limestone: #EFEBE4;
  --slate: #3E4A52;
  --bronze: #9A7B4F;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --measure: 44rem;
  --wide: 58rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--slate);
  background: var(--limestone);
}

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

a {
  color: var(--slate);
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--slate);
  color: var(--limestone);
}

.page {
  width: min(100%, var(--wide));
  margin: 0 auto;
  padding: 3.25rem 1.5rem 3.5rem;
  text-align: center;
}

/* ----- Wordmark ----- */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--slate);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand:focus-visible {
  border-radius: 0.25rem;
}

.brand-name-svg {
  width: min(16.5rem, 78vw);
  height: auto;
  display: block;
  overflow: visible;
}

.brand-flourish {
  width: min(13.5rem, 64vw);
  height: auto;
  display: block;
  margin-top: 0.15rem;
}

/* ----- Mission ----- */

.mission {
  margin: 2.75rem auto 0;
  max-width: var(--measure);
}

.mission h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--slate);
}

.lede {
  margin: 1.15rem 0 0;
  font-family: var(--body);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--slate);
}

/* ----- Tools ----- */

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 2.75rem 0 0;
  text-align: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 1.75rem 1.15rem 1.55rem;
  border: 1px solid color-mix(in srgb, var(--slate) 42%, var(--limestone));
  border-radius: 0.7rem;
  background: transparent;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--bronze);
  text-decoration: none;
}

a.card:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.card-icon {
  width: 5.6rem;
  height: 5.6rem;
  margin: 0.15rem 0 1.15rem;
  color: var(--slate);
}

.card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--slate);
}

.card p {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--slate);
  max-width: 16.5rem;
}

.card .status {
  margin-top: 0.55rem;
  font-style: italic;
}

.card .cta {
  margin-top: 0.7rem;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-underline-offset: 0.18em;
}

a.card:hover .cta {
  text-decoration-thickness: 2px;
}

/* ----- Donations & footer ----- */

.donations {
  margin: 2.85rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--bronze);
}

.rule {
  width: min(100%, 28rem);
  height: 1px;
  margin: 2.1rem auto 1.5rem;
  border: 0;
  background: color-mix(in srgb, var(--bronze) 70%, var(--slate));
  opacity: 0.55;
}

.contributor,
.credit {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--slate);
}

.credit {
  margin-top: 1.15rem;
  font-size: 0.98rem;
  font-style: italic;
}

/* ----- Responsive ----- */

@media (max-width: 720px) {
  .page {
    padding: 2.25rem 1.15rem 2.75rem;
  }

  .tools {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
  }

  .donations {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.card {
    transition: none;
  }
}
