:root {
  --ink: #14212a;
  --muted: #52616b;
  --paper: #fbfaf6;
  --cream: #f1ecdf;
  --navy: #172a3a;
  --teal: #0e6f68;
  --gold: #d99b38;
  --line: #d9d6cb;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1.0625rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #075f5a; text-underline-offset: .2em; }
a:hover { color: #8a5510; }
a:focus-visible, button:focus-visible, summary:focus-visible, audio:focus-visible { outline: .2rem solid #d17f00; outline-offset: .22rem; border-radius: .15rem; }
.wrap { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }

.hero { overflow: hidden; color: white; background: var(--navy); border-bottom: .45rem solid var(--gold); }
.hero-grid { min-height: 37rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: 5rem; align-items: center; padding-block: 5rem; }
.hero h1 { max-width: 14ch; margin: .3rem 0 1.25rem; font: 700 clamp(2.7rem, 6vw, 5.25rem)/1.02 Georgia, serif; letter-spacing: -.035em; }
.lede { max-width: 42rem; margin: 0; color: #dbe4e8; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.eyebrow { margin: 0 0 .35rem; color: var(--teal); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: #f2bd62; }
.portrait { width: min(100%, 27rem); aspect-ratio: 1; object-fit: cover; border-radius: 48% 48% 8% 48%; box-shadow: 1.25rem 1.25rem 0 #0c615c; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2rem; }
.actions a { color: white; font-weight: 700; }
.actions .button { padding: .65rem 1.1rem; color: var(--navy); background: #f2bd62; border-radius: .25rem; text-decoration: none; }
.button.dark { display: inline-block; padding: .7rem 1.1rem; color: white; background: var(--navy); border: 0; border-radius: .25rem; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button.dark:hover { color: white; background: var(--teal); }
.button.whatsapp { display: inline-block; padding: .7rem 1.1rem; color: #10251a; background: #7ee2a8; border-radius: .25rem; font-weight: 750; text-decoration: none; }
.button.whatsapp:hover { color: white; background: #176b43; }

main > section { padding-block: clamp(4rem, 8vw, 7rem); }
.intro { max-width: 55rem; }
h2 { max-width: 18ch; margin: 0 0 1.4rem; font: 700 clamp(2rem, 4vw, 3.4rem)/1.12 Georgia, serif; letter-spacing: -.025em; }
.intro > p:not(.eyebrow) { max-width: 48rem; font-size: 1.2rem; }
.text-link { font-weight: 800; }
.audio-intro { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(16rem, 1.2fr); gap: 1.5rem 2.5rem; align-items: center; margin-top: 2.5rem; padding: 1.5rem; background: var(--cream); border-left: .35rem solid var(--gold); }
.audio-intro h3 { margin: 0 0 .2rem; font: 700 1.5rem Georgia, serif; }
.audio-intro p { margin: 0; color: var(--muted); }
.audio-intro audio { width: 100%; }
.audio-media { min-width: 0; }
.transcript { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.transcript summary { color: #075f5a; font-weight: 750; cursor: pointer; }
.transcript p { margin: .8rem 0 0; color: var(--ink); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2rem; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; align-items: start; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feed-panel { padding: clamp(1.4rem, 3vw, 2.2rem); background: white; border: 1px solid var(--line); border-top: .35rem solid var(--teal); }
.panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; font: 700 1.6rem Georgia, serif; }
.panel-heading > a { font-size: .9rem; font-weight: 700; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.post-list a { display: block; color: var(--ink); font-weight: 650; line-height: 1.45; text-decoration: none; }
.post-list a:hover { color: var(--teal); text-decoration: underline; }
.post-list p { margin: 0; line-height: 1.55; }
.post-list .post-link { display: inline-block; margin-top: .65rem; color: #075f5a; font-size: .9rem; text-decoration: underline; }
.post-list .mentioned-link { display: block; margin-top: .7rem; padding-left: .75rem; border-left: .2rem solid var(--gold); color: #075f5a; text-decoration: underline; }
.post-list time { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.load-more { margin-top: 1rem; padding: .65rem 1rem; color: white; background: var(--navy); border: 0; border-radius: .25rem; font: inherit; font-weight: 750; cursor: pointer; }
.load-more:hover { background: var(--teal); }
.load-more:disabled { cursor: wait; opacity: .75; }
.archive-more { margin: 1rem 0 0; }
.post-list.compact a { font-size: 1.08rem; }
.feed-fallback { margin-bottom: 0; }

.projects { border-top: 1px solid var(--line); }
.projects h2 { max-width: 21ch; }
.featured-projects { margin-bottom: 2rem; }
.project-card { position: relative; min-height: 21rem; padding: clamp(1.7rem, 4vw, 3rem); color: white; overflow: hidden; }
.project-card::after { content: ""; position: absolute; width: 10rem; height: 10rem; right: -3rem; bottom: -4rem; border: 1.5rem solid rgba(255,255,255,.09); border-radius: 50%; }
.project-card h3 { margin: .4rem 0 1rem; font: 700 clamp(2rem, 3.5vw, 3rem)/1.1 Georgia, serif; }
.project-card h3 a, .project-card .text-link { color: white; }
.project-card p { max-width: 38rem; }
.project-state { color: #f4d08f; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.retroreader { background: #0c625e; }
.quenzar { background: #553653; }

footer { padding-block: 3rem; color: #dbe4e8; background: var(--navy); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
footer p { margin: 0; }
footer a { color: white; }

.page-header { padding-block: 3.5rem; color: white; background: var(--navy); border-bottom: .45rem solid var(--gold); }
.page-header h1 { max-width: 18ch; margin: .5rem 0 1rem; font: 700 clamp(2.5rem, 6vw, 4.5rem)/1.05 Georgia, serif; }
.page-header > .wrap > p:last-child { max-width: 40rem; color: #dbe4e8; font-size: 1.2rem; }
.back-link { display: inline-block; margin-bottom: 2.5rem; color: white; font-weight: 700; }
.contact-layout { display: grid; grid-template-columns: minmax(16rem, .75fr) minmax(20rem, 1.25fr); gap: 2rem; align-items: start; padding-block: clamp(3rem, 7vw, 6rem); }
.call-card, .message-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: white; border: 1px solid var(--line); }
.call-card { border-top: .35rem solid var(--gold); }
.message-card { border-top: .35rem solid var(--teal); }
.contact-layout h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.small, .hint, .optional { color: var(--muted); font-size: .9rem; }
.relative-date { margin-left: .6rem; color: var(--muted); font-size: .86rem; }
.profile-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.profile-link-grid > div { padding: 1.4rem; background: white; border-top: .35rem solid var(--gold); }
.profile-link-grid h3 { margin-top: 0; font: 700 1.45rem Georgia, serif; }
.title-list { margin: 0; padding-left: 1.2rem; }
.title-list li { margin-bottom: .9rem; }
.title-list span { display: block; color: var(--muted); font-size: .88rem; }
@media (max-width: 720px) { .profile-link-grid { grid-template-columns: 1fr; } }
.call-card hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
.call-card h3 { margin-bottom: .3rem; font: 700 1.45rem Georgia, serif; }
code { font-size: .92em; overflow-wrap: anywhere; }
form { margin-top: 1.5rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; margin-bottom: .35rem; font-weight: 750; }
.form-row input, .form-row textarea { width: 100%; padding: .7rem .75rem; color: var(--ink); background: var(--paper); border: 1px solid #77838a; border-radius: .2rem; font: inherit; }
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: .2rem solid var(--gold); outline-offset: .12rem; border-color: var(--navy); }
.hint { margin: .25rem 0 0; }
.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-left: .3rem solid; }
.notice h3, .notice p { margin-top: 0; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice.success { background: #e5f4ed; border-color: #17834f; color: #143b2a; }
.notice.error { background: #fff0ed; border-color: #b53a24; color: #4a1a12; }

@media (max-width: 48rem) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem; }
  .portrait { width: min(76vw, 22rem); order: -1; }
  .feed-grid, .project-grid { grid-template-columns: 1fr; }
  .audio-intro { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; opacity: 1 !important; }
}
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; opacity: 1 !important; box-shadow: none !important; }
  :root { --ink: #111; --muted: #333; --paper: #fff; --cream: #fff; --line: #777; }
  body, .hero, .project-card, footer, .profile-link-grid > div, .feed-panel, .audio-intro { color: #111 !important; background: #fff !important; }
  .hero, .projects, .project-card, footer { border-color: #555 !important; }
  a, .actions a, .actions .button, .hero .eyebrow, .lede, .project-state, .project-card .text-link, footer a { color: #111 !important; }
  .portrait { max-width: 14rem; }
  audio { display: none; }
  .transcript { display: block; }
  .transcript > * { display: block !important; }
  .skip-link, nav.actions { display: none; }
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #edf1f2; --muted: #b9c2c7; --paper: #10191f; --cream: #17242c; --line: #34444d; }
  .feed-panel { background: #17242c; }
  .post-list a { color: var(--ink); }
  a { color: #6fd2cb; }
}
