:root {
  --ink: #17130f;
  --paper: #f4f0e7;
  --paper-muted: #cec6b7;
  --signal: #f14b35;
  --line: rgba(244, 240, 231, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: calc(100svh - 58px);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.inside-header > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}

.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 8, 7, 0.34);
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 66px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--paper);
  font: 700 15px/1 Georgia, serif;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: #ff7a66;
}

.identity {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 5vw, 72px);
  bottom: clamp(70px, 12vh, 140px);
}

.signal {
  margin: 0 0 9px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity h1 {
  display: flex;
  align-items: end;
  gap: clamp(12px, 2.2vw, 34px);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.identity h1 span {
  font: 400 11.875rem/0.75 Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.identity h1 strong {
  color: var(--signal);
  font: 900 20rem/0.58 Arial, Helvetica, sans-serif;
}

.credit {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 4vw, 56px);
  bottom: 18px;
  color: rgba(244, 240, 231, 0.72);
  font-size: 10px;
  text-decoration: none;
}

.credit:hover,
.credit:focus-visible {
  color: var(--paper);
}

footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--paper-muted);
  font-size: 12px;
  text-transform: uppercase;
}

footer a {
  text-decoration: none;
}

footer nav {
  display: flex;
  gap: 18px;
}

.inside {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
}

.inside-header {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  background: var(--ink);
}

.inside-header::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(10, 8, 7, 0.52);
}

.inside-content {
  width: min(760px, calc(100% - 36px));
  min-height: calc(100svh - 222px);
  margin: 0 auto;
  padding: clamp(50px, 9vw, 110px) 0 80px;
}

.inside-content h1 {
  margin: 0 0 26px;
  font: 400 6.75rem/0.9 Georgia, "Times New Roman", serif;
}

.inside-content p {
  max-width: 650px;
  font-size: 19px;
  line-height: 1.55;
}

.inside-content .email {
  color: #9e2f20;
  font: 400 2.25rem/1.2 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.prose p {
  font-size: 17px;
}

.inside-content .updated {
  margin-top: 40px;
  color: #6e675d;
  font-size: 13px;
}

.inside footer {
  border-top: 1px solid #d3ccbf;
  background: var(--paper);
  color: #6e675d;
}

@media (max-width: 1200px) {
  .identity h1 span {
    font-size: 8.5rem;
  }

  .identity h1 strong {
    font-size: 16rem;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: calc(100svh - 70px);
  }

  .hero-image {
    object-position: 58% 50%;
  }

  .topbar {
    min-height: 60px;
  }

  .identity {
    bottom: 88px;
  }

  .identity h1 {
    display: block;
  }

  .identity h1 span,
  .identity h1 strong {
    display: block;
  }

  .identity h1 span {
    font-size: 5.5rem;
    line-height: 0.85;
  }

  .identity h1 strong {
    margin-top: 18px;
    font-size: 11.875rem;
    line-height: 0.55;
  }

  .inside-content h1 {
    font-size: 4rem;
  }

  .inside-content .email {
    font-size: 1.5rem;
  }

  .credit {
    right: auto;
    left: 18px;
    max-width: calc(100% - 36px);
  }

  footer {
    min-height: 70px;
  }
}

@media (max-width: 390px) {
  .identity h1 span {
    font-size: 4.25rem;
  }

  .identity h1 strong {
    font-size: 9rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    animation: settle 1.2s ease-out both;
  }

  .identity {
    animation: arrive 700ms 120ms ease-out both;
  }
}

@keyframes settle {
  from { transform: scale(1.025); }
  to { transform: scale(1); }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
