:root {
  color-scheme: dark;
  --ink: #060a11;
  --paper: #f4f0e7;
  --muted: #a8b3bf;
  --line: rgba(228, 237, 243, 0.18);
  --ice: #a6e4ff;
  --gold: #e3bd75;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(44, 78, 115, 0.25), transparent 32rem),
    var(--ink);
  color: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.guide-header,
.guide-footer {
  width: min(1400px, calc(100% - 3rem));
  margin-inline: auto;
}

.guide-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 6.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
}

.brand-mark::after {
  position: absolute;
  inset: 0.18rem;
  border: 1px solid rgba(227, 189, 117, 0.5);
  content: "";
}

.guide-header p {
  margin: 0;
  color: #87929e;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.guide-header p span {
  margin-inline: 0.55rem;
  color: var(--gold);
}

.return-link,
.guide-footer a {
  justify-self: end;
  color: #aab4bd;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.weather-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(1400px, calc(100% - 3rem));
  min-height: clamp(34rem, 48vw, 43rem);
  margin: 1.5rem auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.weather-hero::before {
  position: absolute;
  inset: -1.5rem;
  z-index: -3;
  background: url("../solspire-weather-sky.png") center / cover no-repeat;
  content: "";
  filter: blur(22px) brightness(0.6) saturate(0.85);
  transform: scale(1.04);
}

.weather-hero::after {
  position: absolute;
  inset: 0.65rem;
  z-index: 3;
  border: 1px solid rgba(239, 244, 247, 0.13);
  content: "";
  pointer-events: none;
}

.weather-sky,
.weather-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.weather-sky {
  z-index: -2;
  object-fit: contain;
  object-position: center;
}

.weather-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 15, 0.9) 0%, rgba(5, 9, 15, 0.58) 32%, rgba(5, 9, 15, 0.08) 64%, rgba(5, 9, 15, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 9, 15, 0.9) 0%, transparent 35%, rgba(5, 9, 15, 0.2) 100%);
}

.hero-copy {
  align-self: center;
  width: min(42rem, 58%);
  padding: clamp(3rem, 6vw, 6.5rem);
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.7rem;
}

.eyebrow span {
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

h1,
h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(3rem, 6.7vw, 6.7rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

h1 em {
  color: #d1d9e0;
  font-weight: inherit;
}

.introduction {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: #d1d6da;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.wheather-line {
  margin: 1.3rem 0 0;
  color: #f5f0e5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: italic;
  line-height: 1.65;
}

.wheather-line strong {
  color: var(--ice);
  font-weight: 400;
}

.begin-link {
  display: inline-flex;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(245, 240, 229, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.sky-key {
  position: absolute;
  right: clamp(2rem, 4vw, 4rem);
  bottom: 2rem;
  margin: 0;
  color: rgba(237, 241, 244, 0.62);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.sky-key span {
  margin-inline: 0.45rem;
  color: var(--gold);
}

.foundation {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  width: min(1060px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) 0;
  scroll-margin-top: 2rem;
}

.chapter-number {
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  color: #77828e;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker {
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.foundation-copy > p:not(.section-kicker) {
  max-width: 39rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.foundation-copy > p + p {
  margin-top: 1rem;
}

.first-reading {
  width: min(1400px, calc(100% - 3rem));
  margin: 0 auto;
  padding-bottom: clamp(6rem, 10vw, 10rem);
  border-top: 1px solid var(--line);
}

.reading-heading,
.interpretation {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  width: min(1060px, 100%);
  margin-inline: auto;
}

.reading-heading {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.reading-heading .chapter-number span {
  display: block;
  margin-top: 0.45rem;
  color: var(--gold);
}

.reading-intro {
  max-width: 43rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.weather-plate {
  margin: 0;
}

.plate-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d8d8d5;
}

.plate-frame::after {
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  content: "";
  pointer-events: none;
}

.plate-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.plate-label {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  z-index: 1;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(5, 9, 15, 0.68);
  color: #f3efe6;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.weather-plate figcaption {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 1.5rem 0 0;
}

.weather-plate figcaption p {
  margin: 0;
}

.weather-plate figcaption p:first-child {
  color: #d8dee3;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.weather-plate figcaption p:last-child {
  color: #98a4ae;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.75;
}

.reading-principle {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 8rem);
  width: min(1060px, 100%);
  margin: clamp(5rem, 9vw, 8rem) auto;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid rgba(166, 228, 255, 0.28);
  border-bottom: 1px solid rgba(166, 228, 255, 0.28);
}

.reading-principle > p {
  margin: 0;
  color: var(--ice);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reading-principle blockquote {
  margin: 0;
  color: #dfe9ee;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.weather-signs {
  width: min(1200px, 100%);
  margin: clamp(6rem, 11vw, 10rem) auto 0;
}

.signs-heading {
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.signs-heading h3,
.interpretation h3 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.signs-heading h3 {
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.sign-grid li {
  min-height: 19rem;
  padding: 1.5rem clamp(1.1rem, 2.5vw, 2rem) 2rem;
  border-right: 1px solid var(--line);
}

.sign-grid li:first-child {
  border-left: 1px solid var(--line);
}

.sign-grid span {
  color: #6f7b87;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.sign-grid h4 {
  margin: 4.5rem 0 1rem;
  color: #e9e5dd;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
}

.sign-grid p {
  margin: 0;
  color: #929eaa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.7;
}

.interpretation {
  margin-top: clamp(6rem, 11vw, 10rem);
  padding-top: clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.interpretation h3 {
  max-width: 48rem;
  font-size: clamp(2rem, 4.2vw, 4rem);
}

.interpretation > div > p:not(.section-kicker) {
  max-width: 43rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.canon-note {
  padding-left: 1.2rem;
  border-left: 1px solid var(--gold);
  color: #87939d !important;
  font-size: 0.94rem !important;
}

.canon-note strong {
  color: #c9d0d5;
  font-weight: 600;
}

.next-reading {
  display: grid;
  grid-template-columns: minmax(15rem, 0.55fr) minmax(0, 1.45fr);
  align-items: stretch;
  width: min(1060px, 100%);
  margin: clamp(7rem, 13vw, 12rem) auto 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 50%, rgba(223, 166, 88, 0.12), transparent 20rem),
    rgba(12, 17, 23, 0.72);
}

.next-reading-image {
  min-height: 29rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.next-reading-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-reading-copy {
  align-self: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
}

.next-reading-copy .chapter-number {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.next-reading-copy > p:not(.chapter-number, .section-kicker) {
  max-width: 37rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.next-reading-copy > a {
  display: inline-flex;
  gap: 0.65rem;
  margin-top: 2.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(227, 189, 117, 0.55);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 8rem;
  border-top: 1px solid var(--line);
  color: #727d88;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.guide-footer p {
  margin: 0;
}

.guide-footer p span {
  margin-inline: 0.5rem;
  color: var(--gold);
}

.brand:focus-visible,
.return-link:focus-visible,
.begin-link:focus-visible,
.guide-footer a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

.next-reading-copy > a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .guide-header,
  .guide-footer,
  .weather-hero,
  .foundation,
  .first-reading {
    width: min(100% - 1.5rem, 42rem);
  }

  .guide-header {
    grid-template-columns: 1fr auto;
    min-height: 5.5rem;
  }

  .guide-header p {
    display: none;
  }

  .weather-hero {
    display: block;
    min-height: 0;
    overflow: visible;
    border: 0;
  }

  .weather-hero::before,
  .weather-hero::after,
  .weather-shade,
  .sky-key {
    display: none;
  }

  .weather-sky {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 3 / 1;
    border: 1px solid var(--line);
    object-fit: cover;
  }

  .hero-copy {
    width: 100%;
    padding: 3.5rem 0 2rem;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 5rem);
  }

  .foundation,
  .reading-heading,
  .interpretation,
  .weather-plate figcaption,
  .reading-principle {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .next-reading {
    grid-template-columns: 1fr;
  }

  .next-reading-image {
    min-height: 20rem;
    max-height: 28rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reading-heading {
    padding-top: 5rem;
  }

  .plate-label {
    top: 1rem;
    left: 1rem;
  }

  .reading-principle {
    width: 100%;
  }

  .sign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sign-grid li:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .sign-grid li {
    min-height: 17rem;
    border-bottom: 1px solid var(--line);
  }

  .guide-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 460px) {
  .return-link {
    font-size: 0;
  }

  .return-link span {
    font-size: 1rem;
  }

  .brand {
    font-size: 0.78rem;
  }

  .sign-grid {
    grid-template-columns: 1fr;
  }

  .sign-grid li,
  .sign-grid li:nth-child(3) {
    min-height: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .sign-grid h4 {
    margin-top: 2.5rem;
  }
}

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