/* Britrude — folha de estilo comum
   Sistema «rail-scale»: linho claro, grafite e azul. */

:root {
  --bg: #f4f0e8;
  --bg-alt: #e7e1d5;
  --bg-dark: #20242a;
  --ink: #22201b;
  --ink-soft: #776f62;
  --ink-invert: #f4f0e8;
  --accent: #2c4668;
  --accent-2: #a06a2c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --step: 80px;
  --gap: 24px;
  --shell: 1240px;
}

* { box-sizing: border-box; }

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

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

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

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

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

/* ---------- grelha de 12 colunas ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* coluna de serviço: 1–2 */
.rail { grid-column: 1 / 3; }
.rail-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 12px;
}
.rail-num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0;
}

/* escala vertical em CSS puro */
.ticks {
  margin-top: 14px;
  height: 120px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent) 0,
    var(--accent) 1px,
    transparent 1px,
    transparent 12px
  );
  width: 24px;
  opacity: 0.55;
}
.ticks--long {
  height: 220px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent) 0,
    var(--accent) 1px,
    transparent 1px,
    transparent 16px
  );
}

/* traços separadores curtos (24px) */
.strokes {
  display: flex;
  gap: 10px;
  margin: 28px 0;
}
.strokes span {
  display: block;
  width: 1px;
  height: 24px;
  background: var(--accent-2);
  opacity: 0.6;
}

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

.site-head {
  border-bottom: 1px solid rgba(34, 32, 27, 0.16);
}
.site-head .grid {
  align-items: baseline;
  padding: 20px 0 18px;
  row-gap: 10px;
}
.brand {
  grid-column: 1 / 5;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.site-nav { grid-column: 5 / 13; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: flex-end;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

h1 {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
h2 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.24;
  font-weight: 400;
  margin: 0 0 18px;
}
h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
  margin: 30px 0 10px;
}
p { margin: 0 0 22px; }
.lede {
  font-size: 20px;
  color: var(--ink);
}
.note {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

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

.band { padding: var(--step) 0; }
.band--alt { background: var(--bg-alt); }
.band--dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
}
.band--dark h2,
.band--dark h3 { color: var(--ink-invert); }
.band--dark .rail-num { color: #9a9287; }
.band--dark .ticks { background-image: repeating-linear-gradient(to bottom, #6f7c92 0, #6f7c92 1px, transparent 1px, transparent 12px); opacity: 0.8; }
.band--dark a { color: #a8bfe0; }
.band--dark .note { color: #a59c8f; }

.hero { padding: 72px 0 var(--step); }
.hero .rail { align-self: start; }
.hero-body { grid-column: 3 / 9; }
.hero-body h1 { max-width: 15ch; }
.hero-meta {
  grid-column: 10 / 13;
  align-self: end;
}

.col-text { grid-column: 3 / 10; }
.col-wide { grid-column: 3 / 12; }
.col-dark-text { grid-column: 3 / 9; }

/* imagem principal: 9 colunas, encostada à direita */
.figure-main { padding-bottom: var(--step); }
.figure-main figure {
  grid-column: 4 / 13;
  margin: 0;
}
.figure-main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.figure-main .cap {
  grid-column: 1 / 4;
  align-self: end;
  padding-bottom: 4px;
}
.cap {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.cap b {
  display: block;
  font-weight: 400;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px;
}

/* imagem de detalhe dentro da secção escura */
.figure-detail { grid-column: 8 / 13; }
.figure-detail figure { margin: 0; }
.figure-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.figure-detail .cap { color: #a59c8f; }
.figure-detail .cap b { color: #c08d4e; }

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

ul.plain, ol.plain { padding-left: 20px; margin: 0 0 22px; }
ul.plain li, ol.plain li { margin-bottom: 10px; }
ul.plain li::marker { color: var(--accent); }
ol.plain li::marker { color: var(--accent); font-family: var(--sans); font-size: 14px; }

.two-col {
  grid-column: 3 / 12;
  columns: 2;
  column-gap: 48px;
}
.two-col ul { margin: 0; padding-left: 20px; }
.two-col li {
  margin: 0 0 14px;
  break-inside: avoid;
}
.two-col li::marker { color: var(--accent); }

.steps {
  grid-column: 3 / 12;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}
.steps li {
  border-top: 1px solid rgba(34, 32, 27, 0.2);
  padding: 16px 0 20px;
}
.steps .n {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.steps strong { font-weight: 700; }
.band--dark .steps li { border-top-color: rgba(244, 240, 232, 0.24); }

/* ---------- rodapé (patchbay) ---------- */

.site-foot {
  border-top: 1px solid rgba(34, 32, 27, 0.16);
  padding: 34px 0 40px;
  background: var(--bg);
}
.foot-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: center;
  row-gap: 14px;
}
.foot-name {
  grid-column: 1 / 4;
  font-size: 19px;
  font-weight: 700;
}
.foot-links {
  grid-column: 4 / 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 13px;
}
.foot-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(44, 70, 104, 0.4); }
.foot-links a:hover { border-bottom-color: var(--accent); }
.foot-mail {
  grid-column: 10 / 13;
  text-align: right;
  font-family: var(--sans);
  font-size: 13px;
}
.foot-rule {
  height: 1px;
  background: rgba(34, 32, 27, 0.16);
  margin: 26px 0 12px;
}
.foot-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- páginas de texto ---------- */

.doc { padding: 64px 0 var(--step); }
.doc .rail { position: sticky; top: 28px; align-self: start; }
.doc-index {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.doc-index li { margin-bottom: 8px; }
.doc-index a { color: var(--ink-soft); text-decoration: none; }
.doc-index a:hover { color: var(--accent); }
.doc-body { grid-column: 3 / 10; }
.doc-body h2 { margin-top: 0; }
.doc-body section + section { margin-top: 44px; }

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

@media (max-width: 900px) {
  :root { --step: 56px; --gap: 18px; }
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  .hero-body, .hero-meta,
  .col-text, .col-wide, .col-dark-text,
  .two-col, .steps,
  .figure-main figure, .figure-main .cap,
  .figure-detail, .doc-body { grid-column: 1 / 13; }
  .hero-meta { margin-top: 26px; }
  .figure-detail { margin-top: 34px; }
  .two-col { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { grid-column: 1 / 13; }
  .site-nav ul { justify-content: flex-start; }
  .brand { grid-column: 1 / 13; }
  .foot-name, .foot-links, .foot-mail { grid-column: 1 / 13; }
  .foot-links { justify-content: flex-start; }
  .foot-mail { text-align: left; }
  .doc .rail { position: static; }
  .doc-index { display: none; }
}

@media (max-width: 640px) {
  :root { --step: 48px; }
  body { font-size: 17px; }
  h1 { font-size: 33px; }
  h2 { font-size: 23px; }
  .lede { font-size: 18px; }
  .shell { padding: 0 18px; }
  /* a coluna de serviço colapsa numa etiqueta em linha */
  .rail { grid-column: 1 / 13; margin-bottom: 16px; }
  .rail .ticks { display: none; }
  .rail-label { display: inline; margin-right: 10px; }
  .rail-num { display: inline; }
  .hero { padding: 44px 0 var(--step); }
}
