/* High Desert Technologies — design system.
   Theme: desert dusk. Deep night sky, sandstone, terracotta, sage. Modern, quiet, fast. */

:root {
  --night: #131020;        /* page ground — deep dusk indigo */
  --night-2: #1b1730;      /* raised surfaces */
  --line: #2c2742;
  --sand: #e8d5ac;         /* primary warm accent */
  --clay: #cf6b42;         /* terracotta accent */
  --clay-soft: #cf6b4226;
  --sage: #9db894;
  --ink: #f3eee1;          /* headings — warm off-white */
  --body: #c9c2d4;         /* body text */
  --muted: #8d859f;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --sans: -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--body);
  font: 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--clay); color: #fff; }
a { color: var(--sand); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
img, svg { max-width: 100%; height: auto; }

/* ---------- nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
}
.brand { font-weight: 700; font-size: 17px; color: var(--ink); display: flex; align-items: center; }
.brand-dim { color: var(--muted); font-weight: 500; }
.brand-mark {
  width: 14px; height: 14px; margin-right: 10px; border-radius: 3px; display: inline-block;
  background: linear-gradient(135deg, var(--clay) 0 55%, var(--sand) 55% 100%);
  box-shadow: 0 0 14px var(--clay-soft);
}
.nav nav { display: flex; gap: 22px; }
.nav nav a { font-size: 14.5px; color: var(--body); }
.nav nav a:hover { color: var(--sand); }

main { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-art { display: block; width: 100%; height: auto; }
.hero-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px); margin: 0 0 14px; max-width: 13ch;
  text-shadow: 0 2px 24px rgba(19, 16, 32, .8);
}
.hero h1 em { font-style: normal; color: var(--sand); }
.hero .sub {
  font-size: clamp(15px, 1.7vw, 18.5px); max-width: 52ch; margin: 0 0 26px;
  color: var(--body); text-shadow: 0 1px 14px rgba(19, 16, 32, .9);
}
.eyebrow {
  font: 600 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 14px;
}
.hero .eyebrow { color: var(--sand); opacity: .9; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--clay); color: #fff; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 24px var(--clay-soft); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--sand); box-shadow: none; }

/* ---------- sections ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.wrap.center { text-align: center; padding-top: 110px; padding-bottom: 130px; }
section h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.lede { font-size: 18px; max-width: 62ch; color: var(--body); }

.divider { border: none; height: 1px; margin: 0 auto; max-width: 1080px;
  background: linear-gradient(90deg, transparent, var(--line) 20% 80%, transparent); }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 34px; }
.card {
  background: var(--night-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--clay); transform: translateY(-2px); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--sand));
}
.card h3 { margin: 4px 0 0; font-size: 20px; }
.card p { margin: 0; font-size: 15px; color: var(--body); }
.card .pillars { font: 500 13px/1.7 var(--mono); color: var(--sage); }
.card .card-link { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 14.5px; }
.card .card-link::after { content: " →"; }
.card .status { position: absolute; top: 18px; right: 20px; font: 600 10.5px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }

/* about strip */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin-top: 30px; }
.about-item h3 { font-size: 16px; margin: 0 0 6px; color: var(--sand); }
.about-item p { margin: 0; font-size: 14.5px; }
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 34px; }
.stat b { display: block; font: 700 30px/1.1 var(--sans); color: var(--ink); letter-spacing: -0.02em; }
.stat span { font: 500 12.5px/1.5 var(--mono); color: var(--muted); }

/* ---------- blog ---------- */
.post-list { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 120px 1fr; gap: 4px 24px; padding: 22px 6px; align-items: baseline; }
.post-list a:hover .post-title { color: var(--sand); }
.post-date { font: 500 13px/1.6 var(--mono); color: var(--muted); grid-row: span 2; }
.post-title { font-weight: 650; font-size: 19px; color: var(--ink); transition: color .15s ease; }
.post-desc { color: var(--muted); font-size: 14.5px; grid-column: 2; }
@media (max-width: 620px) { .post-list a { grid-template-columns: 1fr; } .post-date { grid-row: auto; } }

.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 46px 30px; margin-top: 40px; text-align: center; }
.empty p { margin: 0 0 8px; font-size: 16.5px; color: var(--body); }
.empty-sub { color: var(--muted); font-size: 14px; }

/* reading layout (posts) */
.reading main { max-width: 720px; margin: 0 auto; padding: 30px 24px 60px; }
.post h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 6px 0 10px; }
.post-meta { font: 500 13.5px/1.6 var(--mono); color: var(--muted); margin: 0 0 34px; }
.post h3, .post h2 { margin: 40px 0 12px; }
.post p, .post li { font-size: 17px; color: var(--body); }
.post strong { color: var(--ink); }
.post figure { margin: 34px 0; text-align: center; }
.post figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.post blockquote { border-left: 3px solid var(--clay); margin: 20px 0; padding: 6px 20px; background: var(--night-2); border-radius: 0 12px 12px 0; }
.post code { font-family: var(--mono); font-size: 14px; background: var(--night-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.post pre { background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.post pre code { background: none; border: none; padding: 0; }
.post-back { margin-top: 48px; }
.post hr { border: none; height: 1px; background: var(--line); margin: 40px 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 44px 24px 54px; }
.foot-brand { font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.foot-line { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.foot-links { font-size: 14.5px; margin: 0 0 18px; color: var(--muted); }
.foot-copy { font: 500 12.5px/1 var(--mono); color: var(--muted); margin: 0; }

/* subtle star twinkle in the hero */
@media (prefers-reduced-motion: no-preference) {
  .tw { animation: tw 3.4s ease-in-out infinite; }
  .tw2 { animation: tw 4.6s ease-in-out 1.2s infinite; }
  @keyframes tw { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
}
