@font-face {
  font-family: "Roslindale";
  src: url("fonts/roslindale-variable-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #222222;
  --fg: #eeeeee;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "Roslindale", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.stage {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hidden until the font is ready (script.js adds .ready), then faded in. */
.js .stage {
  opacity: 0;
}

.js.ready .stage {
  opacity: 1;
  transition: opacity 600ms ease-out;
}

.name {
  margin: 0;
  /* Initial size only; script.js fits it to the viewport. */
  font-size: 7.5vw;
  font-weight: 400;
  font-variation-settings: "opsz" 48, "wdth" 90, "wght" 420;
  font-kerning: normal;
  /* Unsnapped outlines so the animating weight moves smoothly, not in pixel steps. */
  text-rendering: geometricPrecision;
  /* Tuned by eye: 1.02 keeps "Foundation" snug under the first line while the
     q and y descenders still clear its capitals. */
  line-height: 1.02;
  text-align: center;
}

.line1 {
  white-space: nowrap;
}

/* Off-screen copy of line 1 used by script.js to calibrate wdth against wght. */
.name.probe {
  position: fixed;
  top: 0;
  left: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  font-size: 400px;
}

.contact {
  display: inline-block;
  margin-top: 2.75rem;
  padding: 0.6em 1.4em 0.65em;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
  font-variation-settings: "opsz" 9, "wdth" 100, "wght" 400;
  letter-spacing: 0.03em;
  color: var(--fg);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--fg);
  border-radius: 0;
}

.contact:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(238, 238, 238, 0.08);
}

.contact:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}
