/* CARES · NASA Camera Registry — model pages shared stylesheet */
:root{
  --ink:#1a1f2e; --ink-2:#2d3648;
  --paper:#faf8f4; --surface:#ffffff;
  --line:#e8e3d8; --line-strong:#d0cbc0; --muted:#6f7482;
  --accent:#8a3a1c; --accent-2:#c85a30;
  --plate:#f0e9d8; --amber:#c07f22; --link:#2f6b7a;
}
*{box-sizing:border-box}
body{margin:0; background:var(--paper); color:var(--ink);
  font-family:"IBM Plex Sans",system-ui,sans-serif; line-height:1.6;
  font-size:16px; -webkit-font-smoothing:antialiased;}
a{color:var(--link)}

/* Content container -- widens on larger screens to use screen real estate,
   but stays capped so lines don't become too long to read. The article's
   reading column is separately constrained by max-width on paragraphs
   further down. */
.wrap{max-width:1200px; margin:0 auto; padding:0 24px}

/* Font-size and container scaling for larger displays.
   Each breakpoint targets a common monitor bucket. */
@media (min-width: 1400px) {
  body{font-size:17px}
  .wrap{max-width:1360px}
}
@media (min-width: 1700px) {
  body{font-size:18px}
  .wrap{max-width:1500px}
}
@media (min-width: 2200px) {
  body{font-size:19px}
  .wrap{max-width:1640px}
}

.topbar{background:var(--paper); border-bottom:1px solid var(--line); padding:14px 0;
  font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--muted);}
.topbar a{color:var(--muted); text-decoration:none}
.topbar a:hover{color:var(--ink)}
.topbar-inner{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px}
.topbar .brand{color:var(--ink); font-weight:500}

/* Back-to-registry bar: sits directly under the topbar to give visitors an
   obvious "return to the interactive registry" affordance. The topbar
   breadcrumbs are subtle by design; this bar makes the back path visible
   without hunting through the navigation. */
.backbar{background:var(--surface); border-bottom:1px solid var(--line); padding:10px 0}
.back-link{
  font-family:"IBM Plex Sans",sans-serif; font-size:14px; font-weight:500;
  color:var(--accent); text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  transition:color .15s;
}
.back-link:hover{color:var(--accent-2)}
.back-link span{font-size:16px; line-height:1}

.hero{position:relative; background:#0a1826}
.hero-inner{display:grid; grid-template-columns:1.4fr 1fr; gap:0;
  max-width:1200px; margin:0 auto; min-height:420px;}
@media (min-width: 1400px) { .hero-inner{max-width:1360px} }
@media (min-width: 1700px) { .hero-inner{max-width:1500px} }
@media (min-width: 2200px) { .hero-inner{max-width:1640px} }
@media(max-width:820px){ .hero-inner{grid-template-columns:1fr; min-height:auto} }
.hero-image{
  background: radial-gradient(70% 100% at 30% 40%, #1a3a5c 0%, transparent 70%),
    radial-gradient(50% 80% at 80% 60%, #2a5a80 0%, transparent 60%),
    linear-gradient(135deg, #0a1826, #1a2842);
  color:#7fb7c4; display:flex; align-items:center; justify-content:center;
  font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; padding:60px 40px; text-align:center;
}
.hero-image .hero-caption{border:1px solid rgba(127,183,196,.4);
  padding:14px 20px; border-radius:4px; background:rgba(0,0,0,.3); backdrop-filter:blur(4px);}
.hero-image .hero-caption b{color:#eaf1f4; font-weight:600; display:block; margin-top:6px;
  text-transform:none; font-family:"Fraunces",serif; font-size:15px}
.hero-text{background:var(--paper); padding:56px 44px 40px; display:flex; flex-direction:column; justify-content:center;}
.hero-eyebrow{font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--accent); margin:0 0 14px; font-weight:500;}
.hero h1{font-family:"Fraunces",serif; font-weight:700; font-size:clamp(34px,4.5vw,52px);
  line-height:1.05; margin:0 0 14px; color:var(--ink); letter-spacing:-.01em;}
.hero h1 em{font-style:italic; color:var(--accent); font-weight:500}
.hero .subtitle{font-family:"Fraunces",serif; font-size:18px; line-height:1.5;
  color:var(--ink-2); margin:0; font-weight:500;}

/* Hero photo variant (photo-first design when an exemplar is available).
   Featured photo fills the top of the page; caption overlays bottom-left.
   Model title moves to the .hero-below banner underneath the image.
   Uses object-fit:contain so the WHOLE image is visible -- some photos are
   panoramic (GoPro Max), others are portrait; contain shows them all fully. */
.hero-photo{position:relative; margin:0 auto; background:#0a1826; overflow:hidden;
  min-height:380px; max-height:640px; max-width:1200px;
  display:flex; align-items:center; justify-content:center;}
.hero-photo img{display:block; max-width:100%; width:auto; height:auto;
  max-height:640px; object-fit:contain;}
@media (min-width: 1400px) {
  .hero-photo{max-width:1360px; max-height:720px}
  .hero-photo img{max-height:720px}
}
@media (min-width: 1700px) {
  .hero-photo{max-width:1500px; max-height:800px}
  .hero-photo img{max-height:800px}
}
@media (min-width: 2200px) {
  .hero-photo{max-width:1640px; max-height:860px}
  .hero-photo img{max-height:860px}
}
.hero-photo-cap{position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(180deg, transparent 0%, rgba(10,24,38,.65) 40%, rgba(10,24,38,.92) 100%);
  color:#eaf1f4; padding:60px 40px 24px; display:flex; flex-direction:column; gap:6px;}
.hero-photo-eyebrow{font-family:"IBM Plex Mono",monospace; font-size:11px;
  letter-spacing:.22em; text-transform:uppercase; color:#c85a30; font-weight:500;}
.hero-photo-title{font-family:"Fraunces",serif; font-weight:700; font-size:clamp(22px,3vw,30px);
  color:#faf8f4; line-height:1.2; margin:2px 0 0;}
.hero-photo-meta{font-family:"IBM Plex Mono",monospace; font-size:12px; letter-spacing:.05em;
  color:#c2d2d9; margin-top:4px;}
@media(max-width:640px){ .hero-photo-cap{padding:40px 20px 16px} }
@media(max-width:820px){ .hero-photo{max-height:440px} .hero-photo img{max-height:440px} }

.hero-below{background:var(--paper); border-bottom:1px solid var(--line);
  padding:48px 0 32px;}
.hero-below .wrap{padding-top:0; padding-bottom:0}
.hero-below .hero-eyebrow{font-family:"IBM Plex Mono",monospace; font-size:11px;
  letter-spacing:.22em; text-transform:uppercase; color:var(--accent); margin:0 0 12px; font-weight:500;}
.hero-below h1{font-family:"Fraunces",serif; font-weight:700;
  font-size:clamp(30px,4.2vw,46px); line-height:1.05; margin:0 0 12px;
  color:var(--ink); letter-spacing:-.01em;}
.hero-below h1 em{font-style:italic; color:var(--accent); font-weight:500}
.hero-below .subtitle{font-family:"Fraunces",serif; font-size:18px; line-height:1.5;
  color:var(--ink-2); margin:0; font-weight:500; max-width:70ch}

/* Larger typography for the hero banner on wide screens */
@media (min-width: 1400px) {
  .hero-below h1{font-size:clamp(38px,4vw,54px)}
  .hero-below .subtitle{font-size:20px; max-width:80ch}
}
@media (min-width: 1700px) {
  .hero-below h1{font-size:clamp(44px,3.5vw,60px)}
  .hero-below .subtitle{font-size:22px}
}

/* Hub page hero (single-column, no image side) */
.hero-hub .hero-inner-hub{max-width:920px; margin:0 auto; padding:64px 24px 48px; text-align:center;}
.hero-hub .hero-eyebrow{color:#c85a30}
.hero-hub h1{color:#eaf1f4; margin-bottom:16px}
.hero-hub h1 em{color:#c85a30}
.hero-hub .subtitle{color:#c2d2d9}

.statsbar{background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.statsbar-inner{max-width:1200px; margin:0 auto; padding:24px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
@media (min-width: 1400px) { .statsbar-inner{max-width:1360px} }
@media (min-width: 1700px) { .statsbar-inner{max-width:1500px} }
@media (min-width: 2200px) { .statsbar-inner{max-width:1640px} }
@media(max-width:640px){ .statsbar-inner{grid-template-columns:repeat(2,1fr)} }
.stat .n{font-family:"Fraunces",serif; font-weight:700; font-size:32px; color:var(--ink); line-height:1;}
.stat .l{font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted); margin-top:6px;}

/* Larger stats on wide screens */
@media (min-width: 1400px) {
  .stat .n{font-size:38px}
  .stat .l{font-size:12px}
}
@media (min-width: 1700px) {
  .stat .n{font-size:42px}
  .stat .l{font-size:13px}
}

main{padding:52px 0 70px}

.article-grid{display:grid; grid-template-columns:1fr 260px; gap:56px}
@media(max-width:820px){ .article-grid{grid-template-columns:1fr; gap:34px} }
@media (min-width: 1400px) { .article-grid{grid-template-columns:1fr 300px; gap:64px} }
@media (min-width: 1700px) { .article-grid{grid-template-columns:1fr 340px; gap:72px} }

.article h2{font-family:"Fraunces",serif; font-weight:700; font-size:28px; color:var(--ink);
  margin:0 0 16px; letter-spacing:-.005em; padding-bottom:12px; border-bottom:2px solid var(--accent);
  display:inline-block;}
.article h3{font-family:"Fraunces",serif; font-weight:700; font-size:22px; color:var(--ink); margin:28px 0 12px;}
.article p{font-size:16.5px; line-height:1.7; color:var(--ink-2); margin:0 0 16px; max-width:72ch;}
.article p strong{color:var(--ink); font-weight:600}
.article section{margin-bottom:44px}
.lede-p{font-family:"Fraunces",serif; font-size:20px; line-height:1.55; color:var(--ink);
  font-weight:500; margin-bottom:22px; max-width:72ch;}

/* Scale article typography up on wide screens so the reading text stays
   comfortable when the container widens. */
@media (min-width: 1400px) {
  .article h2{font-size:32px}
  .article h3{font-size:24px}
  .article p{font-size:17.5px}
  .lede-p{font-size:22px}
}
@media (min-width: 1700px) {
  .article h2{font-size:34px}
  .article p{font-size:18.5px}
  .lede-p{font-size:24px}
}

.sidebar{position:sticky; top:20px; align-self:start}
@media(max-width:820px){ .sidebar{position:static} }
.side-card{background:var(--surface); border:1px solid var(--line); border-radius:4px; padding:22px 24px; margin-bottom:16px;}
.side-card h4{font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted); margin:0 0 12px; font-weight:500;}
.side-card dl{margin:0; font-size:14px}
.side-card dt{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--muted); letter-spacing:.04em; margin-top:10px;}
.side-card dt:first-child{margin-top:0}
.side-card dd{margin:2px 0 0; color:var(--ink)}

.bodies-list{list-style:none; padding:0; margin:0}
.bodies-list li{display:flex; justify-content:space-between; align-items:baseline;
  padding:14px 0; border-bottom:1px solid var(--line); gap:16px;}
.bodies-list li:last-child{border-bottom:none}
.bodies-list .body-serial{font-family:"IBM Plex Mono",monospace; font-weight:500; font-size:15px; color:var(--amber);}
.bodies-list .body-serial small{display:block; font-family:"IBM Plex Mono",monospace; font-size:11px;
  color:var(--muted); font-weight:400; letter-spacing:.04em; margin-top:2px;}
.bodies-list .body-meta{font-family:"IBM Plex Mono",monospace; font-size:13px; color:var(--muted);
  text-align:right; white-space:nowrap;}
.bodies-list .body-meta b{color:var(--ink); font-weight:600}

.gallery{display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:24px; margin:12px 0}
.photo{background:transparent}
.photo img{width:100%; height:auto; display:block; border-radius:2px; aspect-ratio:3/2; object-fit:cover;
  background:linear-gradient(135deg,#0a1826,#1a3a5c);}
.photo .cap{padding:12px 2px 0}
.photo .cap-title{font-family:"Fraunces",serif; font-weight:500; font-size:17px; color:var(--ink);
  line-height:1.35; margin:0 0 6px;}
.photo .cap-meta{font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--muted); letter-spacing:.03em;}
.photo .cap-meta a{color:var(--link); text-decoration:none; border-bottom:1px solid transparent}
.photo .cap-meta a:hover{border-bottom-color:var(--link)}

.promo{background:var(--surface); border:1px solid var(--line-strong); border-radius:4px;
  padding:32px 34px; margin:44px 0; display:grid; grid-template-columns:1fr auto; gap:26px;
  align-items:center; box-shadow:0 4px 20px rgba(26,31,46,.05);}
@media(max-width:640px){ .promo{grid-template-columns:1fr} }
.promo-eyebrow{font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--accent); margin:0 0 10px; font-weight:500;}
.promo h3{font-family:"Fraunces",serif; font-weight:700; font-size:24px; color:var(--ink);
  margin:0 0 10px; letter-spacing:-.005em;}
.promo p{font-size:14.5px; line-height:1.6; color:var(--ink-2); margin:0 0 4px; max-width:52ch}
.promo-cta{white-space:nowrap}
.promo-btn{display:inline-flex; align-items:center; gap:8px; background:var(--accent); color:#fff;
  text-decoration:none; padding:12px 22px; border-radius:2px; font-weight:500; font-size:14px;
  font-family:"IBM Plex Sans",sans-serif;}
.promo-btn:hover{background:var(--accent-2); color:#fff}
.promo-disclaimer{grid-column:1/-1; font-family:"IBM Plex Mono",monospace; font-size:10.5px;
  letter-spacing:.04em; color:var(--muted); margin:16px 0 0; padding-top:14px;
  border-top:1px solid var(--line); line-height:1.6;}

/* Hub page grid */
.hub-main{padding-top:32px}
.hub-mfr-block{margin-bottom:52px}
.hub-mfr-block h2{font-family:"Fraunces",serif; font-weight:700; font-size:24px; color:var(--ink);
  margin:0 0 18px; letter-spacing:-.005em; padding-bottom:10px; border-bottom:2px solid var(--accent);
  display:inline-block;}
.hub-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px}
.hub-card{background:var(--surface); border:1px solid var(--line); border-radius:4px; padding:20px 22px;
  text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:8px;
  transition:border-color .15s, box-shadow .15s;}
.hub-card:hover{border-color:var(--accent); box-shadow:0 4px 16px rgba(138,58,28,.08)}
.hub-card .hc-model{font-family:"Fraunces",serif; font-weight:700; font-size:20px; color:var(--ink); margin:0}
.hub-card .hc-span{font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.06em; color:var(--muted);}
.hub-card .hc-stats{display:flex; gap:16px; margin-top:6px; padding-top:10px; border-top:1px solid var(--line);}
.hub-card .hc-stat{flex:1}
.hub-card .hc-stat b{font-family:"IBM Plex Mono",monospace; font-weight:600; font-size:16px; color:var(--ink); display:block}
.hub-card .hc-stat span{font-family:"IBM Plex Mono",monospace; font-size:10px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--muted);}

footer{border-top:1px solid var(--line); padding:32px 0 40px; margin-top:20px; background:var(--surface);}
footer .footer-inner{max-width:1200px; margin:0 auto; padding:0 24px}
@media (min-width: 1400px) { footer .footer-inner{max-width:1360px} }
@media (min-width: 1700px) { footer .footer-inner{max-width:1500px} }
@media (min-width: 2200px) { footer .footer-inner{max-width:1640px} }
footer .footer-grid{display:grid; grid-template-columns:2fr 1fr; gap:40px; font-size:13px; color:var(--muted); line-height:1.6}
@media(max-width:640px){ footer .footer-grid{grid-template-columns:1fr} }
footer a{color:var(--link); text-decoration:none}
footer a:hover{text-decoration:underline}
