:root {
  --paper: #f4efe4;
  --paper2: #e7e0d1;
  --card: #fbf7ef;
  --ink: #1c1712;
  --ink2: #3f382f;
  --pine: #1b3c36;
  --pine2: #0f2925;
  --rust: #8d3b22;
  --line: #d3c8b4;
  --warn: #f3e2c4;
  --dark: #14221f;
  --muted: #d5ddd8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Literata, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 460;
}
img { max-width: 100%; height: auto; }
a { color: var(--pine); }
a:hover { color: var(--rust); }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.site-header {
  background: var(--pine2);
  color: #f6f1e6;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 4px solid var(--rust);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.brand span { color: #e7b089; }
nav[aria-label="Secções"] { display: flex; flex-wrap: wrap; gap: 8px 18px; }
nav[aria-label="Secções"] a {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #f6f1e6;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav[aria-label="Secções"] a[aria-current="page"] { border-bottom-color: #e7b089; color: #fff; }
nav[aria-label="Secções"] a:hover { color: #e7b089; }
.agebar {
  background: var(--rust);
  color: #fffaf5;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.45;
  padding: 10px 18px;
  text-align: center;
}
.agebar a { color: #fff; }
main { padding: 36px 0 72px; }
.kicker {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 560; color: var(--ink); letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; margin: 0 0 14px; }
h3 { font-size: 28px; line-height: 1.2; margin: 0 0 10px; }
.lede { font-size: 23px; line-height: 1.55; color: var(--ink2); margin: 0; }
p { margin: 0 0 16px; }
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 42px;
}
figure { margin: 0; }
figure img { display: block; width: 100%; border-radius: 6px; }
figcaption {
  font-size: 16px;
  font-style: italic;
  color: var(--ink2);
  margin-top: 8px;
}
.prose { max-width: 78ch; }
.prose.wide { max-width: none; }
.drop::first-letter {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  float: left;
  font-size: 78px;
  line-height: 0.75;
  padding: 10px 10px 0 0;
  color: var(--pine);
}
.pull {
  margin: 34px 0;
  padding: 8px 0 8px 22px;
  border-left: 4px solid var(--rust);
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-style: italic;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  color: var(--pine2);
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin: 28px 0 10px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 22px 8px;
}
.panel h2, .panel h3 { font-size: 30px; }
.note-list { margin: 0 0 16px; padding: 0; list-style: none; }
.note-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 19px;
}
.page-figure { margin: 10px 0 32px; }
.page-figure img { width: min(100%, 820px); }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; align-items: stretch; }
.op {
  background: var(--card);
  border-top: 5px solid var(--pine);
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
}
.op:nth-child(even) { border-top-color: var(--rust); }
.op h2 { font-size: 32px; }
.op p, .op li { font-size: 18px; }
.op ul { margin: 0 0 14px; padding-left: 1.15em; }
.op li { margin: 0 0 6px; }
.op .btn { margin-top: auto; align-self: flex-start; }
.steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 48px;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  color: var(--rust);
  line-height: 1;
}
.prose ul, .prose ol.bullets { margin: 0 0 18px; padding-left: 1.25em; }
.prose li { margin: 0 0 8px; }
.meta {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink2);
  margin-bottom: 12px;
}
.btn {
  display: inline-block;
  margin: 6px 0 12px;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 650;
  padding: 12px 16px;
  border-radius: 2px;
}
.btn:hover { background: var(--rust); color: #fff; }
.warn {
  background: var(--warn);
  border: 1px solid #e0c48a;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.table-wrap { overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 760px; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.45;
}
th {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper2);
  color: var(--pine2);
}
.after { margin-top: 36px; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0 20px; }
.links-row a { font-family: Outfit, "Segoe UI", sans-serif; font-size: 18px; font-weight: 650; }
footer {
  background: var(--dark);
  color: var(--muted);
  padding: 36px 0 22px;
  font-size: 17.5px;
  line-height: 1.55;
}
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; gap: 28px; }
.foot-title {
  font-family: Fraunces, Georgia, serif;
  color: #fff;
  font-size: 24px;
  margin: 0 0 10px;
}
footer ul, .foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
footer li { margin: 0; }
footer li a, .foot-links a {
  display: inline-block;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  color: #f6f1e6;
  background: #1c312d;
  border: 1px solid #3d574f;
  border-radius: 4px;
  padding: 8px 12px;
}
footer li a:hover, .foot-links a:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.copyright {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #2c3d39;
  font-size: 16px;
  color: #b7c4be;
}
.cookiebar {
  position: sticky;
  bottom: 0;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  background: var(--pine2);
  color: #f6f1e6;
  padding: 14px 18px;
  font-size: 17px;
}
.cookiebar[hidden] { display: none; }
.cookiebar p { margin: 0; max-width: 78ch; }
.cookiebar a { color: #e7b089; }
.cookiebar button {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 650;
  background: #f4efe4;
  color: var(--pine2);
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
}
@media (max-width: 860px) {
  body { font-size: 19px; }
  .hero, .split, .foot-grid, .ops { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  .drop::first-letter { font-size: 60px; }
}
