/*
 * @file voxhearth-landing.css
 * @description Layout and components for voxhearth.com. Shared by index.html and 404.html so a
 *   wrong URL still looks like the site. No JavaScript is involved anywhere; everything here is
 *   CSS and semantic markup. All colour comes from voxhearth-theme-tokens.css.
 *
 * @status Complete
 * @issues None
 * @todo None
 */

/* ------------------------------------------------------------------------ base */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-page-color);
  color: var(--text-body-color);
  font-family: var(--font-body);
  font-size: var(--text-size-body);
  line-height: var(--line-height-body);
}

h1,
h2,
h3 {
  color: var(--text-strong-color);
  line-height: var(--line-height-tight);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link-color);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover-color);
}

/* Every interactive element shows a ring. Tab through the page to check it. */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ------------------------------------------------------------------------ shell */

.skip-to-content-link {
  position: absolute;
  left: var(--space-md);
  top: -4rem;
  z-index: 10;
  padding: var(--space-xs) var(--space-md);
  background: var(--surface-raised-color);
  border: 1px solid var(--surface-border-color);
  border-radius: var(--radius-sm);
  color: var(--text-strong-color);
  text-decoration: none;
  transition: top 140ms ease;
}

.skip-to-content-link:focus {
  top: var(--space-md);
}

.section-inner {
  width: 100%;
  max-width: var(--measure-page);
  margin: 0 auto;
  padding-inline: var(--space-md);
}

.site-header {
  border-bottom: 1px solid var(--surface-border-color);
  background: var(--surface-page-color);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-md);
}

.site-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-strong-color);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-wordmark-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-link {
  color: var(--text-muted-color);
  font-size: var(--text-size-small);
  font-weight: 600;
  text-decoration: none;
}

.site-nav-link:hover {
  color: var(--accent-ember-strong-color);
}

.site-footer {
  border-top: 1px solid var(--surface-border-color);
  background: var(--surface-tinted-color);
  margin-top: var(--space-2xl);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  justify-content: space-between;
  padding-block: var(--space-lg);
}

.site-footer-text {
  margin: 0;
  color: var(--text-muted-color);
  font-size: var(--text-size-small);
}

/* ------------------------------------------------------------------------ sections */

.page-section {
  padding-block: var(--space-2xl);
}

.page-section--tinted {
  background: var(--surface-tinted-color);
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  color: var(--accent-moss-color);
  font-size: var(--text-size-small);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading {
  font-size: var(--text-size-heading);
  margin-bottom: var(--space-sm);
}

.section-lede {
  max-width: var(--measure-prose);
  color: var(--text-muted-color);
  font-size: var(--text-size-lede);
  margin-bottom: var(--space-lg);
}

.section-body {
  max-width: var(--measure-prose);
}

.section-body h3 {
  font-size: var(--text-size-subheading);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

/* ------------------------------------------------------------------------ hero */

.hero-section {
  padding-block: var(--space-2xl) var(--space-xl);
  background: linear-gradient(180deg, var(--surface-tinted-color), var(--surface-page-color));
}

.hero-inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-title {
  font-size: var(--text-size-hero);
  margin-bottom: var(--space-md);
}

.hero-lede {
  max-width: 34rem;
  font-size: var(--text-size-lede);
  margin-bottom: var(--space-lg);
}

.hero-illustration {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border-color);
  box-shadow: var(--shadow-raised);
  background: var(--illustration-sky-color);
}

/* ------------------------------------------------------------------------ status pill */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid var(--note-border-color);
  border-radius: 999px;
  background: var(--note-surface-color);
  color: var(--note-text-color);
  font-size: var(--text-size-small);
  font-weight: 600;
}

.status-pill-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-ember-color);
}

/* ------------------------------------------------------------------------ cards */

.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: var(--space-lg);
}

.content-card {
  padding: var(--space-md);
  background: var(--surface-raised-color);
  border: 1px solid var(--surface-border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
}

.content-card h3 {
  font-size: var(--text-size-subheading);
  margin-bottom: var(--space-xs);
}

.content-card p {
  color: var(--text-muted-color);
  font-size: var(--text-size-small);
}

/* ------------------------------------------------------------------------ detail list */

.detail-list {
  display: grid;
  gap: var(--space-xs) var(--space-md);
  grid-template-columns: 1fr;
  margin: var(--space-lg) 0 0;
}

@media (min-width: 34rem) {
  .detail-list {
    grid-template-columns: 10rem 1fr;
  }
}

.detail-list dt {
  color: var(--text-strong-color);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
  color: var(--text-muted-color);
}

/* ------------------------------------------------------------------------ callout */

.callout {
  max-width: var(--measure-prose);
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--surface-sunken-color);
  border-left: 4px solid var(--accent-moss-color);
  border-radius: var(--radius-sm);
}

.callout p {
  color: var(--text-body-color);
}

/* ------------------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.button--primary {
  background: var(--accent-ember-color);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-ember-strong-color);
  color: #fff;
}

.button--quiet {
  border: 1px solid var(--surface-border-color);
  background: var(--surface-raised-color);
  color: var(--text-strong-color);
}

.button--quiet:hover {
  border-color: var(--accent-ember-color);
  color: var(--accent-ember-strong-color);
}

/* ------------------------------------------------------------------------ error page */

.error-section {
  text-align: center;
  padding-block: var(--space-2xl);
}

.error-illustration {
  width: min(100%, 22rem);
  height: auto;
  margin-bottom: var(--space-md);
}

.error-code {
  margin: 0;
  color: var(--accent-ember-color);
  font-family: var(--font-mono);
  font-size: var(--text-size-small);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.error-title {
  font-size: var(--text-size-heading);
  margin-bottom: var(--space-sm);
}

.error-section .section-lede {
  margin-inline: auto;
}

.error-actions {
  margin-top: var(--space-md);
}

/* ------------------------------------------------------------------------ motion, print */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-nav-list,
  .skip-to-content-link,
  .hero-illustration,
  .error-illustration {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
