/* =============================================================
   ringmast4r.com v2 DEMO — DM Sans + DM Mono editorial system
   Matches: WiFi Mothership / Net Works / CyberNewsFeed / patrickquirk
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;

  --bg:      #fafafa;
  --bg-alt:  #ffffff;
  --black:   #000;
  --text:    #1a1a1a;
  --dim:     #999;
  --faint:   #bbb;
  --muted:   #ccc;
  --rule:    #eee;

  --success: #2ecc71;
  --radius:  6px;

  --shadow:    0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.06);
}

/* Dark mode — semantic token flip per style guide §2.2 */
[data-theme="dark"] {
  --bg:      #0a0a0a;
  --bg-alt:  #111;
  --black:   #fff;       /* semantic: "maximum contrast" */
  --text:    #e0e0e0;
  --dim:     #666;
  --faint:   #444;
  --muted:   #333;
  --rule:    #1e1e1e;

  --shadow:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.5);
}
[data-theme="dark"] nav.site-nav { background: rgba(10, 10, 10, 0.95); }
[data-theme="dark"] .section-body p { color: #aaa; }
[data-theme="dark"] .section-body strong { color: var(--text); }
[data-theme="dark"] .hero p.lede { color: #aaa; }
[data-theme="dark"] .svc-name { color: #ddd; }
[data-theme="dark"] .svc-desc { color: #888; }
[data-theme="dark"] .film-year,
[data-theme="dark"] .film-rating { color: #888; }

/* Kill Bill — yellow tracksuit, black text, blood accents
   Source: style guide §"Kill Bill" — Bride Yellow #FFD700 */
[data-theme="killbill"] {
  --bg:      #FFD700;
  --bg-alt:  #E6C200;
  --black:   #000;
  --text:    #000;
  --dim:     #2d2d2d;
  --faint:   #555;
  --muted:   #8a7a00;
  --rule:    #CCAA00;
  --success: #DC0000;
  --shadow:    0 1px 3px rgba(0,0,0,0.25);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.30);
}
[data-theme="killbill"] nav.site-nav { background: rgba(255, 215, 0, 0.95); border-bottom: 2px solid #000; }
[data-theme="killbill"] .section-body p { color: #1a1a1a; }
[data-theme="killbill"] .section-body strong { color: #DC0000; font-weight: 700; }
[data-theme="killbill"] .hero p.lede { color: #1a1a1a; }
[data-theme="killbill"] .svc-name { color: #000; font-weight: 700; }
[data-theme="killbill"] .svc-desc { color: #2d2d2d; }
[data-theme="killbill"] .film-year,
[data-theme="killbill"] .film-rating { color: #2d2d2d; }

/* Dracula — bold crimson, off-white text, black borders
   Source: style guide §"Dracula/From Dusk Till Dawn" — Crimson #5C0000 */
[data-theme="dracula"] {
  --bg:      #5C0000;
  --bg-alt:  #4A0000;
  --black:   #F5E6E6;
  --text:    #F5E6E6;
  --dim:     #b88;
  --faint:   #855;
  --muted:   #633;
  --rule:    #1a0000;
  --success: #FFD700;
  --shadow:    0 1px 3px rgba(0,0,0,0.5);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.6);
}
[data-theme="dracula"] nav.site-nav { background: rgba(74, 0, 0, 0.95); border-bottom: 2px solid #000; }
[data-theme="dracula"] .section-body p { color: #e0c8c8; }
[data-theme="dracula"] .section-body strong { color: #FFD700; font-weight: 600; }
[data-theme="dracula"] .hero p.lede { color: #e0c8c8; }
[data-theme="dracula"] .svc-name { color: #FFF0F0; }
[data-theme="dracula"] .svc-desc { color: #b88; }
[data-theme="dracula"] .film-year,
[data-theme="dracula"] .film-rating { color: #b88; }

/* Reset ---------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Nav ------------------------------------------------------ */
nav.site-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  height: 60px;
  padding: 0 60px;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--black);
}
.nav-logo .sep { color: var(--faint); font-weight: 300; }

.nav-links {
  display: flex; gap: 18px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }

.nav-right {
  display: flex; align-items: center; gap: 20px;
}
.nav-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--faint);
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
}
.status-dot {
  width: 5px; height: 5px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 3s infinite;
}
@keyframes pulse {
  0%, 90%, 100% { opacity: 1; }
  95%           { opacity: 0.3; }
}

/* Hero ----------------------------------------------------- */
.hero {
  padding: 140px 60px 80px;
  max-width: 1100px;
}
.hero-label,
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}
.hero p.lede {
  font-size: 18px;
  font-weight: 300;
  color: #666;
  line-height: 1.7;
  max-width: 620px;
}

.divider {
  width: 40px; height: 3px;
  background: var(--black);
  margin: 0 60px;
}

/* Generic section ----------------------------------------- */
section {
  padding: 80px 60px;
  max-width: 1200px;
}
section.section-alt {
  background: var(--bg-alt);
  max-width: 100%;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
section.section-alt .inner {
  max-width: 1200px; margin: 0 auto;
}

/* Numbers strip ------------------------------------------- */
.numbers {
  padding: 60px;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.numbers-inner { max-width: 1200px; margin: 0 auto; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 48px;
  margin-top: 24px;
}
.num-item { }
.num-value {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1.1;
}
.num-label {
  font-size: 12px;
  color: var(--dim);
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.numbers-note {
  max-width: 760px;
  margin: 30px auto 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
  text-align: center;
}
.numbers-note span { color: var(--text); font-weight: 600; font-family: var(--mono); }

/* Section heading ----------------------------------------- */
.section-heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  max-width: 720px;
  line-height: 1.2;
}
.section-body p {
  font-size: 17px;
  font-weight: 300;
  color: #555;
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 18px;
}
.section-body strong { color: var(--text); font-weight: 500; }
.section-body a {
  color: var(--black);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.section-body a:hover { border-color: var(--black); }

/* svc-list / item-list pattern ----------------------------- */
.svc-list { max-width: 900px; }
.svc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.3s;
  gap: 24px;
}
.svc-list li:hover { padding-left: 12px; }

/* Whole-row click target for linked rows: anchor's ::after fills the parent .film-row */
.svc-list li.film-row { position: relative; cursor: pointer; }
.svc-list li.film-row a.svc-name { position: static; }
.svc-list li.film-row a.svc-name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.svc-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
.svc-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  min-width: 54px;
}
.svc-name {
  font-size: 17px;
  font-weight: 500;
  color: #222;
}
.svc-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--dim);
}
.svc-desc {
  font-size: 13px;
  color: #888;
  max-width: 420px;
  text-align: right;
  line-height: 1.5;
}

/* Community / shoutouts grid ------------------------------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
  max-width: 1000px;
}
.shoutout-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
/* Website preview thumbnail — full screenshot, bleeds to the card edges.
   height:auto is REQUIRED: the <img height="…"> attribute otherwise acts as a
   presentational height that makes the box too tall, so object-fit:cover
   center-crops the screenshot and eats the site's title. With height:auto the
   16:10 aspect-ratio drives the box and the whole site shows. */
.shoutout-thumb {
  display: block;
  width: calc(100% + 48px);
  height: auto;
  margin: -24px -24px 14px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--rule);
  background: #0a0a0a;
}
.shoutout-card:hover {
  border-color: var(--dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.shoutout-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
}
.shoutout-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.shoutout-name .arrow { color: var(--dim); font-weight: 400; transition: transform 0.2s; display: inline-block; }
.shoutout-card:hover .shoutout-name .arrow { transform: translateX(4px); }
.shoutout-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.55;
  flex: 1;
}
.shoutout-by {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dim);
  margin-top: 4px;
}
.shoutout-by a { color: var(--text); border-bottom: 1px solid var(--rule); padding-bottom: 1px; position: relative; z-index: 2; }
.shoutout-by a:hover { border-color: var(--black); }
/* whole-card click target (the title link's ::after fills the card) */
.shoutout-card > a.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.community-cta { margin-top: 32px; }

/* Featured interviews — video cards with click-to-play YouTube facade ------ */
.interview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
  margin-top: 28px;
  max-width: 1100px;
}
.interview-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.interview-card:hover {
  border-color: var(--dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.yt-embed .yt-poster {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s, opacity 0.2s;
}
.yt-embed:hover .yt-poster { transform: scale(1.03); opacity: 0.92; }
.yt-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.72);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  pointer-events: none;
}
.yt-embed:hover .yt-play { background: #cc0000; }
.yt-play::after {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}
.interview-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.interview-outlet {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--faint);
  display: flex; justify-content: space-between; gap: 12px;
}
.interview-title {
  font-size: 16px; font-weight: 600; color: var(--black);
  line-height: 1.3; letter-spacing: -0.2px;
}
.interview-title a { color: inherit; }
.interview-title a:hover { color: var(--dim); }
.interview-desc { font-size: 13px; color: #888; line-height: 1.55; }

/* Theme toggle (nav button) ------------------------------- */
.theme-toggle {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: 1px solid var(--rule);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover {
  color: var(--black);
  border-color: var(--dim);
}
.theme-toggle .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--black);
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid var(--dim);
}
[data-theme="dark"] .theme-toggle .dot {
  background: var(--bg);
}

/* Mono link ------------------------------------------------ */
.mono-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: all 0.2s;
  display: inline-block;
}
.mono-link:hover { color: var(--dim); border-color: var(--dim); }

/* Footer --------------------------------------------------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 60px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--faint);
}
.footer-inner a { color: var(--faint); transition: color 0.2s; }
.footer-inner a:hover { color: var(--black); }

/* Hamburger button (mobile only) -------------------------- */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px 4px;
  background: none;
  border: 0;
  z-index: 200;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.2s;
}
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Separate mobile drawer element (sibling of <nav>) — own flex column,
   no race with desktop nav-links flex row, sidesteps Safari column bug.
   Opens BELOW the 60px nav so the hamburger/X stays visible to close it. */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  padding: 8px 0 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--rule);
}
.mobile-menu.active { display: flex; }
/* JS-injected explicit close row at the top of the drawer */
.mobile-menu .menu-close {
  align-self: flex-end;
  margin: 4px 20px 4px 0;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.mobile-menu .menu-close:hover { color: var(--black); border-color: var(--dim); }
.mobile-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 18px 28px;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--black); background: var(--bg-alt); }

/* Collapse nav to hamburger early — 11 nav items need the room.
   (Content layout still reflows at 900px below.) */
@media (max-width: 1100px) {
  .nav-burger { display: flex; }
  .nav-links { display: none !important; }
}

/* Small screens ------------------------------------------- */
@media (max-width: 900px) {
  nav.site-nav { padding: 0 16px; height: 60px; gap: 8px; }
  .nav-burger { display: flex; }
  .nav-links { display: none !important; }
  /* the "LOCKED TO STREAMING" tag is decorative; drop it so the logo, theme
     toggle and burger never crowd on a phone */
  .nav-status { display: none; }
  .nav-logo { letter-spacing: 2px; font-size: 13px; white-space: nowrap; }

  .hero { padding: 72px 20px 36px; max-width: 100%; }
  .hero h1 { letter-spacing: -1px; }
  .hero p.lede { font-size: 16px; max-width: 100%; }
  section { padding: 40px 20px; max-width: 100%; }
  section.section-alt .inner { max-width: 100%; }
  .divider { margin: 0 20px; }

  /* Numbers: two even columns that shrink to fit (no blowout from long mono values) */
  .numbers { padding: 36px 20px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .num-value { font-size: clamp(19px, 6.4vw, 28px); letter-spacing: -0.5px; }
  .num-label { font-size: 11px; }

  /* Cards: single column, full width */
  .community-grid { grid-template-columns: 1fr; max-width: 100%; }
  .interview-grid { grid-template-columns: 1fr; max-width: 100%; }

  .section-heading { font-size: 23px; }

  .svc-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .svc-desc { text-align: left; max-width: 100%; }
  footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Phones (portrait) — tighten type, padding and tap targets */
@media (max-width: 560px) {
  .hero { padding: 60px 18px 30px; }
  .hero-label, .section-label { letter-spacing: 4px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(27px, 8.2vw, 40px); letter-spacing: -0.5px; line-height: 1.08; }
  .hero p.lede { font-size: 15px; line-height: 1.6; }

  section { padding: 36px 18px; }
  .section-heading { font-size: 21px; margin-bottom: 20px; }
  .section-body p { font-size: 15px; line-height: 1.65; }

  .numbers { padding: 30px 18px; }
  .numbers-grid { gap: 22px 14px; }
  .numbers-note { font-size: 12.5px; text-align: left; }

  .divider { margin: 0 18px; }

  /* comfortable tap targets in the nav */
  .theme-toggle { padding: 8px 11px; }
  .nav-burger { padding: 8px 6px; }
}

/* Extra-narrow phones */
@media (max-width: 380px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .theme-toggle .label { display: none; }
  .theme-toggle .dot { margin-right: 0; }
  .nav-logo { font-size: 12px; letter-spacing: 1.5px; }
}

/* Demo watermark ------------------------------------------ */
.demo-watermark {
  position: fixed;
  bottom: 16px; right: 16px;
  background: var(--black);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
