:root {
  color-scheme: dark;
  --ink: #f6f4eb;
  --muted: #c9d5cf;
  --deep: #081817;
  --panel: #102724;
  --line: rgba(246, 244, 235, 0.15);
  --amber: #f0b85a;
  --amber-strong: #ffc56f;
  --leaf: #69b48f;
  --coral: #e78a75;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--deep);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 24px;
  border: 2px solid rgba(246, 244, 235, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 68%, var(--amber) 0 18%, transparent 19%),
    linear-gradient(180deg, rgba(105, 180, 143, 0.42), rgba(240, 184, 90, 0.24));
  box-shadow: 0 0 22px rgba(240, 184, 90, 0.32);
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(246, 244, 235, 0.82);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: rgba(246, 244, 235, 0.08);
  color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px 20px 80px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero::before {
  z-index: -2;
  background-image: url("assets/treehole-hero.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 24, 23, 0.86) 0%, rgba(8, 24, 23, 0.62) 34%, rgba(8, 24, 23, 0.1) 72%),
    linear-gradient(180deg, rgba(8, 24, 23, 0.38) 0%, rgba(8, 24, 23, 0.04) 48%, rgba(8, 24, 23, 0.78) 100%);
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--amber-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 7em;
  margin-bottom: 18px;
  font-size: 88px;
  line-height: 0.98;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 34px;
  color: rgba(246, 244, 235, 0.9);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 136px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 36px var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--amber-strong);
  color: #1c1306;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd38b;
}

.button-secondary {
  border-color: rgba(246, 244, 235, 0.22);
  background: rgba(246, 244, 235, 0.1);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(246, 244, 235, 0.4);
  background: rgba(246, 244, 235, 0.15);
}

.button-icon {
  font-size: 18px;
  line-height: 1;
}

.principles {
  background:
    linear-gradient(180deg, #081817 0%, #0f2422 100%);
  padding: 46px 20px 54px;
}

.principles-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.principle {
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 244, 235, 0.045);
}

.principle:nth-child(2) {
  border-color: rgba(105, 180, 143, 0.34);
}

.principle:nth-child(3) {
  border-color: rgba(231, 138, 117, 0.32);
}

.principle-label {
  margin-bottom: 14px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.principle:nth-child(3) .principle-label {
  color: var(--coral);
}

.principle h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.2;
}

.principle p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  color: rgba(246, 244, 235, 0.72);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  text-decoration-color: rgba(246, 244, 235, 0.36);
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .hero {
    min-height: 86svh;
    padding: 112px 14px 56px;
  }

  .hero::before {
    background-position: 62% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(8, 24, 23, 0.9) 0%, rgba(8, 24, 23, 0.72) 54%, rgba(8, 24, 23, 0.24) 100%),
      linear-gradient(180deg, rgba(8, 24, 23, 0.34) 0%, rgba(8, 24, 23, 0.18) 52%, rgba(8, 24, 23, 0.84) 100%);
  }

  h1 {
    font-size: 60px;
  }

  .hero-copy {
    max-width: 360px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .button {
    width: 100%;
  }

  .principles-inner {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 15px;
  }

  .nav-links a {
    padding-inline: 6px;
  }

  h1 {
    font-size: 48px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    width: min(100% - 28px, 1180px);
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
