/* Marcos Rocha — shared foundation for every page.
   Lime and ink, Mona Sans. Tokens, reset, type, pills, the Menu button and overlay, panels, footer. */

/* Self-hosted Mona Sans (variable: width 75–125, weight 200–900), Latin subset */
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("/assets/fonts/mona-sans-latin.woff2") format("woff2");
}

:root {
  --lime: #D4FF3A;
  --ink: #000000;

  --sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.6vw, 40px);
  --panel-inset: clamp(8px, 1vw, 14px);
  --radius-panel: clamp(20px, 2.2vw, 32px);
  --radius-media: clamp(12px, 1.2vw, 18px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --t-small: .875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.5rem, 1rem + 1.9vw, 2.75rem);
  --t-card: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem);
  --t-display: clamp(3.4rem, 1.6rem + 7.2vw, 9.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--lime); }
/* Recommended by Lenis (smooth scrolling) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--lime); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.5;
  font-stretch: 100%; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--lime); }
.panel--ink ::selection { background: var(--lime); color: var(--ink); }
img, iframe, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
/* Sections that receive focus from a skip or section link are a starting point, not a control: no ring */
[tabindex="-1"]:focus { outline: none; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: fixed; left: 16px; top: -100px; z-index: 300; background: var(--ink); color: var(--lime); padding: .6em 1em; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Type: condensed caps, set like a magazine cover line ---------- */
.display, .menu__links a { font-stretch: 75%; font-weight: 800; text-transform: uppercase; }
.display { font-size: var(--t-display); line-height: .86; letter-spacing: -.012em; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .8em 1.3em .82em; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.pill--lime { background: var(--lime); color: var(--ink); }
.pill--lime:hover { transform: scale(1.04); }
.pill--big { font-size: 1.0625rem; padding: 1.05em 1.8em 1.07em; }
.pill__icon { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Nav: a single floating Menu button ---------- */
.nav {
  position: fixed; z-index: 60; top: 16px; right: var(--gutter);
  animation: nav-in 1.1s var(--ease-out) .4s both;
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-24px); } }
.nav__menu {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .85em 1.3em .87em; border-radius: 999px; border: 1.5px solid var(--lime);
  background: var(--ink); color: var(--lime);
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: background-color .3s, color .3s, transform .5s var(--ease-out);
}
.nav__menu:hover { transform: scale(1.04); }
.nav__menu:hover, .nav__menu[aria-expanded="true"] { background: var(--lime); color: var(--ink); }
.nav__burger { position: relative; width: 16px; height: 10px; }
.nav__burger span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.nav__burger span:first-child { top: 1px; }
.nav__burger span:last-child { top: 7.5px; }
.nav__menu[aria-expanded="true"] .nav__burger span:first-child { top: 4.25px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--lime);
  clip-path: inset(0 0 100% 0 round 0 0 40px 40px);
  transition: clip-path .9s cubic-bezier(.77, 0, .18, 1);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0 round 0); }
.menu__inner {
  min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  padding: 110px var(--gutter) 32px;
}
.menu__links li { overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--lime) 25%, transparent); }
.menu__links a {
  display: flex; justify-content: space-between; align-items: center; text-decoration: none;
  font-size: clamp(2.8rem, 1.2rem + 6vw, 7rem); line-height: 1; letter-spacing: -.012em; padding: .08em 0 .04em;
  transform: translateY(105%); transition: transform .9s var(--ease-out), padding-left .5s var(--ease-out);
}
.menu__links a::after {
  content: ""; width: .32em; height: .32em; border-top: .07em solid; border-right: .07em solid;
  transform: rotate(45deg) translate(-30%, 30%); opacity: 0; transition: opacity .4s;
}
.menu__links a:hover, .menu__links a:focus-visible, .menu__links a[aria-current="page"] { padding-left: .15em; }
.menu__links a:hover::after, .menu__links a:focus-visible::after, .menu__links a[aria-current="page"]::after { opacity: 1; }
/* Links rise in one after another */
.menu.is-open .menu__links a { transform: none; }
.menu.is-open .menu__links li:nth-child(1) a { transition-delay: .25s, 0s; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: .3s, 0s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: .35s, 0s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: .4s, 0s; }
.menu.is-open .menu__links li:nth-child(5) a { transition-delay: .45s, 0s; }
.menu.is-open .menu__links li:nth-child(6) a { transition-delay: .5s, 0s; }
.menu__foot {
  display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 2rem; flex-wrap: wrap;
  font-weight: 500; opacity: 0; transition: opacity .6s .5s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__contact { display: flex; align-items: center; gap: .8rem 1.6rem; flex-wrap: wrap; }
.menu__contact a:not(.pill) { text-decoration: none; }
.menu__contact a:not(.pill):hover { text-decoration: underline; }
.menu__social { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.menu__social a { text-decoration: none; opacity: .8; }
.menu__social a:hover { opacity: 1; }
body.menu-open { overflow: hidden; }

/* ---------- Panels: the black cards that hold whole sections ---------- */
.panel { margin: 0 var(--panel-inset); border-radius: var(--radius-panel); }
.panel--ink { background: var(--ink); color: var(--lime); }

/* ---------- Footer ---------- */
.footer { padding: clamp(20px, 3vh, 32px) var(--gutter) 24px; }
.footer__row { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-size: .9375rem; font-weight: 500; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu__foot { flex-direction: column; align-items: start; }
}

/* Touch screens: every control gets at least a 44px tap target */
@media (pointer: coarse) {
  .pill, .nav__menu { min-height: 44px; display: inline-flex; align-items: center; }
  .footer__links a, .menu__social a, .menu__contact a:not(.pill) { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__links, .menu__social { gap: .4rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .menu, .menu__links a, .menu__foot { transition: none; }
}
