:root {
  --cream: #f7f5f0;
  --ink: #2f343a;
  --slate: #58718a;
  --slate-dark: #3e566c;
  --bronze: #a8796b;
  --line: rgba(168, 121, 107, 0.55);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(40rem, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap > * {
  min-width: 0;
  max-width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.35rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}

.lockup img {
  width: 2.75rem;
  height: 2.75rem;
  max-width: 2.75rem;
  flex: 0 0 auto;
  object-fit: cover;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

nav a {
  color: var(--slate-dark);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--bronze);
}

main {
  flex: 1;
  padding: 3.25rem 0 4rem;
}

.hero-logo {
  width: min(18.5rem, 100%);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.25rem auto 2rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

.home h1,
.home .kicker,
.home .mission,
.home .lede,
.home .home-links {
  text-align: center;
}

.rule {
  width: 3.25rem;
  height: 1px;
  margin: 1.2rem auto 1.6rem;
  border: 0;
  background: var(--bronze);
}

.page .rule {
  margin-left: 0;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-dark);
}

.mission {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}

.mission p {
  margin: 0;
}

.lede,
.prose p {
  margin: 0 0 1.1rem;
}

.lede {
  max-width: 34rem;
  margin-inline: auto;
}

.home-links {
  margin: 2rem 0 0;
}

.home-links a {
  color: var(--slate-dark);
}

.page h1 {
  font-size: clamp(2.35rem, 6vw, 3.25rem);
}

.prose {
  max-width: 38rem;
}

.prose a,
.email {
  color: var(--slate-dark);
}

.email {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-underline-offset: 0.14em;
}

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

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

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.75rem;
  color: var(--slate-dark);
  font-size: 0.98rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .wrap {
    width: min(40rem, calc(100% - 2rem));
  }

  h1 {
    font-size: 2.35rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding-top: 2.5rem;
  }
}
