/* Horizontal Habits
   Atkinson Hyperlegible is self-hosted. License: fonts/OFL.txt
   Body text stays at 20px (1.25rem) or larger.
*/

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: #d5e6db;
  color: #14241c;
  font-family: "Atkinson Hyperlegible", Verdana, sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  font-variant-ligatures: none;
}

::selection {
  background: #c5ddd0;
  color: #14241c;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid #14241c;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  background: #fffcf7;
  color: #14241c;
  font-weight: 700;
  padding: 0.75rem 1rem;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
}

.sheet {
  max-width: 46rem;
  margin: 0 auto;
  background: #fffcf7;
  min-height: 100vh;
}

.wrap {
  padding: 1.25rem 1.25rem 0;
}

.site-header {
  background: #1b3a2f;
  color: #ffffff;
}

.site-header .wrap {
  padding-top: 1.35rem;
  padding-bottom: 1.2rem;
}

.site-header :focus-visible {
  outline-color: #f6e27a;
}

.site-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-name a {
  color: #ffffff;
  text-decoration: none;
}

.site-name a:hover,
.site-name a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 2px;
}

.tagline {
  margin: 0.5rem 0 0;
  color: #e7f2eb;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  color: #ffffff;
  font-size: 1.125rem;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  border-radius: 0.45rem;
}

.nav-list a:visited {
  color: #ffffff;
}

.nav-list a[aria-current="page"] {
  background: #fffcf7;
  color: #14241c;
  text-decoration-thickness: 3px;
}

.nav-list a[aria-current="page"]:visited {
  color: #14241c;
}

main.wrap {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

h1 {
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 6px solid #1b3a2f;
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  margin: 2.15rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
}

p,
ul,
blockquote {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.6rem;
}

li::marker {
  color: #1b3a2f;
}

a {
  color: #0f3d2e;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

a:visited {
  color: #0f3d2e;
}

.lede {
  font-size: 1.4rem;
  line-height: 1.45;
  font-weight: 700;
}

.callout,
.disclaimer {
  background: #e5f0e8;
  border: 3px solid #1b3a2f;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

blockquote {
  margin-left: 0;
  padding: 0.9rem 1rem;
  background: #f3f7f4;
  border-left: 6px solid #1b3a2f;
}

blockquote p {
  margin: 0;
}

.helps {
  background: #f3f7f4;
  border: 2px solid #1b3a2f;
  padding: 0.25rem 1.1rem 0.35rem;
  margin: 0 0 1.25rem;
}

.helps h2 {
  margin-top: 0.9rem;
}

.helps ul:last-child {
  margin-bottom: 0.95rem;
}

.placeholder {
  background: #fff1c9;
  border: 3px dashed #5c4300;
  padding: 0.95rem 1rem 0.2rem;
  margin: 0 0 1.25rem;
}

.placeholder strong {
  display: block;
}

.byline {
  margin-top: 1.6rem;
  font-weight: 700;
}

.site-footer {
  border-top: 6px solid #1b3a2f;
  padding-bottom: 2.2rem;
}

.site-footer .wrap {
  padding-top: 1.35rem;
}

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

.portrait {
  margin: 0.25rem 0 1.25rem;
}

.portrait img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  border-radius: 1.75rem;
  border: 3px solid #1b3a2f;
}

.photo {
  margin: 0.25rem 0 1.25rem;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  border: 3px solid #1b3a2f;
}

.photo figcaption {
  margin-top: 0.65rem;
}

@media (min-width: 52rem) {
  body {
    padding: 1.5rem 1rem 2rem;
  }

  .sheet {
    min-height: auto;
    border-radius: 1rem;
    box-shadow: 0 0 0 1px #b7d0c2;
    overflow: hidden;
  }

  h1 {
    font-size: 2.25rem;
  }

  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (forced-colors: active) {
  .callout,
  .disclaimer,
  .placeholder,
  .helps,
  blockquote {
    border: 2px solid CanvasText;
  }
}
