@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin.woff2") format("woff2");
}

:root {
  color-scheme: light only;
  --paper: #F3F2ED;
  --ink: #232B27;
  --forest: #17382C;
  --forest-raised: #1E4636;
  --bronze: #A0805A;
  --bronze-deep: #7A5F36;
  --champagne: #C9A96F;
  --serif: "EB Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

p,
h1 {
  margin: 0;
}

.threshold-section {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.threshold-section--hero {
  --wordmark-seam: 56.16%;
  --wordmark-top: 61.5svh;
  --wordmark-height: 10.668vw;
  --wordmark-clearance: clamp(.75rem, 1.2vw, 1.25rem);
  --foundation-floor-base: 79svh;
  --foundation-floor: max(
    var(--foundation-floor-base),
    calc(var(--wordmark-top) + var(--wordmark-height) + var(--wordmark-clearance))
  );
}

@supports (overflow: clip) {
  .threshold-section {
    overflow: clip;
  }
}

.threshold-stage,
.threshold {
  position: absolute;
  inset: 0;
}

.threshold-stage {
  z-index: -1;
  background: var(--paper);
}

.threshold {
  display: block;
}

.threshold--foundation {
  background: var(--forest);
  clip-path: polygon(
    0 14%,
    var(--wordmark-seam) 14%,
    var(--wordmark-seam) var(--foundation-floor),
    75% var(--foundation-floor),
    75% 100%,
    0 100%
  );
}

.threshold--canopy {
  background: var(--forest);
  clip-path: polygon(55% 0, 100% 0, 100% 55%, 93% 55%, 93% 10%, 64% 10%, 64% 55%, 55% 55%);
}

.threshold--aperture {
  display: none;
  background: var(--paper);
}

.eyebrow,
.thesis-frame,
.wordmark {
  position: absolute;
  z-index: 2;
}

.eyebrow {
  top: clamp(2rem, 5.5vh, 3.5rem);
  left: clamp(1.5rem, 3vw, 3rem);
  color: var(--forest);
  font-family: var(--mono);
  font-size: clamp(.65rem, .85vw, .78rem);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
}

.thesis-frame {
  top: 18%;
  left: 67.5%;
  width: min(20.5vw, 20rem);
  color: var(--forest);
}

.thesis-frame p {
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.verified-joint {
  position: absolute;
  right: -.75rem;
  bottom: -4.5rem;
  width: clamp(2.6rem, 3.6vw, 3.6rem);
  height: clamp(2.6rem, 3.6vw, 3.6rem);
  border-right: clamp(.5rem, .75vw, .75rem) solid var(--bronze);
  border-bottom: clamp(.5rem, .75vw, .75rem) solid var(--bronze);
}

.wordmark {
  top: var(--wordmark-top);
  left: 0;
  width: 100%;
  aspect-ratio: 7592 / 810;
}

.wordmark-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.wordmark-layer img {
  position: absolute;
  top: 3%;
  left: 3%;
  display: block;
  width: 94%;
  height: auto;
}

.wordmark-layer--ivory {
  clip-path: inset(0 calc(100% - var(--wordmark-seam)) 0 0);
}

.site-footer {
  z-index: 2;
  font-size: clamp(.8rem, 1.05vw, 1rem);
  line-height: 1.4;
}

.site-footer > a,
.site-footer__copyright {
  position: absolute;
  z-index: 2;
  bottom: clamp(2rem, 5.5vh, 3.5rem);
}

.site-footer > a {
  left: clamp(1.5rem, 3vw, 3rem);
}

.site-footer__copyright {
  right: clamp(1.5rem, 3vw, 3rem);
}

.site-footer a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.site-footer a:hover {
  color: var(--champagne);
  text-decoration-color: currentColor;
}

.site-footer a:focus-visible,
.home-link:focus-visible {
  border-radius: 1px;
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.site-footer p {
  color: var(--forest);
}

::selection {
  background: var(--bronze-deep);
  color: var(--paper);
}

.not-found {
  position: relative;
  display: grid;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 2rem;
  background: var(--paper);
}

.not-found::before {
  position: absolute;
  z-index: 1;
  inset: 9% 8% 12% 14%;
  border: 1px solid var(--bronze);
  content: "";
  pointer-events: none;
}

.not-found::after {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 42%;
  background: var(--forest);
  content: "";
}

.not-found__content {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  padding: clamp(2rem, 7vw, 5rem);
  background: var(--paper);
  color: var(--forest);
}

.not-found__label {
  color: var(--bronze-deep);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.error-copy {
  margin-top: 1.5rem;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 500;
  line-height: .96;
}

.home-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--forest);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-underline-offset: .3em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .threshold-section--hero {
    --wordmark-seam: 38%;
    --wordmark-top: 64svh;
    --foundation-floor-base: 74svh;
  }

  .threshold--foundation {
    clip-path: polygon(
      0 16%,
      var(--wordmark-seam) 16%,
      var(--wordmark-seam) var(--foundation-floor),
      72% var(--foundation-floor),
      72% 100%,
      0 100%
    );
  }

  .threshold--canopy {
    clip-path: polygon(48% 0, 100% 0, 100% 58%, 94% 58%, 94% 11%, 56% 11%, 56% 58%, 48% 58%);
  }

  .thesis-frame {
    top: 17%;
    left: 59%;
    width: 34%;
  }

  .thesis-frame p {
    font-size: clamp(1rem, 2.35vw, 1.22rem);
    line-height: 1.48;
  }

  .verified-joint {
    right: -.35rem;
    bottom: -4rem;
  }

  .site-footer > a,
  .site-footer__copyright {
    bottom: 4%;
  }
}

@media (max-width: 600px) {
  .threshold-section--hero {
    --wordmark-seam: 56.16%;
    --aperture-top: 32%;
    --aperture-step: calc(100% - var(--wordmark-seam));
    --aperture-upper-x: 37.5%;
    --wordmark-left: 11.5vw;
    --inverse-depth: 84%;
    --aperture-lower-x: calc(var(--wordmark-left) + 8.96svh);
  }

  .threshold--foundation {
    background: var(--forest);
    clip-path: inset(0);
  }

  .threshold--canopy {
    display: none;
  }

  .threshold--aperture {
    display: block;
    clip-path: polygon(
      var(--aperture-upper-x) var(--aperture-top),
      100% var(--aperture-top),
      100% 100%,
      var(--aperture-lower-x) 100%,
      var(--aperture-lower-x) var(--aperture-step),
      var(--aperture-upper-x) var(--aperture-step)
    );
  }

  .eyebrow {
    position: static;
    width: auto;
    color: var(--forest);
    font-size: clamp(.57rem, 2.4vw, .66rem);
    line-height: 1.55;
    white-space: nowrap;
  }

  .thesis-frame {
    top: 51%;
    left: 46%;
    width: 43%;
  }

  .thesis-frame p {
    font-size: clamp(.9rem, 3.95vw, 1.03rem);
    line-height: 1.45;
  }

  .thesis-line {
    display: block;
  }

  .verified-joint {
    right: 0;
    bottom: -2.6rem;
    width: clamp(2rem, 9.2vw, 2.45rem);
    height: clamp(2rem, 9.2vw, 2.45rem);
    border-right-width: clamp(.38rem, 1.8vw, .5rem);
    border-bottom-width: clamp(.38rem, 1.8vw, .5rem);
  }

  .wordmark {
    top: 100%;
    left: var(--wordmark-left);
    width: 100svh;
    transform: rotate(-90deg);
    transform-origin: left top;
  }

  .wordmark-layer--ivory {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 100%,
      var(--wordmark-seam) 100%,
      var(--wordmark-seam) var(--inverse-depth),
      0 var(--inverse-depth)
    );
  }

  .site-footer {
    position: absolute;
    right: 3%;
    bottom: 2.3%;
    left: 46%;
    display: grid;
    justify-content: start;
    gap: .25rem;
    font-size: clamp(.72rem, 3.25vw, .86rem);
  }

  .site-footer > a,
  .site-footer__copyright {
    position: static;
  }

  .site-footer a,
  .site-footer p {
    color: var(--forest);
  }

  .site-footer a:hover {
    color: var(--bronze-deep);
  }

  .not-found {
    background: var(--forest);
  }

  .not-found::after {
    inset: 0 0 auto;
    width: 100%;
    height: 18%;
    background: var(--paper);
  }

  .not-found::before {
    inset: 12% 1.25rem 8%;
  }

  .not-found__content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 360px) {
  .threshold-section--hero {
    --aperture-upper-x: 40%;
  }

  .thesis-frame {
    left: 44%;
    width: 50%;
  }

  .thesis-frame p {
    font-size: .88rem;
  }

  .site-footer {
    left: 44%;
  }

  .site-footer {
    font-size: .72rem;
  }
}

@media (max-width: 600px) and (max-height: 620px) {
  .threshold-section--hero {
    --aperture-top: 30.5%;
    --aperture-upper-x: 36.5%;
    --wordmark-left: 9.5vw;
    --aperture-lower-x: calc(var(--wordmark-left) + 8.96svh);
  }

  .threshold--aperture {
    clip-path: polygon(
      var(--aperture-upper-x) var(--aperture-top),
      100% var(--aperture-top),
      100% 100%,
      var(--aperture-lower-x) 100%,
      var(--aperture-lower-x) var(--aperture-step),
      var(--aperture-upper-x) var(--aperture-step)
    );
  }

  .thesis-frame {
    top: 48.5%;
    left: 41%;
    width: 54%;
  }

  .thesis-frame p {
    font-size: .875rem;
    line-height: 1.35;
  }

  .verified-joint {
    right: 0;
    bottom: -2.15rem;
    width: 1.85rem;
    height: 1.85rem;
  }

  .eyebrow {
    display: none;
  }

  .site-footer {
    right: 2%;
    bottom: 2%;
    left: 41%;
    font-size: .69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
