/* ============================================================
   Furlan · Identidade Digital · MOBILE FIRST
   ============================================================ */

:root {
  --paper:       #f3ecdd;
  --paper-deep:  #e9dfca;
  --paper-soft:  #f8f3e7;
  --ink:         #1a1612;
  --ink-2:       #3a3128;
  --ink-3:       #6b6052;
  --rule:        #cdbfa3;
  --gold:        #a8853f;
  --gold-soft:   #c8a865;
  --moss:        #3d4a3a;
  --petroleo:    #1f3a40;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "DM Sans", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(800px 400px at 90% -10%, rgba(168,133,63,.08), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(61,74,58,.05), transparent 60%);
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
a:hover { border-bottom-color: var(--gold); }

/* ---------- Type tokens ---------- */
.serif    { font-family: var(--serif); font-weight: 400; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono     { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.label    { font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

.display-xl { font-size: clamp(40px, 11vw, 120px); line-height: 1.0; letter-spacing: -0.02em; }
.display-l  { font-size: clamp(34px, 8vw, 84px);   line-height: 1.04; letter-spacing: -0.015em; }
.display-m  { font-size: clamp(28px, 6vw, 56px);   line-height: 1.08; }
.display-s  { font-size: clamp(22px, 4.5vw, 36px); line-height: 1.15; }

.lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 4.4vw, 26px); line-height: 1.45; color: var(--ink-2);
}

p { margin: 0 0 1em; color: var(--ink-2); }
hr.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section.block { padding: 64px 0; }
@media (min-width: 768px) { section.block { padding: 96px 0; } }
@media (min-width: 1100px) { section.block { padding: clamp(96px, 11vh, 140px) 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 60%, transparent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px; border: 0;
  min-width: 0; /* allow truncation */
}
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-text .name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.005em; }
.brand-text .tag {
  font-family: var(--sans); font-size: 8.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .site-header .container { padding-top: 18px; padding-bottom: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text .name { font-size: 21px; }
  .brand-text .tag { font-size: 9.5px; }
}

/* Hamburger toggle (checkbox hack) */
.nav-toggle { display: none; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-btn .bars {
  position: relative; width: 18px; height: 12px;
}
.nav-btn .bars::before,
.nav-btn .bars::after,
.nav-btn .bars span {
  content: ""; position: absolute; left: 0; right: 0;
  height: 1px; background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-btn .bars::before { top: 0; }
.nav-btn .bars span    { top: 5.5px; display: block; }
.nav-btn .bars::after  { top: 11px; }
.nav-toggle:checked ~ .container .nav-btn .bars::before { top: 5.5px; transform: rotate(45deg); }
.nav-toggle:checked ~ .container .nav-btn .bars::after  { top: 5.5px; transform: rotate(-45deg); }
.nav-toggle:checked ~ .container .nav-btn .bars span    { opacity: 0; }

.nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  flex-direction: column;
  padding: 12px var(--gutter) 28px;
  gap: 0;
}
.nav-toggle:checked ~ .container .nav { display: flex; }
.nav a {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink-2);
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 50%, transparent);
}
.nav a:last-child { border-bottom: 0; }
.nav a.active { color: var(--ink); }
.nav a.active::before {
  content: "·  "; color: var(--gold);
}
@media (min-width: 900px) {
  .nav-btn { display: none; }
  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }
  .nav a {
    font-family: var(--sans);
    font-size: 13px; letter-spacing: .04em;
    padding: 0; border-bottom: 0;
  }
  .nav a.active::before { content: none; }
  .nav a.active::after {
    content: ""; display: block;
    width: 14px; height: 1px; background: var(--gold);
    margin: 6px auto 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all .35s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.btn-ghost { border-color: color-mix(in oklab, var(--ink) 25%, transparent); color: var(--ink-2); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.btn-link .arrow { transition: transform .3s ease; }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-link:hover { border-bottom-color: var(--gold); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 48px; padding-bottom: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); }
}
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow .dash { width: 28px; height: 1px; background: var(--gold); flex: 0 0 auto; }

.hero h1 { margin-bottom: 28px; }
.hero h1 em { font-family: var(--serif); font-style: italic; color: var(--gold); font-weight: 400; }

.hero-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 4.4vw, 22px); line-height: 1.45; color: var(--ink-2);
  max-width: 30em; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-figure {
  position: relative; aspect-ratio: 4 / 5; width: 100%;
  background: var(--paper-deep); overflow: hidden;
}
@media (min-width: 900px) { .hero-figure { aspect-ratio: 3 / 4; } }

.placeholder {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(26,22,18,.035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, var(--paper-deep) 0%, color-mix(in oklab, var(--paper-deep) 80%, var(--gold) 20%) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); padding: 16px;
}
.placeholder-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; padding: 7px 12px;
  border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  text-align: center; max-width: 90%;
}
.hero-figure-meta {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; align-items: center; gap: 10px;
}
.hero-figure-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-figure-meta .text { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

.hero-meta { display: none; }
@media (min-width: 900px) {
  .hero-meta {
    display: block; position: absolute; top: 24px; right: var(--gutter); text-align: right;
  }
  .hero-meta .num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-3); }
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
}
.manifesto h2 { font-size: clamp(32px, 7vw, 64px); line-height: 1.05; }
.manifesto h2 em { color: var(--gold); font-family: var(--serif); }
.manifesto-body p {
  font-family: var(--serif);
  font-size: clamp(18px, 4.6vw, 24px);
  line-height: 1.5; color: var(--ink-2); margin-bottom: 1.1em;
}
.manifesto-body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  float: left;
  line-height: .92;
  padding: 6px 12px 0 0;
  color: var(--gold);
  font-style: italic;
}
@media (min-width: 768px) {
  .manifesto-body p:first-child::first-letter { font-size: 4.2em; padding: 6px 14px 0 0; }
}
.manifesto-sign { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.manifesto-sign .name { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.manifesto-sign .role { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
@media (min-width: 900px) {
  .section-head { flex-direction: row; align-items: end; margin-bottom: 56px; }
}
.section-head .title-block { max-width: 36em; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lede { max-width: 28em; }
.section-head .meta { text-align: left; min-width: 0; }
@media (min-width: 900px) {
  .section-head .meta { text-align: right; min-width: 120px; }
}

/* ---------- FILTER ---------- */
.cat-filter, .filter-bar {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  padding: 18px 0; margin: 0 0 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
}
.cat-filter a, .filter-bar a {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.cat-filter a.is-on, .filter-bar a.is-on {
  color: var(--ink); border-bottom: 1px solid var(--gold);
}
.cat-filter .sep { color: var(--rule); }
@media (min-width: 768px) {
  .cat-filter, .filter-bar { gap: 18px 28px; padding: 22px 0; margin-bottom: 56px; }
  .cat-filter a, .filter-bar a { font-size: 12px; }
}

/* ---------- EDITORIAL GRID (mobile-first) ---------- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.editorial-grid > .span-5 > .card,
.editorial-grid > .card { gap: 16px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card-figure { position: relative; aspect-ratio: 4/5; background: var(--paper-deep); overflow: hidden; }
.card-figure.wide { aspect-ratio: 16/10; }
.card-figure .tag-pill {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; background: var(--paper); color: var(--ink);
}
.card-cat { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 5.2vw, 28px);
  line-height: 1.15; color: var(--ink); letter-spacing: -0.01em;
}
.card-excerpt {
  font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0;
}
.card-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.card-meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
  }
  .span-7 { grid-column: span 7; }
  .span-5 { grid-column: span 5; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .span-3 { grid-column: span 3; }
}

/* ---------- ESTUDE ---------- */
.estude { background: var(--ink); color: var(--paper); }
.estude .label,
.estude .section-head .lede,
.estude .card-excerpt { color: color-mix(in oklab, var(--paper) 75%, transparent); }
.estude h2 { color: var(--paper); }
.estude h2 em { color: var(--gold-soft); font-family: var(--serif); }

.estude-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
}
@media (min-width: 900px) { .estude-grid { grid-template-columns: repeat(3, 1fr); margin-top: 48px; } }

.area {
  padding: 36px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  display: flex; flex-direction: column; gap: 18px;
}
.area:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .area {
    padding: 48px 36px;
    border-right: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
    border-bottom: 0;
    min-height: 380px;
  }
  .area:last-child { border-right: 0; }
  .area:first-child { padding-left: 0; }
  .area:last-child { padding-right: 0; }
}
.area-num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold-soft); margin-bottom: 4px; }
.area h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 6vw, 38px); color: var(--paper); margin-bottom: 4px; }
.area p { color: color-mix(in oklab, var(--paper) 70%, transparent); font-size: 15px; line-height: 1.6; }
.area-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
}
.area-list li::before { content: "·  "; color: var(--gold-soft); font-style: normal; }
.area-foot { margin-top: auto; padding-top: 18px; }
.area .btn-link { color: var(--paper); border-bottom-color: color-mix(in oklab, var(--paper) 40%, transparent); }
.area .btn-link:hover { border-bottom-color: var(--gold-soft); }

/* ---------- SOBRE ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
}
.sobre-figure { aspect-ratio: 4/5; background: var(--paper-deep); }
.sobre h2 em { color: var(--gold); font-family: var(--serif); }
.sobre-body { max-width: 36em; }
.sobre-body p { font-family: var(--serif); font-size: clamp(17px, 4.4vw, 22px); line-height: 1.55; color: var(--ink-2); }
.sobre-credits {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-top: 1px solid var(--rule); padding-top: 28px;
}
.credit .num { font-family: var(--serif); font-size: clamp(28px, 7vw, 36px); color: var(--gold); display: block; line-height: 1; margin-bottom: 6px; }
.credit .lbl { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- AGENDA ---------- */
.agenda {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.agenda-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-areas:
    "date title"
    "date loc"
    "role role";
  gap: 4px 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.agenda-row:last-child { border-bottom: 0; }
.agenda-row .date { grid-area: date; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.agenda-row .title { grid-area: title; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.agenda-row .loc { grid-area: loc; font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }
.agenda-row .role { grid-area: role; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.agenda-row .arrow-cell { display: none; }
@media (min-width: 900px) {
  .agenda-row {
    grid-template-columns: 90px 1fr 1.5fr 1fr auto;
    grid-template-areas: "date title loc role arr";
    gap: 28px;
    align-items: center;
    padding: 28px 0;
  }
  .agenda-row .date { font-size: 22px; }
  .agenda-row .title { font-size: 22px; }
  .agenda-row .loc { font-size: 13px; }
  .agenda-row .role { font-size: 10.5px; margin-top: 0; }
  .agenda-row .arrow-cell { grid-area: arr; display: block; font-family: var(--serif); font-size: 22px; color: var(--ink-3); }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
}
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; } }
.footer-brand .name { font-family: var(--serif); font-size: clamp(32px, 8vw, 40px); color: var(--paper); line-height: 1; margin-bottom: 12px; }
.footer-brand .tag { font-family: var(--serif); font-style: italic; font-size: 16px; color: color-mix(in oklab, var(--paper) 70%, transparent); max-width: 22em; }
.footer-col h4 { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in oklab, var(--paper) 55%, transparent); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--paper); font-size: 14px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 10.5px; }
}

/* ---------- AUX ---------- */
.divider-glyph { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); padding: 24px 0; }
.divider-glyph::before, .divider-glyph::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.divider-glyph .glyph { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero { padding: 56px 0 40px; }
@media (min-width: 768px) { .page-hero { padding: 100px 0 60px; } }
.page-hero .crumbs {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.page-hero h1 { margin-bottom: 22px; }
.page-hero .lede { max-width: 32em; }

/* ---------- prevent horizontal scroll ---------- */
body, html { overflow-x: hidden; }
