:root {
  color-scheme: dark;
  --ink: #f1e5cf;
  --ink-muted: #bfae91;
  --ink-soft: #91846e;
  --night: #171511;
  --charcoal: #211f1a;
  --graphite: #2d2b25;
  --walnut: #3b281d;
  --forest: #24362b;
  --forest-deep: #17241d;
  --brass: #b99554;
  --amber: #d7af64;
  --paper: #e8dbc0;
  --line: rgba(232, 219, 192, 0.075);
  --line-strong: rgba(232, 219, 192, 0.14);
  --shadow: rgba(0, 0, 0, 0.2);
  --max: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(185, 149, 84, 0.15), transparent 30rem),
    linear-gradient(180deg, #14130f 0%, #1b1914 42%, #221c15 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(232, 219, 192, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 219, 192, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem clamp(1rem, 3vw, 2.5rem);
  color: rgba(232, 219, 192, 0.86);
  background: rgba(20, 19, 15, 0.54);
  border-bottom: 1px solid rgba(232, 219, 192, 0.065);
  backdrop-filter: blur(22px);
}

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

.brand {
  gap: 0.72rem;
  font-size: 0.88rem;
  font-weight: 620;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  border: 1px solid rgba(244, 234, 214, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(244, 234, 214, 0.08), 0 8px 24px rgba(185, 149, 84, 0.14);
}

.nav-links {
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.8rem;
  color: rgba(203, 189, 159, 0.78);
}

.nav-links a {
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 10rem clamp(1.25rem, 5vw, 4.5rem) 5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 219, 192, 0.08);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.9) 0%, rgba(17, 16, 13, 0.68) 38%, rgba(17, 16, 13, 0.3) 76%),
    linear-gradient(180deg, rgba(17, 16, 13, 0.34) 0%, rgba(17, 16, 13, 0.14) 54%, rgba(17, 16, 13, 0.92) 100%);
}

.hero-content,
.hero-note {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.product-type,
.journal-list p {
  margin: 0;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin: 1.55rem 0 1.85rem;
  font-size: clamp(2.8rem, 5.5vw, 5.05rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1.45rem;
  font-size: clamp(2.05rem, 4.6vw, 4.25rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.8rem;
  color: rgba(232, 219, 192, 0.92);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.26;
}

.hero-copy,
.section-heading p,
.prose,
.trust-copy p,
.invitation p,
.ecosystem-note,
.site-footer {
  color: var(--ink-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  line-height: 1.8;
}

.hero-copy {
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.6rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(232, 219, 192, 0.24);
}

.button.primary {
  color: #21190f;
  background: linear-gradient(180deg, #c9aa68, #9f7a42);
  border-color: rgba(236, 207, 143, 0.46);
}

.button.secondary {
  color: var(--paper);
  background: rgba(232, 219, 192, 0.032);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: var(--max);
  margin-top: 4.6rem;
}

.hero-note p {
  margin: 0;
  padding: 0.48rem 0.68rem;
  color: rgba(232, 219, 192, 0.86);
  background: rgba(20, 19, 15, 0.34);
  border: 1px solid rgba(232, 219, 192, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.section,
.trust-band,
.invitation {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(7rem, 11vw, 11rem) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.74fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.prose p:last-child,
.section-heading p,
.trust-copy p,
.invitation p {
  margin-bottom: 0;
}

.prose p + p {
  margin-top: 1.35rem;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.4vw, 1.8rem);
  margin-top: 5.2rem;
}

.principle-grid article,
.product-card,
.journal-list article,
.trust-list div {
  background:
    linear-gradient(180deg, rgba(232, 219, 192, 0.036), rgba(232, 219, 192, 0.01)),
    rgba(33, 31, 26, 0.38);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px var(--shadow);
}

.principle-grid article {
  min-height: 16rem;
  padding: 1.7rem;
}

.principle-grid span {
  display: block;
  margin-bottom: 3.8rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
}

.principle-grid p,
.product-card p,
.trust-list p,
.journal-list h3 + a {
  color: var(--ink-muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(18rem, 0.62fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: 4.8rem;
}

.ecosystem-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.ecosystem-map::before {
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 1.35rem;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(185, 149, 84, 0.35), transparent);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  min-height: 8.6rem;
  align-items: start;
  padding: 1.45rem 1.7rem 1.45rem 3.2rem;
  overflow: hidden;
}

.product-card::after {
  position: absolute;
  top: 1.65rem;
  left: 1.08rem;
  width: 0.64rem;
  height: 0.64rem;
  content: "";
  background: rgba(185, 149, 84, 0.78);
  border: 1px solid rgba(244, 234, 214, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(185, 149, 84, 0.24);
}

.product-card.reader {
  background-color: rgba(30, 45, 35, 0.42);
}

.product-card.editor {
  background-color: rgba(52, 38, 27, 0.42);
}

.product-card.fieldstones {
  background-color: rgba(55, 45, 32, 0.42);
}

.product-card.mcp {
  background-color: rgba(42, 43, 36, 0.42);
}

.product-card.mail {
  background-color: rgba(35, 43, 45, 0.4);
}

.product-type {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.product-card h3 {
  grid-column: 2;
  margin: 0 0 0.45rem;
}

.product-card > p:not(.product-type) {
  grid-column: 2;
}

.ecosystem-note {
  max-width: 790px;
  margin: 2.4rem 0 0;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6.2rem);
  background:
    linear-gradient(135deg, rgba(36, 54, 43, 0.48), rgba(36, 28, 20, 0.62)),
    var(--forest-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.22);
}

.trust-list {
  display: grid;
  gap: 1rem;
}

.trust-list div {
  padding: 1.25rem;
  box-shadow: none;
}

.trust-list h3 {
  font-size: 1.1rem;
}

.journal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.4vw, 1.8rem);
}

.journal-list article {
  min-height: 16.5rem;
  padding: 1.7rem;
}

.journal-list h3 {
  margin-top: 2.6rem;
}

.journal-list a {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(232, 219, 192, 0.82);
  text-decoration-color: rgba(185, 149, 84, 0.42);
  text-underline-offset: 0.28em;
}

.invitation {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 1.55rem;
  padding: clamp(7rem, 11vw, 10rem) 0 clamp(7rem, 11vw, 10rem);
  text-align: left;
}

.invitation::before {
  width: min(22rem, 72vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(185, 149, 84, 0.5), transparent);
}

.invitation h2,
.invitation p {
  max-width: 760px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.7rem;
  color: rgba(232, 219, 192, 0.9);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration-color: rgba(185, 149, 84, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.34em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--paper);
  font-weight: 700;
}

.site-footer a {
  color: rgba(232, 219, 192, 0.9);
  text-decoration-color: rgba(185, 149, 84, 0.42);
  text-underline-offset: 0.34em;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding-top: 7rem;
    align-items: end;
  }

  .hero-image {
    object-position: 62% center;
  }

  .split,
  .section-heading,
  .trust-band,
  .principle-grid,
  .ecosystem-map,
  .journal-list {
    grid-template-columns: 1fr;
  }

  .ecosystem-map::before {
    left: 1.2rem;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-left: 3rem;
  }

  .product-type,
  .product-card h3,
  .product-card > p:not(.product-type) {
    grid-column: 1;
    grid-row: auto;
  }

  .principle-grid span {
    margin-bottom: 2.2rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 1rem;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.8rem);
  }

  .section,
  .trust-band,
  .invitation {
    width: min(100% - 2rem, var(--max));
  }

  .trust-band {
    padding: 2rem 1rem;
  }

  .button {
    width: 100%;
  }
}
