/* JerrySchmeer.com — Science & Technology story page */

.science-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.science-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 82px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 15%, rgba(80, 157, 255, .28), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(240, 197, 107, .13), transparent 30%),
    linear-gradient(135deg, rgba(10, 20, 40, .98), rgba(5, 10, 21, .98));
  box-shadow: var(--shadow);
}

.science-hero::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -210px;
  bottom: -220px;
  border: 1px solid rgba(135, 184, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(135, 184, 255, .03), 0 0 0 96px rgba(240, 197, 107, .018);
  pointer-events: none;
}

.science-hero-copy,
.science-hero-image {
  position: relative;
  z-index: 1;
}

.science-hero h1 {
  margin: 0;
  color: #fff;
  font: 700 clamp(3rem, 7vw, 6.2rem)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.science-hero .hero-title {
  margin-top: 20px;
  max-width: 760px;
  font-size: clamp(1.25rem, 2.8vw, 2.15rem);
}

.science-hero .hero-note {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d4dfef;
  font-size: 1.08rem;
}

.science-hero-image {
  overflow: hidden;
  border: 1px solid rgba(240, 197, 107, .34);
  border-radius: 24px;
  background: #08101e;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .36);
}

.science-hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.science-hero-image figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

.chapter-map {
  margin: clamp(34px, 6vw, 62px) auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(11, 19, 36, .86);
  box-shadow: var(--shadow);
}

.chapter-map .section-heading {
  margin-bottom: 22px;
}

.chapter-map .section-heading p:last-child {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.chapter-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.chapter-links a {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: #eef4ff;
  text-decoration: none;
  background: rgba(19, 33, 59, .72);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.chapter-links a:hover,
.chapter-links a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(29, 48, 83, .84);
}

.chapter-links strong {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #07101f;
  background: var(--gold-soft);
  font-size: .83rem;
}

.chapter-links span {
  font-size: .92rem;
  line-height: 1.3;
  font-weight: 750;
}

.science-story {
  display: grid;
  gap: 24px;
  margin: 0 auto clamp(42px, 8vw, 84px);
}

.story-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 29, 54, .96), rgba(7, 13, 26, .98));
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: auto -90px -140px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(135, 184, 255, .11);
  pointer-events: none;
}

.story-card-heading {
  padding: clamp(26px, 4.5vw, 48px);
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at 25% 18%, rgba(74, 143, 239, .2), transparent 48%),
    rgba(9, 17, 33, .68);
}

.story-number {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding: 0 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(240, 197, 107, .42);
  border-radius: 18px;
  color: var(--gold-soft);
  background: rgba(240, 197, 107, .07);
  font-weight: 900;
  letter-spacing: .08em;
}

.story-card-heading h2 {
  margin: 0;
  color: #fff;
  font: 700 clamp(1.75rem, 3vw, 2.55rem)/1.12 Georgia, "Times New Roman", serif;
}

.story-card-heading p {
  margin: 14px 0 0;
  color: #bfcce0;
  line-height: 1.55;
}

.story-card-body {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 52px);
}

.story-card-body > p {
  margin: 0 0 1.15rem;
  color: #dce5f3;
  font-size: 1.06rem;
  line-height: 1.82;
}

.story-card-body > p:last-child {
  margin-bottom: 0;
}

.story-placeholder {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px dashed rgba(135, 184, 255, .36);
  border-radius: 15px;
  color: #cbd7e8;
  background: rgba(6, 12, 24, .42);
}

.story-placeholder strong {
  color: #fff;
}

.story-placeholder p {
  margin: 5px 0 0;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}

.topic-chips span {
  padding: 7px 11px;
  border: 1px solid rgba(135, 184, 255, .22);
  border-radius: 999px;
  color: #d8e7ff;
  background: rgba(67, 126, 216, .09);
  font-size: .86rem;
  font-weight: 700;
}

.story-link {
  color: #9dc7ff;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.story-link:hover,
.story-link:focus-visible {
  color: #fff;
}

.early-science-projects {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.early-science-project {
  overflow: hidden;
  border: 1px solid rgba(135, 184, 255, .24);
  border-radius: 19px;
  background: rgba(7, 14, 28, .72);
}

.early-project-title {
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(135, 184, 255, .18);
  background: linear-gradient(135deg, rgba(62, 124, 220, .12), rgba(240, 197, 107, .06));
}

.early-project-title span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.early-project-title h3 {
  margin: 0;
  color: #fff;
  font: 700 clamp(1.35rem, 2.4vw, 1.85rem)/1.18 Georgia, "Times New Roman", serif;
}

.early-project-content {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  padding: 20px;
}

.early-project-media-placeholder,
.early-project-description-placeholder {
  min-height: 160px;
  padding: 20px;
  border-radius: 15px;
}

.early-project-media-placeholder {
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px dashed rgba(240, 197, 107, .34);
  background: radial-gradient(circle at 50% 30%, rgba(66, 128, 219, .13), transparent 55%), rgba(5, 11, 22, .54);
}

.early-project-media-placeholder strong,
.early-project-description-placeholder strong {
  color: #fff;
}

.early-project-media-placeholder span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.5;
}

.early-project-description-placeholder {
  border: 1px dashed rgba(135, 184, 255, .28);
  color: #cad7e8;
  background: rgba(10, 20, 38, .55);
}

.early-project-description-placeholder p {
  margin: 7px 0 0;
  line-height: 1.65;
}

.radioshack-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.radioshack-part {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 16, 31, .68);
}

.radioshack-part span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.radioshack-part h3 {
  margin: 0 0 8px;
  color: #fff;
  font: 700 1.3rem Georgia, "Times New Roman", serif;
}

.radioshack-part p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

.science-site-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(240, 197, 107, .34);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(240, 197, 107, .08), rgba(57, 120, 219, .08));
}

.science-site-panel strong,
.science-site-panel span {
  display: block;
}

.science-site-panel strong {
  color: #fff;
  font: 700 1.25rem Georgia, "Times New Roman", serif;
}

.science-site-panel span {
  margin-top: 4px;
  color: var(--muted);
}

.science-site-feature {
  margin-top: 26px;
}

.science-site-preview {
  display: block;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(135, 184, 255, .28);
  border-radius: 20px;
  background: rgba(6, 12, 24, .6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.science-site-preview:hover,
.science-site-preview:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 197, 107, .55);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .32);
}

.science-site-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.science-site-preview .preview-desktop {
  display: block;
}

.science-site-preview .preview-mobile {
  display: none;
}

.science-site-caption {
  margin: 10px 4px 0;
  color: #b8c9df;
  font-size: .9rem;
  text-align: center;
}


.science-introduction {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(135, 184, 255, .18);
}

.science-introduction h3 {
  margin: 0 0 18px;
  color: #fff;
  font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.2 Georgia, "Times New Roman", serif;
}

.science-introduction p {
  margin: 0 0 1.1rem;
  color: #dce5f3;
  font-size: 1.04rem;
  line-height: 1.8;
}

.science-introduction p:last-child {
  margin-bottom: 0;
}

.science-doorway-lines {
  margin: 20px 0 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(240, 197, 107, .06);
}

.science-doorway-lines p {
  margin: 0 0 7px;
  color: #f2f6ff;
  font-weight: 750;
}

.science-doorway-lines p:last-child {
  margin-bottom: 0;
}

.science-close {
  margin: 0 auto;
  padding: clamp(32px, 6vw, 58px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 27, 50, .95), rgba(7, 13, 25, .96));
  box-shadow: var(--shadow);
}

.science-close h2 {
  margin: 0;
  font: 700 clamp(2rem, 4.5vw, 3.3rem)/1.12 Georgia, "Times New Roman", serif;
}

.science-close p {
  max-width: 800px;
  margin: 17px auto 0;
  color: #d5dfed;
}

@media (max-width: 940px) {
  .science-hero {
    grid-template-columns: 1fr;
  }

  .science-hero-copy {
    text-align: center;
  }

  .science-hero .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .science-hero .hero-actions {
    justify-content: center;
  }

  .science-hero-image {
    width: min(460px, 100%);
    margin: 0 auto;
  }

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

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card-heading {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 680px) {
  .science-page {
    width: min(100% - 20px, 1180px);
  }

  .science-hero,
  .chapter-map,
  .story-card,
  .science-close {
    border-radius: 19px;
  }

  .science-hero {
    padding: 36px 20px;
  }

  .chapter-links,
  .radioshack-parts,
  .science-site-panel,
  .early-project-content {
    grid-template-columns: 1fr;
  }

  .science-site-preview {
    border-radius: 18px;
  }

  .science-site-preview .preview-desktop {
    display: none;
  }

  .science-site-preview .preview-mobile {
    display: block;
  }

  .science-site-panel .button {
    width: 100%;
  }
}
