/* ============================================================
   rockpaperdev.com — shared stylesheet
   Dark, IDE-inspired theme (inspired by VS Code Dark+)
   ============================================================ */

@font-face {
    font-family: 'Switzer Medium';
    font-style: normal;
    font-weight: normal;
    src: local('Switzer Medium'), url('fonts/Switzer-Medium.woff') format('woff');
}

:root {
  /* palette */
  --bg-deep:    #0d1014;
  --bg:         #12151a;
  --surface:    #171b21;
  --surface-2:  #1d222b;
  --surface-3:  #232935;
  --border:     #2a313c;
  --border-hi:  #3b4453;

  --text:       #d7dde6;
  --text-soft:  #a8b2c0;
  --muted:      #7d8899;
  --faint:      #5a6472;

  --accent:     #58a6ff;   /* rock  (blue)   */
  --paper:      #7ee787;   /* paper (green)  */
  --scissors:   #ffa657;   /* scissors(orange) */
  --keyword:    #c586c0;
  --type:       #4ec9b0;
  --string:     #ce9178;
  --comment:    #6a9955;

  --radius:     10px;
  --radius-sm:  6px;
  --max-w:      1060px;
  --header-h:   60px;

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Switzer Medium", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

/* ---------- reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--font-mono); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-label::before { content: "// "; color: var(--faint); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 650; font-family: var(--font-display); letter-spacing: -0.015em; }

h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; }

.section-intro { color: var(--text-soft); max-width: 640px; margin: 0 0 36px; }

::selection { background: rgba(88, 166, 255, 0.3); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 16, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .accent { color: var(--accent); }
.brand .tld { color: var(--faint); font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.site-nav a { color: var(--text-soft); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--text); }
.site-nav a.active::before { content: "▸ "; color: var(--accent); }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hi);
  background: var(--surface-2);
  color: var(--text) !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--surface-3); border-color: var(--accent); text-decoration: none !important; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1017 !important;
}
.btn-primary:hover { background: #79b8ff; border-color: #79b8ff; }

.btn-ghost { background: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(900px 420px at 75% -10%, rgba(88, 166, 255, 0.10), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(126, 231, 135, 0.06), transparent 60%),
    var(--bg-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-kicker .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 8px rgba(126, 231, 135, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--accent); }

.hero-sub {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.hero-meta span::before { content: "·  "; color: var(--border-hi); }
.hero-meta span:first-child::before { content: none; }

/* ---------- code window (hero card) ---------- */

.code-window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  font-size: 13px;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.code-titlebar .tl { width: 11px; height: 11px; border-radius: 50%; background: #3a414d; }
.code-titlebar .tl.r { background: rgba(255,95,86,0.75); }
.code-titlebar .tl.y { background: rgba(255,189,46,0.75); }
.code-titlebar .tl.g { background: rgba(39,201,63,0.75); }
.code-titlebar .file {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.code-body {
  padding: 18px 18px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  line-height: 1.75;
  tab-size: 4;
}
.code-body pre { margin: 0; }
.code-body .line { display: block; white-space: pre; }
.code-body .ln {
  display: inline-block;
  width: 2ch;
  margin-right: 18px;
  color: var(--faint);
  text-align: right;
  user-select: none;
}

.tk-c { color: var(--comment); font-style: italic; }  /* comment */
.tk-k { color: var(--keyword); }                       /* keyword */
.tk-t { color: var(--type); }                          /* type    */
.tk-s { color: var(--string); }                        /* string  */
.tk-p { color: var(--text-soft); }                     /* plain   */
.tk-f { color: var(--accent); }                        /* func    */
.tk-n { color: var(--scissors); }                      /* number  */

/* ---------- about strip ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-2px); }

.card .card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 8px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* ---------- episodes ---------- */

#episodes { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: ep;
}

.episode {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.episode:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
  text-decoration: none;
}

.episode .ep-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.episode .ep-num::before { counter-increment: ep; content: counter(ep, decimal-leading-zero); color: var(--accent); }

.ep-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  color: var(--scissors);
}

.ep-status.living {
  color: var(--paper);
}

.episode h3 { font-size: 15.5px; margin-bottom: 6px; color: var(--text); }
.episode p { margin: 0; font-size: 13.5px; color: var(--muted); }

.episodes-foot {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.episodes-foot a { color: var(--paper); }

/* ---------- dev tools teaser ---------- */

.tools-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.tools-teaser p { color: var(--text-soft); margin: 0 0 22px; }

.tool-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0 8px 8px 0;
}
.tool-chip.living { border-color: rgba(126, 231, 135, 0.4); color: var(--paper); }
.tool-chip.living::before { content: "● "; font-size: 9px; vertical-align: 1px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 44px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

.footer-grid p { color: var(--muted); font-size: 14px; margin: 0; max-width: 340px; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-soft); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-links .soon { color: var(--faint); font-family: var(--font-mono); font-size: 11px; margin-left: 6px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---------- dev tools page ---------- */

.page-head {
  padding: 72px 0 8px;
}
.page-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
}
.page-head h1::before { content: "~/"; color: var(--faint); }
.page-head p { color: var(--text-soft); max-width: 620px; margin: 0; }

.rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.rule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.rule::before { content: "✓"; color: var(--paper); font-size: 11px; }

/* tool panel */

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tool-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.tool-titlebar h3 { margin: 0; font-size: 16px; }
.tool-titlebar h3 .mono { color: var(--faint); font-size: 12px; margin-left: 10px; }
.tool-desc { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

.tool-actions { display: flex; gap: 10px; }

.tool-pane {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
}
.tool-pane > * { padding: 20px; }

.tool-input-pane { border-right: 1px solid var(--border); }

.tool-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

textarea.tool-input {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
textarea.tool-input:focus { outline: none; border-color: var(--accent); }

.tool-output-pane { background: var(--surface-2); }

.tool-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 12px;
}
.tool-status.ok { color: var(--paper); }
.tool-status.err { color: #ff7b72; }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.kv li:last-child { border-bottom: none; }
.kv .k { color: var(--type); }
.kv .v { color: var(--text); word-break: break-all; }
.kv .v.secret { color: var(--scissors); }
.kv .v.empty { color: var(--faint); font-style: italic; }

.kv .reveal-btn {
  background: none;
  border: 1px solid var(--border-hi);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  cursor: pointer;
}
.kv .reveal-btn:hover { color: var(--text); border-color: var(--accent); }

/* coming soon grid */

.soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.soon-card {
  position: relative;
  background: var(--surface);
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius);
  padding: 20px;
}
.soon-card .card-tag { color: var(--scissors); }
.soon-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.soon-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.soon-card .soon-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--scissors);
  border: 1px solid rgba(255,166,87,0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- newsletter (beehiiv embed) ---------- */

.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-newsletter .nl-copy h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}
.footer-newsletter .nl-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 400px;
}
.newsletter-fine {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

/* beehiiv renders the form in an iframe at the script tag's slot —
   give the slot a real width so the iframe (and its input) don't
   collapse to content width */
.footer-newsletter .nl-form {
  flex: 1 1 340px;
  min-width: 300px;
  max-width: 540px;
}
#beehiiv-form iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* if a future beehiiv embed renders inline (no iframe), theme it */
.footer-newsletter input[type="email"],
.footer-newsletter input[type="text"],
.footer-newsletter input[type="email"],
.footer-newsletter input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-width: 240px;
}
.footer-newsletter input:focus { outline: none; border-color: var(--accent); }
.footer-newsletter input::placeholder { color: var(--faint); }
.footer-newsletter button {
  background: var(--paper);
  border: 1px solid var(--paper);
  color: #0b1017;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.footer-newsletter button:hover { background: #a5f0ab; }

/* ---------- regex tester ---------- */

input.tool-input {
  width: 100%;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}
input.tool-input:focus { outline: none; border-color: var(--accent); }

.tool-label.mt { margin-top: 16px; }

.flag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }

.flag-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.flag-chip .flag-name { font-size: 10px; color: var(--faint); margin-left: 5px; }
.flag-chip:hover { border-color: var(--border-hi); color: var(--text-soft); }
.flag-chip.on { border-color: var(--accent); color: var(--text); background: rgba(88, 166, 255, 0.08); }

.rx-preview {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-soft);
  margin: 0 0 14px;
}
.rx-preview .rx-hl {
  background: rgba(255, 166, 87, 0.22);
  color: var(--scissors);
  border-radius: 3px;
  padding: 0 1px;
}
.rx-preview .rx-empty { color: var(--faint); font-style: italic; }

.rx-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}

/* ---------- json checker ---------- */

.json-output {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-soft);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.json-output .json-empty { color: var(--faint); font-style: italic; }
.json-output .json-err { color: #ff7b72; }

.json-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.json-stats .stat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.json-stats .stat b { color: var(--paper); font-weight: 600; }

/* ---------- reveal on scroll ---------- */

.fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .hero-kicker .dot { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero-inner, .tools-teaser-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 72px 0 64px; }
  .hero-code { max-width: 640px; }
  .about-grid, .episodes-grid, .soon-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 14px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 24px; }
  .site-nav a.active::before { content: "▸ "; }
  .site-nav .btn { margin: 10px 24px 0; text-align: center; }
  .tool-pane { grid-template-columns: 1fr; }
  .tool-input-pane { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-newsletter { flex-direction: column; align-items: stretch; }
  .footer-newsletter .nl-form { max-width: none; }
  .footer-newsletter input[type="email"],
  .footer-newsletter input[type="text"] { min-width: 0; width: 100%; }
  .kv li { grid-template-columns: 120px 1fr auto; }
}

@media (max-width: 560px) {
  section { padding: 56px 0; }
  .about-grid, .episodes-grid, .soon-grid, .footer-grid { grid-template-columns: 1fr; }
}
