/* guzzo.party v2 — Indexhibit layout, Archivo on black (type option F).
   One family at different widths: wide + heavy for headlines, light for text,
   condensed for labels. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  --bg: #0c0c0b;
  --ink: #f1f0ec;
  --muted: #a3a09a;
  --rule: #2b2a27;
  --accent: #f1f0ec;       /* try #ff2a00 for the matguzzo.com red */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --side: 15rem;
  --pad: clamp(1.25rem, 4vw, 4rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 330 1.03rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
i { font-style: italic; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .3rem .6rem; z-index: 9; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- sidebar (fixed on desktop) ---- */
.side { padding: 2.75rem 1.75rem; display: flex; flex-direction: column; gap: 2rem; }
.name { white-space: nowrap; font-weight: 800; font-stretch: 112%; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.01em; text-decoration: none; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; font-weight: 400; font-size: .95rem; line-height: 1.95; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-color: currentColor; }
.langs { display: flex; gap: .8rem; font-weight: 600; font-stretch: 75%; font-size: .78rem; letter-spacing: .08em; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover, .langs [aria-current] { color: var(--ink); }
.side-mail { margin: auto 0 0; font-size: .8rem; color: var(--muted); }
.side-mail a { text-decoration: none; }

@media (min-width: 861px) {
  .side { position: fixed; inset: 0 auto 0 0; width: var(--side); border-right: 1px solid var(--rule); overflow-y: auto; }
  main { margin-left: var(--side); }
}
@media (max-width: 860px) {
  .side { padding: 1.4rem var(--pad) 1rem; gap: .9rem; border-bottom: 1px solid var(--rule); }
  .nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
  .nav a { line-height: 1.8; }
  .side-mail { display: none; }
}

/* ---- main column ---- */
main { padding: 3.5rem var(--pad) 4rem; max-width: calc(var(--side) + 62rem); }
main > *:not(.hs) { max-width: 46rem; }
main > .home { max-width: 66rem; }
.home h1.lead { max-width: 66rem; }
@media (max-width: 860px) { .home h1.lead { font-size: clamp(2.1rem, 9vw, 3rem); } }
h1 { font-weight: 850; font-stretch: 122%; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.0; letter-spacing: -.02em; margin: 0 0 1.25rem; color: var(--accent); }
h1.lead { font-size: clamp(2.1rem, 3.1vw, 3.1rem); line-height: 1.02; margin-bottom: 1.6rem; max-width: 52rem; }
.intro { font-weight: 300; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.35; margin: 0 0 1.1rem; max-width: 44rem; }
h2 { font-weight: 650; font-stretch: 65%; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 3rem 0 .75rem; }
p { margin: 0 0 1em; }

.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: 1.5rem; padding: 1.05rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.entry .y { font-weight: 600; font-stretch: 75%; font-size: .85rem; line-height: 1.9; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry .t { font-weight: 600; font-stretch: 108%; font-size: 1.2rem; line-height: 1.3; margin: 0; letter-spacing: -.005em; }
.entry .t a { text-decoration: none; }
.entry .t a:hover { text-decoration: underline; }
.entry .t a[href^="http"]::after { content: " ↗"; font-weight: 400; font-size: .8em; color: var(--muted); }
.entry .m { font-weight: 400; font-stretch: 85%; font-size: .85rem; line-height: 1.5; color: var(--muted); margin: .3rem 0 0; }
.entry .d { font-weight: 330; font-size: 1rem; line-height: 1.55; margin: .45rem 0 0; max-width: 40rem; }
.entry > .hs { grid-column: 1 / -1; margin-top: 1rem; }
.entry:target .t { text-decoration: underline; }

.big { font-weight: 850; font-stretch: 122%; font-size: clamp(2.5rem, 9vw, 6rem); line-height: .95; letter-spacing: -.04em; margin: 0 0 1.5rem; color: var(--accent); }
.random { margin: 0; max-width: 34rem; }
.random img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; object-position: left top; }
.log .entry { padding: .6rem 0; }
.log .place { font-weight: 500; }
.log .d { color: var(--muted); }

/* ---- horizontal image rows ---- */
.hs { margin: 2.25rem calc(var(--pad) * -1) 2.5rem 0; }
.hs-sticky { overflow-x: auto; scrollbar-width: thin; }
.hs-track { display: flex; gap: 1rem; height: min(46vh, 26rem); padding-right: var(--pad); width: max-content; }
.hs-track img { height: 100%; width: auto; display: block; }
.hs.is-pinned .hs-sticky { position: sticky; top: 8vh; overflow: hidden; height: 84vh; display: flex; align-items: center; }
.hs.is-pinned .hs-track { height: 72vh; will-change: transform; }

/* ---- footer ---- */
footer { margin-top: 5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--muted); }
footer ul { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
footer a { color: var(--ink); }
footer .mail { font-weight: 500; font-size: 1.05rem; color: var(--ink); }
footer .tags { font-style: italic; max-width: 40rem; }
footer .small { margin: 0; }

@media (max-width: 34rem) {
  .entry { grid-template-columns: 1fr; }
  .entry .y { line-height: 1.6; }
  p { hyphens: auto; }
}
@media print {
  .side, .hs, footer .tags { display: none; }
  main { margin: 0; }
  body { background: #fff; color: #000; }
}

/* ---- project pages ---- */
.back { font-stretch: 85%; font-size: .85rem; margin: 0 0 1.5rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--ink); }
.project-m { font-weight: 400; font-stretch: 85%; font-size: .9rem; color: var(--muted); margin: -.5rem 0 1.5rem; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 1px solid var(--rule); font-style: italic; color: var(--muted); }
.links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 500; }
.links a[href^="http"]::after { content: " ↗"; color: var(--muted); }

/* ---- mobile: slim bar after the header scrolls away ---- */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar.is-shown {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    padding: .7rem var(--pad); background: var(--bg); border-bottom: 1px solid var(--rule);
    animation: mbar-in .55s cubic-bezier(.16, .84, .32, 1);
  }
  .mbar.is-shown .mbar-name { animation: mbar-name .6s cubic-bezier(.16, .84, .32, 1); }
  .mbar.is-shown .mbar-toggle { animation: mbar-pill .5s cubic-bezier(.16, .84, .32, 1) both; }
  .mbar-name { font-weight: 800; font-stretch: 115%; font-size: 1.05rem; text-decoration: none; }
  .mbar-toggle {
    font: 600 .8rem/1 var(--font); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 999px;
    padding: .65rem 1rem; min-height: 44px; cursor: pointer;
    transition: letter-spacing .4s cubic-bezier(.16, .84, .32, 1), border-color .3s, padding .4s, font-stretch .4s, background .3s;
  }
  .mbar-toggle:hover, .mbar-toggle:focus-visible { letter-spacing: .22em; font-stretch: 100%; border-color: var(--ink); padding-inline: 1.25rem; }
  .mbar.is-open .mbar-toggle { border-color: var(--ink); letter-spacing: .16em; background: var(--ink); color: var(--bg); }
  .mbar-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    padding: .5rem var(--pad) 1.25rem; background: var(--bg); border-bottom: 1px solid var(--rule);
    max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain;
    transform-origin: top right;
    animation: mbar-unfold .45s cubic-bezier(.16, .84, .32, 1);
  }
  .mbar-panel[hidden] { display: none; }
  .mbar-panel .nav { display: block; }
  .mbar-panel .nav li { animation: mbar-link .5s cubic-bezier(.16, .84, .32, 1) both; }
  .mbar-panel .nav li:nth-child(2) { animation-delay: .04s; }
  .mbar-panel .nav li:nth-child(3) { animation-delay: .08s; }
  .mbar-panel .nav li:nth-child(4) { animation-delay: .12s; }
  .mbar-panel .nav li:nth-child(5) { animation-delay: .16s; }
  .mbar-panel .nav li:nth-child(6) { animation-delay: .2s; }
  .mbar-panel .nav li:nth-child(7) { animation-delay: .24s; }
  .mbar-panel .nav li:nth-child(8) { animation-delay: .28s; }
  .mbar-panel .nav a {
    font-size: 1.35rem; line-height: 1.15; font-stretch: 92%; letter-spacing: -.01em;
    display: inline-block; padding: .55rem 0;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat; background-position: 0 88%; background-size: 0 1px;
    transition: font-stretch .45s cubic-bezier(.16, .84, .32, 1), letter-spacing .45s, color .25s, background-size .4s;
  }
  .mbar-panel .nav a:hover, .mbar-panel .nav a:focus-visible {
    font-stretch: 118%; letter-spacing: .04em; color: var(--ink); background-size: 100% 1px;
  }
  .mbar-panel .langs { margin-top: .75rem; }
  .mbar-panel .langs a { transition: letter-spacing .35s, color .25s; }
  .mbar-panel .langs a:hover, .mbar-panel .langs a:focus-visible { letter-spacing: .16em; }
  .entry, h2 { scroll-margin-top: 4.5rem; }
}
@keyframes mbar-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes mbar-name { from { letter-spacing: .2em; font-stretch: 75%; } to { letter-spacing: -.01em; font-stretch: 115%; } }
@keyframes mbar-pill { from { transform: scaleX(.55); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mbar-unfold { from { opacity: 0; transform: translateY(-.75rem) scaleY(.92); } to { opacity: 1; transform: none; } }
@keyframes mbar-link { from { opacity: 0; transform: translateY(-.55rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mbar.is-shown, .mbar.is-shown .mbar-name, .mbar.is-shown .mbar-toggle, .mbar-panel, .mbar-panel .nav li { animation: none; }
  .mbar-toggle, .mbar-panel .nav a, .mbar-panel .langs a { transition: none; }
}

/* The mirror ball is a progressive enhancement; the original image remains
   available without JavaScript. All rendering is local to the browser. */
.disco { margin: 1.5rem 0 0; width: min(100%, 36rem); }
.disco canvas, .disco-fallback { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.disco canvas { display: none; }
.disco.disco-ready canvas { display: block; }
.disco.disco-ready .disco-fallback { display: none; }
.hs-count { font-weight: 600; font-stretch: 75%; font-size: .85rem; color: var(--muted); margin: 0 0 .6rem; font-variant-numeric: tabular-nums; }
.clock { font-weight: 400; font-stretch: 85%; font-size: .95rem; color: var(--muted); margin: -.4rem 0 1.4rem; }
@media print { .disco canvas, .disco figcaption, .mbar { display: none !important; } .disco.disco-ready .disco-fallback { display: block; } }

/* ---- home: the menu runs along the top, everything else gets bigger ---- */
.is-home .side { position: static; width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--rule);
  flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .5rem 2.75rem; padding: 1.5rem var(--pad); }
.is-home .side .name { font-size: 1.35rem; }
.is-home .side nav { flex: 1 1 auto; }
.is-home .side .nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.is-home .side .nav a { font-size: 1rem; line-height: 1.6; }
.is-home .side-mail { display: none; }
.is-home main { margin-left: 0; max-width: none; padding-top: clamp(2.5rem, 6vw, 5.5rem); }
.is-home main > .home { max-width: 100rem; }
.is-home h1.lead { font-size: clamp(2.3rem, 5.6vw, 6.6rem); line-height: .95; letter-spacing: -.035em; max-width: none; margin-bottom: 0; }
.home-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(2rem, 4vw, 3.5rem); }
.home-text .intro { font-size: clamp(1.2rem, 1.9vw, 1.8rem); line-height: 1.3; max-width: 34rem; }
.is-home .disco { margin: 0; width: 100%; max-width: 46rem; justify-self: end; }
.is-home footer { max-width: none; }
@media (max-width: 860px) {
  .is-home .side { flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.4rem var(--pad) 1rem; }
  .is-home .side .name { font-size: 1.25rem; }
  .is-home .side .nav { gap: 0 1.1rem; }
  .is-home h1.lead { font-size: clamp(2.2rem, 10.5vw, 3.6rem); }
  .home-row { grid-template-columns: 1fr; }
  .is-home .disco { justify-self: center; max-width: 24rem; margin-top: -.5rem; }
}

/* ---- Impressum / privacy ---- */
.legal { max-width: 40rem; }
.legal h2 { margin-top: 2.25rem; }
.legal mark { background: #ff2a00; color: #fff; padding: 0 .25em; }
/* the canvas paints its own black margin around the ball; pull it in so the ball sits close to the text */
.is-home .disco canvas, .is-home .disco-fallback { margin: -4% 0 -6%; }
/* desktop: intro text sits right under the headline; the ball hangs beside it */
@media (min-width: 861px) {
  .home-row { align-items: start; margin-top: clamp(1.25rem, 2vw, 2rem); }
  .home-text { padding-top: .25rem; }
}

/* Whereabouts: the word always fits one line, even "desconhecido." on a small phone */
.where-big { white-space: nowrap; font-size: clamp(1.75rem, 9.6vw, 5rem); }

/* Desktop only: everything a notch smaller (mobile sizes unchanged). Guzzo, 8 Nov 2026. */
@media (min-width: 861px) {
  html { font-size: 87.5%; }
  .is-home h1.lead { font-size: clamp(2.3rem, 4.6vw, 5.6rem); }
  .home-text .intro { font-size: clamp(1.15rem, 1.5vw, 1.6rem); }
}
