:root {
  color-scheme: light;
  --page: #f3f7f4;
  --ink: #173d36;
  --muted: #526a63;
  --line: #cbd9d2;
  --accent: #bd6658;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  border-top: 6px solid var(--ink);
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 112px, 1180px);
  min-height: calc(100vh - 6px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-link img {
  display: block;
  width: 204px;
  max-width: 46vw;
  height: auto;
}

.region {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

main {
  align-self: center;
  max-width: 800px;
  padding: 100px 0 112px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow-mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 58px;
  font-weight: 500;
  line-height: 1.12;
}

.message {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.note {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 48px);
  }

  .site-header {
    min-height: 84px;
  }

  .brand-link img {
    width: 174px;
  }

  .region {
    max-width: 110px;
    text-align: right;
  }

  main {
    padding: 78px 0 88px;
  }

  h1 {
    font-size: 42px;
  }

  .message {
    font-size: 17px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 0;
  }
}
