@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-ext-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf7f2;
  --paper-deep: #f1e9e6;
  --ink: #292523;
  --muted: #716764;
  --rose: #82455a;
  --thread: #b98796;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: clamp(24px, 4.1vw, 66px) clamp(22px, 5.6vw, 92px) clamp(22px, 3.2vw, 50px);
  background:
    radial-gradient(circle at 73% 45%, #fff 0 2%, transparent 35%),
    linear-gradient(112deg, var(--paper) 0 59%, var(--paper-deep) 100%);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .26;
  background-image: url("/assets/thread-line.png");
  background-repeat: no-repeat;
  background-position: calc(100% + 160px) calc(100% + 120px);
  background-size: min(720px, 58vw) auto;
}

.brand {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: #432a32;
}

.brand > img {
  width: clamp(46px, 4vw, 60px);
  height: auto;
}

.brand-type {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font: 400 clamp(34px, 3.2vw, 54px)/.82 "Instrument Serif", Georgia, serif;
  letter-spacing: -.055em;
}

.brand small {
  margin: 8px 0 0 2px;
  font-size: 10px;
  letter-spacing: .18em;
}

.intro {
  grid-column: 1;
  align-self: center;
  z-index: 3;
  width: min(100%, 780px);
  padding: clamp(62px, 8vh, 108px) 0 clamp(56px, 8vh, 100px);
}

.status {
  width: max-content;
  margin: 0 0 clamp(22px, 3vh, 34px);
  padding-bottom: 7px;
  color: var(--rose);
  border-bottom: 1px solid color-mix(in srgb, var(--rose) 55%, transparent);
  font-size: clamp(13px, 1vw, 15px);
}

h1 {
  max-width: 10.8ch;
  margin: 0;
  font: 400 clamp(64px, 7.4vw, 128px)/.84 "Instrument Serif", Georgia, serif;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.lead {
  max-width: 48ch;
  margin: clamp(30px, 4vh, 48px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: clamp(34px, 5vh, 58px);
}

.contact a {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  text-decoration: none;
}

.contact a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.contact a:hover::after,
.contact a:focus-visible::after {
  transform: scaleX(.35);
}

.mark {
  position: absolute;
  right: clamp(-150px, -7vw, -70px);
  top: 50%;
  z-index: 1;
  width: min(48vw, 690px);
  aspect-ratio: .9;
  display: grid;
  place-items: center;
  transform: translateY(-47%);
}

.mark img {
  position: relative;
  z-index: 1;
  width: min(70%, 480px);
  height: auto;
  filter: sepia(.07) saturate(.85) drop-shadow(0 28px 40px #664b5519);
  animation: breathe 7s ease-in-out infinite;
}

.mark-halo {
  position: absolute;
  inset: 5%;
  border: 1px solid #a8758442;
  border-radius: 50%;
}

.mark-halo::before,
.mark-halo::after {
  content: "";
  position: absolute;
  border: 1px solid #a8758429;
  border-radius: 50%;
}

.mark-halo::before {
  inset: 11%;
}

.mark-halo::after {
  inset: 23%;
}

.thread {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thread path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 3 8;
  opacity: .68;
  animation: stitch 18s linear infinite;
}

footer {
  grid-column: 1 / -1;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 5px;
}

@keyframes breathe {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.4deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(.4deg); }
}

@keyframes stitch {
  to { stroke-dashoffset: -88; }
}

@media (max-width: 920px) {
  .page-shell {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .intro {
    grid-column: 1;
    width: 100%;
    align-self: end;
    padding: clamp(190px, 31vh, 280px) 0 56px;
  }

  .mark {
    top: 80px;
    right: -68px;
    width: min(72vw, 470px);
    transform: none;
  }

  .mark img,
  .mark-halo {
    opacity: .72;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(58px, 13.5vw, 96px);
  }

  .page-shell::before {
    background-size: 92vw auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 22px 20px 20px;
  }

  .brand strong {
    font-size: 36px;
  }

  .brand small {
    margin-top: 6px;
    font-size: 9px;
  }

  .intro {
    padding-top: 245px;
  }

  .status {
    max-width: 70%;
    width: auto;
    line-height: 1.4;
  }

  h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .lead {
    max-width: 34ch;
    line-height: 1.55;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mark {
    top: 92px;
    right: -72px;
    width: 330px;
  }

  footer {
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark img,
  .thread path {
    animation: none;
  }

  .contact a::after {
    transition: none;
  }
}
