@font-face {
  font-family: "Gloock";
  src: url("fonts/Gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #f6f1e3;
  --ink: #211d16;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Gloock", Georgia, serif;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 7rem;
}

.subtitle,
.ethos,
.contact,
.legal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.subtitle {
  margin-top: 2rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.5;
  color: #5c5546;
  max-width: 34em;
}

.ethos {
  margin-top: 1.1rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: #6f6754;
  max-width: 36em;
}

.contact {
  margin-top: 1.4rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.contact a {
  color: #5c5546;
  text-decoration: none;
  border-bottom: 1px solid #c9c0a9;
  padding-bottom: 1px;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #a89e86;
}

.reveal {
  opacity: 0;
  transition: opacity 900ms ease;
}

.reveal.visible {
  opacity: 1;
}

.ethos.reveal {
  transition-delay: 150ms;
}

.contact.reveal {
  transition-delay: 300ms;
}

.legal.reveal {
  transition-delay: 450ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
  }
}

.name {
  font-weight: 400;
  font-size: clamp(2.5rem, 10.5vw, 8.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: left;
}

.line {
  position: relative;
  display: block;
  white-space: nowrap;
}

/* Reserves the finished layout so the block never shifts while typing. */
.ghost {
  visibility: hidden;
}

.typed {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
}

/* The caret is parked outside the lines until the script places it. */
.caret {
  display: inline-block;
  width: 0.026em;
  min-width: 2px;
  margin-left: 0.05em;
  height: 0.82em;
  background: var(--ink);
  transform: translateY(0.06em);
  visibility: hidden;
  font-size: inherit;
}
