:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --paper-strong: #fffaf1;
  --ink: #21302c;
  --muted: #61716b;
  --jade: #247a68;
  --coral: #d9644a;
  --amber: #d69a34;
  --line: rgba(33, 48, 44, 0.15);
  --shadow: 0 22px 68px rgba(31, 42, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 26px clamp(18px, 4vw, 56px) 64px;
  isolation: isolate;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
  background-image: url("assets/mineral-workshop.png");
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 240, 228, 0.98) 0%, rgba(246, 240, 228, 0.9) 36%, rgba(246, 240, 228, 0.24) 68%, rgba(246, 240, 228, 0.04) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(246, 240, 228, 0) 22%);
}

.topbar,
.hero__inner,
.preview {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand {
  gap: 11px;
  font-size: 18px;
  font-weight: 850;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(33, 48, 44, 0.3);
  background:
    linear-gradient(135deg, transparent 0 20%, var(--coral) 20% 52%, transparent 52%),
    linear-gradient(45deg, var(--jade) 0 47%, var(--amber) 47% 100%);
  box-shadow: 0 7px 18px rgba(33, 48, 44, 0.18);
  transform: rotate(45deg);
}

.nav {
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.76);
  backdrop-filter: blur(14px);
}

.nav a {
  min-width: 84px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #40514c;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.nav a:hover,
.nav a:focus-visible {
  background: #ffffff;
  outline: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(260px, 1fr);
  align-items: center;
  min-height: 640px;
}

.hero__content {
  padding-top: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(44px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 540px;
  margin-bottom: 30px;
  color: #465752;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button,
.status {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.button {
  padding: 0 24px;
  background: var(--ink);
  color: #fff8ec;
  box-shadow: 0 14px 34px rgba(33, 48, 44, 0.26);
}

.button:hover,
.button:focus-visible {
  background: #111a18;
  outline: none;
}

.status {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.78);
  color: #4c5d58;
  backdrop-filter: blur(14px);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(540px, 100%);
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 12px 36px rgba(31, 42, 38, 0.11);
}

.hero__facts div {
  min-height: 98px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.78);
  backdrop-filter: blur(14px);
}

.hero__facts dt {
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.hero__facts dd {
  margin-bottom: 0;
  color: #5a6a65;
  font-size: 14px;
  line-height: 1.35;
}

.preview {
  padding: 30px clamp(18px, 4vw, 0px) 76px;
}

.preview__header {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.preview__header h2 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.preview-card {
  min-height: 210px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 14px 38px rgba(31, 42, 38, 0.08);
}

.preview-card__icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  border: 1px solid rgba(33, 48, 44, 0.25);
  background:
    linear-gradient(135deg, transparent 0 22%, var(--coral) 22% 48%, transparent 48%),
    linear-gradient(45deg, var(--jade) 0 47%, var(--amber) 47% 100%);
  transform: rotate(45deg);
}

.preview-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.preview-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .hero {
    min-height: 720px;
  }

  .hero__media {
    background-position: 62% center;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(246, 240, 228, 0.98) 0%, rgba(246, 240, 228, 0.9) 48%, rgba(246, 240, 228, 0.26) 100%),
      linear-gradient(0deg, var(--paper) 0%, rgba(246, 240, 228, 0) 22%);
  }

  .hero__inner {
    display: block;
    min-height: auto;
    padding-top: 92px;
  }

  .hero__content {
    padding-top: 0;
  }

  h1 {
    max-width: 10.5ch;
  }

  .preview__header {
    display: block;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    min-height: 178px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 690px;
    padding: 20px 18px 54px;
  }

  .nav {
    display: none;
  }

  .hero__inner {
    padding-top: 72px;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(40px, 12vw, 56px);
  }

  .lead {
    font-size: 17px;
  }

  .button,
  .status {
    width: 100%;
    justify-content: center;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .hero__facts div {
    min-height: auto;
    padding: 16px 18px;
  }

  .preview {
    padding-bottom: 52px;
  }
}
