:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: rgba(6, 24, 34, 0.78);
  --panel-strong: rgba(2, 12, 18, 0.88);
  --line: rgba(0, 240, 255, 0.2);
  --text: #f8fdff;
  --muted: rgba(220, 248, 255, 0.72);
  --soft: rgba(220, 248, 255, 0.44);
  --cyan: #00efff;
  --magenta: #ff00de;
  --blue: #173e9c;
  --shadow: 0 24px 80px rgba(0, 238, 255, 0.12), 0 30px 100px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 24% 8%, rgba(0, 239, 255, 0.24), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(255, 0, 222, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(2, 16, 24, 0.18), rgba(0, 0, 0, 0.78)),
    url("https://ronpenones.com/01.jpg") center / cover fixed;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 239, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 239, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 68%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 239, 255, 0.5);
  border-radius: 4px;
  background: rgba(0, 239, 255, 0.1);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 239, 255, 0.2);
  font-weight: 700;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small,
.eyebrow,
.site-nav a,
.entry-meta,
.panel-heading,
.site-footer {
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-size: 13px;
  letter-spacing: 1.4px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  min-height: 100svh;
  padding: 132px clamp(18px, 5vw, 72px) 52px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(3, 29, 43, 0.24) 48%, rgba(0, 0, 0, 0.7)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 239, 255, 0.02) 42%, rgba(0, 0, 0, 0.48));
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 4px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.primary-link {
  background: var(--cyan);
  color: #001116;
  box-shadow: 0 0 20px rgba(0, 239, 255, 0.35);
}

.secondary-link {
  border: 1px solid rgba(255, 0, 222, 0.8);
  background: rgba(3, 13, 19, 0.84);
  box-shadow: 0 7px 0 rgba(255, 0, 222, 0.92), inset 0 0 24px rgba(0, 239, 255, 0.04);
}

.latest-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(0, 239, 255, 0.22);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.panel-heading p {
  margin: 0;
}

.panel-heading span {
  color: var(--cyan);
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-list li + li {
  border-top: 1px solid var(--line);
}

.latest-list a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px;
  border: 2px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.latest-list a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: inset 0 -5px 0 rgba(0, 239, 255, 0.9);
}

.latest-list span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.latest-list strong {
  display: block;
  line-height: 1.2;
}

.latest-list small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), #05090b 30%),
    var(--bg);
}

.archive-strip {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.98;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.entry-card {
  min-height: 310px;
  border: 1px solid rgba(0, 239, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(0, 239, 255, 0.13), rgba(255, 0, 222, 0.05)),
    var(--panel-strong);
  overflow: hidden;
}

.entry-card a,
.empty-card > div {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.entry-card.featured {
  background:
    linear-gradient(145deg, rgba(0, 239, 255, 0.22), rgba(255, 0, 222, 0.18)),
    var(--panel-strong);
  box-shadow: inset 0 -6px 0 rgba(255, 0, 222, 0.95), var(--shadow);
}

.entry-meta {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.entry-card h3 {
  max-width: 460px;
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.entry-card p:not(.entry-meta) {
  color: var(--muted);
  line-height: 1.55;
}

.entry-card span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.empty-list-item {
  padding: 18px;
}

.empty-list-item p {
  margin-bottom: 6px;
  font-weight: 700;
}

.empty-list-item small {
  color: var(--muted);
}

.empty-card {
  grid-column: 1 / -1;
}

.blog-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.blog-modal[hidden] {
  display: none;
}

.blog-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 18%, rgba(0, 239, 255, 0.16), transparent 32%),
    radial-gradient(circle at 78% 72%, rgba(255, 0, 222, 0.14), transparent 28%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.blog-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(82vh, 980px);
  overflow: auto;
  border: 1px solid rgba(0, 239, 255, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(0, 239, 255, 0.12), rgba(255, 0, 222, 0.06)),
    rgba(2, 12, 18, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 0, 222, 0.16),
    0 36px 120px rgba(0, 0, 0, 0.72),
    inset 0 -7px 0 rgba(255, 0, 222, 0.76);
  padding: clamp(24px, 5vw, 54px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-header {
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.blog-header h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
}

.blog-header > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.blog-content {
  color: rgba(248, 253, 255, 0.9);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.05;
}

.blog-content h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.blog-content h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.blog-content p,
.blog-content ul {
  margin-bottom: 22px;
}

.blog-content ul {
  padding-left: 22px;
}

.blog-content li + li {
  margin-top: 8px;
}

.blog-content a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 239, 255, 0.45);
}

.blog-content code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 239, 255, 0.08);
  padding: 2px 5px;
  color: var(--text);
  font-size: 0.9em;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.split-section > p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.projects-section {
  border-top: 1px solid var(--line);
}

.project-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.project-brief p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.site-footer {
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 72px) 26px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 18, 24, 0.96), #050505 48%),
    #050505;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.footer-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.footer-brand-block h2 {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
}

.footer-brand-block p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-links h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.channel-link img {
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 239, 255, 0.48);
  border-radius: 50%;
  background: rgba(0, 239, 255, 0.08);
  object-fit: cover;
  padding: 2px;
  box-shadow: 0 0 14px rgba(0, 239, 255, 0.16);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid rgba(0, 239, 255, 0.14);
  padding-top: 22px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-bottom span {
  margin: 0;
}

.site-footer a:hover {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .site-header {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #02090d;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.58), 0 0 24px rgba(0, 239, 255, 0.12);
    overflow: hidden;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px;
  }

  .site-nav a + a {
    border-top: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 118px;
  }

  .latest-panel {
    align-self: auto;
  }

  .entry-grid,
  .split-section,
  .project-brief,
  .footer-board,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-links {
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(44px, 16vw, 66px);
  }

  .hero {
    padding-bottom: 32px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    justify-content: center;
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .entry-card,
  .entry-card a {
    min-height: 260px;
  }
}
