/* Skadume — folha de estilos comum
   Paleta: campo cinza-esverdeado com terracota */

:root {
  --bg: #eaeee6;
  --bg-alt: #dbe2d5;
  --bg-dark: #26302a;
  --ink: #1b221d;
  --ink-soft: #67715f;
  --ink-invert: #eaeee6;
  --accent: #a8512c;
  --accent-2: #4e6f52;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 28px;
  --rhythm: 96px;
}

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

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

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

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

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

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.22;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 34px 0 10px;
}

p { margin: 0 0 20px; }

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

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

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

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

.lead {
  font-size: 1.12rem;
  line-height: 1.7;
}

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

.marker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-style: normal;
}

/* ---------- cabeçalho / navegação ---------- */

.site-head {
  border-bottom: 1px solid rgba(78, 111, 82, 0.35);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 26px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--accent); }

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

.site-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

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

.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
}

.hero-title { grid-column: 1 / 9; }

.hero-intro {
  grid-column: 1 / 5;
  margin-top: 34px;
}

.hero-figure {
  grid-column: 9 / 13;
  margin: 0;
  align-self: end;
  max-width: 480px;
}

.hero-figure img,
figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-kicker {
  margin: 0 0 20px;
  display: block;
}

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

.band {
  padding: var(--rhythm) 0;
  border-top: 1px solid rgba(78, 111, 82, 0.3);
}

.band--alt { background: var(--bg-alt); }

.band--dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
  border-top: none;
}

.band--dark h2,
.band--dark h3 { color: var(--ink-invert); }

.band--dark .caption,
.band--dark .marker { color: #9fb39b; }

.band--dark a { color: #e0a183; }

.band--dark .hairline { background: rgba(224, 161, 131, 0.4); }

.band--dark .band-no { color: #9fb39b; }

.band-no {
  grid-column: 1 / 2;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  padding-top: 8px;
}

.col-left {
  grid-column: 2 / 8;
}

.col-mid {
  grid-column: 3 / 11;
}

.col-wide {
  grid-column: 2 / 12;
}

.hairline {
  height: 1px;
  background: rgba(168, 81, 44, 0.55);
  border: 0;
  margin: 44px 0;
  grid-column: 1 / 13;
}

/* listas */

ul.plain,
ol.plain {
  margin: 0;
  padding: 0 0 0 1.05em;
}

ul.plain li,
ol.plain li {
  margin-bottom: 12px;
  padding-left: 4px;
}

ul.plain li::marker { color: var(--accent); }

ol.plain li::marker {
  color: var(--accent);
  font-family: var(--serif);
}

.two-cols {
  grid-column: 2 / 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.two-cols > * { min-width: 0; }

/* secção contrastante com imagem de pormenor */

.detail-figure {
  grid-column: 2 / 7;
  margin: 0;
}

.detail-text {
  grid-column: 8 / 13;
  align-self: center;
}

/* ---------- páginas interiores ---------- */

.page-head {
  padding: clamp(44px, 6vw, 76px) 0 12px;
}

.page-head h1 {
  grid-column: 1 / 10;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}

.page-head .lead {
  grid-column: 1 / 8;
  margin-top: 26px;
}

.prose { padding: 56px 0 var(--rhythm); }

.prose h2 { margin-top: 52px; }

.prose section:first-of-type h2 { margin-top: 0; }

/* About: coluna de texto à direita, etiquetas à esquerda */

.about-labels {
  grid-column: 1 / 5;
  border-top: 1px solid rgba(168, 81, 44, 0.55);
  padding-top: 16px;
}

.about-labels dl { margin: 0; }

.about-labels dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding-top: 14px;
}

.about-labels dd {
  margin: 4px 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(78, 111, 82, 0.32);
  padding-bottom: 14px;
}

.about-labels dd:last-of-type { border-bottom: none; }

.about-body { grid-column: 6 / 13; }

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

.site-foot {
  background: var(--bg-dark);
  color: var(--ink-invert);
  padding: 64px 0 52px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.foot-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 10px;
}

.foot-note {
  font-size: 13px;
  line-height: 1.7;
  color: #9fb39b;
  margin: 0;
  max-width: 34ch;
}

.site-foot nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot nav li { margin-bottom: 10px; }

.site-foot a {
  color: var(--ink-invert);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 81, 44, 0.8);
  font-size: 15px;
}

.site-foot a:hover { color: #e0a183; }

.foot-contact p { margin: 0 0 8px; font-size: 15px; }

.foot-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fb39b;
  margin-bottom: 8px;
}

.site-foot :focus-visible { outline-color: #e0a183; }

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

@media (max-width: 900px) {
  :root { --rhythm: 68px; }

  .hero-title { grid-column: 1 / 13; }
  .hero-intro { grid-column: 1 / 9; }
  .hero-figure {
    grid-column: 1 / 10;
    margin-top: 40px;
    max-width: 420px;
  }

  .band-no { grid-column: 1 / 13; padding-top: 0; margin-bottom: 8px; }
  .col-left,
  .col-mid,
  .col-wide,
  .two-cols,
  .detail-figure,
  .detail-text,
  .about-labels,
  .about-body,
  .page-head h1,
  .page-head .lead { grid-column: 1 / 13; }

  .detail-figure { max-width: 460px; margin-bottom: 36px; }
  .about-body { margin-top: 40px; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --rhythm: 56px; --gutter: 20px; }

  body { font-size: 16px; line-height: 1.75; }

  .two-cols { grid-template-columns: 1fr; row-gap: 0; }
  .hero-figure { max-width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 6px 16px; }
}
