@font-face {
  font-family: "Literata";
  src: url("../fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* Light only. The rabbit is black, so a dark theme would hide it. */
:root {
  --paper: #f6f7f4;
  --ink: #18232e;
  --muted: #5b6570;
  --line: #d6dbd6;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

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

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

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.wordmark img {
  width: 2rem;
  height: 2rem;
  flex: none;
}

/* Navigation (same links in header and footer) */

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Page content: one centred column */

main {
  flex: 1;
  display: flex;
  align-items: center;
}

.center {
  max-width: 38rem;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

.center h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.contact {
  color: var(--muted);
  margin: 0;
}

.lede a,
.contact a {
  white-space: nowrap;
}

.art {
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.art-sitting {
  width: 11rem;
  margin-bottom: 2rem;
}

.art-running {
  width: min(100%, 22rem);
  margin-top: 2.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 26rem) {
  .wrap {
    padding: 0 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .wordmark {
    font-size: 0.95rem;
    gap: 0.45rem;
  }

  .wordmark img {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Very narrow phones: put the nav under the name */
@media (max-width: 23rem) {
  .site-header .wrap {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 40rem) {
  .center {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .art-sitting {
    width: 12rem;
  }
}
