@font-face {
  font-family: "System Serif";
  src: local("Iowan Old Style"), local("Baskerville"), local("Times New Roman");
}

:root {
  color-scheme: light;
  --paper: #f7f7f4;
  --ink: #101110;
  --quiet: #646561;
  --line: rgba(16, 17, 16, 0.14);
  --aqua: #9fd9d6;
  --aqua-dark: #4a8c88;
  --sans: "Helvetica Neue", "Nimbus Sans L", Helvetica, Arial, sans-serif;
  --serif: "System Serif", "Iowan Old Style", Baskerville, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 28%, transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 82px);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 18px;
  height: auto;
  image-rendering: pixelated;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.github-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.github-link:hover svg,
.github-link:focus-visible svg {
  transform: translate(2px, -2px);
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 92px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(70px, 9vh, 130px) 0 clamp(30px, 5vh, 70px);
  overflow: hidden;
  text-align: center;
}

h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 1080px;
  font-size: clamp(52px, 8.2vw, 136px);
  font-weight: 700;
  letter-spacing: -0.073em;
  line-height: 0.86;
}

h1 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.065em;
}

.dek {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 34px 0 28px;
  color: var(--quiet);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.primary-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px 15px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.github-link:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--aqua-dark);
  outline-offset: 4px;
}

.mascot-wrap {
  position: relative;
  z-index: 1;
  width: clamp(330px, 58vw, 860px);
  aspect-ratio: 1.64;
  margin: 0 0 clamp(28px, 3.5vw, 50px);
  perspective: 1000px;
}

.mascot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 30px rgba(29, 46, 45, 0.12));
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transform-origin: 50% 70%;
  transition: transform 120ms ease-out;
  user-select: none;
}

.crew-member {
  position: absolute;
  z-index: 2;
  will-change: transform;
}

.crew-member img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.crew-emac {
  top: 0;
  left: 23%;
  width: 54%;
  animation: crew-float 7.2s ease-in-out infinite;
}

.crew-mini {
  bottom: 1%;
  left: 0;
  width: 40%;
  animation: crew-float 5.8s ease-in-out -2.1s infinite;
}

.crew-macbook {
  right: 0;
  bottom: 0;
  width: 56%;
  animation: crew-float 6.6s ease-in-out -4.4s infinite;
}

.crew-mini img,
.crew-macbook img {
  filter: drop-shadow(0 24px 24px rgba(29, 46, 45, 0.1));
}

.halo {
  position: absolute;
  inset: 10% 8% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 217, 214, 0.22), transparent 68%);
  filter: blur(28px);
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding: clamp(78px, 12vw, 180px) 0;
  border-top: 1px solid var(--line);
}

.text-link {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.manifesto-copy {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 88px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.manifesto-copy span {
  color: #91938e;
  font-family: var(--serif);
  font-weight: 400;
}

.manifesto-support {
  max-width: 670px;
  margin: 34px 0 30px;
  color: var(--quiet);
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.closing-statement {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 110px);
  align-items: center;
  padding: clamp(76px, 10vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.friend-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  isolation: isolate;
}

.friend {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 26px rgba(29, 46, 45, 0.1));
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.friend-wrap:hover .friend {
  transform: translateY(-5px) rotate(0.4deg);
}

.friend-halo {
  position: absolute;
  z-index: 0;
  inset: 20% 4% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 217, 214, 0.18), transparent 70%);
  filter: blur(24px);
}

.friend-imac {
  max-width: 520px;
  justify-self: end;
}

.friend-mac-pro {
  width: min(100%, 380px);
  justify-self: center;
}

.closing-content {
  max-width: 1100px;
}

.closing-content h2 {
  margin: 0;
  font-size: clamp(30px, 4.3vw, 68px);
  font-weight: 650;
  letter-spacing: -0.057em;
  line-height: 1.02;
}

.closing-content h2 span {
  color: #91938e;
  font-family: var(--serif);
  font-weight: 400;
}

.closing-detail {
  margin: 30px 0 24px;
  color: var(--quiet);
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.closing-link {
  display: inline-flex;
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.closing-link span {
  transition: transform 180ms ease;
}

.closing-link:hover span,
.closing-link:focus-visible span {
  transform: translateX(4px);
}

.closing-link:focus-visible {
  outline: 2px solid var(--aqua-dark);
  outline-offset: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes crew-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 760px) {
  .site-header { min-height: 76px; }
  .github-link span { display: none; }
  .hero { min-height: calc(100svh - 76px); padding-top: 72px; }
  h1 {
    max-width: 560px;
    font-size: clamp(48px, 15vw, 76px);
    line-height: 0.9;
  }
  h1 span,
  h1 em { display: inline; }
  .dek { max-width: 350px; }
  .mascot-wrap { width: min(96vw, 670px); margin-bottom: 30px; }
  .manifesto { grid-template-columns: 1fr; gap: 26px; }
  .manifesto-copy { font-size: clamp(42px, 13vw, 66px); }
  .manifesto-support { margin-top: 27px; }
  .text-link { margin-top: 8px; }
  .closing-statement { grid-template-columns: 1fr; gap: 28px; }
  .friend-imac { width: min(100%, 500px); justify-self: center; }
  .friend-mac-pro { width: min(68vw, 330px); }
  .closing-content { order: -1; }
  .closing-content h2 { font-size: clamp(36px, 10vw, 52px); line-height: 1.04; }
  footer { gap: 18px; }
  .footer-note { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .mascot { transform: none !important; }
  .crew-member { transform: none !important; }
  .friend { transform: none !important; }
}
