:root {
  color-scheme: dark;
  --ink: #f4eee4;
  --muted: #c7bba7;
  --line: rgba(233, 210, 157, 0.26);
  --gold: #d6b46a;
  --red: #8f2f2a;
  --green: #4d6f55;
  --paper: rgba(26, 24, 21, 0.78);
  --black: #090908;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  background: var(--black);
  color: var(--ink);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(9, 9, 8, 0.86), rgba(9, 9, 8, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px clamp(24px, 7vw, 104px) 88px;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(143, 47, 42, 0.22), transparent 36%),
    linear-gradient(315deg, rgba(77, 111, 85, 0.22), transparent 42%),
    #0b0a09;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.95) 0%, rgba(9, 9, 8, 0.7) 42%, rgba(9, 9, 8, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 9, 8, 0.94) 0%, rgba(9, 9, 8, 0) 46%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-app {
  position: absolute;
  right: clamp(22px, 8vw, 140px);
  bottom: -16vh;
  width: min(38vw, 440px);
  min-width: 290px;
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
  opacity: 0.9;
}

.hero-bead {
  position: absolute;
  width: clamp(110px, 12vw, 190px);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
}

.bead-a {
  right: 42vw;
  top: 21vh;
}

.bead-b {
  right: 8vw;
  top: 18vh;
}

.bead-c {
  right: 31vw;
  bottom: 18vh;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 96px;
  line-height: 0.95;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy p:not(.eyebrow),
.app-copy p {
  width: min(620px, 100%);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
}

.primary-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #17120c;
  font-weight: 700;
}

.secondary-link {
  color: var(--ink);
}

.section {
  padding: 86px clamp(22px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 32px;
}

.bead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bead-grid article {
  min-height: 320px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bead-grid img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  margin-bottom: 22px;
}

.bead-grid p,
.ritual-list p {
  color: var(--muted);
  line-height: 1.8;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(77, 111, 85, 0.2), transparent 42%),
    #0c0b0a;
}

.app-shot {
  justify-self: center;
  width: min(100%, 320px);
}

.app-shot img {
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.ritual-list {
  display: grid;
  gap: 14px;
}

.ritual-list div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.ritual-list span {
  color: var(--gold);
  font-size: 15px;
}

.ritual-list p {
  margin: 0;
  font-size: 20px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(244, 238, 228, 0.68);
  font-size: 13px;
}

.site-footer a {
  color: var(--gold);
}

@media (max-width: 820px) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding: 100px 22px 64px;
  }

  .hero-app {
    right: -76px;
    bottom: -90px;
    min-width: 260px;
    opacity: 0.5;
  }

  .bead-a {
    right: 52vw;
    top: 17vh;
  }

  .bead-b {
    right: 2vw;
    top: 16vh;
  }

  .bead-c {
    right: 28vw;
    bottom: 19vh;
  }

  .hero-copy p:not(.eyebrow),
  .app-copy p {
    font-size: 16px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 32px;
  }

  .bead-grid,
  .app-section {
    grid-template-columns: 1fr;
  }

  .bead-grid article {
    min-height: auto;
  }

  .app-shot {
    width: 240px;
  }
}
