@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #171d1f;
  --paper: #f5f5f2;
  --sage: #afbdaf;
  --copy: #c0c9c0;
  --lime: #d2e681;
  --edge: clamp(32px, 4.5vw, 88px);
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: "Instrument Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.holding {
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: var(--edge);
  padding-block-end: max(var(--edge), calc(env(safe-area-inset-bottom, 0px) + 28px));
  border-block-end: 10px solid var(--lime);
  display: grid;
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  row-gap: clamp(30px, 4vh, 48px);
}

.status,
.positioning,
h1 {
  margin: 0;
}

.status {
  color: var(--lime);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .43fr);
  gap: clamp(32px, 5vw, 100px);
  align-items: center;
  align-self: stretch;
  padding-block: 12px;
}

h1 {
  font-size: clamp(88px, 11.6vw, 208px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.055em;
  margin-inline-start: -.045em;
}

h1 span {
  display: block;
}

.name-secondary {
  color: var(--sage);
}

.mark {
  display: block;
  inline-size: min(100%, 384px);
  block-size: auto;
  aspect-ratio: 1;
  justify-self: center;
  color: var(--paper);
}

.mark-blades {
  transform-box: view-box;
  transform-origin: 50% 50%;
  /* One indexed quarter-turn to the original resting orientation; no loop. */
  animation: settle 4.8s cubic-bezier(.45, 0, .55, 1) both;
}

.mark-hub {
  fill: var(--lime);
}

.positioning {
  max-inline-size: 61ch;
  color: var(--copy);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}

.term {
  white-space: nowrap;
}

@keyframes settle {
  from { transform: rotate(-90deg); }
  to { transform: rotate(0deg); }
}

@media (min-width: 701px) and (max-width: 1000px) {
  h1 {
    font-size: clamp(88px, 13.5vw, 128px);
  }
}

@media (max-width: 700px) {
  :root {
    --edge: 26px;
  }

  .holding {
    padding-block-start: max(28px, env(safe-area-inset-top, 0px));
    padding-block-end: max(30px, calc(env(safe-area-inset-bottom, 0px) + 18px));
    border-block-end-width: 6px;
    row-gap: 20px;
  }

  .status {
    font-size: 11px;
    letter-spacing: .13em;
  }

  .identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding-block: 14px;
  }

  .mark {
    order: -1;
    align-self: flex-end;
    inline-size: clamp(120px, 35vw, 152px);
    margin-inline-end: -18px;
  }

  h1 {
    font-size: clamp(64px, 20vw, 104px);
    line-height: .91;
    letter-spacing: -.045em;
  }

  .positioning {
    max-inline-size: 36ch;
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark-blades {
    animation: none;
  }
}

@media (forced-colors: active) {
  .holding { border-block-end-color: CanvasText; }
  .mark-hub { fill: CanvasText; }
}
