@font-face {
  font-family: "Decker Letterpress";
  src: url("assets/im-fell-english-heading.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #171717;
  color: var(--ink);
  background: var(--paper);
  font-family: "Times New Roman", Times, serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
::selection { background: #e5e2dc; color: var(--ink); }
.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem 2rem;
}
.identity { width: min(100%, 45rem); }
.wordmark {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0;
  font-family: "Decker Letterpress", "Times New Roman", serif;
  font-size: clamp(1.875rem, 3.2vw, 2.375rem);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.025em;
}
.wordmark > span {
  -webkit-mask-image: url("assets/ink-grain.svg");
  mask-image: url("assets/ink-grain.svg");
  -webkit-mask-size: 240px 80px;
  mask-size: 240px 80px;
  white-space: nowrap;
}
.wordmark > span:first-child { text-align: right; transform: translateY(-0.875rem); }
.wordmark > span:last-child { text-align: left; transform: translateY(0.875rem); }
.wordmark img { display: block; width: 100%; height: auto; }

@media (hover: hover) {
  .site-footer a:hover span { color: var(--ink); background: var(--paper); }
  .back:hover { color: var(--ink); }
}
.site-footer {
  position: fixed;
  inset-inline: 0;
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.site-footer nav { display: flex; gap: 1rem; pointer-events: auto; }
.site-footer a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.875rem;
}
.site-footer a span {
  padding: 0.0625rem 0.25rem;
  line-height: 1.1;
  background: var(--ink);
  color: var(--paper);
  transition: color 120ms ease, background-color 120ms ease;
}
.site-footer a:focus-visible span,
.site-footer a:active span,
.site-footer a[aria-current="page"] span { background: var(--paper); color: var(--ink); }
.site-footer a[aria-current="page"] span { text-decoration: underline; text-underline-offset: 0.2em; }
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem 7rem;
}
.page-inner { width: min(100%, 24rem); }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: #666; }
.page h1 { margin: 1rem 0; font-size: 1.75rem; font-weight: 400; line-height: 1.25; }
.page p { margin: 0; font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: exit 120ms ease both; }
::view-transition-new(root) { animation: appear 160ms ease both; }
@keyframes exit { to { opacity: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .identity { animation: appear 500ms ease both; }
  .page-inner { animation: appear 180ms ease both; }
  .site-footer { animation: appear 500ms 100ms ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer a span { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (max-width: 600px) {
  .home { padding: 5rem 1.5rem 6rem; }
  .wordmark {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.625rem;
    font-size: 1.875rem;
  }
  .wordmark img { width: 9.5rem; }
  .wordmark > span:first-child,
  .wordmark > span:last-child { text-align: center; transform: none; }
  .site-footer { bottom: max(1rem, env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) and (min-width: 601px) {
  .home { padding-block: 3.5rem; }
}
