/* Tutilda — folha de estilo única para todas as páginas */

:root {
  --bg: #f1f2f0;
  --bg-alt: #e3e5e2;
  --bg-dark: #141614;
  --ink: #171917;
  --ink-soft: #6a6e6a;
  --ink-inv: #f1f2f0;
  --ink-inv-soft: #b6bbb6;
  --accent: #2a6b3c;
  --accent2: #8a6a20;
  --accent2-dark: #c7a64f;
  --line: #c9cdc8;
  --line-soft: #d8dbd7;
  --pad: clamp(20px, 3.6vw, 48px);
  --field: clamp(16px, 3.4vw, 48px);
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: var(--field);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.9;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- cabeçalho ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  max-width: 1180px;
  margin: 0 auto 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.masthead__name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.masthead__name:hover { text-decoration: underline; text-underline-offset: 5px; }

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- placa principal ---------- */

.sheet {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--pad) clamp(34px, 4vw, 60px);
  background: var(--bg);
  border: 1px solid var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
  row-gap: 26px;
  align-items: start;
}

.col-main { grid-column: 1 / span 7; }
.col-side { grid-column: 9 / span 4; }
.col-wide { grid-column: 1 / span 9; }

/* ---------- hero ---------- */

.hero { padding-bottom: 8px; }

.hero__title { grid-column: 1 / span 8; }

.hero__spec { grid-column: 9 / span 4; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(29px, 3.9vw, 45px);
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

h1 .line { display: block; }

.hero__standfirst {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: 19px;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- tabelas laterais ---------- */

.spec {
  border: 1px solid var(--line);
  padding: 14px 16px 16px;
  font-size: 14px;
  line-height: 1.7;
}

.spec + .spec { margin-top: 18px; }

.spec__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
}

.spec dl { margin: 0; }

.spec dt {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.spec dd {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent2);
  color: var(--ink);
}

.spec dd:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.spec p { margin: 0 0 10px; color: var(--ink-soft); }
.spec p:last-child { margin-bottom: 0; }

/* ---------- secções ---------- */

.sec { padding: 44px 0; }

.sec:first-of-type { padding-top: 34px; }

.sec--tint {
  background: var(--bg-alt);
  margin: 0 calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.sec--dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
  margin: 0 calc(-1 * var(--pad));
  padding: 56px var(--pad);
}

.sec--dark h2,
.sec--dark h3,
.sec--dark p,
.sec--dark li { color: var(--ink-inv); }

.sec--dark .sec-num { color: var(--accent2-dark); }
.sec--dark .caption { color: var(--ink-inv-soft); }
.sec--dark .checklist li::before { background: var(--accent2-dark); }
.sec--dark a { color: #a9d4b4; }
.sec--dark a:focus-visible { outline-color: var(--accent2-dark); }

.sec-num {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--accent2);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.3;
  margin: 0 0 20px;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
  margin: 34px 0 14px;
}

p { margin: 0 0 28px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 19px; }

/* ---------- listas ---------- */

.checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.75;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.checklist li:last-child { margin-bottom: 0; }

.steps {
  margin: 0 0 28px;
  padding-left: 22px;
}

.steps li { margin-bottom: 14px; line-height: 1.75; }
.steps li::marker { color: var(--accent2); }

/* ---------- separadores ---------- */

.rule {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0;
}

.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--accent2);
}

.rule::before { left: 0; }
.rule::after { right: 0; }

.rule-swap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 28px;
}

.rule-swap .spec { grid-column: 9 / span 4; }

/* ---------- imagens ---------- */

.figure {
  margin: 0;
  display: contents;
}

.figure__img {
  grid-column: 1 / span 5;
  border: 1px solid var(--line);
  width: 100%;
}

.figure__cap {
  grid-column: 7 / span 4;
  align-self: end;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.detail-media { grid-column: 8 / span 5; }
.detail-text { grid-column: 1 / span 6; }

.detail-media img {
  border: 1px solid #3a3d3a;
  width: 100%;
}

.caption {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- rodapé ---------- */

.site-footer {
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 30px 0 4px;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.footer__name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
}

.footer__mail { font-size: 16px; }

.footer__line {
  height: 1px;
  background: var(--accent2);
  opacity: 0.45;
  margin-bottom: 20px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
}

.footer__note {
  max-width: 44ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  body { font-size: 17px; line-height: 1.85; }

  .grid,
  .rule-swap {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .col-main,
  .col-side,
  .col-wide,
  .hero__title,
  .hero__spec,
  .hero__standfirst,
  .figure__img,
  .figure__cap,
  .detail-media,
  .detail-text,
  .rule-swap .spec { grid-column: 1 / -1; }

  .figure__img { max-width: 420px; }
  .detail-media { max-width: 420px; }

  .sec { padding: 26px 0; }
  .sec:first-of-type { padding-top: 24px; }
  .sec--dark { padding: 34px var(--pad); }

  .masthead { margin-bottom: 18px; }
  .site-footer { margin-top: 38px; }
}

@media (max-width: 560px) {
  .nav ul { gap: 4px 16px; }
  .nav a { font-size: 14px; }
}
