/* palmdesertgeeks.com v1.0.0
   Look: a desert field guide. Sand paper, ink, terracotta. The five cities run
   west to east along one line, the way Highway 111 does. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f5efe4;
  --surface: #fffaf1;
  --ink: #1b2434;
  --muted: #545d6c;
  --rule: #d9cfbd;
  --accent: #a23c1c;
  --accent-ink: #fffaf1;
  --sky: #1c5a74;
  --focus: #1c5a74;
  --display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121722; --surface: #1a2130; --ink: #ece5d8; --muted: #a9b1bd;
    --rule: #2f394c; --accent: #f0946b; --accent-ink: #1b1206; --sky: #86c8e0; --focus: #86c8e0;
  }
}
:root[data-theme="dark"] {
  --bg: #121722; --surface: #1a2130; --ink: #ece5d8; --muted: #a9b1bd;
  --rule: #2f394c; --accent: #f0946b; --accent-ink: #1b1206; --sky: #86c8e0; --focus: #86c8e0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  padding-bottom: 3.5rem;
}
img, svg { max-width: 100%; }
a { color: var(--sky); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1rem; }
address { font-style: normal; margin: 0 0 1rem; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 1.6rem; height: .7rem; border-bottom: 3px solid var(--accent); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; bottom: -.42rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); }
.brand-mark::before { left: -.1rem; }
.brand-mark::after { right: -.1rem; background: var(--bg); border: 3px solid var(--accent); }
.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .6rem .8rem; color: var(--ink); text-decoration: none; font-weight: 550; border-radius: .4rem; }
.main-nav a:hover { background: var(--surface); color: var(--accent); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.head-actions .head-call { display: none; }
.theme { width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.theme span { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 2px solid var(--ink); }
@media (min-width: 56rem) {
  .main-nav { display: block; }
  .head-actions { margin-left: 0; }
  .head-actions .head-call { display: inline-flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.15rem; border: 2px solid var(--ink); border-radius: .5rem; color: var(--ink); background: transparent; font-weight: 650; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.text-link { font-weight: 650; }

/* Hero */
.hero { padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--rule); background:
  radial-gradient(60rem 20rem at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.kicker { font-family: var(--display); font-weight: 650; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); margin-bottom: .75rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; max-width: 44rem; margin: 1.25rem 0 1.5rem; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* Route strip: the signature element */
.route { margin-top: 2rem; }
.route-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .6rem; }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--accent); }
.route a { display: flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .35rem .5rem .35rem 0; margin-left: -.56rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; }
.route .dot { flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.route a:hover .dot, .route a[aria-current] .dot { background: var(--accent); }
.route a[aria-current] { color: var(--accent); }
@media (min-width: 48rem) {
  .route ol { grid-template-columns: repeat(5, 1fr); border-left: 0; border-top: 3px solid var(--accent); }
  .route a { flex-direction: column; align-items: flex-start; gap: .5rem; margin: -.62rem 0 0; padding: 0 .5rem .25rem 0; }
}

/* Article with numbered stops */
.article { padding: 2.5rem 0 1rem; display: grid; gap: 2rem; }
.toc { background: var(--surface); border: 1px solid var(--rule); border-radius: .75rem; padding: 1.1rem 1.25rem; align-self: start; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .35rem 0; }
.toc a { color: var(--ink); }
@media (min-width: 64rem) {
  .article { grid-template-columns: 16rem minmax(0, 1fr); gap: 3.5rem; }
  .toc { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow: auto; }
}
.stop { display: grid; gap: .4rem; padding: 0 0 2.5rem; }
.stop-mark { font-family: var(--display); font-weight: 750; font-size: 1rem; color: var(--accent); letter-spacing: .08em; }
.stop-mark::after { content: ""; display: inline-block; width: 2.5rem; height: 2px; background: var(--accent); vertical-align: middle; margin-left: .6rem; }
.prose { max-width: 44rem; }
.prose h2 { margin: 0 0 1rem; }
.prose h3 { margin: 1.75rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin: .4rem 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.page-body { padding: 2.5rem 0 3rem; }
.page-body h2 { margin-top: 2rem; }

/* Bands */
.band { padding: 3rem 0; border-top: 1px solid var(--rule); }
.band-alt { background: var(--surface); }
.band h2 { margin-bottom: 1.5rem; }
.band-intro { color: var(--muted); max-width: 44rem; margin-top: -.75rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grid-cities { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.card { display: block; height: 100%; padding: 1.15rem 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: .6rem; color: var(--ink); text-decoration: none; }
.band-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card:hover { border-color: var(--accent); }
.card:hover h3 { color: var(--accent); }
.ways, .facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ways li { border-top: 3px solid var(--accent); padding-top: 1rem; }
.ways h3 { margin-bottom: .5rem; }
.ways p { margin-bottom: .5rem; }
.facts { gap: 1rem; }
.facts li { display: grid; gap: .2rem; padding: 1rem 0 0; border-top: 1px solid var(--rule); }
.facts strong { font-family: var(--display); font-size: 1.2rem; }
.facts span { color: var(--muted); }
.facts-more { margin: 1.75rem 0 0; }
.two { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.two > div { padding: 1.25rem; border: 1px solid var(--rule); border-radius: .6rem; background: var(--surface); }
.two h3 { margin-bottom: .5rem; }
.two p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.25rem 1rem 0; font-family: var(--display); font-weight: 650; font-size: 1.1rem; position: relative; min-height: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.1rem; margin: 0; max-width: 42rem; }

/* CTA */
.cta { padding: 3.25rem 0; background: var(--ink); color: var(--bg); }
.cta h2 { color: var(--bg); margin-bottom: .75rem; }
.cta .btn { border-color: var(--bg); color: var(--bg); }
.cta .btn:hover { background: var(--bg); color: var(--ink); }
.cta .btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cta-actions { margin: 1.25rem 0; }
.cta-nap { margin: 0; opacity: .85; font-size: .95rem; }
.cta :focus-visible { outline-color: var(--bg); }

/* Footer */
.site-foot { padding: 3rem 0 2rem; border-top: 1px solid var(--rule); font-size: .97rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.foot-brand { font-family: var(--display); font-weight: 750; font-size: 1.2rem; margin-bottom: .4rem; }
.site-foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .75rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-block; padding: .3rem 0; }
.site-foot a { color: var(--ink); }
.site-foot a:hover { color: var(--accent); }
.foot-fine { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }

/* Mobile call bar */
.call-bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 2fr 1fr; background: var(--ink); }
.call-bar a { display: grid; place-items: center; min-height: 3.5rem; color: var(--bg); text-decoration: none; font-weight: 700; }
.call-bar a:first-child { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 56rem) { .call-bar { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-head, .call-bar, .cta, .route, .toc, .theme { display: none; } body { background: #fff; color: #000; } }
