/* ─────────────────────────────────────────────────────────────
   Desert Idea Lab — desertidealab.com
   Palette and type live here. Edit the tokens below to reskin
   the whole site without touching the HTML.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Warm daylight surfaces */
  --sand:        #FBF7F1;
  --sand-deep:   #F2E9DC;
  --line:        #E6DACA;

  /* Ink */
  --ink:         #1C1613;
  --ink-soft:    #5C5149;
  --ink-faint:   #8A7D72;

  /* Desert night (hero) */
  --night:       #17110E;
  --dusk:        #3A211A;
  --ember:       #8C3B1E;

  /* Accents */
  --terracotta:  #C2542A;
  --sunset:      #E9873F;
  --sage:        #7C8C6F;

  --radius:      14px;
  --maxw:        1120px;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--sand);
  padding: 10px 16px; z-index: 99; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--sunset); outline-offset: 3px; border-radius: 4px; }

/* ── Nav ──────────────────────────────────────────────────── */

.nav-wrap {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #FBF3E9; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
}
.brand-mark { width: 22px; height: 22px; flex: none; color: var(--sunset); }
.brand-mark circle { fill: currentColor; }
.brand-mark .rays { stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

.nav-links {
  list-style: none; display: flex; gap: 28px;
  margin: 0; padding: 0;
  font-size: 14.5px;
}
.nav-links a {
  color: rgba(251, 243, 233, .72);
  text-decoration: none;
  transition: color .18s ease;
}
.nav-links a:hover { color: #FBF3E9; }

.brand span { white-space: nowrap; }
.nav-links a { white-space: nowrap; }

@media (max-width: 640px) {
  .nav { padding: 20px; }
  .brand { font-size: 14.5px; gap: 8px; }
  .brand-mark { width: 19px; height: 19px; }
  .nav-links { gap: 16px; font-size: 13px; }
}
/* Narrowest phones: drop the first link rather than let the bar wrap. */
@media (max-width: 440px) {
  .nav-links li:first-child { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  color: #FBF3E9;
  padding: 190px 28px 210px;
  isolation: isolate;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 50% 100%, var(--ember) 0%, transparent 62%),
    linear-gradient(180deg, var(--night) 0%, #22150F 46%, var(--dusk) 78%, #522515 100%);
}
.sun {
  position: absolute; left: 50%; bottom: 4%;
  width: 320px; height: 320px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,186,110,.55) 0%, rgba(233,135,63,.22) 45%, transparent 70%);
  filter: blur(2px);
}
.haze {
  position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 50% 92%, rgba(255,170,90,.20), transparent 70%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sunset);
  margin: 0 0 22px;
}
.eyebrow.dark { color: var(--terracotta); }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 26px;
}
h1 em { font-style: italic; color: var(--sunset); }

.lede {
  max-width: 33em;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: rgba(251, 243, 233, .78);
  margin: 0 0 38px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--terracotta);
  color: #FFF6EE;
  box-shadow: 0 8px 24px -12px rgba(194, 84, 42, .9);
}
.btn-primary:hover { background: #D45F30; }
.btn-ghost {
  border: 1px solid rgba(251, 243, 233, .30);
  color: rgba(251, 243, 233, .92);
}
.btn-ghost:hover { border-color: rgba(251,243,233,.6); background: rgba(251,243,233,.06); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; font-family: var(--mono); letter-spacing: -.01em; }

.horizon {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 190px; z-index: 1;
  display: block;
}
.ridge-far  { fill: #5A2C1B; opacity: .55; }   /* hazy distant range */
.cacti      { fill: #1E100A; opacity: .95; }   /* saguaro silhouettes  */
.ridge-near { fill: var(--sand); }             /* foreground dune      */

@media (max-width: 700px) {
  .hero { padding: 150px 20px 170px; }
  .horizon { height: 130px; }
  .sun { width: 220px; height: 220px; }
}

/* ── Sections ─────────────────────────────────────────────── */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 28px;
}
.section.band {
  max-width: none;
  background: var(--sand-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.band > * { max-width: var(--maxw); margin-inline: auto; }

.section-head { max-width: 40rem; margin-bottom: 52px; }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
}
.sub { color: var(--ink-soft); margin: 16px 0 0; max-width: 34em; }

/* Approach cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -30px rgba(28, 22, 19, .55);
}
.num {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .12em;
  color: var(--sunset);
}
.card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.65rem; margin: 12px 0 10px; letter-spacing: -.01em;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.project {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.project-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 12px;
}
.project h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.45rem; margin: 0; letter-spacing: -.01em;
}
.project p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.tags {
  margin-top: 16px !important;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .04em; color: var(--ink-faint) !important;
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.pill { margin-top: 5px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-active { background: rgba(124, 140, 111, .16); color: #55663F; }
.pill-soon   { background: rgba(233, 135, 63, .16);  color: #9A4E1C; }
.pill-idea   { background: rgba(28, 22, 19, .07);    color: var(--ink-soft); }

/* Contact */
.contact { text-align: center; padding-block: 120px; }
.contact .sub { margin-inline: auto; margin-bottom: 34px; }

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
  font-size: 14px; color: var(--ink-faint);
}
.footer p { margin: 0; }
.footer-alt { font-family: var(--mono); font-size: 13px; }

@media (max-width: 700px) {
  .section { padding: 68px 20px; }
  .contact { padding-block: 88px; }
  .footer { padding: 28px 20px; }
}
