:root {
  --paper: #eeece5;
  --ink: #121411;
  --muted: #62655e;
  --line: #12141138;
  --acid: #d9ff45;
}

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

html,
body,
h1,
h2,
p {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}

body {
  position: relative;
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  filter: grayscale(0.72) saturate(0.48) contrast(0.9);
  background-image:
    linear-gradient(#eeece580 0%, #eeece5bd 100%),
    url("./mountain-original.png");
  background-position: center, bottom;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

@supports (background-image: image-set(url("image.avif") type("image/avif"))) {
  body::before {
    background-image:
      linear-gradient(#eeece580 0%, #eeece5bd 100%),
      image-set(
        url("./mountain.avif") type("image/avif"),
        url("./mountain.webp") type("image/webp"),
        url("./mountain-original.png") type("image/png")
      );
  }
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

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

.home-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: clamp(62px, 9vh, 88px) minmax(0, 1fr) auto clamp(42px, 6vh, 58px);
  width: min(100%, 1680px);
  height: 100svh;
  min-height: 520px;
  margin: 0 auto;
  padding: 0 clamp(22px, 3.4vw, 58px);
  overflow: hidden;
}

.masthead,
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-color: var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(10px, 0.72vw, 11px);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.masthead {
  border-bottom: 1px solid var(--line);
}

.wordmark {
  justify-self: start;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.wordmark span {
  position: relative;
  top: -0.6em;
  margin-left: 2px;
  font-size: 5px;
  letter-spacing: 0;
}

.descriptor {
  color: var(--muted);
}

.place {
  justify-self: end;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 620px) minmax(150px, 220px);
  column-gap: clamp(52px, 7vw, 112px);
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.hero-heading {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(20px, 3vh, 34px) 0;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  width: min(100%, 520px);
  margin: 0 0 clamp(12px, 2vh, 24px);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(10px, 0.72vw, 11px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  width: max-content;
  margin: 0 auto;
  font-family: Georgia, "Songti SC", STSong, serif;
  font-size: clamp(58px, 8.2vw, 124px);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.105em;
}

.hero h1 span:first-child {
  align-self: flex-start;
}

.accent-word {
  position: relative;
  align-self: flex-end;
}

.accent-word::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.09em;
  bottom: -0.02em;
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  outline: 1px solid var(--ink);
  background: var(--acid);
}

.orbit {
  position: relative;
  justify-self: center;
  width: min(16vw, 210px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.orbit::before {
  top: 50%;
  left: -16%;
  width: 132%;
  height: 1px;
}

.orbit::after {
  top: -16%;
  left: 50%;
  width: 1px;
  height: 132%;
}

.orbit-dot,
.orbit-core {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 50%;
  outline: 1px solid var(--ink);
}

.orbit-dot {
  top: 7%;
  right: 8%;
  width: 16%;
  aspect-ratio: 1;
  background: var(--acid);
}

.orbit-core {
  top: 50%;
  left: 50%;
  width: 7px;
  aspect-ratio: 1;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.statement {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(18px, 3vh, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: Georgia, "Songti SC", STSong, serif;
  font-size: clamp(10px, 0.88vw, 14px);
  line-height: 1.6;
}

.statement span {
  color: var(--muted);
  font-style: italic;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-width: 0;
  padding: clamp(12px, 1.7vh, 19px) clamp(14px, 1.65vw, 28px) clamp(13px, 1.8vh, 21px) 0;
}

.principle + .principle {
  padding-left: clamp(14px, 1.65vw, 28px);
  border-left: 1px solid var(--line);
}

.principle-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(9px, 1.4vh, 14px);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(9px, 0.65vw, 10px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.principle-meta span:first-child {
  color: var(--ink);
}

.principle-copy h2 {
  font-family: Georgia, "Songti SC", STSong, serif;
  font-size: clamp(18px, 1.9vw, 29px);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.principle-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: clamp(9px, 0.72vw, 11px);
  font-style: italic;
}

.footer {
  grid-template-columns: 1fr auto;
  color: var(--muted);
}

.footer span:last-child {
  justify-self: end;
  color: var(--ink);
}

@media (max-width: 760px), (max-height: 650px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .home-shell {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .home-shell {
    grid-template-rows: 58px minmax(430px, 1fr) auto 42px;
    min-height: 500px;
    padding-inline: 20px;
  }

  .masthead {
    grid-template-columns: 1fr auto;
  }

  .descriptor {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-heading {
    place-self: center;
    width: 86%;
    padding-bottom: 56px;
  }

  .eyebrow {
    width: 100%;
    margin-bottom: 16px;
  }

  .hero h1 {
    width: max-content;
    font-size: clamp(54px, 17vw, 82px);
    line-height: 0.8;
  }

  .orbit {
    position: absolute;
    right: -6vw;
    bottom: 32px;
    width: min(29vw, 122px);
    opacity: 0.76;
  }

  .statement {
    right: auto;
    bottom: 17px;
    left: 0;
    align-items: flex-start;
    font-size: 11px;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle {
    padding: 12px 12px 13px 0;
  }

  .principle + .principle {
    padding-left: 12px;
  }

  .principle:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .principle:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .principle-meta {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .principle-copy h2 {
    font-size: clamp(16px, 4.8vw, 21px);
  }

  .principle-copy p {
    margin-top: 3px;
    font-size: 9px;
  }

  .footer {
    font-size: 9px;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .home-shell {
    grid-template-rows: 58px minmax(390px, 1fr) auto 38px;
  }

  .hero h1 {
    font-size: clamp(56px, 7.4vw, 102px);
  }

  .principle {
    padding-block: 12px 14px;
  }

  .principle-meta {
    margin-bottom: 9px;
  }

  .statement {
    bottom: 16px;
  }
}

@media (max-height: 620px) and (max-width: 760px) {
  .home-shell {
    grid-template-rows: 48px minmax(360px, 1fr) auto 34px;
  }

  .hero-heading {
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vh, 72px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .orbit {
    animation: breathe 7s ease-in-out infinite;
  }

  .orbit-dot {
    animation: pulse 3.5s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.97);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
