/*
  Newsletter do Pedro Ganço: páginas públicas.
  Tokens e shell copiados de pedroganco.ai/styles.css (versão de 2026-09-28). Ao sincronizar,
  mexer só no bloco "Copiado do site"; o bloco "Newsletter" é próprio deste subdomínio.
*/

/* ---------- Fontes servidas daqui (sem Google Fonts) ---------- */
/* Inter Tight variavel, subsets latin e latin-ext do Google Fonts (v9), licenca SIL OFL em fonts/OFL.txt */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Copiado do site (2026-09-28) ---------- */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --text: #141414;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --accent: #C2410C;
  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(80px, 12vw, 160px);
  --max: 1200px;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

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

.site {
  max-width: calc(var(--max) + 2 * var(--gutter));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}

.site > main { flex: 1; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0;
  font-size: 15px;
}

.site-name { font-weight: 500; text-decoration: none; }

.label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.band {
  --text: #F2F2F2;
  --muted: #8F8F8F;
  --line: #262626;
  --accent: #F0773D;
  background: #0A0A0A;
  color: var(--text);
  box-shadow: 0 0 0 100vmax #0A0A0A;
  clip-path: inset(0 -100vmax);
}

.band ::selection { background: var(--accent); color: #0A0A0A; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.site-footer a { text-decoration: none; transition: color 200ms ease; }

.site-footer a:hover { color: var(--accent); }

.hero-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-muted { color: var(--muted); }

.section-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.work-arrow { transition: transform 200ms var(--ease); }

.contact { padding: var(--section) 0; }

.contact-email {
  display: inline-block;
  margin-top: 20px;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 200ms ease;
}

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

.page-intro { padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 80px); }

.page-title {
  margin: 12px 0 0;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-lead { max-width: 52ch; margin: 20px 0 0; color: var(--muted); font-size: 17px; }

.talk-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.talk-list li { border-bottom: 1px solid var(--line); }

.talk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 28px 0;
  text-decoration: none;
  transition: color 200ms ease;
}

.talk-row > span { grid-column: 1; }

.talk-row > .work-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: start; }

.talk-title { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; }

.talk-desc { max-width: 60ch; color: var(--muted); font-size: 15px; }

.talk-row:hover,
.talk-row:focus-visible { color: var(--accent); }

.talk-row:hover .work-arrow,
.talk-row:focus-visible .work-arrow { transform: translate(4px, -4px); }

.legal-main { padding: clamp(48px, 8vw, 112px) 0 var(--section); }

.legal { max-width: 680px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.reveal { animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Newsletter ---------- */

/* Topo: "Pedro Ganço / Newsletter" à esquerda, Arquivo à direita */
.site-crumb { display: flex; gap: 8px; align-items: baseline; }

.site-crumb .sep,
.site-crumb .crumb { color: var(--muted); text-decoration: none; transition: color 200ms ease; }

.site-crumb .crumb:hover,
.site-nav a:hover { color: var(--accent); }

.site-nav a { color: var(--muted); text-decoration: none; transition: color 200ms ease; }

.site-nav a[aria-current="page"] { color: var(--text); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero da subscrição */
.sub-hero { padding: clamp(64px, 10vw, 140px) 0 0; }

.sub-hero .hero-title { max-width: 22ch; }

/* Formulário: campo e botão na mesma linha, empilhados abaixo de 560px */
.subscribe { max-width: 560px; margin-top: clamp(40px, 5vw, 64px); }

.field-label { display: block; margin-bottom: 8px; }

.field-row { display: flex; gap: 8px; }

.input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.input::placeholder { color: #8A8A8A; }

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

.input[aria-invalid="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.button:hover,
.button:focus-visible { background: var(--accent); border-color: var(--accent); }

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

.button[disabled] { background: var(--muted); border-color: var(--muted); cursor: progress; }

/* Barra de progresso no botão a enviar: 3 pontos que pulsam, sem spinner */
.dots { display: none; gap: 3px; }

.button[aria-busy="true"] .dots { display: inline-flex; }

.dots i { width: 4px; height: 4px; background: currentColor; animation: pulse 900ms infinite; }

.dots i:nth-child(2) { animation-delay: 150ms; }

.dots i:nth-child(3) { animation-delay: 300ms; }

@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: 1; } }

.field-error { margin: 10px 0 0; color: var(--accent); font-size: 15px; }

.field-error::before { content: "Erro: "; font-weight: 500; }

.consent { max-width: 52ch; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.consent a { color: var(--text); text-underline-offset: 3px; }

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

/* Honeypot: fora do ecrã para pessoas e leitores de ecrã, visível para bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Estado de sucesso: substitui o formulário */
.done { max-width: 560px; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 2px solid var(--text); }

.done h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }

.done p { margin: 12px 0 0; font-size: 17px; }

.done .muted { color: var(--muted); font-size: 15px; }

.text-link { color: var(--text); text-underline-offset: 3px; transition: color 200ms ease; }

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

.done:focus { outline: none; }

/* Últimas edições */
.latest { padding: var(--section) 0; }

.section-head a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color 200ms ease; }

.section-head a:hover { color: var(--accent); }

.talk-meta { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.talk-row:hover .talk-meta,
.talk-row:focus-visible .talk-meta { color: inherit; }

/* Páginas curtas (/confirmar, /sair) */
.short { max-width: 560px; }

.short .page-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; }

.short p { margin: 16px 0 0; font-size: 17px; }

.short .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

.short .email { font-weight: 500; overflow-wrap: anywhere; }

/* Edição na web: texto ao estilo do email, com mais ar */
.issue-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.issue-head h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.prose { padding-top: 32px; font-size: 18px; line-height: 1.65; }

.prose p,
.prose ul,
.prose ol { margin: 0 0 18px; }

.prose ol,
.prose ul { padding-left: 24px; }

.prose li { margin-bottom: 8px; }

.prose h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }

.prose h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 500; }

.prose a { color: var(--accent); text-underline-offset: 3px; }

.prose img { display: block; width: 100%; height: auto; margin: 28px 0 8px; }

.prose figure { margin: 0 0 24px; }

.prose figcaption { color: var(--muted); font-size: 14px; }

.prose blockquote { margin: 28px 0; padding-left: 18px; border-left: 2px solid var(--text); }

.prose blockquote p { margin: 0; }

.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88em; background: #F2F2F2; padding: 1px 4px; }

.prose hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }

/* Fim da edição: convite a subscrever e navegação entre edições */
.issue-end { margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--text); }

.issue-end h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

.issue-end .subscribe { margin-top: 20px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; border-top: 1px solid var(--line); }

.pager a { display: block; padding: 20px 0; text-decoration: none; transition: color 200ms ease; }

.pager a:hover,
.pager a:focus-visible { color: var(--accent); }

.pager .next { text-align: right; }

.pager .label { display: block; margin-bottom: 6px; }

.pager a:hover .label { color: inherit; }

@media (max-width: 560px) {
  .field-row { flex-direction: column; }
  .input { flex: none; width: 100%; }
  .button { width: 100%; }
  .pager { grid-template-columns: 1fr; gap: 0; }
  .pager .next { text-align: left; border-top: 1px solid var(--line); }
}
