:root {
  color-scheme: light;
  --paper: #f4f0e9;
  --paper-warm: #ebe3d7;
  --ink: #272522;
  --muted: #69615a;
  --accent-blue: #2f5c72;
  --soft-blue: #7897a5;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    var(--paper);
}

.identity {
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 72rem;
  padding: 5rem 1rem 9.5rem;
  text-align: center;
}

.wordmark {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  text-wrap: balance;
}

.wordmark span {
  display: block;
  min-width: 0;
}

.wordmark .wordmark-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  column-gap: 0.18em;
  row-gap: 0.04em;
}

.wordmark .wordmark-pair > span {
  flex: 0 0 auto;
}

.contact {
  display: inline-block;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.contact:hover,
.contact:focus-visible {
  color: var(--accent-blue);
  text-decoration: underline;
}

.contact:focus-visible {
  outline: 1px solid var(--soft-blue);
  outline-offset: 0.35rem;
}

.moment-field {
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  width: 100%;
  height: 58svh;
  min-height: 22rem;
  color: var(--ink);
  pointer-events: none;
}

@media (min-width: 44rem) {
  .identity {
    padding-bottom: 10rem;
  }

  .wordmark .wordmark-pair {
    flex-wrap: nowrap;
  }

  .wordmark {
    font-size: 5.7rem;
  }

  .contact {
    margin-top: 1.55rem;
    font-size: 0.82rem;
  }
}

@media (min-width: 64rem) {
  .wordmark {
    font-size: 7.65rem;
  }

  .moment-field {
    height: 59svh;
  }
}

@media (max-height: 36rem) {
  .identity {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }

  .wordmark {
    font-size: 3rem;
  }

  .moment-field {
    height: 48svh;
    min-height: 14rem;
  }
}
