/* Neo-brutalist portfolio theme. This file owns Neo visuals only. */
:root {
  --ink: #111111;
  --muted: #3f4650;
  --paper: #fff6df;
  --line: #111111;
  --blue: #81d9ee;
  --blue-ink: #111111;
  --lilac: #c3a0ed;
  --orange: #f27a3b;
  --orange-ink: #111111;
  --cream: #f4d55d;
  --acid: #b8df51;
  --pink: #f25e7d;
}

html body { background: var(--paper); color: var(--ink); font-weight: 500; }
html a:focus-visible,
html button:focus-visible,
html input:focus-visible,
html select:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
html .site-header { margin-top: 1.5rem; padding: 1rem 1.1rem; border: 3px solid var(--ink); background: #ffffff; box-shadow: 6px 6px 0 var(--ink); }
html .wordmark { font-weight: 900; letter-spacing: -.04em; }
html .wordmark-mark { width: 2.25rem; height: 2.25rem; border-radius: 0; background: var(--ink); color: var(--cream); font-weight: 700; box-shadow: 3px 3px 0 var(--orange); }
html nav { gap: .5rem; color: var(--ink); }
html nav a { padding: .45rem .65rem; border: 2px solid transparent; font-weight: 800; }
html nav a:hover { border-color: var(--ink); background: var(--cream); color: var(--ink); }
html .header-meta { padding: .35rem .5rem; border: 2px solid var(--ink); background: var(--acid); color: var(--ink); font-weight: 700; }
html main { padding-top: 5rem; }
html .home-hero { position: relative; min-height: 480px; padding: 3rem; border: 4px solid var(--ink); background: var(--yellow, var(--cream)); box-shadow: 12px 12px 0 var(--ink); }
html .section-label { display: inline-block; margin-bottom: 1rem; padding: .25rem .45rem; background: var(--pink); color: var(--ink); font-weight: 700; letter-spacing: .06em; }
html h1,
html h2,
html h3 { font-family: var(--sans); font-weight: 900; letter-spacing: -.08em; }
html h1 { font-size: clamp(4rem, 10vw, 9rem); line-height: .82; }
html h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .88; }
html .hero-summary,
html .section-note,
html .text-columns,
html .contact-links,
html .project-summary,
html .project-section-heading p,
html .explain-card p { color: var(--ink); }
html .hero-summary { max-width: 36rem; font-size: 1.1rem; font-weight: 700; }
html .hero-facts { border-top: 3px solid var(--ink); }
html .hero-facts div { padding: 1rem 0; border-bottom: 3px solid var(--ink); }
html .hero-facts dt { color: var(--ink); font-weight: 900; }
html .hero-facts dd { font-weight: 800; }
html .projects-section { padding-top: 2rem; }
html .section-heading,
html .split-section,
html .contact-section { gap: 4rem; }
html .section-heading { padding-top: 1.25rem; border-top: 4px solid var(--ink); }
html .section-note { padding: 1rem; border: 3px solid var(--ink); background: #ffffff; box-shadow: 5px 5px 0 var(--ink); font-weight: 700; }
html .project-index { gap: 1.5rem; }
html .index-card { min-height: 330px; padding: 1.5rem; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transition: transform .16s ease, box-shadow .16s ease; }
html .index-card:hover { transform: translate(-5px, -5px); box-shadow: 13px 13px 0 var(--ink); }
html .index-card-blue { background: var(--blue); }
html .index-card-lilac { background: var(--lilac); }
html .index-card-orange { background: var(--orange); }
html .index-card-cream { background: var(--cream); }
html .index-card-neutral { background: var(--acid); }
html .card-index { top: 1.2rem; right: 1.2rem; padding: .3rem .45rem; border: 2px solid var(--ink); background: #ffffff; color: var(--ink); font-weight: 800; }
html .card-type { color: var(--ink); font-weight: 900; }
html .index-card h3 { font-size: clamp(2.2rem, 4vw, 4rem); }
html .index-card p { font-weight: 700; }
html .card-link { border-top: 3px solid var(--ink); font-weight: 900; }
html .split-section,
html .contact-section { border-top: 4px solid var(--ink); }
html .text-columns p { padding: 1rem; border: 3px solid var(--ink); background: #ffffff; box-shadow: 5px 5px 0 var(--ink); font-weight: 700; }
html .contact-links a { border: 3px solid var(--ink); margin-bottom: .65rem; padding: .8rem 1rem; background: var(--pink); box-shadow: 4px 4px 0 var(--ink); font-weight: 900; }
html .contact-links a:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
html .contact-links span { color: var(--ink); }
html .site-footer { padding: 1.25rem 0 2rem; border-top: 4px solid var(--ink); color: var(--ink); font-weight: 800; }
html .header-tools { display: flex; align-items: center; gap: 1rem; }
html .index-card h3 { font-family: var(--sans); }
html .projects-heading { grid-template-columns: 1fr; }
html .card-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: .85rem; border-top: 3px solid var(--ink); }
html .card-link { flex: 1; padding-top: 0; border-top: 0; }
html .card-git { padding: .4rem .55rem; border: 2px solid var(--ink); background: #ffffff; font: 700 .64rem/1 var(--mono); }
html .card-link:hover { text-decoration: underline; }
html .card-git:hover { background: var(--pink); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
html .index-card[role="link"] { cursor: pointer; }
html .index-card[role="link"]:focus-visible { outline: 4px solid var(--pink); outline-offset: 5px; }
html .contact-section { display: block; }
html .contact-section > div:first-child { margin-bottom: 2rem; }
html .contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
html .contact-links a { width: auto; min-height: 72px; margin: 0; }

@media (max-width: 760px) {
  html .contact-links { grid-template-columns: 1fr; }
}

/* Project pages and widgets stay in the Neo module, not shared styles. */
html .project-main { padding-top: 2.5rem; }
html .project-main.slice-demo-main { padding-top: .75rem; padding-bottom: .75rem; }
html .slice-demo-main .slice-demo-description { max-width: none; margin: 0 0 .75rem; font-size: .95rem; line-height: 1.35; font-weight: 700; }
html .slice-demo-main .widget-shell { margin-top: 0; }
html .project-nav { padding: .85rem 1rem; border: 3px solid var(--ink); background: var(--acid); color: var(--ink); font-weight: 800; box-shadow: 5px 5px 0 var(--ink); }
html .project-nav a:hover { color: var(--ink); text-decoration: underline; }
html .project-header { position: relative; margin-top: 3rem; padding: 3rem; border: 4px solid var(--ink); background: var(--blue); box-shadow: 12px 12px 0 var(--ink); }
html .project-header h1 { margin-bottom: 1.1rem; font-size: clamp(4rem, 9vw, 8rem); }
html .project-summary { font-weight: 700; }
html .project-facts { border-top: 3px solid var(--ink); }
html .project-facts div { padding: 1rem 0; border-bottom: 3px solid var(--ink); }
html .project-facts dt { color: var(--ink); font-weight: 900; }
html .project-facts dd { font-weight: 800; }
html .project-section { padding: 3rem 0 5rem; border-top: 4px solid var(--ink); }
html .project-section-heading { margin-bottom: 2rem; }
html .project-section-heading h2 { font-weight: 900; }
html .project-section-heading p { font-weight: 700; }
html .explain-grid { gap: 1rem; }
html .explain-card { min-height: 190px; padding: 1.1rem; border: 3px solid var(--ink); background: #ffffff; box-shadow: 6px 6px 0 var(--ink); }
html .explain-card .section-label { margin: -1.1rem -1.1rem 1.25rem; }
html .explain-card h3 { margin-bottom: .7rem; font-size: 1.55rem; letter-spacing: -.06em; }
html .explain-card p { font-weight: 600; }
html .flow-map { gap: .9rem; padding: .3rem 0 1rem; }
html .flow-node { min-height: 135px; padding: 1rem; border: 3px solid var(--ink); background: #ffffff; box-shadow: 5px 5px 0 var(--ink); }
html .flow-node > span { color: var(--ink); font-weight: 900; }
html .flow-node strong { font-family: var(--sans); font-weight: 900; letter-spacing: -.05em; }
html .flow-node small { color: var(--muted); font-weight: 700; }
html .flow-arrow { color: var(--ink); font-weight: 900; }
html .site-footer.project-footer { margin-top: 0; }
html .project-button { border: 3px solid var(--ink); background: var(--pink); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); font-family: var(--mono); font-weight: 800; }
html .project-button:hover { background: var(--acid); color: var(--ink); transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }

html .widget-shell { margin-top: 2rem; padding: 1.25rem; border: 4px solid var(--ink); background: #ffffff; box-shadow: 8px 8px 0 var(--ink); }
html .widget-toolbar,
html .phase-toolbar { padding-bottom: 1rem; border-bottom: 3px solid var(--ink); }
html .control label,
html .control output,
html .phase-route span,
html .phase-source { color: var(--ink); font-weight: 900; }
html select,
html button { border: 3px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 800; }
html select:hover,
html button:hover { background: var(--pink); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
html .range-row input { accent-color: var(--pink); }
html .widget-status { color: var(--ink); font-weight: 900; }
html .widget-grid { gap: 1rem; }
html .widget-card { padding: 1rem; border: 3px solid var(--ink); background: var(--acid); box-shadow: 4px 4px 0 var(--ink); }
html .widget-card strong { font-family: var(--sans); font-weight: 900; }
html .widget-card span { color: var(--ink); font-weight: 700; }
html .visual-svg { border: 4px solid var(--ink); background: #071018; }
html .svg-wall { stroke: #ffffff; }
html .svg-player { fill: var(--blue); }
html .svg-enemy { fill: var(--pink); }
html .svg-sensor { fill: var(--cream); }
html .svg-vision { fill: rgba(141,231,255,.28); stroke: var(--blue); }
html .svg-smoke { fill: rgba(255,255,255,.3); }
html .pipeline { gap: .75rem; }
html .pipeline-step { border: 3px solid var(--ink); background: #ffffff; box-shadow: 4px 4px 0 var(--ink); }
html .pipeline-step.is-active { border-color: var(--ink); background: var(--blue); }
html .pipeline-step span { color: var(--ink); font-weight: 900; }
html .pipeline-step strong { font-family: var(--sans); font-weight: 900; }
html .code-preview { border: 3px solid var(--ink); background: var(--ink); color: var(--acid); }
html .timeline-item { border-top: 3px solid var(--ink); }
html .timeline-item::before { background: var(--ink); }
html .timeline-item.is-active { border-color: var(--ink); }
html .timeline-item.is-active::before { background: var(--pink); }
html .timeline-item strong { font-family: var(--sans); font-weight: 900; }
html .timeline-item span { color: var(--ink); font-weight: 700; }
html .event-row { border: 3px solid var(--ink); background: var(--cream); font-weight: 700; }
html .event-row time { color: var(--ink); font-weight: 900; }
html .pump-bar { height: .55rem; background: var(--ink); }
html .pump-bar i { background: var(--pink); }
html .screenshot-grid { gap: 1.25rem; }
html .screenshot-card { border: 4px solid var(--ink); background: #ffffff; box-shadow: 7px 7px 0 var(--ink); }
html .screenshot-frame { background: var(--acid); border-bottom: 3px solid var(--ink); }
html .screenshot-card figcaption { padding: 1rem; }
html .screenshot-card figcaption strong { font-family: var(--sans); font-weight: 900; }
html .screenshot-card figcaption span { color: var(--ink); font-weight: 600; }
html .phase-tabs { gap: .75rem; }
html .phase-tab { border: 3px solid var(--ink); background: #ffffff; box-shadow: 4px 4px 0 var(--ink); }
html .phase-tab:hover,
html .phase-tab.is-active { border-color: var(--ink); background: var(--pink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
html .phase-tab span { color: var(--ink); font-weight: 900; }
html .phase-tab strong { font-family: var(--sans); font-weight: 900; }
html .phase-detail { border: 3px solid var(--ink); background: var(--acid); }
html .phase-route div { border: 3px solid var(--ink); background: #ffffff; }
html .phase-route .phase-output { border-color: var(--ink); background: var(--blue); }
html .phase-route strong { font-family: var(--sans); font-weight: 900; }
html .phase-route b { color: var(--ink); font-weight: 900; }
html .phase-copy { color: var(--ink); font-weight: 700; }
html .meantime-step { border: 3px solid var(--ink); background: #ffffff; box-shadow: 4px 4px 0 var(--ink); }
html .meantime-step small,
html .lane-label { color: var(--ink); font-weight: 900; }
html .meantime-step strong { font-family: var(--sans); font-weight: 900; }
html .meantime-step span { color: var(--ink); font-weight: 600; }
html .contract-lane .meantime-step { border-color: var(--ink); background: var(--orange); }
html .meantime-note { border-top: 3px solid var(--ink); }
html .meantime-note strong { font-family: var(--sans); font-weight: 900; }
html .meantime-note span { color: var(--ink); font-weight: 600; }
html .fortdb-diagram { padding: 1.25rem; border: 4px solid var(--ink); background: var(--cream); box-shadow: 6px 6px 0 var(--ink); }
html .diagram-heading span { color: var(--ink); font-weight: 900; }
html .diagram-heading h3 { font-family: var(--sans); font-weight: 900; }
html .fortdb-diagram > p { color: var(--ink); font-weight: 600; }
html .tree-line strong,
html .write-path > div,
html .version-root,
html .version-map { border: 3px solid var(--ink); background: #ffffff; box-shadow: 3px 3px 0 var(--ink); }
html .tree-line strong:last-child,
html .write-path > div:last-child { border-color: var(--ink); background: var(--blue); }
html .tree-line i,
html .write-path > i,
html .version-diagram > i { color: var(--ink); font-weight: 900; }
html .tree-branches div { border-top: 3px solid var(--ink); }
html .tree-branches b,
html .version-root strong,
html .version-chain b,
html .write-path strong { font-family: var(--sans); font-weight: 900; }
html .tree-branches span,
html .version-map > span,
html .version-chain span,
html .write-path small { color: var(--ink); font-weight: 700; }
html .version-chain div { border: 3px solid var(--ink); background: var(--pink); }
html .architecture-node { border: 3px solid var(--ink); background: #ffffff; box-shadow: 4px 4px 0 var(--ink); }
html .architecture-node.is-accent { border-color: var(--ink); background: var(--blue); }
html .architecture-node small,
html .context-band small { color: var(--ink); font-weight: 900; }
html .architecture-node strong,
html .context-band strong { font-family: var(--sans); font-weight: 900; }
html .architecture-node span,
html .architecture-caption { color: var(--ink); font-weight: 600; }
html .architecture-row > b { color: var(--ink); font-weight: 900; }
html .context-band { border: 3px solid var(--ink); background: var(--orange); }
html .context-band > span { color: var(--ink); font-weight: 800; }
html .context-band > b { color: var(--ink); font-weight: 900; }

@media (max-width: 760px) {
  html .project-header { padding: 2rem 1.25rem; box-shadow: 7px 7px 0 var(--ink); }
  html .project-section { padding-bottom: 4rem; }
  html .explain-card { box-shadow: 4px 4px 0 var(--ink); }
  html .widget-shell { box-shadow: 5px 5px 0 var(--ink); }
  html .screenshot-card,
  html .fortdb-diagram { box-shadow: 4px 4px 0 var(--ink); }
}
