/* RNLSNCC shared stylesheet. Used by rnlsn.cc, rnlsn.cc/ruan and rnlsncc.ltda. */

/* Tokens */
:root {
  --black: #0a0a0a; --white: #f4f3ef; --graphite: #2a2a2a; --orange: #ff5a1f;
  --surface: var(--black); --ink: var(--white); --line: var(--graphite); --accent: var(--orange); --on-accent: var(--black);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --pad: 72px; --frame-gap: 80px; --section-pad: 48px;
  --fast: 180ms; --ease: cubic-bezier(.2, .6, .2, 1);
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; counter-reset: section; }
a, button { transition: color var(--fast) var(--ease), opacity var(--fast) var(--ease), border-color var(--fast) var(--ease), background-color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease); }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition-duration: 1ms !important; } }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: square; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Frame, header, footer */
.frame { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad); gap: var(--frame-gap); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.logo { font-weight: 700; font-size: 14px; line-height: 16px; color: inherit; text-decoration: none; }
.corner { font-size: 12px; line-height: 16px; text-transform: uppercase; }
.corner a { color: inherit; text-decoration: none; }
.corner a:hover { text-decoration: underline; text-underline-offset: 3px; }
.langs { display: flex; gap: 16px; }
.langs button { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 12px; line-height: 16px; color: var(--ink); opacity: .45; cursor: pointer; }
.langs button[aria-pressed="true"], .langs button:hover { opacity: 1; }
.langs button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
main { width: 100%; max-width: 1120px; }

/* Hero */
.hero { padding-bottom: 64px; }
.name { margin: 0; font-weight: 700; font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -0.035em; }
.role { margin: 20px 0 0; font-size: 12px; line-height: 16px; text-transform: uppercase; }
.lead { margin: 48px 0 0; max-width: 880px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; }
.about { margin: 28px 0 0; max-width: 620px; font-size: 18px; line-height: 30px; opacity: .8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; appearance: none; text-decoration: none; cursor: pointer; font: inherit; font-weight: 500; font-size: 14px; line-height: 22px; padding: 10px 22px; border-radius: 0; }
.btn-primary { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: none; color: var(--ink); border: 1px solid var(--line); opacity: .7; }
.btn-ghost:hover { opacity: 1; border-color: var(--ink); }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.plain { color: var(--ink); font-size: 14px; line-height: 22px; text-decoration: none; }
.plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.plain:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Stats */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 32px 24px 40px 0; border-right: 1px solid var(--line); }
.stats li + li { padding-left: 24px; }
.stats li:last-child { border-right: 0; }
.stat-num { display: block; font-weight: 500; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.stat-label { display: block; margin-top: 16px; font-size: 12px; line-height: 16px; text-transform: uppercase; }

/* Sections */
.block { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; padding: var(--section-pad) 0; border-top: 1px solid var(--line); counter-increment: section; }
main > section:last-of-type { border-bottom: 1px solid var(--line); }
.label { margin: 0; font-size: 12px; line-height: 24px; text-transform: uppercase; font-weight: 400; display: flex; gap: 16px; }
.label::before { content: counter(section, decimal-leading-zero); opacity: .5; }
.text { margin: 0; font-size: 18px; line-height: 30px; max-width: 720px; }
.text-lg { font-size: 22px; line-height: 34px; }
.index { font-size: 12px; line-height: 16px; opacity: .5; }
.tags { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); padding: 6px 10px; }

/* Link list (rnlsn.cc) */
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 24px 0; color: inherit; text-decoration: none; }
.links li:first-child a { padding-top: 0; }
.links li:last-child a { padding-bottom: 0; }
.link-name { display: block; font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.link-desc { display: block; margin-top: 8px; font-size: 14px; line-height: 22px; opacity: .7; }
.link-url { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; text-transform: uppercase; opacity: .7; }
.links a:hover .link-url { opacity: 1; }
.links a:hover .link-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.links a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Values (rnlsncc.ltda) */
.value { margin: 0; font-weight: 500; font-size: 40px; line-height: 48px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.value--sm { font-size: 24px; line-height: 30px; }
.value + .actions { margin-top: 24px; }
.copy { min-width: 112px; }

/* Formats */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.format { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; }
.format-name { margin: 24px 0 0; font-weight: 500; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
.format-text { margin: 16px 0 0; font-size: 16px; line-height: 26px; flex: 1; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.services li { padding: 16px 0; border-top: 1px solid var(--line); }
.services li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.svc-name { display: block; font-weight: 500; font-size: 18px; line-height: 26px; }
.svc-desc { display: block; margin-top: 4px; font-size: 14px; line-height: 22px; opacity: .7; }

/* Cases */
.case { padding: 40px 0; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; padding-top: 0; }
.case:last-child { padding-bottom: 0; }
.case-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.case-name { margin: 0; font-weight: 500; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; }
.case-via { font-size: 12px; line-height: 16px; text-transform: uppercase; opacity: .7; }
.case-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; margin-top: 20px; }
.case-row:first-of-type { margin-top: 28px; }
.case-key { font-size: 12px; line-height: 26px; text-transform: uppercase; opacity: .7; }
.case-val { margin: 0; font-size: 17px; line-height: 26px; max-width: 680px; }

/* Clients */
.items { display: grid; gap: 48px; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.item-name { margin: 0; font-weight: 500; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
.item-place { font-size: 12px; line-height: 16px; text-transform: uppercase; }
.item-text { margin: 16px 0 0; font-size: 18px; line-height: 30px; max-width: 720px; }

/* Projects and events */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.project { padding: 24px 0; border-top: 1px solid var(--line); }
.projects .project:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.project-name { margin: 0; font-weight: 500; font-size: 22px; line-height: 30px; letter-spacing: -0.01em; }
.project-name a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.project-name a .icon { opacity: .5; }
.project-name a:hover .icon { opacity: 1; }
.project-name a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.project-name a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Testimonial */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; max-width: 840px; }
.quote figcaption { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.quote-author { font-weight: 500; font-size: 16px; }
.quote-role { font-size: 12px; text-transform: uppercase; opacity: .7; }

/* Profile */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.fact-label { margin: 0; font-size: 12px; line-height: 16px; text-transform: uppercase; opacity: .7; }
.fact-text { margin: 8px 0 0; font-size: 17px; line-height: 27px; }

/* Contact (same block on every page) */
.contact-title { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(32px, 4vw, 56px); line-height: 1.1; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

/* Small screens */
@media (max-width: 900px) {
  :root { --pad: 24px; --frame-gap: 56px; --section-pad: 40px; }
  .about, .text, .item-text { font-size: 16px; line-height: 26px; }
  .text-lg { font-size: 19px; line-height: 30px; }
  .hero { padding-bottom: 48px; }
  .lead { margin-top: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li, .stats li + li { padding: 24px 16px 28px 0; border-right: 0; }
  .stats li:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats li:nth-child(even) { padding-left: 16px; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .block { grid-template-columns: 1fr; gap: 24px; }
  .formats, .services, .projects, .facts { grid-template-columns: 1fr; }
  .services li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 16px; }
  .projects .project:nth-child(2) { border-top: 1px solid var(--line); padding-top: 24px; }
  .links a { grid-template-columns: 1fr; gap: 8px; }
  .format { padding: 24px; }
  .case-name { font-size: 24px; line-height: 30px; }
  .case-row { grid-template-columns: 1fr; gap: 4px; }
  .item-name, .format-name { font-size: 22px; line-height: 28px; }
  .value { font-size: 28px; line-height: 36px; }
  .value--sm { font-size: 20px; line-height: 28px; }
}

/* Print (CV export) */
@media print {
  :root { --surface: #fff; --ink: #0a0a0a; --line: #d6d6d6; --pad: 0; --frame-gap: 24px; --section-pad: 20px; }
  @page { margin: 16mm; }
  body { font-size: 11px; }
  .langs, .actions, .contact-links .btn { display: none !important; }
  .frame { min-height: 0; }
  .block { grid-template-columns: 160px 1fr; break-inside: avoid; }
  .case, .format, .item, .project, .stats { break-inside: avoid; }
  .lead { font-size: 22px; margin-top: 20px; }
  .stat-num { font-size: 32px; }
  a { color: inherit; }
}
.quotes { display: flex; flex-direction: column; gap: 48px; }

/* Source */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { appearance: none; font: inherit; font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); padding: 6px 10px; background: transparent; color: var(--ink); cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filters button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.edition-date { display: block; margin-top: 8px; opacity: .7; }
.picks { list-style: none; margin: 0; padding: 0; }
.pick { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.pick:first-child { border-top: 0; padding-top: 0; }
.pick-num { font-size: 12px; line-height: 30px; opacity: .7; }
.pick-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.pick-domain { font-size: 12px; line-height: 16px; text-transform: uppercase; opacity: .7; }
.pick-text { margin: 8px 0 0; font-size: 18px; line-height: 30px; max-width: 720px; }
.pick .tags { margin-top: 12px; }
.empty { margin: 0; font-size: 18px; line-height: 30px; opacity: .7; }
@media (max-width: 900px) { .pick { grid-template-columns: 28px 1fr; } }
.label--plain::before { content: none; }
.archive .pick { padding: 16px 0; }
.archive-link { display: block; color: inherit; text-decoration: none; }
.archive-title { display: block; font-size: 12px; line-height: 30px; text-transform: uppercase; letter-spacing: .04em; }
.archive-names { display: block; font-size: 15px; line-height: 24px; max-width: 720px; opacity: .75; }
.archive-link:hover .archive-names { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.label a { color: inherit; }
