/* Desert Mango - shared shell: brand tokens, the site header, and the
   inner-page column used by /products and /about.
   The landing (index.html) and the offer page keep their own page styles;
   this file only adds the header on top of them. */

:root {
  --ground: #FEF9F3;      /* exact background of the logo */
  --ink: #181210;
  --ink-2: #4b403a;
  --muted: #9c8d80;
  --faint: #b9ac9f;
  --line: #ece0d2;
  --field: #fffdfa;
  --band: #F6EDE0;
  --focus-ring: rgba(201, 37, 127, .08);
  --magenta: #C9257F;
  --orange: #F5A02A;
  --accent: #C9257F;      /* the mango's magenta, used for words that act */
  --accent-soft: #FBE7F0;
  --sans: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ground: #272C38;      /* moonlit sand */
  --ink: #F0EBE1;
  --ink-2: #CFC8BB;
  --muted: #AFA99D;
  --faint: #8B8578;
  --line: #3D4352;
  --field: #2D3341;
  --band: #2D3341;
  --focus-ring: rgba(201, 37, 127, .22);
  --accent: #EC79B8;      /* lighter so it still reads on the dark ground */
  --accent-soft: #3B2A3A;
  color-scheme: dark;
}

/* ---------- site header ---------- */
.site-head, .site-head * { margin: 0; padding: 0; box-sizing: border-box; }
.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  min-height: 64px;
  padding: 0 24px;
  font-family: var(--sans);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  transition: color .3s ease;
}
.site-brand:hover { background: none; color: var(--ink); }
.site-brand img { width: 28px; height: 28px; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color .3s ease, color .3s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: none; border-bottom-color: currentColor; }
.site-brand:focus-visible,
.site-nav a:focus-visible,
.site-menu:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 4px;
}

/* The landing keeps the bar out of sight until "Menu" is clicked. The words
   then fade in exactly like the name/email row does when the message box is
   clicked: .3s ease, rising 6px. */
.site-head.menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  pointer-events: none;   /* the empty middle must not block the page */
}
.site-head.menu > * { pointer-events: auto; }
.site-menu {
  margin-left: 8px;
  padding: 8px 0 8px 8px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .3s ease;
}
.site-menu:hover { color: var(--magenta); }
.site-head.menu .site-brand,
.site-head.menu .site-nav {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, color .3s ease;
}
.site-head.menu.open .site-brand,
.site-head.menu.open .site-nav {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s, color .3s ease;
}

@media (max-width: 440px) {
  .site-brand span { display: none; }   /* phones keep the mark, drop the wordmark */
}

/* ---------- inner pages: /products, /about ---------- */
body.subpage {
  margin: 0;
  min-height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
.page, .page * { margin: 0; padding: 0; box-sizing: border-box; }
.page {
  width: 70%;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 0 96px;
  animation: rise .3s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.page h1 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 18px;
}
.page h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 800;
  margin: 44px 0 14px;
}
.page p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 68ch;
  transition: color .3s ease;
}
.page .lede {
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.page strong { color: var(--ink); font-weight: 600; }
.page a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: background-color .3s ease, color .3s ease;
}
.page a:hover { background: var(--accent-soft); }
.page a:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
.page .fine { font-size: 14.5px; color: var(--muted); }

/* One product, one block. The whole block is the link. */
.page .product {
  display: block;
  margin-top: 28px;
  padding: 28px 30px 26px;
  color: inherit;
  background: var(--band);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.page .product:hover { background: var(--band); border-color: var(--line); }
.page .product:active { transform: translateY(1px); }
.page .product h2 { margin: 0 0 10px; }
.page .product p { margin-bottom: 0; }
.page .product .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
}
.page .product .facts span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page .product .more {
  display: inline-block;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.page .product:hover .more { border-bottom-color: currentColor; }

/* Experience list on /about, same shape as the offer page's. */
.page .proof {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  align-items: stretch;
}
.page .proof li {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.page .proof strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17.5px;
  line-height: 1.35;
  color: var(--ink);
}
.page .proof li.lead { border-left: 0; padding-left: 18px; position: relative; }
.page .proof li.lead::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(100deg, var(--magenta), var(--orange));
}
.page .proof .docs {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 980px) {
  .page .proof { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .page { width: auto; padding: 24px 24px 72px; }
  .page .product { padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  .site-brand, .site-nav a, .site-menu, .site-head.menu .site-brand, .site-head.menu .site-nav,
  body.subpage, .page p, .page a, .page .product, .page .product .more { transition: none; }
}
@media print {
  .site-head { display: none; }
}

/* ---------- offer page: hero image ----------
   One scene, two exposures: the day version in light mode, the night version
   in dark mode. Both are in the markup; the theme attribute picks one before
   first paint. No hover state (Kyle removed the glow). 16px corners, the
   page's card radius. Hidden in print: the one-pager is two pages of text. */
.hero-art {
  /* Same column as the lede under the title: 68ch at the lede's font size. */
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 500;   /* ch follows the weight; the lede is 500 */
  max-width: 68ch;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--band);
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}
.hero-art img.dark { display: none; }
html[data-theme="dark"] .hero-art img.light { display: none; }
html[data-theme="dark"] .hero-art img.dark { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .hero-art img.light { display: none; }
  html:not([data-theme]) .hero-art img.dark { display: block; }
}
@media (max-width: 680px) { .hero-art { margin-bottom: 28px; } }
@media print { .hero-art { display: none; } }
/* Header rhythm: the gap from the section nav down to the by-line equals the
   by-line's own gap down to the hero (26px), instead of the page's 72px. */
@media screen { #main > header#top { padding-top: 26px; } }
