/* SolarPanic.com
   Fictional manga satire about utility panic, consumer-owned solar, batteries,
   peak rates, paperwork tactics, and Solar Sensei.
*/

:root {
  --ink: #080808;
  --ink-2: #151515;
  --paper: #fff8df;
  --paper-2: #fff1b8;
  --sun: #ffd21a;
  --sun-2: #ff9f00;
  --panic: #e32621;
  --panic-2: #9b0909;
  --electric: #20b8ff;
  --battery: #42e35f;
  --purple: #7a27ff;
  --cream: #fff8e8;
  --muted: #b8b8b8;
  --line: rgba(255,255,255,.16);
  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --hard-shadow: 8px 8px 0 #000;
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 18% 8%, rgba(255,210,26,.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(227,38,33,.18), transparent 28%),
    linear-gradient(135deg, #050505 0%, #151515 45%, #050505 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image:
    linear-gradient(45deg, #fff 1px, transparent 1px),
    linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  font-size: 1.03rem;
}

strong {
  color: var(--sun);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--sun);
  color: #000;
  padding: 10px 14px;
  z-index: 999;
  border: 3px solid #000;
}

.skip-link:focus {
  left: 12px;
}

/* Header / Mobile-friendly menu */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,5,.93);
  border-bottom: 4px solid var(--sun);
  box-shadow: 0 10px 35px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: .9;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

.logo .sun-mark {
  width: 42px;
  height: 42px;
  border: 4px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle, #fff15a 0 20%, var(--sun) 21% 65%, var(--sun-2) 66%);
  box-shadow: 0 0 0 3px var(--sun), 0 0 24px rgba(255,210,26,.65);
  display: grid;
  place-items: center;
  color: #000;
  font-size: 1.2rem;
}

.logo b {
  color: var(--sun);
}

.nav-toggle {
  display: none;
}

.nav-button {
  display: none;
  cursor: pointer;
  border: 3px solid var(--sun);
  background: #000;
  color: var(--sun);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 4px 4px 0 var(--panic);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 12px 13px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a:focus {
  outline: none;
  color: #000;
  background: var(--sun);
  border-color: #000;
}

.nav-menu .featured a {
  background: var(--panic);
  border: 2px solid #000;
  color: #fff;
  box-shadow: 4px 4px 0 var(--sun);
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 6px solid #000;
}

.hero.compact {
  min-height: 52vh;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 44%, rgba(0,0,0,.18) 100%),
    linear-gradient(0deg, rgba(0,0,0,.88) 0%, transparent 54%);
}

.hero-card {
  width: min(850px, calc(100% - 32px));
  margin: 0 auto 54px;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(0,0,0,.82);
  border: 4px solid var(--sun);
  box-shadow: var(--hard-shadow), var(--shadow);
  transform: rotate(-1deg);
}

.eyebrow {
  display: inline-block;
  color: #000;
  background: var(--sun);
  border: 3px solid #000;
  padding: 7px 12px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 4px 4px 0 var(--panic);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: .94;
  text-transform: uppercase;
  letter-spacing: .01em;
}

h1 {
  font-size: clamp(3rem, 10vw, 7.8rem);
  color: #fff;
  text-shadow:
    5px 5px 0 #000,
    8px 8px 0 var(--panic);
}

h1 .yellow,
h2 .yellow,
h3 .yellow {
  color: var(--sun);
}

h1 .red,
h2 .red,
h3 .red {
  color: var(--panic);
}

.hero-card p {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #fff;
  margin: 0 0 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 18px;
  color: #000;
  background: var(--sun);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 var(--panic);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover,
.btn:focus {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--panic);
  outline: none;
}

.btn.dark {
  color: #fff;
  background: #000;
  border-color: var(--sun);
  box-shadow: 5px 5px 0 var(--sun);
}

.btn.red {
  color: #fff;
  background: var(--panic);
  box-shadow: 5px 5px 0 var(--sun);
}

/* Sections */

section,
.section {
  padding: clamp(46px, 7vw, 92px) 0;
}

.section-tight {
  padding: clamp(32px, 5vw, 58px) 0;
}

.section-title {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-title.center {
  text-align: center;
  justify-items: center;
}

.section-title h2 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  color: #fff;
  text-shadow: 4px 4px 0 #000, 7px 7px 0 var(--panic);
}

.section-title p {
  max-width: 820px;
  margin: 0;
  color: #f1f1f1;
}

.shout {
  display: inline-block;
  padding: 10px 14px;
  background: var(--panic);
  color: #fff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 var(--sun);
  text-transform: uppercase;
  transform: rotate(-1deg);
}

/* Cards and grids */

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    #101010;
  border: 4px solid #000;
  box-shadow: var(--hard-shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.card.yellow {
  background: linear-gradient(180deg, #fff3a5, #ffd21a);
  color: #000;
}

.card.red {
  background: linear-gradient(180deg, #ff4a3d, #b50808);
  color: #fff;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 4px solid #000;
}

.card-body {
  padding: 20px;
}

.card h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  color: var(--sun);
  text-shadow: 2px 2px 0 #000;
}

.card.yellow h3 {
  color: #000;
  text-shadow: none;
}

.card p {
  margin: 0 0 18px;
  color: inherit;
}

.card .mini {
  font-size: .92rem;
  color: var(--muted);
}

.card.yellow .mini {
  color: #222;
}

.feature-card {
  position: relative;
}

.feature-card::before {
  content: "!";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panic);
  color: #fff;
  border: 3px solid #000;
  font-size: 1.5rem;
  z-index: 2;
}

/* Bonus episode lead */

.bonus-lead {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,210,26,.28), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(227,38,33,.24), transparent 28%),
    #090909;
  border-top: 6px solid var(--sun);
  border-bottom: 6px solid var(--sun);
}

.bonus-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  background: rgba(0,0,0,.62);
  border: 5px solid #000;
  box-shadow: 12px 12px 0 var(--panic);
  padding: clamp(18px, 4vw, 34px);
  border-radius: 28px;
}

.bonus-panel img {
  border: 5px solid #000;
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--sun);
}

.bonus-panel h2 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.bonus-panel p {
  color: #fff;
}

/* Episode list */

.episode-list {
  counter-reset: episode;
}

.episode {
  counter-increment: episode;
  display: grid;
  grid-template-columns: 145px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #111;
  border: 3px solid var(--line);
  border-left: 9px solid var(--sun);
  margin-bottom: 14px;
  box-shadow: 6px 6px 0 #000;
}

.episode::before {
  content: "EP " counter(episode);
  color: #000;
  background: var(--sun);
  border: 3px solid #000;
  padding: 12px 8px;
  text-align: center;
  font-size: 1.55rem;
  box-shadow: 4px 4px 0 var(--panic);
}

.episode h3 {
  margin-bottom: 6px;
}

.episode p {
  margin: 0;
  color: #ddd;
}

/* Character cards */

.character-card img {
  aspect-ratio: 4 / 5;
}

.character-card .role {
  display: inline-block;
  color: #000;
  background: var(--sun);
  padding: 6px 10px;
  margin-bottom: 12px;
  border: 2px solid #000;
}

.character-card.villain {
  border-color: var(--panic);
}

.character-card.heroic {
  border-color: var(--battery);
}

/* Article pages */

.article {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  background: rgba(0,0,0,.75);
  border: 4px solid var(--sun);
  box-shadow: var(--hard-shadow);
  padding: clamp(22px, 4vw, 44px);
  border-radius: 24px;
}

.article h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.article h2 {
  margin-top: 34px;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  color: var(--sun);
}

.article p,
.article li {
  color: #f2f2f2;
}

.article img {
  margin: 24px 0;
  border: 5px solid #000;
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--panic);
}

.callout {
  margin: 28px 0;
  padding: 22px;
  background: var(--paper);
  color: #000;
  border: 4px solid #000;
  box-shadow: 7px 7px 0 var(--sun);
  border-radius: 16px;
  transform: rotate(-.5deg);
}

.callout p {
  color: #000;
  font-weight: 700;
}

.callout.red {
  background: var(--panic);
  color: #fff;
  box-shadow: 7px 7px 0 var(--sun);
}

.callout.red p {
  color: #fff;
}

/* FAQ */

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: #111;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 var(--sun);
  border-radius: 16px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--sun);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.faq details[open] summary {
  background: var(--sun);
  color: #000;
}

.faq .answer {
  padding: 18px 20px;
  border-top: 3px solid #000;
}

.faq .answer p {
  margin-top: 0;
}

/* Contact / form styling */

.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.contact-info {
  background: var(--sun);
  color: #000;
  border: 5px solid #000;
  box-shadow: var(--hard-shadow);
  padding: 26px;
  border-radius: 22px;
}

.contact-info h2 {
  color: #000;
  text-shadow: none;
  font-size: clamp(2rem, 5vw, 4rem);
}

.contact-info p,
.contact-info li {
  color: #000;
  font-weight: 700;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: block;
  background: #000;
  color: #fff;
  border: 3px solid #000;
  padding: 14px;
  border-radius: 12px;
}

.contact-list a:hover,
.contact-list a:focus {
  background: var(--panic);
  outline: none;
}

.form-shell {
  background: #101010;
  border: 5px solid #000;
  box-shadow: var(--hard-shadow);
  padding: 24px;
  border-radius: 22px;
}

label {
  display: block;
  margin: 0 0 7px;
  color: var(--sun);
  text-transform: uppercase;
  letter-spacing: .04em;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 15px;
  border: 3px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font: 700 1rem Arial, Helvetica, sans-serif;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Utility strips */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 4px solid #000;
  box-shadow: var(--hard-shadow);
  overflow: hidden;
  border-radius: 18px;
}

.stat {
  padding: 20px;
  background: var(--sun);
  color: #000;
  border-right: 3px solid #000;
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  color: var(--panic);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: .9;
}

.stat span {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Footer */

.site-footer {
  border-top: 6px solid var(--sun);
  background: #050505;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 26px;
}

.footer-brand {
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
}

.footer-brand b {
  color: var(--sun);
}

.footer-grid h3 {
  color: var(--sun);
  font-size: 1.4rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: #ddd;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-grid a:hover,
.footer-grid a:focus {
  color: var(--sun);
  outline: none;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #bbb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .92rem;
}

.abc-footer {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.abc-footer img {
  width: 180px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

/* Accessibility helpers */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

:focus-visible {
  outline: 4px solid var(--electric);
  outline-offset: 4px;
}

/* Responsive */

@media (max-width: 980px) {
  .nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    background: #050505;
    border: 4px solid var(--sun);
    box-shadow: var(--hard-shadow);
    max-height: calc(100vh - 98px);
    overflow-y: auto;
  }

  .nav-menu a {
    border-radius: 10px;
    border-color: rgba(255,255,255,.18);
    background: #111;
    padding: 14px;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

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

  .bonus-panel,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .stat {
    border-bottom: 3px solid #000;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .logo {
    font-size: 1.35rem;
  }

  .logo .sun-mark {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .nav-menu {
    top: 68px;
  }

  .hero {
    min-height: 68vh;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.65) 62%, rgba(0,0,0,.22) 100%);
  }

  .hero-card {
    margin-bottom: 24px;
    transform: none;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.4rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .episode::before {
    width: max-content;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
  }

  .actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .card,
  .article,
  .contact-info,
  .form-shell,
  .bonus-panel {
    box-shadow: 5px 5px 0 #000;
  }
}

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