:root {
  --bg: #07110b;
  --bg-soft: #0a1810;
  --panel: #0d1d13;
  --panel-2: #102319;
  --text: #edf3e9;
  --muted: #a8b6a7;
  --line: rgba(196, 221, 185, 0.14);
  --line-strong: rgba(196, 221, 185, 0.24);
  --green: #9ed18e;
  --green-2: #c8e7b8;
  --gold: #cdb56d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --content: 1180px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(71, 124, 75, 0.16), transparent 28%),
    radial-gradient(circle at 5% 42%, rgba(100, 150, 83, 0.07), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
}
.brand img { width: 34px; height: 34px; flex: 0 0 34px; }
.brand > span { min-width: 0; }
.brand strong,
.brand small { display: block; }
.brand strong {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
}
.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #d5dfd2;
  font-size: 0.8rem;
  white-space: nowrap;
}
.site-header nav a {
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.site-header nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.035);
  border-color: var(--line);
}
.site-header nav a.active {
  color: var(--green-2);
  background: rgba(158, 209, 142, 0.07);
  border-color: rgba(158, 209, 142, 0.18);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 4px auto;
  background: white;
}

/* Hero */
.hero {
  min-height: min(760px, calc(100vh - var(--header-h)));
  display: grid;
  align-items: center;
  padding: clamp(68px, 8vh, 96px) clamp(22px, 7vw, 100px) clamp(70px, 9vh, 105px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "竹";
  position: absolute;
  right: -1.5vw;
  top: -5vw;
  z-index: -1;
  color: rgba(137, 200, 124, 0.024);
  font: min(43vw, 620px)/1 var(--serif);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}
.eyebrow,
.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}
.hero h1,
.page-hero h1,
.section-title h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 {
  max-width: 1000px;
  margin: 18px 0 24px;
  font-size: clamp(3.45rem, 6.8vw, 6.8rem);
  line-height: 0.98;
}
.hero h1 span { color: var(--green-2); }
.lead {
  max-width: 760px;
  margin: 0;
  color: #c6d2c4;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn.primary {
  border-color: transparent;
  background: var(--green-2);
  color: #0b1b10;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(205,181,109,0.45); }
.hero-quote {
  max-width: 690px;
  margin-top: 52px;
  padding: 4px 0 4px 19px;
  border-left: 1px solid rgba(205,181,109,0.7);
}
.hero-quote small {
  display: block;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-quote blockquote {
  margin: 8px 0 0;
  color: #dce7d9;
  font: 1.28rem/1.5 var(--serif);
}

/* Page heads */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, var(--content));
  justify-content: center;
  padding: clamp(54px, 6vw, 76px) clamp(22px, 7vw, 100px) clamp(44px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(80,130,76,0.07), transparent);
}
.page-hero h1 {
  max-width: 900px;
  margin: 10px 0 16px;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1;
}
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Sections */
.section {
  padding: clamp(68px, 7vw, 92px) clamp(22px, 7vw, 100px);
}
.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15,37,24,0.42);
}
.section > * {
  width: 100%;
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  margin-bottom: 38px;
}
.section-title h2 {
  max-width: 900px;
  margin: 8px 0 12px;
  font-size: clamp(2.45rem, 4.2vw, 4.25rem);
  line-height: 1.04;
}
.section-title p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.008));
  overflow-wrap: anywhere;
}
.card .num {
  display: block;
  margin-bottom: 30px;
  color: var(--gold);
  font: 1.55rem var(--serif);
}
.card h3 {
  margin: 0 0 9px;
  font: 1.42rem/1.22 var(--serif);
}
.card p { margin: 0; color: var(--muted); }
.card strong { color: #f0f5ed; }
.feature-card { padding: 30px; }
.feature-card .icon {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font: 1.8rem var(--serif);
}

.statement {
  padding: clamp(54px, 6vw, 78px) clamp(22px, 7vw, 100px);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a1810;
}
.statement blockquote {
  max-width: 920px;
  margin: 0 auto;
  color: #e8efe5;
  font: clamp(2rem, 4vw, 3.7rem)/1.18 var(--serif);
}
.statement small {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.list-lines { border-top: 1px solid var(--line); }
.line-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.line-item > span { color: var(--gold); font: 1.55rem var(--serif); }
.line-item h3 { margin: 0 0 4px; font: 1.38rem var(--serif); }
.line-item p { margin: 0; color: var(--muted); }

/* Rituals and prayers */
.prayer-schedule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.prayer-time {
  min-width: 0;
  padding: 23px;
  background: #09170f;
}
.prayer-time time {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.prayer-time h3 { margin: 8px 0; font: 1.38rem var(--serif); }
.prayer-time p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.prayer {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.016);
}
.prayer header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.prayer h3 { margin: 0; font: 1.55rem/1.25 var(--serif); }
.prayer .usage {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prayer blockquote {
  margin: 0;
  color: #e0e8dd;
  white-space: pre-line;
  font: 1.18rem/1.62 var(--serif);
}

.ritual-steps { counter-reset: step; }
.ritual-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.ritual-step::before {
  content: counter(step, decimal-leading-zero);
  color: var(--gold);
  font: 1.2rem var(--serif);
}
.ritual-step h4 { margin: 0 0 4px; font: 1.25rem var(--serif); }
.ritual-step p { margin: 0; color: var(--muted); }

/* Bambiebel */
.scripture-search { margin-bottom: 24px; }
.scripture-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #08140d;
  color: white;
}
.scripture-search input:focus { border-color: rgba(205,181,109,0.65); }

.scripture-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.scripture-main { min-width: 0; }
.scripture-nav {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a1810;
}
.scripture-nav h3 { margin: 0 0 10px; font: 1.28rem var(--serif); }
.scripture-nav a {
  display: block;
  padding: 7px 9px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.scripture-nav a:hover { color: white; border-color: var(--gold); }
.book-block {
  scroll-margin-top: calc(var(--header-h) + 28px);
  margin-bottom: 64px;
}
.book-heading {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.book-heading span {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}
.book-heading h2 {
  margin: 7px 0 9px;
  font: clamp(2.35rem, 4.2vw, 3.9rem)/1.04 var(--serif);
  letter-spacing: -0.025em;
}
.book-heading p { max-width: 720px; margin: 0; color: var(--muted); }
.chapter {
  padding: 14px 0 25px;
  border-bottom: 1px solid var(--line);
}
.chapter summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 38px 10px 0;
  position: relative;
  color: var(--green-2);
  font: 1.38rem/1.3 var(--serif);
}
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font: 1rem var(--sans);
}
.chapter[open] summary::after { content: "−"; }
.verse {
  max-width: 840px;
  margin: 8px 0;
  color: #e0e7dd;
  font: 1.13rem/1.66 var(--serif);
}
.verse b {
  display: inline-block;
  min-width: 27px;
  color: var(--gold);
  font: 0.62rem var(--sans);
  vertical-align: 0.18em;
}
.book-motto {
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(205,181,109,0.35);
  border-bottom: 1px solid rgba(205,181,109,0.35);
  color: #d1dccf;
}

/* Calendar and tables */
.calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.holyday {
  min-width: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 25px;
  border: 1px solid var(--line);
}
.holyday .date { color: var(--gold); font: 1rem var(--serif); }
.holyday h3 { margin: 0 0 7px; font: 1.42rem var(--serif); }
.holyday p { margin: 0; color: var(--muted); }
.badge {
  display: inline-block;
  margin-top: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--green-2);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td {
  padding: 14px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: #0a1810;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
td { color: #d7e0d4; }
td small { color: var(--muted); }

.faq details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 1.28rem var(--serif); }
.faq p { max-width: 820px; color: var(--muted); }

/* Footer */
footer {
  padding: 42px clamp(22px, 7vw, 100px) 22px;
  border-top: 1px solid var(--line);
  background: #050c08;
}
.footer-grid,
.footer-bottom {
  width: 100%;
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 34px;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 44px; }
.footer-brand strong,
.footer-brand small { display: block; }
.footer-brand strong { font: 1.15rem var(--serif); }
.footer-brand small { color: var(--muted); font-size: 0.76rem; }
.footer-grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 7px;
}
.footer-grid > div:not(:first-child) > strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.footer-grid a { color: var(--muted); font-size: 0.82rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #819080;
  font-size: 0.72rem;
}

@media (max-width: 1160px) {
  :root { --header-h: 60px; }
  .site-header { height: var(--header-h); }
  .nav-toggle { display: block; flex: 0 0 auto; }
  .site-header nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 10px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 17, 11, 0.98);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  }
  .site-header nav.open { display: flex; }
  .site-header nav a {
    width: 100%;
    padding: 11px 12px;
    border-radius: 7px;
  }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prayer-schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar { grid-template-columns: 1fr; }
  .scripture-layout { grid-template-columns: 1fr; }
  .scripture-nav {
    position: static;
    columns: 2;
    column-gap: 22px;
  }
  .scripture-nav h3 { column-span: all; }
}

@media (max-width: 720px) {
  .site-header { padding: 0 16px; }
  .brand img { width: 31px; height: 31px; flex-basis: 31px; }
  .brand strong { max-width: 230px; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; }
  .brand small { display: none; }

  .hero {
    min-height: auto;
    padding: 62px 20px 68px;
  }
  .hero::after { right: -12vw; top: 4vw; font-size: 95vw; }
  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
    line-height: 1;
  }
  .lead { font-size: 0.98rem; }
  .hero-quote { margin-top: 42px; }
  .hero-quote blockquote { font-size: 1.18rem; }

  .page-hero { padding: 50px 20px 40px; }
  .page-hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .section { padding: 62px 20px; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: clamp(2.25rem, 10vw, 3.35rem); }
  .statement { padding: 52px 20px; }

  .grid-2,
  .grid-3,
  .grid-4,
  .prayer-schedule { grid-template-columns: 1fr; }
  .card,
  .feature-card,
  .prayer { padding: 22px; }
  .card .num { margin-bottom: 22px; }

  .line-item { grid-template-columns: 38px minmax(0, 1fr); }
  .ritual-step { grid-template-columns: 36px minmax(0, 1fr); }
  .prayer header { display: block; }
  .prayer .usage { display: block; margin-top: 7px; }

  .scripture-nav { columns: 1; }
  .book-block { margin-bottom: 52px; }
  .book-heading h2 { font-size: clamp(2.2rem, 11vw, 3.15rem); }
  .chapter summary { font-size: 1.26rem; }
  .verse { font-size: 1.08rem; }

  .holyday { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .holyday .date { font-size: 0.9rem; }

  footer { padding: 34px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

@media (max-width: 420px) {
  .brand strong { max-width: 205px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
