body.theme-anti-design {
  background: var(--bg);
}

.theme-anti-design .topbar {
  border-bottom: 4px solid var(--line);
  background: var(--card-strong);
  backdrop-filter: none;
}

.theme-anti-design .brand {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 800;
}

.theme-anti-design nav,
.theme-anti-design .kicker,
.theme-anti-design .section-index,
.theme-anti-design .generated-desc-meta,
.theme-anti-design .time-label {
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
}

.theme-anti-design .hero {
  padding-right: clamp(24px, 6vw, 72px);
  padding-left: clamp(24px, 6vw, 72px);
  border-right: 4px solid var(--line);
  border-bottom: 4px dashed var(--accent);
  border-left: 4px solid var(--line);
  background: var(--card);
}

.theme-anti-design h1,
.theme-anti-design h2,
.theme-anti-design h3 {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-weight: 800;
  letter-spacing: -.045em;
}

.theme-anti-design h1 {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--card-strong);
  text-decoration-thickness: .12em;
  text-underline-offset: .08em;
}

.theme-anti-design .hero-sub {
  color: var(--fg);
  font-family: var(--mono);
}

.theme-anti-design .section {
  border-top: 4px solid var(--line);
}

.theme-anti-design .section-head {
  grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr);
}

.theme-anti-design .section-index {
  align-self: start;
  padding: 10px 14px;
  border: 3px dashed var(--accent);
  border-radius: 999px;
  color: var(--fg);
  background: var(--card);
}

.theme-anti-design :is(.cards .card:nth-child(odd), .timeline-item:nth-child(odd), .principle:nth-child(odd), .hero-card) {
  outline: 4px solid var(--line);
  border-radius: 0;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 7px 7px 0 var(--accent);
}

.theme-anti-design :is(.cards .card:nth-child(odd), .timeline-item:nth-child(odd), .principle:nth-child(odd), .hero-card)
  :is(h3, p, li, .generated-description, .generated-desc-meta, .stack, .time-label, .stat-label, .stat-value, summary) {
  color: inherit;
}

.theme-anti-design :is(.cards .card:nth-child(odd), .timeline-item:nth-child(odd), .hero-card) :is(.tag, .skill-pill) {
  border-color: var(--bg);
  color: var(--bg);
  background: transparent;
}

.theme-anti-design :is(.cards .card:nth-child(even), .timeline-item:nth-child(even), .principle:nth-child(even)) {
  outline: 4px dashed var(--accent);
  border-radius: 28px;
  background: var(--card);
  box-shadow: none;
}

.theme-anti-design .card-title-row {
  border-bottom: 3px dotted currentColor;
  padding-bottom: 16px;
}

.theme-anti-design .tag,
.theme-anti-design .skill-pill {
  border-width: 3px;
  border-style: dashed;
  border-radius: 999px;
  background: var(--card-strong);
}

.theme-anti-design .contact-panel {
  border: 4px dashed var(--accent);
  border-radius: 34px;
  outline: 0;
  background: var(--card);
}

.theme-anti-design .reveal {
  border-radius: 0;
  outline: 4px solid var(--line);
  background: var(--card-strong);
  box-shadow: 10px 10px 0 var(--line);
}

.theme-anti-design .reveal::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px dashed color-mix(in srgb, var(--line), transparent 28%);
  pointer-events: none;
}

.theme-anti-design .reveal-stat,
.theme-anti-design .complete-project .intro-list p {
  border-width: 3px;
  border-radius: 0;
  background: var(--card);
}

.theme-anti-design .button.secondary {
  border-style: dashed;
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
}

.theme-anti-design .regenerating {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(116deg, transparent 0 47%, var(--fg) 47% 54%, transparent 54%),
    linear-gradient(90deg, var(--bg) 0 50%, var(--card-strong) 50% 100%);
  color: var(--fg);
}

.theme-anti-design .regenerating::before,
.theme-anti-design .regenerating::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 4px dashed var(--accent);
  border-radius: 50%;
}

.theme-anti-design .regenerating::before {
  top: -12%;
  left: -8%;
  width: clamp(150px, 34vw, 380px);
  aspect-ratio: 1;
  background: var(--card);
}

.theme-anti-design .regenerating::after {
  right: -10%;
  bottom: -18%;
  width: clamp(180px, 38vw, 420px);
  aspect-ratio: 1.4;
  border-style: solid;
  border-radius: 0;
  background: var(--accent);
  transform: rotate(9deg);
}

.theme-anti-design .regen-box {
  position: relative;
  width: min(620px, calc(100vw - 48px));
  max-width: 100%;
  padding: clamp(30px, 7vw, 56px) clamp(24px, 6vw, 50px);
  border: 4px solid var(--line);
  border-right-style: dashed;
  border-bottom-color: var(--accent);
  background: var(--card);
  box-shadow: 11px 11px 0 var(--fg), -8px -8px 0 var(--card-strong);
  font-weight: 800;
  text-transform: uppercase;
}

.theme-anti-design .regen-box::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px dashed color-mix(in srgb, var(--accent), transparent 18%);
  pointer-events: none;
}

.theme-anti-design .regen-line {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 10px 12px 10px 42px;
  border: 3px solid var(--line);
  background: var(--bg);
  opacity: 1;
  overflow-wrap: anywhere;
}

.theme-anti-design .regen-line:nth-child(even) {
  border-style: dashed;
  border-radius: 999px;
  background: var(--card-strong);
}

.theme-anti-design .regen-line + .regen-line { margin-top: 7px; }

.theme-anti-design .regen-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 18px;
  height: 18px;
  border: 3px dashed var(--accent);
  border-radius: 50%;
  background: var(--card);
  transform: translateY(-50%);
}

.theme-anti-design .regen-line.active {
  color: var(--bg);
  background: var(--fg);
}

.theme-anti-design .regen-line.active::before {
  border-style: solid;
  border-color: var(--bg);
  background: var(--accent);
}

@media (max-width: 720px) {
  .theme-anti-design .hero { padding-right: 24px; padding-left: 24px; }
  .theme-anti-design .section-head { grid-template-columns: 1fr; }
  .theme-anti-design .section-index { width: max-content; max-width: 100%; }
  .theme-anti-design :is(.cards .card:nth-child(odd), .timeline-item:nth-child(odd), .principle:nth-child(odd), .hero-card) { box-shadow: 5px 5px 0 var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-anti-design .button { transition: none; }
}
