body.theme-post-internet-art {
  background: var(--bg);
}

body.theme-post-internet-art.layout-single .site {
  max-width: var(--style-site-width);
}

.theme-post-internet-art ::selection {
  background: color-mix(in srgb, var(--accent), white 78%);
  color: var(--fg);
}

/* A conventional product-style header: a full-width horizontal banner. */
.theme-post-internet-art .topbar {
  top: 0;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: color-mix(in srgb, var(--card), transparent 4%);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.theme-post-internet-art .topbar-inner {
  width: min(var(--style-site-width), calc(100vw - 32px));
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 0;
}

.theme-post-internet-art .brand {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -.025em;
}

.theme-post-internet-art nav {
  gap: 4px;
  color: var(--muted);
}

.theme-post-internet-art nav a {
  margin: 0;
  padding: 7px 10px;
  border-radius: 9px;
}

.theme-post-internet-art nav a.current {
  background: var(--card-strong);
  color: var(--fg);
  text-decoration: none;
}

.theme-post-internet-art .topbar .language-switch {
  min-width: 42px;
  justify-content: center;
  border-radius: 10px;
}

.theme-post-internet-art :is(a, button, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), white 28%);
  outline-offset: 3px;
}

.theme-post-internet-art .hero {
  min-height: auto;
  padding-top: clamp(44px, 7vw, 76px);
}

.theme-post-internet-art .hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .55fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 6vw, 72px);
  border-radius: 36px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  background: var(--card);
  box-shadow: var(--style-panel-shadow);
}

.theme-post-internet-art .hero-grid > div:only-child {
  grid-column: 1 / -1;
  max-width: 880px;
}

.theme-post-internet-art .kicker {
  width: fit-content;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}

.theme-post-internet-art h1 {
  max-width: 820px;
  font-weight: 720;
  line-height: .98;
}

.theme-post-internet-art .hero-sub {
  max-width: 680px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
}

.theme-post-internet-art .hero-actions {
  gap: 10px;
  margin-top: 32px;
}

.theme-post-internet-art .button {
  min-height: 44px;
  justify-content: center;
  border-radius: 12px;
  font-weight: 680;
}

.theme-post-internet-art .button:hover {
  box-shadow: 0 6px 18px rgba(23, 33, 31, .1);
  text-decoration: none;
}

.theme-post-internet-art .hero-card {
  padding: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.theme-post-internet-art .stat-grid {
  gap: 10px;
}

.theme-post-internet-art .stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-strong);
}

.theme-post-internet-art .stat:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.theme-post-internet-art .stat-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.theme-post-internet-art .stat-value {
  font-size: 16px;
  font-weight: 680;
  line-height: 1.35;
}

.theme-post-internet-art main {
  padding-top: 0;
}

.theme-post-internet-art .section {
  border-top: 0;
}

.theme-post-internet-art .section-head {
  display: block;
  width: min(780px, 100%);
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}

.theme-post-internet-art .section-index {
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
}

.theme-post-internet-art h2 {
  margin-inline: auto;
  font-weight: 700;
  line-height: 1.02;
}

.theme-post-internet-art .section-lead {
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.theme-post-internet-art .cards {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.theme-post-internet-art .card {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--style-card-shadow);
}

.theme-post-internet-art .cards .card.third {
  grid-column: span 4;
}

.theme-post-internet-art .card-title-row {
  margin-bottom: 20px;
  align-items: flex-start;
}

.theme-post-internet-art h3 {
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.18;
}

.theme-post-internet-art .stack {
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 620;
}

.theme-post-internet-art .tag {
  padding: 7px 9px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--card-strong);
  color: var(--muted);
}

.theme-post-internet-art .generated-desc-meta {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

.theme-post-internet-art .generated-description {
  line-height: 1.7;
}

.theme-post-internet-art .card a,
.theme-post-internet-art .contact-panel a:not(.button) {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 56%);
  text-underline-offset: 4px;
}

/* Project cards read as compact case-study rows instead of a wall of tiles. */
.theme-post-internet-art #work .project-card {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  column-gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.theme-post-internet-art #work .project-card .card-title-row {
  grid-row: 1 / span 3;
  margin-bottom: 0;
}

.theme-post-internet-art #work .project-card > :not(.card-title-row) {
  grid-column: 2;
}

.theme-post-internet-art #work .project-card .generated-desc-meta {
  margin-top: 2px;
}

.theme-post-internet-art #work .project-card .generated-description {
  margin-bottom: 0;
}

.theme-post-internet-art .timeline-item {
  grid-template-columns: minmax(150px, .3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--style-card-shadow);
}

.theme-post-internet-art .time-label {
  padding-top: 4px;
  color: var(--accent);
  font-weight: 700;
}

.theme-post-internet-art .principles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-post-internet-art .principle {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--style-card-shadow);
}

.theme-post-internet-art .principle p {
  margin: 0 !important;
  font-size: 18px;
  line-height: 1.55;
}

.theme-post-internet-art .skill-cloud {
  gap: 8px;
}

.theme-post-internet-art .skill-pill {
  padding: 8px 11px;
  border-color: transparent;
  border-radius: 10px;
  background: var(--card-strong);
  color: var(--fg);
  font-size: 13px;
}

.theme-post-internet-art .contact-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  outline-color: transparent;
  background: var(--fg);
  color: var(--card);
  box-shadow: var(--style-panel-shadow);
}

.theme-post-internet-art .contact-panel h2 {
  margin-inline: 0;
  color: var(--card);
}

.theme-post-internet-art .contact-panel .section-lead {
  margin-left: 0;
  color: color-mix(in srgb, var(--card), transparent 28%);
}

.theme-post-internet-art .contact-links {
  flex-wrap: nowrap;
  gap: 10px;
}

.theme-post-internet-art .contact-panel .button {
  border-color: var(--card);
  background: var(--card);
  color: var(--fg);
}

.theme-post-internet-art .contact-panel .button.secondary {
  border-color: color-mix(in srgb, var(--card), transparent 62%);
  background: transparent;
  color: var(--card);
}

.theme-post-internet-art .reveal {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 16px clamp(32px, 6vw, 72px);
  margin-top: 56px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background: var(--card-strong);
  box-shadow: none;
}

.theme-post-internet-art .reveal .kicker,
.theme-post-internet-art .reveal h2,
.theme-post-internet-art .reveal > p,
.theme-post-internet-art .reveal-actions {
  grid-column: 1;
}

.theme-post-internet-art .reveal h2 {
  margin-inline: 0;
}

.theme-post-internet-art .reveal > p {
  margin-top: 0 !important;
  color: var(--muted);
  line-height: 1.65;
}

.theme-post-internet-art .reveal-grid {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
  max-width: none;
  margin-top: 0;
}

.theme-post-internet-art .reveal-stat {
  border-color: var(--line);
  border-radius: 18px;
  background: var(--card);
}

.theme-post-internet-art .reveal-actions {
  gap: 10px;
  margin-top: 12px;
}

.theme-post-internet-art .reveal .button.surrender {
  border-color: var(--line);
  background: var(--card);
  color: var(--fg);
}

.theme-post-internet-art .complete-version {
  border-top-color: var(--line);
}

.theme-post-internet-art .complete-version .complete-head {
  width: min(780px, 100%);
  margin-inline: auto;
  text-align: center;
}

.theme-post-internet-art .complete-version .section-index,
.theme-post-internet-art .complete-version .section-lead {
  margin-inline: auto;
}

.theme-post-internet-art .complete-project .intro-list p {
  border-color: var(--line);
  border-radius: 14px;
  background: var(--card-strong);
}

.theme-post-internet-art .tiny-footer {
  align-items: center;
  justify-content: center;
  column-gap: 24px;
  row-gap: 8px;
  text-align: center;
}

@media (max-width: 960px) {
  .theme-post-internet-art .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-post-internet-art .hero-card {
    width: 100%;
  }

  .theme-post-internet-art .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-post-internet-art #work .project-card {
    grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr);
    column-gap: 32px;
  }

  .theme-post-internet-art .cards .card.third {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .theme-post-internet-art .topbar {
    top: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .theme-post-internet-art .topbar-inner {
    width: calc(100vw - 24px);
  }

  .theme-post-internet-art .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .theme-post-internet-art .topbar .language-switch {
    grid-column: 2;
  }

  .theme-post-internet-art .hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .theme-post-internet-art .hero-grid {
    gap: 32px;
    padding: 26px;
    border-radius: 24px;
  }

  .theme-post-internet-art h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .theme-post-internet-art .hero-sub {
    margin-top: 22px;
    font-size: 18px;
  }

  .theme-post-internet-art .stat-grid,
  .theme-post-internet-art .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-post-internet-art .stat-grid {
    gap: 8px;
  }

  .theme-post-internet-art .stat {
    padding: 14px;
  }

  .theme-post-internet-art #work .project-card {
    display: block;
  }

  .theme-post-internet-art #work .project-card .card-title-row {
    margin-bottom: 20px;
  }

  .theme-post-internet-art #work .project-card > :not(.card-title-row) {
    grid-column: auto;
  }

  .theme-post-internet-art .timeline-item,
  .theme-post-internet-art .contact-panel,
  .theme-post-internet-art .reveal {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-post-internet-art .cards .card.third {
    grid-column: 1 / -1;
  }

  .theme-post-internet-art .contact-panel {
    gap: 28px;
    border-radius: 24px;
  }

  .theme-post-internet-art .contact-links {
    flex-wrap: wrap;
  }

  .theme-post-internet-art .reveal {
    gap: 16px;
    border-radius: 24px;
  }

  .theme-post-internet-art .reveal-grid {
    grid-column: 1;
    grid-row: auto;
    margin-top: 16px;
  }

  .theme-post-internet-art .reveal-actions {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .theme-post-internet-art .hero-grid,
  .theme-post-internet-art .card,
  .theme-post-internet-art .principle,
  .theme-post-internet-art .timeline-item,
  .theme-post-internet-art .contact-panel,
  .theme-post-internet-art .reveal {
    padding: 22px;
  }

  .theme-post-internet-art .hero-actions,
  .theme-post-internet-art .contact-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .theme-post-internet-art .contact-links .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-post-internet-art *,
  .theme-post-internet-art *::before,
  .theme-post-internet-art *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.theme-post-internet-art .regenerating {
  background: var(--bg);
  color: var(--fg);
}

.theme-post-internet-art .regen-box {
  padding-top: clamp(70px, 11vw, 84px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(23, 33, 31, .12);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

.theme-post-internet-art .regen-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46px;
  border-bottom: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 22px 23px, color-mix(in srgb, var(--accent), white 34%) 0 4px, transparent 5px),
    radial-gradient(circle at 38px 23px, color-mix(in srgb, var(--muted), white 58%) 0 4px, transparent 5px),
    radial-gradient(circle at 54px 23px, color-mix(in srgb, var(--line), var(--fg) 18%) 0 4px, transparent 5px),
    var(--card-strong);
}

.theme-post-internet-art .regen-line {
  margin-top: 7px;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-strong), transparent 24%);
}

.theme-post-internet-art .regen-line::before {
  inset-inline-start: 14px;
  top: 1.05em;
  border: 0;
  border-radius: 50%;
  background: var(--line);
}

.theme-post-internet-art .regen-line.active {
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
  background: color-mix(in srgb, var(--accent), white 89%);
}

.theme-post-internet-art .regen-line.active::before { background: var(--accent); }
