@font-face {
  font-family: 'Typist';
  src: url('typist-webfont.woff2') format('woff2'),
       url('typist-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  font-family: 'Zilla Slab', Georgia, serif;
  line-height: 1.5;
  --color-dark: #217867;
  --color-lightish: #d7f4ee;
  --color-light: #fff;
  color: var(--color-dark);
  font-size: clamp(1rem, calc(1rem + 0.5vw), 2rem);
}

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

* {
  margin: 0;
}

:focus {
  outline: 2px dotted currentColor;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px dotted currentColor;
  outline-offset: 0.125rem;
}

img {
  width: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--color-lightish) 50dvh, #87decd 100dvh);
}

[href="#main"] {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

[href="#main"]:not(:focus) {
  transform: translateY(-200%);
}

header {
  text-align: center;
  padding: 2.25rem 2.25rem 1rem;
}

.logo img {
  max-width: 20rem;
  margin-inline: auto;
}

nav ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 3rem;
  row-gap: 1rem;
  margin-top: 2.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

nav a {
  text-decoration: none;
}

nav [aria-current] {
  border-bottom: 0.25rem solid #fff;
}

main {
  background-color: var(--color-light);
  padding: 3rem;
  margin-inline: auto;
  max-width: 40rem;
  border-radius: 0.125rem 0.125rem 0;
}

main > * + * {
  margin-top: 1.5rem;
}

main p + p {
  margin-top: 0.75rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
}

h1::after {
  content: '';
  margin-inline: 3rem;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--color-light) 0%, var(--color-dark) 50%, var(--color-light));
  margin-top: 1rem;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, nav {
  line-height: 1.125;
  font-weight: 600;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

blockquote {
  font-size: 1.5rem;
  line-height: 1.25;
  font-style: italic;
  display: flex;
  gap: 0.75rem;
}

blockquote::before {
  flex: 0 0 1.5rem;
  content: '';
  background: url('/static/images/infinity-green.svg') no-repeat center left;
  background-size: 100%;
}

[role="contentinfo"] {
  background-color: var(--color-dark);
  padding: 3rem;
}

[role="contentinfo"] > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--color-lightish);
  margin-inline: auto;
  max-width: 40rem;
}

[role="contentinfo"] img {
  width: 8rem;
}

details h2 {
  font-size: 1.25rem;
  display: inline;
}

summary {
  cursor: pointer;
}

summary + * {
  margin-top: 1.5rem;
}

details {
  padding-top: 1.5rem;
}

details + details {
  border-top: 1px dashed;
}

.portrait {
  text-align: center;
}

.portrait img {
  margin-inline: auto;
  max-width: 250px;
  filter: grayscale(1) brightness(1.1);
  padding: 0.125rem;
  border: 1px solid var(--color-dark);
}

.portrait h2 {
  margin-block-start: 0.5rem;
}

@media (max-width: 500px) {
  main {
    padding-inline: 1rem;
  }
}