/* Andromeda Light visual DNA — more layered */

:root {
  --color-primary: #FE6019;
  --color-primary-dark: #e54d09;
  --color-primary-soft: #FFF1E9;
  --color-primary-tint: #FFEADC;
  --color-primary-wash: #FDF7F2;
  --color-white: #ffffff;
  --color-black: #0f0f0f;
  --color-light: #FAFAFA;
  --color-border: #ECECEC;
  --color-border-soft: #F1ECE6;
  --color-text: #6b6b6b;
  --color-heading: #1a1a1a;
  --color-muted: #8a8a8a;

  --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-sm: 0 4px 14px rgba(15, 15, 15, 0.04);
  --shadow: 0 0.625rem 2.1rem rgba(15, 15, 15, 0.06);
  --shadow-lg: 0 1.25rem 3.75rem rgba(15, 15, 15, 0.08);
  --shadow-primary: 0 0.625rem 2rem rgba(254, 96, 25, 0.18);

  --container: 1120px;
  --container-narrow: 820px;

  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --space-7: 7rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #FCF9F5;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* faint dot pattern across body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(254, 96, 25, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 249, 245, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.site-header .brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-header nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--color-primary); }

@media (max-width: 560px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }
  .site-header nav { gap: 1rem; }
  .site-header nav a { font-size: 0.9rem; }
}

/* ---------- page header (peach hero) ---------- */
.page-header {
  position: relative;
  background:
    radial-gradient(circle at 18% 30%, rgba(254, 96, 25, 0.10), transparent 22%),
    radial-gradient(circle at 82% 60%, rgba(254, 96, 25, 0.10), transparent 22%),
    linear-gradient(180deg, var(--color-primary-soft) 0%, #FFF8F2 100%);
  border: 1px solid var(--color-primary-tint);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-4);
  margin: var(--space-4) auto var(--space-5);
  max-width: var(--container);
  text-align: center;
  overflow: hidden;
}

/* decorative dots in the hero */
.page-header::before,
.page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-header::before {
  width: 130px; height: 130px;
  background: rgba(254, 96, 25, 0.85);
  top: -32px; left: 5%;
  opacity: 0.5;
}
.page-header::after {
  width: 90px; height: 90px;
  background: rgba(254, 96, 25, 0.55);
  bottom: -28px; right: 8%;
  opacity: 0.65;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-white);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-primary-tint);
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-heading);
  margin: 0 auto 1rem;
  max-width: 18ch;
}

.page-header .lede {
  font-size: 1.15rem;
  color: var(--color-text);
  margin: 0 auto;
  max-width: 60ch;
}

/* ---------- main ---------- */
main {
  padding: 0 var(--space-3) var(--space-7);
}

.content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

/* ---------- type ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.95rem;
  margin-top: var(--space-6);
  font-weight: 800;
  position: relative;
  padding-bottom: 0.75rem;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 3.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.content > h2:first-of-type { margin-top: 0; }

h3 { font-size: 1.25rem; margin-top: var(--space-3); font-weight: 700; }

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-primary-dark); }

/* ---------- panel (soft card block) ---------- */
.panel {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4) var(--space-3);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}
.panel > h2:first-of-type,
.panel > h2 { margin-top: 0; }
.panel--tint {
  background: var(--color-primary-wash);
  border-color: var(--color-primary-tint);
  box-shadow: var(--shadow-sm), 0 0 0 4px rgba(254, 96, 25, 0.04);
}
.panel--tint::after {
  content: "";
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(254, 96, 25, 0.12);
  top: -28px; right: -28px;
  pointer-events: none;
}

/* ---------- content typography ---------- */
.content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
}
.content ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}
.content ul li::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: var(--color-primary);
  top: 0.7rem;
  left: 0;
  border-radius: 50%;
}
.content ul li strong { color: var(--color-heading); }

.content table {
  width: 100%;
  margin: var(--space-3) 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.content thead { background: var(--color-primary-wash); }
.content th, .content td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.content tr:last-child td { border-bottom: 0; }
.content th { font-weight: 800; color: var(--color-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- procedure summary (compact, at top) ---------- */
.proc-summary {
  list-style: none;
  counter-reset: proc;
  padding: 0;
  margin: var(--space-3) 0 var(--space-4);
  display: grid;
  gap: 0.6rem;
}
.proc-summary > li {
  counter-increment: proc;
  position: relative;
  padding: 0.55rem 0 0.55rem 2.6rem;
  border-bottom: 1px dashed var(--color-border-soft);
  line-height: 1.55;
}
.proc-summary > li:last-child { border-bottom: 0; }
.proc-summary > li::before {
  content: counter(proc);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.proc-summary strong { color: var(--color-heading); margin-right: 0.35rem; }
.proc-summary .img-ref {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--color-muted);
  border-bottom: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.proc-summary .img-ref:hover { color: var(--color-primary); }

/* ---------- procedure rows (detailed, with images) ---------- */
.procedure {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.procedure > li {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.procedure > li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--color-primary-tint);
}

.step-content {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-2);
  align-items: start;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
  margin-top: 2px;
}
.step-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.step-content p { margin: 0; }

.step-image {
  display: block;
  max-width: 220px;
  justify-self: end;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-image:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.step-image img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.procedure > li { grid-template-columns: 1fr 220px; }

@media (max-width: 640px) {
  .procedure > li { grid-template-columns: 1fr; padding: var(--space-3); }
  .step-image { max-width: 280px; justify-self: start; }
}

/* ---------- reading-result hero image ---------- */
.reading-figure {
  margin: var(--space-3) 0;
  display: flex;
  justify-content: center;
}
.reading-figure a {
  display: inline-block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reading-figure a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.reading-figure img {
  max-width: 350px;
  width: 100%;
  display: block;
}

/* ---------- additional reference photos (collapsible) ---------- */
.extra-photos {
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}
.extra-photos > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-muted);
  padding: 0.6rem 0;
  list-style: none;
  display: inline-block;
}
.extra-photos > summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
  margin-right: 0.4rem;
}
.extra-photos[open] > summary::before { transform: rotate(90deg); }
.extra-photos > summary::-webkit-details-marker { display: none; }
.extras-list { padding: 0.5rem 0 0 1.4rem; margin: 0; }
.extras-list li { margin-bottom: 0.35rem; }

.extras-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
  padding: 0.6rem 0 0;
  margin: 0;
  list-style: none;
}
.extras-gallery > li {
  margin: 0;
  padding: 0;
}
.extras-gallery > li::before { display: none; }
.extras-gallery a {
  display: block;
  text-decoration: none;
  border-bottom: 0;
}
.extras-gallery figure { margin: 0; }
.extras-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.extras-gallery a:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.extras-gallery figcaption {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  line-height: 1.35;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 15, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 70vw;
  max-height: 70vh;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 400;
  transition: background 0.15s ease, color 0.15s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}
@media (max-width: 640px) {
  .lightbox img { max-width: 92vw; max-height: 80vh; }
}

/* ---------- home cards ---------- */
.home-cards { margin-top: 0; }
.home-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-card-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .home-card-list { grid-template-columns: repeat(3, 1fr); }
}
.home-card-list > li {
  margin: 0;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.home-card-list > li::before { display: none; }
.home-card-list > li:hover {
  border-color: var(--color-primary-tint);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.home-card-list a {
  display: block;
  padding: var(--space-4);
  color: var(--color-text);
  text-decoration: none;
}
.home-card-list .card-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}
.home-card-list h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  padding-bottom: 0;
  font-weight: 800;
}
.home-card-list h2::after { display: none; }
.home-card-list p {
  margin: 0;
  color: var(--color-text);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border-soft);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}
