/* Skastego — folha de estilos comum */

:root {
  --bg: #191919;
  --bg-alt: #212121;
  --paper: #f0eeec;
  --text: #e8e6e4;
  --muted: #918e8c;
  --ink: #191919;
  --rose: #c96f76;
  --rose-deep: #9c4a52;
  --steel: #8ca0a8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --step: 84px;
  --gutter: 24px;
  --edge: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 14px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* ---------- grelha ---------- */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* colunas de texto: 7 colunas, cada secção uma coluna mais à direita */
.col-text { grid-column: 1 / span 7; min-width: 0; }
.shift-1 .col-text { grid-column: 2 / span 7; }
.shift-2 .col-text { grid-column: 3 / span 7; }
.shift-3 .col-text { grid-column: 4 / span 7; }

/* ---------- tipografia ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 1.1em;
}

h3 {
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.3;
  margin: 1.9em 0 0.6em;
}

p { margin: 0 0 1.35em; }

.num {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

.lede { font-size: 1.12rem; }

/* listas com marcadores quadrados */
.sq {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35em;
}
.sq li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.5em;
}
.sq li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--rose);
}

/* lista de verificação */
.check {
  list-style: none;
  counter-reset: c;
  padding: 18px 0 4px;
  margin: 1.6em 0;
  border-top: 1px solid #3a3a3a;
}
.check li {
  counter-increment: c;
  position: relative;
  padding-left: 42px;
  margin-bottom: 0.7em;
}
.check li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.28em;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.check-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2em 0 0;
}

/* ---------- cruzes de registo ---------- */

.reg {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--muted);
}
.reg::before { left: 0; right: 0; top: 50%; height: 1px; }
.reg::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.reg i {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}
.reg.tl { top: -13px; left: -13px; }
.reg.tr { top: -13px; right: -13px; }
.reg.bl { bottom: -13px; left: -13px; }
.reg.br { bottom: -13px; right: -13px; }

/* ---------- separador: duas linhas desencontradas ---------- */

.sep {
  position: relative;
  height: 10px;
  margin-bottom: 40px;
}
.sep::before,
.sep::after {
  content: "";
  position: absolute;
  left: 0;
  height: 2px;
}
.sep::before { top: 0; width: 100%; background: var(--rose); }
.sep::after { top: 6px; left: 24px; width: calc(100% - 24px); background: var(--steel); }

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

.site-head {
  border-bottom: 1px solid #2c2c2c;
  font-family: var(--sans);
  font-size: 12px;
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.brand span { color: var(--muted); font-weight: 400; letter-spacing: 0.08em; text-transform: none; margin-left: 10px; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
  display: inline-block;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--rose); }

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

.hero { padding: var(--step) 0; }
.hero-frame {
  position: relative;
  padding: 64px 48px 56px;
}
.hero h1 { grid-column: 1 / span 9; margin-bottom: 56px; }
.hero h1 .ln { display: block; }
.hero h1 .ln2 { position: relative; display: inline-block; }
.hero h1 .ln2::after {
  content: "";
  position: absolute;
  left: 0.2em;
  right: -0.4em;
  top: 58%;
  height: 3px;
  background: var(--rose);
  opacity: 0.85;
  transform: translate(6px, 9px);
}
.hero .intro { grid-column: 1 / span 5; }
.hero .topics { grid-column: 8 / span 5; }
.hero .topics .sq { font-size: 16px; }
.hero .topics .sq a { color: var(--text); text-decoration-color: #555; }
.hero .topics .sq a:hover { text-decoration-color: var(--rose); }

/* ---------- imagem principal ---------- */

.lead-figure { padding: 0 0 var(--step); }
.lead-figure figure {
  grid-column: 3 / span 8;
  position: relative;
  margin: 0;
}
.lead-figure .frame { position: relative; }
.lead-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 22px;
  max-width: 34em;
}
figcaption b { color: var(--steel); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 8px; }

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

.sec { padding: var(--step) 0; }
.sec.alt { background: var(--bg-alt); }

.sec.paper {
  background: var(--paper);
  color: var(--ink);
}
.paper a { color: var(--rose-deep); }
.paper a:focus-visible { outline-color: var(--rose-deep); }
.paper .num { color: #56696f; }
.paper figcaption { color: #5a5755; }
.paper figcaption b { color: #56696f; }
.paper .reg::before,
.paper .reg::after { background: #8a8683; }
.paper .reg i { border-color: #8a8683; }
.paper .sq li::before { background: var(--rose-deep); }

.detail-figure {
  grid-column: 1 / span 5;
  margin: 0;
  position: relative;
  align-self: start;
}
.detail-figure .frame { position: relative; }
.detail-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail-text { grid-column: 7 / span 6; min-width: 0; }

.contact-line {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ---------- páginas interiores (Sobre, Privacidade, Termos) ---------- */

.page-head { padding: var(--step) 0 0; }
.page-head .col-text { grid-column: 3 / span 7; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); margin-bottom: 28px; }
.page-head .lede { color: var(--text); }

.marked { padding: var(--step) 0; }
.marked article {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-bottom: 64px;
}
.marked article:last-child { margin-bottom: 0; }
.marked .rail { grid-column: 1 / span 2; position: relative; }
.marked .rail .reg { position: absolute; top: 10px; left: 0; }
.marked .rail .reg::before,
.marked .rail .reg::after { background: var(--steel); }
.marked .rail .reg i { border-color: var(--steel); }
.marked .body { grid-column: 3 / span 7; min-width: 0; }
.marked h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.updated { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

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

.site-foot {
  background: var(--paper);
  color: var(--ink);
  padding: 64px 0 48px;
}
.site-foot .sep { margin-bottom: 44px; max-width: 58%; }
.site-foot .sep::before { background: var(--rose-deep); }
.site-foot .sep::after { background: #6f858d; }
.foot-about { grid-column: 1 / span 7; min-width: 0; }
.foot-about .name {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 14px;
}
.foot-about p { max-width: 32em; font-size: 16px; }
.foot-nav { grid-column: 8 / span 5; font-family: var(--sans); font-size: 14px; min-width: 0; }
.foot-nav ul { list-style: none; padding: 0; margin: 0 0 22px; columns: 2; column-gap: 24px; }
.foot-nav li { margin-bottom: 8px; break-inside: avoid; }
.foot-nav a { color: var(--ink); text-decoration-color: #b9b5b1; }
.foot-nav a:hover { text-decoration-color: var(--rose-deep); }
.foot-nav a:focus-visible,
.foot-about a:focus-visible { outline-color: var(--rose-deep); }
.foot-mail a { color: var(--rose-deep); overflow-wrap: anywhere; }
.foot-small {
  grid-column: 1 / -1;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #d3cfcb;
  font-family: var(--sans);
  font-size: 12px;
  color: #5a5755;
}

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

@media (max-width: 1024px) {
  :root { --edge: 32px; --gutter: 20px; }
  .col-text,
  .shift-1 .col-text,
  .shift-2 .col-text,
  .shift-3 .col-text { grid-column-end: span 9; }
  .shift-3 .col-text { grid-column-start: 3; }
  .hero h1 { grid-column: 1 / -1; }
  .hero .intro { grid-column: 1 / span 7; }
  .hero .topics { grid-column: 8 / span 5; }
  .lead-figure figure { grid-column: 2 / span 10; }
  .detail-figure { grid-column: 1 / span 5; }
  .detail-text { grid-column: 6 / span 7; }
  .page-head .col-text,
  .marked .body { grid-column: 3 / span 10; }
}

@media (max-width: 760px) {
  :root { --step: 50px; --edge: 16px; --gutter: 16px; }
  body { font-size: 17px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }
  .hero-frame { padding: 40px 20px 36px; }
  .reg.tl { top: -9px; left: -9px; }
  .reg.tr { top: -9px; right: -9px; }
  .reg.bl { bottom: -9px; left: -9px; }
  .reg.br { bottom: -9px; right: -9px; }
  .reg { width: 18px; height: 18px; }
  .reg i { inset: 4px; }
  .hero h1 { margin-bottom: 32px; }
  .hero .intro { margin-bottom: 12px; }
  .lead-figure figure { margin: 0 10px; }
  .detail-figure { max-width: 420px; margin: 0 10px 36px; }
  .marked article { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; margin-bottom: 44px; }
  .marked .rail { grid-column: 1; }
  .marked .body { grid-column: 2; }
  .page-head .col-text { grid-column: 1 / -1; }
  .site-foot .sep { max-width: 100%; }
  .foot-about { margin-bottom: 28px; }
  .brand span { display: none; }
}
