/* oqueber.com — Blueprint theme */
:root {
  --navy: #0E3A62;
  --navy-deep: #0A2C4B;
  --ink: #FFFFFF;
  --dim: rgba(255, 255, 255, .78);
  --line: rgba(255, 255, 255, .45);
  --line-soft: rgba(255, 255, 255, .22);
  --accent: #F5C518;
  --idea: #8FD3FF;
  --working: #F5C518;
  --done: #7CE0A3;
  --grid: rgba(255, 255, 255, .055);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1120px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 18px/1.6 var(--display);
  color: var(--ink);
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--navy); }

/* helpers */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .01em; }
.hand { font-family: var(--hand); font-size: 30px; line-height: 1.1; margin: 0; }
.accent { color: var(--accent); }
.dim { color: var(--dim); }
.measure { max-width: 60ch; }
.section { padding-block: 0 96px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--navy); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* type */
.display { margin: 0; font-size: clamp(56px, 9vw, 108px); line-height: .92; font-weight: 800; letter-spacing: -.03em; }
.h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.025em; }
.h2 { margin: 0 0 32px; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.h2 .hand { font-size: .85em; font-weight: 700; }
.h2-sm { font-size: 28px; margin-top: 56px; }
.lead { margin: 0; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.35; max-width: 32ch; }
.body { margin: 0; font-size: 18px; line-height: 1.6; }

/* header / footer */
.site-header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand { font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--mono); font-size: 14px; }
.nav a { padding: 11px 16px; border: 1.5px solid transparent; border-radius: 999px; text-decoration: none; }
.nav a[aria-current="page"] { border-color: var(--ink); }
.nav a:hover { border-color: var(--line); color: var(--ink); }
.nav .lang-switch { color: var(--accent); }
@media (max-width: 560px) { .nav .mono { display: none; } .nav a { padding: 10px 12px; } }
.site-footer { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; padding-block: 32px 48px; border-top: 1.5px solid var(--line); margin-top: 32px; font-family: var(--mono); font-size: 14px; }
.social { display: flex; flex-wrap: wrap; gap: 20px; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--navy); }

/* CV hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 48px 40px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text .hand { font-size: 36px; margin-bottom: -14px; }
.hero-photo { flex: 1 1 260px; max-width: 380px; margin: 0 auto; }
.hero-photo img { aspect-ratio: 1; object-fit: cover; border: 6px solid var(--ink); transform: rotate(2deg); }
.hero-photo figcaption { margin-top: 16px; text-align: right; font-size: 28px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 96px; border: 1.5px solid var(--line); }
.facts div { padding: 24px; display: flex; flex-direction: column-reverse; gap: 4px; border-right: 1.5px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dd { margin: 0; font-size: 48px; font-weight: 800; line-height: 1.1; }
.facts dt { font-size: 13px; }
@media (max-width: 720px) { .facts div { border-right: 0; border-bottom: 1.5px solid var(--line); } .facts div:last-child { border-bottom: 0; } }

.path { list-style: none; margin: 0; padding: 0; }
.path > li { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 20px 0; border-top: 1.5px dashed var(--line); }
.path > li:last-child { border-bottom: 1.5px dashed var(--line); }
.path .when { flex: 0 0 180px; padding-top: 5px; }
.path > li > div { flex: 1 1 380px; min-width: 0; }
.path h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.path p { margin: 4px 0 0; }

/* section heads */
.page-head { padding-block: 40px 40px; display: flex; flex-direction: column; gap: 16px; }
.page-head > .mono { margin: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 32px; }
.page-head .section-head { margin: 0; }
.section-head .h2 { margin: 0; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 24px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.card a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--ink); transition: transform .2s ease; }
.card a:hover .card-img { transform: rotate(-1deg) scale(1.01); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .card-img { transition: none; } .card a:hover .card-img { transform: none; } }
.placeholder { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--navy-deep); }
.placeholder .hand { font-size: 34px; color: var(--ink); }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.card-title { font-size: 22px; font-weight: 600; line-height: 1.25; }
.card[hidden] { display: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.chip-idea { background: var(--idea); }
.chip-working { background: var(--working); }
.chip-done { background: var(--done); }
.chip-draft { background: transparent; color: var(--accent); border: 1.5px dashed var(--accent); }
.card.is-draft .card-img { border-style: dashed; opacity: .75; }

/* log (bitácora) */
.log { list-style: none; margin: 10px 0 32px; padding: 0 0 0 18px; border-left: 1.5px dashed var(--line); }
.log li { position: relative; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 0 14px; }
.log li::before { content: ""; position: absolute; left: -24.5px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--accent); }
.log li:first-child::before { background: var(--accent); }
.log time { flex: 0 0 110px; padding-top: 2px; }
.log span { flex: 1 1 260px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-idea { background: var(--idea); } .dot-working { background: var(--working); } .dot-done { background: var(--done); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  font: 500 14px var(--mono); color: var(--ink); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--navy); border-color: var(--ink); }
.filters .count { opacity: .7; }
.status-line { min-height: 1.2em; margin: 0 0 32px; font-size: 26px; }

/* article */
.article-head { padding-block: 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.back { text-decoration: none; }
.track { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.track li { display: flex; align-items: center; gap: 10px; padding-right: 18px; color: var(--dim); }
.track li + li::before { content: ""; width: 40px; height: 0; border-top: 1.5px dashed var(--line); margin-right: 8px; }
.track .track-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); }
.track li.on { color: var(--ink); }
.track li.on .track-dot { background: var(--ink); border-color: var(--ink); }
.track li.now .track-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(245, 197, 24, .25); }
.track li.now { color: var(--accent); }

.cover { margin: 0 auto 48px; }
.cover img { width: 100%; border: 6px solid var(--ink); }

.article-body { padding-bottom: 64px; }
.tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; border-bottom: 1.5px solid var(--line); margin-bottom: 40px; position: sticky; top: 0; z-index: 2; background: var(--navy); }
.tabs button {
  flex: 0 0 auto; min-height: 52px; padding: 12px 20px; margin-bottom: -1.5px;
  font: 600 15px var(--mono); color: var(--dim); background: transparent;
  border: 0; border-bottom: 3px solid transparent; cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.panel { margin-bottom: 64px; scroll-margin-top: 72px; }
.panel:focus { outline: none; }
.panel-title { margin: 0 0 20px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .panel[hidden] { display: none; }
.big-note { font-size: 30px; max-width: 30ch; }

.prose { max-width: 72ch; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--accent); font-weight: 600; }
.prose h2, .prose h3 { line-height: 1.2; margin: 32px 0 12px; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--navy-deep); padding: 2px 6px; }
.prose pre { background: var(--navy-deep); padding: 16px 20px; overflow-x: auto; border: 1.5px solid var(--line-soft); }
.prose pre code { background: none; padding: 0; }
.prose img { border: 3px solid var(--ink); margin: 8px 0; }
.prose blockquote { margin: 0 0 18px; padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--hand); font-size: 28px; line-height: 1.2; }

.gallery { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; max-width: none; }
.panel .gallery { width: min(100vw - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter)); }
.gallery li { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid var(--ink); margin: 0; }
.gallery a:hover img { border-color: var(--accent); }
.audio { margin: 0 0 16px; }
.audio audio { width: 100%; max-width: 520px; margin-top: 6px; }

.ask { border: 1.5px dashed var(--accent); padding: 24px; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ask p { margin: 0; }
.ask-q { font-family: var(--hand); font-size: 32px; line-height: 1.15; }

/* tools used in an article */
.tools { list-style: none; padding: 0; margin: 12px 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.tools li { margin: 0; }
.tools li::marker { content: none; }
.tools a, .tool-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 8px 14px 8px 8px; border: 1.5px solid var(--line); text-decoration: none; height: 100%; }
.tools a:hover { border-color: var(--accent); color: var(--ink); }
.tool-wiki a { border-style: solid; border-color: var(--ink); }
.tool-thumb { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--navy-deep); overflow: hidden; }
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; border: 0; margin: 0; }
.tool-thumb .hand { font-size: 30px; color: var(--accent); }
.tool-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tool-name { font-weight: 600; }
.tool-note { font-size: 14px; }
.tool-kind { flex: 0 0 auto; font-size: 13px; }

/* Brainstorm › tools grid */
.tool-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.tool-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px 12px 16px; border: 1.5px solid var(--line); text-decoration: none; }
.tool-card a:hover { border-color: var(--accent); color: var(--ink); }
.tool-card-img { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: #FFFFFF; overflow: hidden; }
.tool-card-img img { width: 100%; height: 100%; object-fit: contain; }
.tool-card-img .hand { font-size: 56px; color: var(--navy); }
.tool-card-name { font-size: 20px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.tool-card-sum { font-size: 15px; line-height: 1.45; flex: 1; }

/* tool wiki page */
.tool-sheet { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-bottom: 64px; }
.tool-photo { flex: 1 1 320px; max-width: 480px; margin: 0; }
.tool-photo img { width: 100%; background: #FFFFFF; border: 6px solid var(--ink); }
.tool-facts { flex: 999 1 380px; min-width: 0; }
.panel-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 400; margin: 0 0 8px; }
.specs { margin: 0 0 24px; border-top: 1.5px dashed var(--line); }
.specs div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
.specs dt { flex: 0 0 140px; font-size: 13px; padding-top: 3px; }
.specs dd { margin: 0; flex: 1 1 220px; }
.count-inline { font-size: 16px; vertical-align: middle; }
.tool-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }
.files { padding-left: 20px; font-family: var(--mono); font-size: 15px; }
h3.mono { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 400; margin: 0; }

.your-turn { border: 1.5px solid var(--line); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; background: rgba(10, 44, 75, .6); }
.your-turn .h2 { margin: 0; }
.your-turn .hand { font-size: 28px; }

/* brainstorm */
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-bottom: 96px; }
.box { border: 1.5px solid var(--line); padding: 24px; }
.box-title { font-size: 32px; margin-bottom: 12px; }
.box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.box li { display: flex; flex-direction: column; gap: 2px; }
.box .note { font-size: 15px; }

/* CV: short / long version */
.path-head { align-items: baseline; margin-bottom: 24px; }
.version-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.version-switch button {
  min-height: 44px; padding: 4px 12px; font-size: 26px; font-weight: 700;
  color: var(--dim); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.version-switch button:hover { color: var(--ink); }
.version-switch button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.path[data-version="short"] .v-long,
.path[data-version="long"] .v-short { display: none; }
.long-list { margin: 10px 0 0; padding-left: 20px; color: var(--dim); }
.long-list li { margin-bottom: 6px; }
.long-list li::marker { color: var(--accent); }
.tags { list-style: none; margin: 14px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; font: 13px/1.7 var(--mono); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; gap: 32px; padding-top: 16px; }
  .hero-photo { order: -1; width: min(72%, 320px); margin: 8px auto 0; }
  .hero-photo figcaption { font-size: 24px; margin-top: 12px; }
  .hero-text { flex: none; gap: 18px; }
  .section { padding-bottom: 72px; }
  .facts { margin-bottom: 72px; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  body { font-size: 17px; }
  .site-header { padding-block: 16px; }
  .nav { width: 100%; justify-content: space-between; }
  .hero-text .hand { font-size: 30px; margin-bottom: -10px; }
  .facts div { padding: 18px 20px; }
  .facts dd { font-size: 40px; }
  .path .when { flex-basis: 100%; padding-top: 0; }
  .path h3 { font-size: 20px; }
  .version-switch button { font-size: 23px; padding-inline: 6px; }
  .page-head { padding-block: 24px 28px; }
  .article-head { padding-block: 20px 24px; gap: 14px; }
  .track li { padding-right: 8px; font-size: 13px; }
  .track li + li::before { width: 16px; margin-right: 6px; }
  .cover { margin-bottom: 32px; }
  .cover img { border-width: 4px; }
  .tabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); margin-bottom: 28px; }
  .tabs button { padding-inline: 14px; font-size: 14px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery img, .gallery video { border-width: 2px; }
  .ask { padding: 18px; }
  .ask-q { font-size: 27px; }
  .your-turn .btn { width: 100%; justify-content: center; }
  .site-footer { flex-direction: column; padding-block: 24px 36px; }
}
