* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Georgia, "Times New Roman", serif;
  color: #ffffff;
}

body {
background-image:
  linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.35)),
  image-set(url('../images/optimized/cassiopeia-desktop-672dfc96a7ec.webp') type('image/webp'), url('../images/cassiopeia-background.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.homepage {
  min-height: 100vh;
  overflow-y: auto;
}

.top-nav {
  width: 100%;
  padding: 22px 36px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
}

.top-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.top-nav a:hover,
.top-nav a:focus {
  text-decoration: underline;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 20px 7vw 70px;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 45px;
  align-items: center;
}
.title-block {
  max-width: 760px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95);
}

.title-block h1 {
  margin: 0 0 24px;
  font-size: clamp(3rem, 6.2vw, 6.7rem);
  line-height: 0.95;
  font-weight: 700;
}

.title-block p {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.35;
}

.button-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 430px;
  justify-self: center;
  width: 100%;
}

.hero-button {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-button:hover,
.hero-button:focus {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hidden-preload {
  display: none;
}

@media (max-width: 850px) {
  body {
    background-attachment: scroll;
  }

.top-nav {
  padding: 12px 14px;
  gap: 14px;
}

  .top-nav a {
    font-size: 0.95rem;
  }

.title-block h1 {
  font-size: clamp(2.8rem, 13vw, 4.1rem);
}

.title-block p {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
}

.button-panel {
  margin-top: 8px;
}

  .hero {
    padding: 42px 24px 60px;
    align-items: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .title-block {
    text-align: center;
    margin: 0 auto;
  }

  .button-panel {
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-button {
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    padding: 14px 18px;
  }
}

.page {
  min-height: 100vh;
}

.content-page {
  min-height: calc(100vh - 78px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 24px;
}

.content-card {
  width: min(950px, 100%);
  padding: 42px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.68);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.content-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
}

.content-card p {
  font-size: 1.25rem;
  line-height: 1.5;
}

.guide-list {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.guide-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.guide-item h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
}

.guide-item p {
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.guide-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.guide-links a {
  display: inline-block;
  padding: 11px 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-links a:hover,
.guide-links a:focus {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 850px) {
  .content-page {
    padding: 38px 18px 70px;
  }

  .content-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .content-card p {
    font-size: 1.05rem;
  }

  .guide-item {
    padding: 20px;
  }

  .guide-links {
    flex-direction: column;
  }

  .guide-links a {
    text-align: center;
  }
}

.inline-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.inline-link:visited {
  color: #ffffff;
}

.inline-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
  border-radius: 4px;
}
.inline-link:hover,
.inline-link:focus {
  text-decoration-thickness: 3px;
}

.blog-image {
  margin: 32px 0;
}

.blog-image img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.blog-image a {
  display: inline-block;
}

.blog-image a:hover img,
.blog-image a:focus img {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.blog-image figcaption {
  margin-top: 10px;
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.9;
}


.blog-image-centered {
  text-align: center;
}

.blog-image-centered img {
  margin-left: auto;
  margin-right: auto;
}

.blog-image-centered figcaption {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.meteor-kit-float {
  float: left;
  width: 33%;
  max-width: 310px;
  min-width: 260px;
  margin: 6px 28px 18px 0;
}

.meteor-kit-float img {
  width: 100%;
  max-width: 310px;
}

.meteor-kit-float figcaption {
  max-width: 310px;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 700px) {
  .meteor-kit-float {
    float: none;
    max-width: 320px;
    margin: 24px auto;
  }

  .meteor-kit-float img,
  .meteor-kit-float figcaption {
    max-width: 320px;
  }
}

.blog-image-float {
  float: right;
  max-width: 320px;
  margin: 0 0 18px 28px;
}

.blog-image-float img {
  width: 100%;
  max-width: 320px;
}

.blog-image-float figcaption {
  max-width: 320px;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .blog-image-float {
    float: none;
    max-width: 100%;
    margin: 28px 0;
  }

  .blog-image-float img,
  .blog-image-float figcaption {
    max-width: 100%;
  }
}

/* Astrophotography Gallery */
.gallery-page {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.gallery-header {
  width: 100%;
  max-width: none;
  margin-bottom: 34px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95);
}

.gallery-header h1 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  line-height: 0.98;
}

.gallery-header p {
  margin: 0 0 10px;
  max-width: none;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.astro-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.astro-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.64);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s ease, background 0.16s ease;
}

.astro-gallery-card:hover,
.astro-gallery-card:focus-within {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.76);
}

.astro-gallery-card-link {
  display: block;
  height: 100%;
  color: #ffffff;
  text-decoration: none;
}

.astro-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.astro-gallery-card-body {
  padding: 16px 17px 18px;
}

.astro-gallery-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.astro-gallery-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.astro-hero-image img {
  max-width: 100%;
}

.astro-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 24px 0 34px;
}

.astro-detail {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.astro-detail strong {
  display: block;
  margin-bottom: 4px;
}

.astro-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.astro-page-links a {
  display: inline-block;
  padding: 11px 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.astro-page-links a:hover,
.astro-page-links a:focus {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1100px) {
  .astro-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .gallery-page {
    width: min(100% - 36px, 900px);
    padding: 42px 0 70px;
  }

  .astro-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .astro-gallery-grid {
    grid-template-columns: 1fr;
  }

  .astro-details {
    grid-template-columns: 1fr;
  }
}


/* AstroGuy Imaging detail pages */
.astro-image-header {
  width: min(950px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.astro-image-page .content-card {
  margin: 0 auto;
}

.astro-image-page .content-card a {
  color: #9bd9f4;
}

.astro-spec-list {
  margin: 8px 0 32px;
  padding-left: 1.35rem;
  font-size: 1.1rem;
  line-height: 1.55;
}

.astro-spec-list li {
  margin: 7px 0;
}

.astro-source-note {
  margin-top: 34px;
  font-size: 0.95rem !important;
  opacity: 0.82;
}


.astro-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 34px 0;
}

.astro-info-box {
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.astro-info-box h2 {
  margin-top: 0;
}

.astro-info-box .astro-spec-list {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .astro-info-grid {
    grid-template-columns: 1fr;
  }
}


.astro-gallery-image-wrap {
  position: relative;
}

.astro-coming-soon-label {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.astro-gallery-coming-soon {
  cursor: default;
}

.astro-gallery-coming-soon:hover,
.astro-gallery-coming-soon:focus-within {
  transform: none;
  background: rgba(0, 0, 0, 0.64);
}


/* Support AstroGuy */
.support-astroguy {
  max-width: 900px;
  margin: 42px auto 12px;
  padding: 28px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.56);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(5px);
}

.support-astroguy h2 {
  margin: 0 0 12px;
}

.support-astroguy p {
  margin: 0 auto 10px;
  max-width: 760px;
}

.support-astroguy .support-note {
  font-size: 0.96rem;
  opacity: 0.86;
}

.support-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.11);
  transition: transform 0.2s ease, background 0.2s ease;
}

.support-button:hover,
.support-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.19);
}

.homepage-support {
  padding: 0 28px 50px;
}

@media (max-width: 700px) {
  .support-astroguy {
    padding: 24px 20px;
  }

  .homepage-support {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* Previous Observing Guides page title */
.content-card h1.guides-page-title {
  font-size: 2.85rem;
  line-height: 1.05;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .content-card h1.guides-page-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 760px) {
  .content-card h1.guides-page-title {
    white-space: normal;
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
}

/* Shared support panel: keep typography independent of article styles. */
.support-astroguy h2 {
  font-size: 1.5rem;
  line-height: normal;
  margin: 0 0 12px;
}
.support-astroguy p {
  font-size: 1rem;
  line-height: normal;
  margin: 0 auto 10px;
}
.support-astroguy .support-note {
  font-size: .96rem;
}
.support-astroguy .support-button {
  color: #fff;
  font-size: 1rem;
  line-height: normal;
  text-underline-offset: auto;
}.astrophotography-tools {font-size:1.1rem;line-height:1.5;} .astrophotography-tools a {color:#9bd9f4;}
.site-copyright {max-width:900px;margin:0 auto;padding:4px 20px 28px;text-align:center;color:#fff;font-size:.9rem;line-height:1.5;text-shadow:0 2px 5px rgba(0,0,0,.9);}
.site-copyright p {margin:6px 0;font-size:.9rem;line-height:1.5;}
.site-copyright p + p {opacity:.85;}