@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/lora-medium-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --green: #284d3c;
  --text: #565d57;
}

* { box-sizing: border-box; }

html { background: #fff; }

body {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: 2fr auto 3fr;
  margin: 0;
  padding: 3rem 1.5rem;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

main {
  grid-row: 2;
  width: min(100%, 42rem);
  justify-self: center;
}

h1 { margin: 0; }

.wordmark {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  margin: 0 auto;
}

.introduction {
  margin: 2.25rem 0 0;
  color: var(--green);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.6;
}

.project { margin: 1.25rem 0 0; }

a {
  color: var(--green);
  text-decoration-color: #a6b5a6;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
  border-radius: 1px;
}

::selection { background: #e1e9df; color: #193a29; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1;
  text-align: left;
}

.site-menu { position: relative; }

.site-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 4px;
  color: var(--green);
  cursor: pointer;
  list-style: none;
}

.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:hover { background: #f3f6f2; }

.menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.menu-icon-close,
.site-menu[open] .menu-icon-bars { display: none; }
.site-menu[open] .menu-icon-close { display: inline; }

.menu-links {
  position: absolute;
  top: calc(100% + .375rem);
  right: 0;
  min-width: 10rem;
  margin: 0;
  padding: .375rem;
  border: 1px solid #dce4dc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 20px #284d3c0d;
  list-style: none;
}

.menu-links a {
  display: block;
  padding: .5rem .875rem;
  border-radius: 2px;
  text-decoration: none;
}

.menu-links a:hover,
.menu-links a[aria-current="page"] { background: #f3f6f2; }
.menu-links a[aria-current="page"] { font-weight: 600; }
.menu-links a:focus-visible { outline-offset: -2px; }

.brand-home {
  display: block;
  width: min(100%, 20rem);
  margin-inline: auto;
}
.wordmark-small { width: 100%; }

.page-title {
  margin: 2rem 0 0;
  color: var(--green);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.875rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.3;
}

.contact-address {
  margin: 1.75rem 0 0;
  color: var(--green);
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.about-page { padding-top: 1rem; }

.about-copy {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  text-align: left;
}

.about-copy p { margin: 0 0 1rem; }
.about-copy p:last-child { margin-bottom: 0; }

@media (max-width: 420px) {
  body { padding-inline: 1.5rem; }
  .site-header { top: .75rem; right: .75rem; }
  .introduction { margin-top: 1.75rem; }
  .wide-break { display: none; }
}
