@charset "utf-8";

/* ==========================================================================
   InventHelp — Site 17 · "Cosmic"
   Deep-space ground, luminous violet and cyan accents, mono eyebrow rail.
   Self-contained. No JavaScript. Google Fonts only.
   ========================================================================== */

:root {
  /* ground */
  --void:        #05050f;
  --ink:         #0a0a1c;
  --ink-raised:  #101028;
  --ink-panel:   #14142f;
  --hairline:    rgba(167, 139, 250, 0.22);
  --hairline-soft: rgba(167, 139, 250, 0.12);

  /* light */
  --star:        #f2f3ff;
  --text:        #ccd0ec;
  --text-dim:    #9ba1c6;
  --text-faint:  #7b81a8;

  /* accents */
  --violet:      #a78bfa;
  --violet-hot:  #c4b5fd;
  --violet-deep: #7c5cf0;
  --cyan:        #5eead4;
  --cyan-hot:    #7df0ff;
  --cyan-core:   #22d3ee;

  /* type */
  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* metrics */
  --wrap: 1180px;
  --measure: 68ch;
  --rail: 190px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1.03rem, 0.97rem + 0.28vw, 1.155rem);
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.001em;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* star field + nebula bloom, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 62%, rgba(255,255,255,0.62), transparent 60%),
    radial-gradient(1.6px 1.6px at 44% 9%,  rgba(255,255,255,0.75), transparent 60%),
    radial-gradient(1.1px 1.1px at 57% 41%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 71% 77%, rgba(255,255,255,0.7),  transparent 60%),
    radial-gradient(1.2px 1.2px at 83% 24%, rgba(255,255,255,0.6),  transparent 60%),
    radial-gradient(1.3px 1.3px at 92% 55%, rgba(255,255,255,0.68), transparent 60%),
    radial-gradient(1.1px 1.1px at  6% 88%, rgba(255,255,255,0.5),  transparent 60%),
    radial-gradient(1.4px 1.4px at 36% 93%, rgba(255,255,255,0.6),  transparent 60%),
    radial-gradient(1.2px 1.2px at 64% 15%, rgba(255,255,255,0.52), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58rem 40rem at 78% -8%,  rgba(124, 92, 240, 0.30), transparent 70%),
    radial-gradient(46rem 34rem at 4% 24%,   rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(52rem 44rem at 92% 78%,  rgba(94, 234, 212, 0.10), transparent 70%),
    linear-gradient(180deg, #05050f 0%, #08081a 38%, #0a0a1c 70%, #05050f 100%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--cyan-hot); }

::selection { background: rgba(124, 92, 240, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-hot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- shell -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, rgba(5,5,15,0.92), rgba(5,5,15,0.55));
  backdrop-filter: blur(9px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}

/* the logo artwork is dark navy — give it a luminous backing plate */
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  background: linear-gradient(160deg, #ffffff 0%, #e8ebff 100%);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.5),
    0 0 26px rgba(124, 92, 240, 0.38);
  transition: box-shadow 0.25s ease;
}

.brand:hover,
.brand:focus-visible {
  box-shadow:
    0 0 0 1px rgba(125, 240, 255, 0.7),
    0 0 34px rgba(34, 211, 238, 0.45);
}

.brand img { width: 172px; height: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2rem);
  font-family: var(--mono);
  font-size: 0.775rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-hot), var(--violet));
  box-shadow: 0 0 8px rgba(125, 240, 255, 0.8);
  transition: right 0.28s ease;
}

.site-nav a:hover { color: var(--star); }
.site-nav a:hover::after { right: 0; }

.site-nav a[aria-current="page"] {
  color: var(--cyan-hot);
}

.site-nav a[aria-current="page"]::after { right: 0; }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  margin-block: clamp(1.4rem, 4vw, 2.6rem) 0;
}

.hero-frame {
  position: relative;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-frame > .hero-inner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  box-shadow:
    0 0 0 1px rgba(5, 5, 15, 0.9),
    0 34px 90px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(124, 92, 240, 0.22);
}

.hero-inner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.78);
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,15,0.35) 0%, rgba(5,5,15,0.05) 40%, rgba(5,5,15,0.86) 100%),
    linear-gradient(105deg, rgba(124,92,240,0.30) 0%, transparent 45%, rgba(34,211,238,0.20) 100%);
  pointer-events: none;
}

/* ---------------------------------------------------------- title block -- */

.title-block {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(2.4rem, 6vw, 4.2rem) clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-hot);
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-hot);
  box-shadow: 0 0 10px var(--cyan-hot);
}

.title-block h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 1.35rem + 3.5vw, 4.05rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
  color: var(--star);
  margin: 1.5rem 0 0;
  text-wrap: balance;
  text-shadow: 0 0 42px rgba(167, 139, 250, 0.35);
}

.standfirst {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 48rem;
  margin: 1.5rem auto 0;
  text-wrap: pretty;
}

.byline {
  display: block;
  margin-top: 1.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.byline::before {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.9);
}

/* -------------------------------------------------------------- article -- */

.article {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, var(--measure));
  column-gap: clamp(1.8rem, 4vw, 3.4rem);
  justify-content: center;
  align-items: start;
  max-width: 1320px;
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 5.5rem);
}

.article > * {
  grid-column: 2;
  margin-block: 0 1.35rem;
}

.article > p:last-child { margin-bottom: 0; }

/* mono rail labels sit in the left gutter, level with their heading */
.article > .eyebrow {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--violet);
}

.article > .eyebrow::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.75));
}

.article > h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 1.2rem + 1.35vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.021em;
  color: var(--star);
  margin-top: 0.4rem;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.article > h2 + p { margin-top: 0; }

.article > p { text-wrap: pretty; }

.lead {
  font-size: 1.2em;
  line-height: 1.62;
  color: #dde0f5;
}

.lead::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.06em 0.14em 0 0;
  color: var(--violet-hot);
  text-shadow: 0 0 26px rgba(167, 139, 250, 0.6);
}

/* in-body links */
.article a {
  color: var(--cyan-hot);
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(125, 240, 255, 0.55), rgba(167, 139, 250, 0.55));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: color 0.2s ease, background-size 0.2s ease;
}

.article a:hover,
.article a:focus-visible {
  color: #fff;
  background-size: 100% 2px;
}

/* ---------------------------------------------------------------- lists -- */

.article ul.notes {
  list-style: none;
  padding: 0;
  margin-block: 0 1.6rem;
}

.article ul.notes li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
}

.article ul.notes li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-core);
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.9);
}

/* -------------------------------------------------------------- figures -- */

.article > figure {
  margin: 0.6rem 0 2rem;
}

.article > .span-all {
  grid-column: 1 / -1;
  margin-block: 1.4rem 2.4rem;
}

.plate {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--ink-panel);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 46px rgba(124, 92, 240, 0.16);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.86);
  transition: filter 0.35s ease;
}

.plate:hover img { filter: saturate(1) contrast(1.05) brightness(0.96); }

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(124, 92, 240, 0.20), transparent 55%, rgba(34, 211, 238, 0.16));
  mix-blend-mode: screen;
  pointer-events: none;
}

.ratio-wide  { aspect-ratio: 3 / 2; }
.ratio-cine  { aspect-ratio: 16 / 9; }
.ratio-tall  { aspect-ratio: 2 / 3; }

/* ---------------------------------------------------------- pull quotes -- */

.article > blockquote {
  position: relative;
  margin: 2.2rem 0 2.4rem;
  padding: 2rem 1.9rem 1.7rem 2.6rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 20, 47, 0.92), rgba(10, 10, 28, 0.92));
  box-shadow: 0 0 44px rgba(124, 92, 240, 0.14);
}

.article > blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-hot), var(--violet));
  box-shadow: 0 0 14px rgba(125, 240, 255, 0.75);
  border-radius: 2px;
}

.article > blockquote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.36;
  letter-spacing: -0.012em;
  color: #eceeff;
  text-wrap: pretty;
}

.attrib {
  display: block;
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

/* --------------------------------------------------------------- endmark -- */

.endmark {
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.endmark::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.7rem;
  vertical-align: 0.05em;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  position: relative;
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: clamp(2.6rem, 6vw, 4.2rem) 2.2rem;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(10, 10, 28, 0.75), rgba(5, 5, 15, 0.96));
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan-hot), transparent);
  opacity: 0.8;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-bottom: 2.2rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.footer-mark {
  display: inline-flex;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  background: linear-gradient(160deg, #ffffff 0%, #e8ebff 100%);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.45),
    0 0 22px rgba(124, 92, 240, 0.3);
}

.footer-mark img { width: 158px; height: auto; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem clamp(0.9rem, 2vw, 1.8rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--cyan-hot); }

/* --- injected shared partial: three link columns ------------------------ */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 3.5vw, 3rem);
  align-items: start;
}

.footer-cols h2 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--cyan-hot);
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols ul li {
  margin-bottom: 0.62rem;
  line-height: 1.45;
  font-size: 0.895rem;
}

.footer-cols ul li::marker { content: ""; }

.footer-cols a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.footer-cols a:hover,
.footer-cols a:focus-visible {
  color: var(--star);
  text-shadow: 0 0 14px rgba(167, 139, 250, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  margin: 2.8rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  color: var(--text-faint);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1100px) {
  :root { --rail: 150px; }
}

@media (max-width: 980px) {
  .article {
    grid-template-columns: minmax(0, var(--measure));
    justify-content: center;
  }
  .article > *,
  .article > .span-all { grid-column: 1; }
  .article > .eyebrow {
    justify-self: start;
    text-align: left;
    margin-top: 1.6rem;
    margin-bottom: 0.55rem;
  }
  .article > .eyebrow::after {
    width: 3.4rem;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.85), transparent);
    margin-top: 0.55rem;
  }
}

@media (max-width: 900px) {
  .header-inner { padding-block: 0.9rem; }
  .brand img { width: 148px; }
  .site-nav { font-size: 0.72rem; gap: 0.85rem 1.15rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner img { aspect-ratio: 3 / 2; }
}

@media (max-width: 720px) {
  body { line-height: 1.68; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
  }
  .site-nav { gap: 0.6rem 1rem; }
  .title-block {
    text-align: left;
    padding-block: 2.1rem 1.4rem;
  }
  .standfirst { margin-inline: 0; }
  .byline::before { margin-inline: 0; }
  .hero-inner img { aspect-ratio: 4 / 3; }
  .article > blockquote {
    padding: 1.6rem 1.25rem 1.35rem 1.7rem;
  }
  .lead::first-letter { font-size: 3em; }
  .ratio-tall { aspect-ratio: 3 / 4; }
  .ratio-wide { aspect-ratio: 4 / 3; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  :root { --gutter: 1.05rem; }
  .brand img { width: 132px; }
  .footer-mark img { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer { display: none; }
  .article { display: block; max-width: 100%; }
}
