/* vendev.es — beta 2
   Pale green base, petrol blue for structure, pink only as a spark.
   Background: live contour lines (topo.js). */

@font-face { font-family: "Literata"; src: url("../fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --bg: #eef5ec;        /* 60%: base */
  --band: #dcebd9;      /* 30%: alternate bands, panels */
  --ink: #233127;
  --soft: #587060;
  --line: #c9dcc6;
  --petrol: #25627f;    /* structure: numbers, frames, links */
  --spark: #e8457f;     /* 10%: small clashes only */

  --serif: "Literata", "Iowan Old Style", Charter, Cambria, Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;

  --max: 76rem;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* contour lines sit behind everything */
canvas.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-head, main, .site-foot { position: relative; z-index: 1; }

.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

a { color: var(--petrol); text-decoration-color: var(--spark); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--spark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--band); padding: 0.05em 0.3em; border-radius: 3px; }
pre { font-family: var(--mono); font-size: 0.85rem; line-height: 1.55; background: var(--band); padding: 1rem 1.2rem; overflow-x: auto; border-left: 3px solid var(--petrol); }
pre code { background: none; padding: 0; }

/* ---------- header ---------- */

.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-top: 1.6rem; padding-bottom: 1.6rem;
}
.brand { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.site-head nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1.6rem; }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--petrol); text-decoration: underline; text-decoration-color: var(--spark); }
.lang { display: inline-flex; gap: 0.4rem; padding-left: 1rem; border-left: 2px solid var(--spark); font-size: 0.9rem; }
.lang a { color: var(--soft); text-decoration: none; }
.lang [aria-current="true"] { color: var(--ink); font-weight: 600; }

/* ---------- home: hero ---------- */

.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem;
  align-items: center; padding-top: 2.5rem; padding-bottom: 5rem;
}
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.12; margin-bottom: 1.1rem; }
.hero p.lead { color: var(--ink); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.4; margin-bottom: 1.2rem; }
.hero p { color: var(--soft); font-size: 1.15rem; line-height: 1.55; margin: 0; max-width: 34rem; }

.cave-fig { margin: 0; }
.framed { background: var(--petrol); padding: 12px; transform: rotate(1.2deg); box-shadow: 9px 9px 0 var(--spark); }
canvas.cave { display: block; width: 100%; height: auto; image-rendering: pixelated; background: var(--ink); }
.cave-fig figcaption {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.1rem;
  font-size: 0.85rem; color: var(--soft);
}
.cave-fig button {
  font: inherit; color: var(--petrol); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}
.cave-fig button:hover { color: var(--spark); }

/* ---------- home: project bands ---------- */

.band { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.band:nth-of-type(even) { background: color-mix(in srgb, var(--band) 92%, transparent); }
.band .wrap {
  display: grid; grid-template-columns: 5rem 1fr 1.25fr; gap: 2.5rem 3rem;
  align-items: start; padding-top: 4.5rem; padding-bottom: 4.5rem;
}
/* odd: picture right; even: picture left */
.band .num { grid-column: 1; grid-row: 1; align-self: start; padding-top: 0.1rem; font-size: 3rem; font-weight: 600; line-height: 1; color: var(--petrol); }
.band .txt { grid-column: 2; grid-row: 1; }
.band .shot { grid-column: 3; grid-row: 1; }
.band:nth-of-type(even) .wrap { grid-template-columns: 5rem 1.25fr 1fr; }
.band:nth-of-type(even) .shot { grid-column: 2; }
.band:nth-of-type(even) .txt { grid-column: 3; }

.band h3 { font-size: 1.8rem; font-weight: 500; margin-bottom: 0.7rem; }
.band h3 a { color: var(--ink); text-decoration: none; }
.band h3 a:hover { color: var(--petrol); }
.band p { font-size: 1.07rem; margin-bottom: 0.8rem; }
.band small { color: var(--soft); font-style: italic; font-size: 0.88rem; }
.band .more { display: inline-block; margin-top: 0.9rem; }

.shot {
  aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 4px; overflow: hidden;
  background: var(--band); color: var(--soft); font-size: 0.85rem; text-align: center;
  border-bottom: 4px solid var(--petrol);
}
.band:nth-of-type(even) .shot { background: var(--bg); }
.shot > span { padding: 1rem; }
.shot:has(img) { aspect-ratio: auto; background: none; }
.shot img { width: 100%; }

/* group headers: one per career */
.group .wrap { display: grid; grid-template-columns: 5rem 1fr; gap: 0 3rem; padding-top: 5rem; padding-bottom: 1.5rem; }
.group .kicker { font-size: 3rem; font-weight: 600; line-height: 1; color: var(--spark); white-space: nowrap; }
.group h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 0.5rem; }
.group p { color: var(--soft); font-size: 1.15rem; max-width: 40rem; margin: 0; }

/* the pieces a project is made of */
.pieces { list-style: none; margin: 1.3rem 0 0.6rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.6rem; }
.pieces li { border-left: 3px solid var(--petrol); padding: 0.1rem 0 0.1rem 0.8rem; line-height: 1.4; }
.pieces b { display: block; font-weight: 600; }
.pieces b a { color: var(--ink); }
.pieces b a:hover { color: var(--petrol); }
.pieces span { color: var(--soft); font-size: 0.95rem; }

.aside-line { margin: 0; color: var(--soft); font-style: italic; }
.aside-line .wrap { display: block; padding-top: 1.6rem; padding-bottom: 1.6rem; padding-left: calc(var(--pad) + 8rem); }

@media (max-width: 820px) {
  .group .wrap { grid-template-columns: 1fr; gap: 0.6rem; padding-top: 3.5rem; }
  .pieces { grid-template-columns: 1fr; }
  .aside-line .wrap { padding-left: var(--pad); }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
  .band .wrap, .band:nth-of-type(even) .wrap { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 3rem; padding-bottom: 3rem; }
  .band .num, .band .txt, .band .shot,
  .band:nth-of-type(even) .shot, .band:nth-of-type(even) .txt { grid-column: 1; grid-row: auto; }
  .band .num { font-size: 2.2rem; }
}

/* ---------- inner pages ---------- */

.page { padding-bottom: 2rem; }
.page-head { display: grid; grid-template-columns: 1fr minmax(14rem, 22rem); gap: 1rem 4rem; align-items: end; padding: 2.5rem 0 3rem; }
.page-head .back { grid-column: 1 / -1; font-size: 0.95rem; text-decoration: none; }
.page-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 1rem; }
.page-head .lede { font-size: 1.2rem; color: var(--soft); margin: 0; max-width: 40rem; }
.page-head .meta { font-size: 0.92rem; color: var(--soft); margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--petrol); }
.page-head > div:first-of-type { min-width: 0; }
@media (max-width: 820px) { .page-head { grid-template-columns: 1fr; } }

/* reading column, but figures may go wide */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--petrol); }
figure { margin: 2.2rem 0; }
figcaption { font-size: 0.88rem; color: var(--soft); margin-top: 0.6rem; }
.wide { max-width: 60rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0 0 1.6em; }
th, td { text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 0.85rem; color: var(--soft); }
td.num { font-variant-numeric: tabular-nums; }

.block { margin: 0 0 4rem; }
.block > h2 { font-size: 1.6rem; margin-bottom: 1.4rem; }

/* experience: two columns on desktop */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

.job { margin: 0 0 2.4rem; }
.job header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; }
.job h3 { font-size: 1.2rem; font-weight: 600; }
.job .when { color: var(--soft); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.job .role { color: var(--soft); font-style: italic; margin: 0.1rem 0 0.7rem; }
.job ul { padding-left: 1.25rem; margin: 0; }
.job li { margin-bottom: 0.35rem; }
.job li::marker { color: var(--petrol); }
.muted { color: var(--soft); }

.skills { margin: 0 0 2.4rem; }
.skills h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--petrol); }
.skill { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0.1rem 1.5rem; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.skill:last-child { border-bottom: 1px solid var(--line); }
.skill .name { font-weight: 600; }
.skill .ctx { display: block; font-size: 0.85rem; color: var(--soft); }
@media (max-width: 560px) { .skill { grid-template-columns: 1fr; } }

.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }

/* ---------- footer ---------- */

.site-foot { background: color-mix(in srgb, var(--bg) 85%, transparent); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding-top: 2.2rem; padding-bottom: 2.6rem; font-size: 0.95rem; color: var(--soft); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }

@media (max-width: 560px) {
  .lang { padding-left: 0; border-left: 0; }
}

/* ---------- project hub (VenRad) ---------- */
.ph-head .wrap { display: grid; grid-template-columns: 1fr minmax(14rem, 22rem); gap: 1rem 4rem; align-items: end; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.ph-head .back { grid-column: 1 / -1; font-size: 0.95rem; text-decoration: none; }
.ph-head h1 { font-size: clamp(2.6rem, 1.6rem + 3vw, 3.8rem); line-height: 1.05; }
h1 small { display: block; font-size: 1rem; font-style: italic; font-weight: 400; color: var(--soft); margin-top: 0.5rem; letter-spacing: 0; }
.ph-head .lead { font-size: 1.35rem; line-height: 1.4; margin: 1rem 0 0; max-width: 38rem; }
.facts { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--petrol); color: var(--soft); font-size: 0.95rem; }
.facts div { margin-bottom: 0.4rem; }
.facts dt { display: inline; font-weight: 600; color: var(--ink); }
.facts dd { display: inline; margin: 0; }

.video, .video-slot { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--ink); box-shadow: 9px 9px 0 var(--spark); }
.video-slot { position: relative; color: #cfe0cc; }
.video-slot span { position: absolute; left: 1.2rem; bottom: 1rem; font-size: 0.85rem; }

.sec .wrap { padding-top: 4.5rem; }
.sec h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.idea { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; }
.idea p { font-size: 1.12rem; margin: 0; }
.idea .note { color: var(--soft); font-style: italic; border-left: 3px solid var(--spark); padding-left: 1rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem 1.2rem 1rem; border-radius: 4px; border-top: 4px solid var(--petrol);
  background: color-mix(in srgb, var(--band) 90%, transparent); color: var(--ink); text-decoration: none; }
.card.soon { background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px dashed var(--line); border-top: 4px solid var(--line); }
.card b { font-size: 1.15rem; font-weight: 600; }
.card span { flex: 1; color: var(--soft); font-size: 0.95rem; line-height: 1.45; }
.card em { font-size: 0.85rem; font-style: normal; color: var(--petrol); }
.card.soon em { color: var(--soft); font-style: italic; }
a.card:hover { color: var(--ink); }
a.card:hover b { color: var(--petrol); }

.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.5rem; }
.status h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--petrol); }
.status .now h3 { border-bottom-color: var(--spark); }
.status ul { margin: 0; padding-left: 1.1rem; }
.status li { margin-bottom: 0.35rem; }
.status li::marker { color: var(--petrol); }

@media (max-width: 900px) {
  .ph-head .wrap, .idea, .status { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* algorithm names, kept small next to the plain explanation */
.algo { font-size: 0.88em; font-style: italic; color: var(--soft); white-space: nowrap; }

/* language generator: same sentences side by side */
.langs { display: grid; grid-template-columns: 13rem repeat(3, 1fr); border-radius: 4px; overflow: hidden;
  background: color-mix(in srgb, var(--band) 92%, transparent); border-bottom: 4px solid var(--petrol); }
.langs > div { padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); }
.langs .h { border-top: 0; background: var(--ink); color: var(--bg); }
.langs .h b { display: block; font-size: 1.2rem; font-weight: 600; }
.langs .h span { display: block; margin-top: 0.2rem; font-size: 0.82rem; line-height: 1.4; color: #b9ccb6; }
.langs .g { color: var(--soft); font-size: 0.95rem; font-style: italic; }
.langs .s { font-size: 1.08rem; overflow-wrap: anywhere; }
.m-t { color: var(--petrol); font-weight: 700; }
.m-n { color: var(--spark); font-weight: 700; }
.m-q { color: #a3650a; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--soft); }
@media (max-width: 900px) {
  .langs { grid-template-columns: 1fr; }
  .langs .h { display: none; }
  .langs .g { background: var(--bg); color: var(--ink); font-style: normal; font-weight: 600; }
  .langs .s::before { content: attr(data-l); display: block; font-size: 0.75rem; color: var(--soft); }
}

/* about: text on the left, quick facts on the right */
.about { display: grid; grid-template-columns: minmax(0, 44rem) minmax(14rem, 20rem); gap: 2rem 4rem; justify-content: space-between; align-items: start; }
.about .prose h2:first-child { margin-top: 0; }
.about-facts { position: sticky; top: 1.5rem; padding: 1.4rem 1.5rem; border-radius: 4px; border-top: 4px solid var(--petrol);
  background: color-mix(in srgb, var(--band) 92%, transparent); }
.about-facts dl { margin: 0; }
.about-facts div { margin-bottom: 1rem; }
.about-facts div:last-child { margin-bottom: 0; }
.about-facts dt { font-size: 0.85rem; font-weight: 600; color: var(--petrol); }
.about-facts dd { margin: 0.15rem 0 0; font-size: 0.97rem; line-height: 1.5; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-facts { position: static; } }

/* real screenshots and video */
.shot img { width: 100%; height: auto; }
.shot.portrait, .shot.portrait:has(img) { background: #0c0c0c; display: block; }
.shot.portrait img { width: auto; max-width: 100%; max-height: 70vh; margin: 0 auto; }
video.video { height: auto; aspect-ratio: auto; background: var(--ink); }

/* home: language card (cycles through generated sentences) */
.tongue { aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  padding: 2rem 2.4rem; border-radius: 4px; border-bottom: 4px solid var(--petrol); background: var(--ink); color: #e8efe6; }
.tongue .src { font-style: italic; color: #9fb39b; }
.tongue .row { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; gap: 1rem; transition: opacity 0.5s; }
.tongue .row b { font-size: 0.85rem; font-weight: 600; color: #9fb39b; }
.tongue .row .s { font-size: 1.4rem; overflow-wrap: anywhere; }
.tongue .m-t { color: #7cc3e3; }
.tongue .m-n { color: #ff7aa8; }
.tongue .m-q { color: #f2c14e; }
.tongue .tongue-key { margin: 0; font-size: 0.8rem; color: #9fb39b; }
.tongue .dots { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.tongue .dots i { width: 7px; height: 7px; border-radius: 50%; background: #3d5246; }
.tongue .dots i.on { background: #ff7aa8; }

/* home: library card (code above, resulting message below) */
.lib { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 4px; border-bottom: 4px solid var(--petrol); background: #0b141a; }
.lib pre { margin: 0; border: 0; padding: 1.1rem 1.3rem; background: #1a241d; color: #dfe8dc; font-size: 0.82rem; line-height: 1.55; overflow-x: auto; }
.lib pre .k { color: #7cc3e3; }
.lib pre .s { color: #ffb3cd; }
.lib pre .c { color: #7f9580; font-style: italic; }
.lib .chat { display: flex; align-items: flex-start; padding: 1.2rem 1.3rem;
  background-image: radial-gradient(#13212a 1px, transparent 1px); background-size: 14px 14px; }
.lib .bubble { max-width: 80%; padding: 0.55rem 0.7rem 0.3rem; border-radius: 8px; background: #1f2c34; color: #e9edef;
  font-family: system-ui, sans-serif; font-size: 0.82rem; line-height: 1.45; }
.lib .bubble small { display: block; text-align: right; font-size: 0.68rem; color: #8696a0; }
.lib .bubble .btn { display: block; margin: 0.4rem -0.7rem 0; padding: 0.4rem 0 0.2rem; border-top: 1px solid #2a3942;
  text-align: center; font-weight: 600; color: #25d366; }
@media (max-width: 560px) {
  .tongue { aspect-ratio: auto; padding: 1.4rem; }
  .tongue .row { grid-template-columns: 1fr; gap: 0.1rem; }
  .tongue .row .s { font-size: 1.15rem; }
}

/* ---------- citas ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 4px; box-shadow: 7px 7px 0 var(--petrol); }
.gallery figure:nth-child(2) img { box-shadow: 7px 7px 0 var(--spark); }
.gallery figcaption { margin-top: 0.7rem; }
.gallery .slot { aspect-ratio: 1200 / 589; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 4px; color: var(--soft); font-size: 0.9rem; }
.gallery-note { margin-top: 1.2rem; color: var(--soft); font-style: italic; }

.arch { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 2rem 1.5rem 1.4rem; margin: 1.2rem 0 2.2rem;
  border-radius: 4px; background: color-mix(in srgb, var(--band) 90%, transparent); }
.arch .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; width: 100%; }
.arch .node { display: flex; flex-direction: column; align-items: center; min-width: 9.5rem; padding: 0.6rem 1rem; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--line); font-weight: 600; text-align: center; }
.arch .node small { font-weight: 400; color: var(--soft); font-size: 0.82rem; }
.arch .web { border-top: 3px solid var(--spark); }
.arch .dim { color: var(--soft); border-style: dashed; font-weight: 400; justify-content: center; }
.arch .edge { border-top: 3px solid var(--petrol); min-width: 20rem; }
.arch .core { background: var(--petrol); color: #fff; border-color: var(--petrol); min-width: 24rem; }
.arch .core small { color: #d6e8ef; }
.arch .arrow { display: block; width: 2px; height: 1.4rem; background: var(--petrol); position: relative; }
.arch .arrow::after { content: ""; position: absolute; left: -4px; bottom: -1px; border: 5px solid transparent; border-top-color: var(--petrol); border-bottom: 0; }
.arch-foot { margin: 1.2rem 0 0; color: var(--soft); font-size: 0.9rem; font-style: italic; }
.cards-text .card { background: color-mix(in srgb, var(--bg) 85%, transparent); }
.next { margin: 0; padding-left: 1.1rem; }
.next li::marker { color: var(--spark); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } .arch .edge, .arch .core { min-width: 0; width: 100%; } }

.duo { grid-column: 3; grid-row: 1; position: relative; display: block; padding: 0 0 18% 12%; }
.band:nth-of-type(even) .duo { grid-column: 2; }
.duo img { border-radius: 4px; }
.duo img:first-child { box-shadow: 6px 6px 0 var(--spark); }
.duo img:last-child { position: absolute; left: 0; bottom: 0; width: 88%; box-shadow: 7px 7px 0 var(--petrol); }
@media (max-width: 820px) { .duo, .band:nth-of-type(even) .duo { grid-column: 1; grid-row: auto; } }

.arch .core-box { width: min(100%, 46rem); padding: 0.9rem 1.1rem 1rem; border-radius: 4px; background: var(--petrol); color: #fff; text-align: center; }
.core-box > b { display: block; font-weight: 600; margin-bottom: 0.6rem; }
.core-box > b small { font-weight: 400; color: #d6e8ef; margin-left: 0.4rem; font-size: 0.85rem; }
.core-box .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.core-box .chips span { padding: 0.15rem 0.6rem; border-radius: 3px; background: rgba(255,255,255,.14); font-size: 0.88rem; }
.core-box .libs { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid rgba(255,255,255,.25); font-size: 0.85rem; color: #d6e8ef; }
.core-box .libs em { font-style: normal; color: #fff; }
.arch .obs { border-top: 3px solid var(--spark); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.idea-note { margin: 1.6rem 0 0; max-width: 46rem; color: var(--soft); font-style: italic; border-left: 3px solid var(--spark); padding-left: 1rem; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* links inside bands: make them read as links */
.band h3 a { text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.band h3 a::after, .pieces b a::after { content: "\2192"; display: inline-block; margin-left: 0.3em; text-decoration: none; color: var(--petrol); font-weight: 400; }
.pieces b a { text-decoration: underline; text-decoration-color: var(--petrol); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.cave-fig button { text-transform: none; }
