/* Krameldo — folha de estilos comum */
:root {
  --bg: #191919;
  --bg-alt: #212121;
  --bg-light: #f0eeec;
  --text: #e8e6e4;
  --muted: #918e8c;
  --ink: #191919;
  --accent: #c96f76;
  --accent-2: #8ca0a8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step: 80px;
  --gap: 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(--sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

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; border-radius: 1px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.2; margin-bottom: 28px; }
h3 { font-style: italic; font-size: 1.3rem; line-height: 1.35; margin: 36px 0 12px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--text); }

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  line-height: 1.5;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--ink);
  padding: 8px 14px; z-index: 10; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Grelha ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

.band { padding: var(--step) 0; }
.band--alt { background: var(--bg-alt); }
.band--light { background: var(--bg-light); color: var(--ink); }

/* Coluna de serviço: rótulo + escala */
.rail { grid-column: 1 / span 2; position: relative; }
.rail .label { display: block; }
.rail .num { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--accent-2); line-height: 1; margin-bottom: 10px; }
.rail::after {
  content: "";
  display: block;
  width: 12px;
  height: 120px;
  margin-top: 18px;
  background:
    repeating-linear-gradient(to bottom, var(--accent-2) 0 1px, transparent 1px 12px) left top / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--accent) 0 1px, transparent 1px 60px) left top / 12px 100% no-repeat;
  opacity: .8;
}

.body { grid-column: 3 / span 7; }
.wide { grid-column: 3 / span 9; }

/* Traços separadores tipo divisões de escala */
.ticks {
  height: 24px;
  width: 168px;
  margin: 32px 0;
  background: repeating-linear-gradient(to right, var(--accent-2) 0 1px, transparent 1px 14px);
  opacity: .7;
}
.ticks--accent { background: repeating-linear-gradient(to right, var(--accent) 0 1px, transparent 1px 14px); width: 57px; margin: 28px 0; }

/* ---------- Cabeçalho ---------- */
.site-header { border-bottom: 1px solid #2e2e2e; }
.site-header .grid { align-items: center; padding-top: 20px; padding-bottom: 20px; }
.brand {
  grid-column: 1 / span 3;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.nav { grid-column: 4 / span 9; justify-self: end; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: .04em; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--step) * 1.25) 0 var(--step); }
.hero .grid { align-items: stretch; }
.scale {
  grid-column: 1 / span 2;
  display: flex;
  gap: 14px;
  min-height: 300px;
}
.scale__bar {
  width: 16px;
  flex: none;
  background:
    repeating-linear-gradient(to bottom, var(--accent-2) 0 1px, transparent 1px 10px) left top / 7px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--accent-2) 0 1px, transparent 1px 50px) left top / 16px 100% no-repeat;
  border-left: 1px solid var(--accent-2);
}
.scale__nums {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 12px; letter-spacing: .14em; color: var(--muted);
}
.scale__nums li:nth-child(3) { color: var(--accent); }
.hero__text { grid-column: 3 / span 6; }
.hero__text .label { margin-bottom: 26px; display: block; }
.hero h1 { margin-bottom: 32px; }
.hero h1 span { display: block; }
.lede { font-size: 1.12rem; color: var(--text); max-width: 38em; }
.hero__meta { grid-column: 10 / span 3; align-self: end; color: var(--muted); font-size: 14px; border-left: 1px solid #333; padding-left: 18px; }
.hero__meta ol { margin: 8px 0 0; padding-left: 1.3em; }
.hero__meta a { color: var(--muted); }
.hero__meta a:hover { color: var(--accent); }

/* ---------- Imagem principal ---------- */
.figure-main { padding-bottom: var(--step); }
.figure-main .caption {
  grid-column: 1 / span 3;
  align-self: end;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding-right: 8px;
}
.figure-main .caption .label { display: block; margin-bottom: 10px; }
.figure-main .frame { grid-column: 4 / span 9; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Listas ---------- */
.checklist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  columns: 2;
  column-gap: var(--gap);
}
.checklist li {
  break-inside: avoid;
  position: relative;
  padding: 0 0 18px 26px;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 1px; height: 14px;
  background: var(--accent);
  box-shadow: 5px 0 0 var(--accent), 10px 0 0 var(--accent-2);
}
.checklist--single { columns: 1; }

ol.steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 16px 44px; }
ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 3px;
  font-size: 12px; letter-spacing: .14em; color: var(--accent-2);
}

.note {
  border-left: 1px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 15px;
  margin-top: 28px;
}

/* ---------- Secção clara com imagem de detalhe ---------- */
.band--light .label, .band--light .rail .num { color: #56676e; }
.band--light a { color: #9b434b; }
.band--light a:focus-visible { outline-color: #9b434b; }
.band--light strong { color: var(--ink); }
.band--light .note { color: #4a4846; border-left-color: #9b434b; }
.band--light ol.steps li::before { color: #56676e; }
.detail { grid-column: 1 / span 5; margin: 0; }
.detail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail figcaption { font-size: 13px; color: #5b5856; margin-top: 12px; line-height: 1.55; }
.detail-text { grid-column: 7 / span 6; }
.detail-text .label { display: block; margin-bottom: 18px; }
.band--light .ticks { background: repeating-linear-gradient(to right, #56676e 0 1px, transparent 1px 14px); }

.temps { width: 100%; border-collapse: collapse; margin: 24px 0 8px; font-size: 15px; }
.temps th, .temps td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #c9c5c1; vertical-align: top; }
.temps th { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #56676e; }

/* ---------- Páginas de texto (Sobre, Privacidade, Termos) ---------- */
.page-head { padding: calc(var(--step) * 1.25) 0 var(--step); border-bottom: 1px solid #2e2e2e; }
.page-head .label { grid-column: 1 / span 2; padding-top: 14px; }
.page-head h1 { grid-column: 3 / span 8; margin-bottom: 24px; }
.page-head .lede { grid-column: 3 / span 7; color: var(--muted); }

.doc { padding: var(--step) 0; }
.doc-rail { grid-column: 1 / span 2; }
.doc-rail nav { position: sticky; top: 32px; }
.doc-rail ol {
  list-style: none; margin: 0; padding: 0 0 0 18px;
  border-left: 1px solid var(--accent-2);
  background: repeating-linear-gradient(to bottom, var(--accent-2) 0 1px, transparent 1px 12px) left top / 6px 100% no-repeat;
}
.doc-rail li { margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.45; }
.doc-rail a { color: var(--muted); text-decoration: none; }
.doc-rail a:hover { color: var(--accent); }
.doc-body { grid-column: 3 / span 7; }
.doc-body section + section { margin-top: 12px; }
.doc-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 18px; scroll-margin-top: 24px; }
.doc-body ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: 6px; }
.doc-body li::marker { color: var(--accent); }
.contact-line { font-family: var(--serif); font-size: 1.25rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--bg); border-top: 1px solid #2e2e2e; padding: 40px 0 32px; }
.patchbay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid #333;
}
.patchbay__name { font-family: var(--serif); font-size: 1.25rem; color: var(--text); text-decoration: none; flex: none; }
.patchbay__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.patchbay__links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.patchbay__links a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.patchbay__mail { flex: none; font-size: 14px; }
.footer-note { margin: 16px 0 0; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.site-footer .wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--edge); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  :root { --edge: 32px; }
  .hero__text { grid-column: 3 / span 10; }
  .hero__meta { grid-column: 3 / span 10; margin-top: 40px; }
  .body { grid-column: 3 / span 9; }
  .wide { grid-column: 3 / span 10; }
  .figure-main .frame { grid-column: 3 / span 10; }
  .figure-main .caption { grid-column: 3 / span 10; order: 2; margin-top: 14px; }
  .detail { grid-column: 1 / span 5; }
  .detail-text { grid-column: 6 / span 7; }
  .doc-body { grid-column: 3 / span 10; }
  .page-head h1, .page-head .lede { grid-column: 3 / span 10; }
}

@media (max-width: 760px) {
  :root { --step: 48px; --edge: 20px; --gap: 16px; }
  body { font-size: 16.5px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }

  .site-header .grid { row-gap: 12px; }
  .nav { justify-self: start; }
  .nav ul { justify-content: flex-start; gap: 4px 18px; }

  .rail { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
  .rail .num { font-size: 1.2rem; margin: 0; }
  .rail::after { width: 56px; height: 12px; margin: 0; align-self: center;
    background: repeating-linear-gradient(to right, var(--accent-2) 0 1px, transparent 1px 8px); }

  .hero { padding-top: var(--step); }
  .scale { min-height: 0; margin-bottom: 24px; flex-direction: column; gap: 8px; }
  .scale__bar { width: 100%; height: 14px; border-left: 0; border-bottom: 1px solid var(--accent-2);
    background: repeating-linear-gradient(to right, var(--accent-2) 0 1px, transparent 1px 10px) left bottom / 100% 7px no-repeat,
                repeating-linear-gradient(to right, var(--accent-2) 0 1px, transparent 1px 50px) left bottom / 100% 14px no-repeat; }
  .scale__nums { flex-direction: row; }
  .hero__meta { margin-top: 32px; }

  .checklist { columns: 1; }
  .detail { margin-bottom: 32px; max-width: 420px; }
  .temps { font-size: 14px; }
  .temps th, .temps td { padding-right: 8px; }

  .page-head .label { padding-top: 0; margin-bottom: 14px; }
  .doc-rail { margin-bottom: 32px; }
  .doc-rail nav { position: static; }
  .doc-rail ol { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--accent-2);
    background: repeating-linear-gradient(to right, var(--accent-2) 0 1px, transparent 1px 12px) left top / 100% 6px no-repeat; }
  .doc-rail li { margin: 0; }

  .patchbay { flex-direction: column; align-items: flex-start; }
  .patchbay__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }
