/* Dois Horizontes Patrimonial */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --ink: #1c1f1e;
  --ink-2: #4d524f;
  --green: #1f3a34;
  --green-2: #2c4f47;
  --sand: #8a6a35;      /* accent on paper: 4.6:1 */
  --sand-light: #d9bf8f; /* accent on green */
  --line: #d9d3c6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 76rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--green); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 2rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 2.75rem; }
.mark { width: 2rem; height: 1.2rem; fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; }
.brand-name { font: 500 1.3rem/1.1 var(--serif); letter-spacing: -0.005em; color: var(--green); }
.brand-sub { font: 500 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-left: 0.35rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.nav a { display: inline-block; padding-block: 0.7rem; font-size: 0.94rem; text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--green); text-decoration: underline; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 11vw, 8.5rem) clamp(2.5rem, 7vw, 5rem); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.6rem; }
h1 { font: 400 clamp(2.7rem, 8.2vw, 6rem)/1.02 var(--serif); letter-spacing: -0.022em; color: var(--green); max-width: 14ch; text-wrap: balance; }
h1 em { font-style: italic; font-weight: 300; }
.lead { font: 400 clamp(1.2rem, 2.3vw, 1.55rem)/1.45 var(--serif); max-width: 36ch; margin: 1.8rem 0 2.2rem; color: var(--ink); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 0; }
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.95rem 1.7rem; border-radius: 2px; transition: background-color 0.15s; }
.btn:hover { background: var(--green-2); color: #fff; }
.link-arrow { font-weight: 500; padding-block: 0.7rem; }
.link-arrow::after { content: " \2193"; }

/* Photo band */
.band { margin: 0 auto; max-width: var(--wrap); padding-inline: var(--pad); }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2px; }
.band figcaption { font-size: 0.82rem; color: var(--ink-2); padding-top: 0.6rem; }
@media (max-width: 40rem) { .band { padding-inline: 0; } .band img { aspect-ratio: 4 / 3; border-radius: 0; } .band figcaption { padding-inline: var(--pad); } }

/* Sections: label column + content column */
.sec { position: relative; display: grid; gap: 1.2rem 3rem; padding-block: clamp(3.5rem, 9vw, 7rem); }
.sec::after { content: ""; position: absolute; inset: auto var(--pad) 0; border-top: 1px solid var(--line); }
.sec:last-of-type::after { content: none; }
.label { font: 600 0.8rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }
.label::before { content: ""; display: block; width: 2rem; height: 0; border-top: 2px solid currentColor; box-shadow: 0 6px 0 0 currentColor; margin-bottom: 1.4rem; }
.body { max-width: 46rem; }
.statement { font: 400 clamp(1.6rem, 3.6vw, 2.35rem)/1.2 var(--serif); letter-spacing: -0.012em; color: var(--green); margin-bottom: 1.4rem; text-wrap: balance; }
.body > p:not(.statement) { max-width: 38rem; color: var(--ink-2); }
@media (min-width: 56rem) { .sec, .contact .wrap { grid-template-columns: 14rem minmax(0, 1fr); } .label { padding-top: 0.5rem; } }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem 2rem; margin-top: 2.8rem; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); border-radius: 2px; margin-bottom: 1.2rem; }
.person h3 { font: 500 1.5rem/1.2 var(--serif); color: var(--green); }
.role { color: var(--ink-2); font-size: 0.98rem; margin: 0.4rem 0 0.9rem; }
.links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.links a { display: inline-block; padding-block: 0.55rem; font-weight: 500; }
.num { font-variant-numeric: tabular-nums; font-weight: 400; color: var(--ink-2); }

/* Criteria */
.criteria { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.criteria > div { display: grid; gap: 0.2rem 2rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.criteria dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding-top: 0.3rem; }
.criteria dd { font: 400 1.2rem/1.45 var(--serif); }
@media (min-width: 36rem) { .criteria > div { grid-template-columns: 9rem minmax(0, 1fr); } }

/* Steps */
.steps { counter-reset: step; margin-top: 2.2rem; display: grid; gap: 1.4rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--ink-2); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 300 1.9rem/1 var(--serif); color: var(--sand); margin-bottom: 0.7rem; }
.steps strong { display: block; font: 500 1.25rem/1.3 var(--serif); color: var(--green); margin-bottom: 0.15rem; }
.aside { margin: 2.6rem 0 0; padding: 1.3rem 0 0 1.3rem; border-left: 2px solid var(--sand); padding-block: 0.2rem; font-size: 1rem; }

/* Contact */
.contact { background: var(--green); color: #f2efe7; }
.contact .wrap { display: grid; gap: 1.2rem 3rem; padding-block: clamp(3.5rem, 9vw, 7rem); }
.contact .label { color: var(--sand-light); }
.contact .statement { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.contact .body > p:not(.statement) { color: #d5dbd6; }
.contact a { color: #fff; }
.contact a:hover { color: var(--sand-light); }
.contact :focus-visible { outline-color: var(--sand-light); }
.mail { margin: 2rem 0 2.2rem; }
.mail a { font: 400 clamp(1.25rem, 4.6vw, 2.1rem)/1.3 var(--serif); overflow-wrap: anywhere; display: inline-block; padding-block: 0.3rem; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem 2rem; border-top: 1px solid rgb(255 255 255 / 0.22); padding-top: 1.6rem; }
.contact-list li > span:first-child { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand-light); margin-bottom: 0.15rem; }
.contact-list a { display: inline-block; padding-block: 0.45rem; }
.contact .num { color: #d5dbd6; }

/* Footer */
.foot { padding-block: 2.8rem 3.2rem; font-size: 0.9rem; color: var(--ink-2); }
.foot p { max-width: 52rem; }
.foot .status { font: 400 1.08rem/1.5 var(--serif); color: var(--ink); }
.foot strong { font-weight: 600; color: var(--ink); }
.fine { margin: 1.8rem 0 0; font-size: 0.82rem; }

@media print { .top { position: static; } .contact { background: none; color: inherit; } .contact a, .contact .statement { color: inherit; } }

/* Small screens: keep the header to one line */
@media (max-width: 40rem) {
  .nav li:not(:last-child) { display: none; }
  .brand-sub { display: none; }
  .people { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .person h3 { font-size: 1.2rem; }
  .role { font-size: 0.88rem; }
  .links a { font-size: 0.92rem; }
  .num { display: block; }
}
