@charset "UTF-8";
/* =========================================================
   Somos Memórias — folha de estilos
   Mobile first. Pontos de quebra: 600 px, 900 px, 1200 px.
   Tamanhos fluidos: crescem entre 390 px (mobile) e 1440 px
   (desktop) com clamp(min, …, max), segundo a especificação.
   ========================================================= */

:root {
  --ink: #111111;
  --bg: #FFFFFF;
  --panel: #EFEFEF;
  --muted: #555555;
  --footer-text: #999999;
  --ph-dark: #D9D9D9;   /* placeholder da fotografia da entrada */
  --ph-light: #EFEFEF;  /* restantes placeholders */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --content: 1240px;    /* largura máxima do conteúdo */
  --wide: 1360px;       /* largura máxima do menu e da entrada */
  --gutter: clamp(20px, calc(20px + 20 * (100vw - 390px) / 1050), 40px);
  --section-space: clamp(48px, calc(48px + 52 * (100vw - 390px) / 1050), 100px);
  --header-h: 64px;
}

@media (min-width: 600px) {
  :root { --header-h: 68px; }
}

/* ---------- Base ---------- */

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

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;   /* texto normal: sempre 19 px */
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

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

.dark :focus-visible { outline-color: #FFFFFF; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

[id] { scroll-margin-top: var(--header-h); }

.placeholder {
  position: relative;
  background: var(--ph-light);
  overflow: hidden;
}

.placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 1. Menu fixo ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: -8px;   /* área de toque maior sem desalinhar o símbolo */
  padding: 8px;
}

.site-header__logo img {
  width: 28px;
  height: 28px;
}

.site-nav { margin-left: auto; }

.site-nav__list a,
.lang-switch {
  font-family: var(--sans);
  font-size: clamp(12px, calc(12px + 1 * (100vw - 390px) / 1050), 13px);
  line-height: 1;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}


.lang-switch {
  font-weight: 600;
  white-space: nowrap;
}

.lang-switch a {
  display: inline-block;
  padding: 15px 13px;
  margin: -15px -13px;      /* alvo de toque de 44 × 44 px sem mexer no texto */
  text-decoration: none;
}


/* Botão do menu (só no mobile) */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after { transition: none; }
}

/* Lista das secções no mobile: abre por baixo do menu */
.js .site-nav__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
}

.js .site-nav__list.is-open { display: block; }

.js .site-nav__list a {
  min-height: 48px;
  font-size: 15px;
}

/* Sem JavaScript: as secções ficam sempre visíveis */
.no-js .menu-toggle { display: none; }
.no-js .site-nav__list { display: flex; flex-wrap: wrap; gap: 0 16px; margin-right: 16px; }

@media (min-width: 600px) {
  .site-header__logo img {
    width: 34px;
    height: 34px;
  }

  .menu-toggle { display: none; }

  .js .site-nav__list,
  .no-js .site-nav__list {
    display: flex;
    position: static;
    gap: 28px;
    margin-right: 28px;
    padding: 0;
    background: none;
  }

  .js .site-nav__list a {
    min-height: 44px;
    font-size: clamp(12px, calc(12px + 1 * (100vw - 390px) / 1050), 13px);
  }
}

/* Estado depois da entrada (a transição do logótipo será definida mais tarde) */
.site-header__logo img {
  transition: width .35s cubic-bezier(.45, .05, .25, 1), height .35s cubic-bezier(.45, .05, .25, 1);
}

.site-header.is-past-hero .site-header__logo img {
  width: 36px;
  height: 36px;
}

@media (min-width: 600px) {
  .site-header.is-past-hero .site-header__logo img {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__logo img { transition: none; }
}

/* ---------- 2. Entrada ---------- */

.hero {
  display: flex;
  flex-direction: column;
}

.hero__name {
  padding: 20px var(--gutter) 22px;
  font-size: clamp(28px, calc(28px + 14 * (100vw - 390px) / 1050), 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.hero__facts { display: none; }

.hero__facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(11px, calc(11px + 1 * (100vw - 390px) / 1050), 12px);
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__facts dd {
  font-size: clamp(13px, calc(13px + 1 * (100vw - 390px) / 1050), 14px);
  font-style: italic;
  line-height: 1.4;
}

.hero__facts a { text-decoration: none; }

.hero__photo {
  position: relative;
  aspect-ratio: 39 / 44;
  background: var(--ph-dark);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__rings {
  width: auto;
  height: 50%;
  max-width: 80%;
  aspect-ratio: 2220 / 2223;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  padding: 40px var(--gutter) 40px;
  background: var(--panel);
}

.hero__panel-label,
.hero__panel-thanks {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__panel-label { display: none; margin-bottom: 20px; }

.hero__panel-title {
  font-size: clamp(24px, calc(24px + 2 * (100vw - 390px) / 1050), 26px);
  line-height: 1.25;
}

.hero__panel-text {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.5;
}

.hero__panel-link {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
}

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

.hero__panel-foot {
  margin-top: 32px;
}

.hero__panel-us {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
}

/* Tablet: nome na vertical, blocos visíveis, painel por baixo */
@media (min-width: 600px) {
  .hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 24px;
    max-width: calc(var(--wide) + 2 * var(--gutter));
    margin-inline: auto;
    padding: 32px var(--gutter) 0;
  }

  .hero__name {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: start;
    margin-right: 20px;
    padding: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
  }

  .hero__facts {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px clamp(32px, 5vw, 64px);
    margin-bottom: 32px;
  }

  .hero__photo {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 840 / 598;
  }

  .hero__rings { height: 54%; }

  .hero__panel {
    grid-column: 2;
    grid-row: 3;
    padding: 40px 36px 36px;
  }

  .hero__panel-label { display: block; }
}

/* Desktop: fotografia e painel lado a lado, com a mesma altura */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: auto minmax(0, 840fr) minmax(300px, 391fr);
  }

  .hero__facts { grid-column: 2 / span 2; }

  .hero__panel {
    grid-column: 3;
    grid-row: 2;
  }

  .hero__panel-foot { margin-top: auto; padding-top: 40px; }
}

/* ---------- 3. Manifesto ---------- */

.manifesto__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.manifesto__label {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  font-size: clamp(15px, calc(15px + 7 * (100vw - 390px) / 1050), 22px);
  line-height: 1.2;
}

/* o filete acompanha a margem direita da entrada (que é mais larga que o resto) */
.manifesto__label {
  margin-right: calc(-1 * clamp(0px, (100vw - 1240px - 2 * var(--gutter)) / 2, 60px));
}

.manifesto__label::after {   /* o único filete do site */
  content: "";
  flex: 1;
  border-top: 1px solid var(--ink);
}

.manifesto__drop {
  display: block;
  margin-top: clamp(32px, 6vw, 48px);
  font-size: clamp(150px, calc(150px + 150 * (100vw - 390px) / 1050), 300px);
  font-weight: 800;
  line-height: .78;
}

.manifesto__opening {
  margin-top: clamp(14px, calc(14px + 6 * (100vw - 390px) / 1050), 20px);
  font-size: clamp(21px, calc(21px + 9 * (100vw - 390px) / 1050), 30px);
  font-style: italic;
  line-height: 1.4;
}

.manifesto__title {
  margin-top: clamp(40px, calc(40px + 16 * (100vw - 390px) / 1050), 56px);
  font-size: clamp(38px, calc(38px + 28 * (100vw - 390px) / 1050), 66px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}

.manifesto__authors {
  margin-top: 16px;
  font-size: clamp(15px, calc(15px + 3 * (100vw - 390px) / 1050), 18px);
  font-weight: 700;
}

.manifesto__points {
  font-size: 19px;
  line-height: 1.5;
}

.manifesto__points li { margin-bottom: 16px; }

.manifesto__points--main { margin-top: 40px; }

.manifesto__note {
  font-size: 19px;
  line-height: 1.5;
}

.manifesto__closing {
  margin-top: 48px;
  font-size: clamp(24px, calc(24px + 2 * (100vw - 390px) / 1050), 26px);
  font-weight: 800;
  line-height: 1.2;
}

@media (min-width: 600px) {
  .manifesto__top {
    flex-direction: row;
    gap: 36px;
  }

  .manifesto__drop {
    order: -1;
    margin-top: 0;
  }

  .manifesto__label { margin-top: 2px; }

  .manifesto__points--main {
    columns: 2;
    column-gap: 40px;
  }

  .manifesto__points--main li { break-inside: avoid; }
}

@media (min-width: 900px) {
  .manifesto__grid {
    display: grid;
    grid-template-columns: minmax(0, 814fr) minmax(0, 391fr);
    column-gap: 36px;
    align-items: start;
  }

  .manifesto__grid > * { grid-column: 1; }

  /* o filete do cabeçalho vai até ao fim da coluna lateral */
  .manifesto__grid > .manifesto__top { grid-column: 1 / -1; }

  .manifesto__opening { line-height: 1.35; }

  /* pontos mais densos, como colunas de jornal */
  .manifesto__points,
  .manifesto__note {
    font-size: 19px;
    line-height: 1.5;
  }

  .manifesto__points li { margin-bottom: 12px; }

  /* pontos 5-6 começam na mesma linha que os pontos 1 e 3 */
  .manifesto__side {
    grid-column: 2;
    grid-row: 5;
    margin-top: 40px;
  }
}

/* ---------- Rótulos e títulos das secções ---------- */

.section-label {
  font-size: clamp(15px, calc(15px + 5 * (100vw - 390px) / 1050), 20px);
  line-height: 1.3;
}

.section-title {
  max-width: 1020px;
  margin-top: clamp(24px, calc(24px + 24 * (100vw - 390px) / 1050), 48px);
  font-size: clamp(30px, calc(30px + 22 * (100vw - 390px) / 1050), 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
}

@media (min-width: 900px) {
  .section-title { line-height: 1.05; }
}

/* ---------- 4. Sartagografia ---------- */

.sartagografia .section-title { max-width: 960px; }

.sartagografia__image {
  margin-top: clamp(32px, calc(32px + 16 * (100vw - 390px) / 1050), 48px);
  aspect-ratio: 4 / 3;
}

.sartagografia__body {
  display: grid;
  grid-template-areas:
    "text"
    "stats"
    "cta";
  margin-top: clamp(32px, calc(32px + 16 * (100vw - 390px) / 1050), 48px);
}

.sartagografia__text { grid-area: text; }
.sartagografia__text p + p { margin-top: 24px; }
.sartagografia__quote { font-style: italic; }

.stats {
  grid-area: stats;
  margin-top: 32px;
}

.stats li + li { margin-top: 18px; }

.stats__value {
  display: block;
  font-size: clamp(34px, calc(34px + 10 * (100vw - 390px) / 1050), 44px);
  font-weight: 800;
  line-height: 1.1;
}

.stats__label {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(12px, calc(12px + 1 * (100vw - 390px) / 1050), 13px);
  line-height: 1.4;
}

.sartagografia__cta {
  grid-area: cta;
  margin-top: 32px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

@media (min-width: 600px) {
  .sartagografia__image { aspect-ratio: 16 / 9; }
  .button { display: inline-flex; }
}

@media (min-width: 900px) {
  .sartagografia__image { aspect-ratio: 1240 / 520; }

  .sartagografia__body {
    grid-template-columns: minmax(0, 705fr) minmax(0, 497fr);
    grid-template-areas:
      "text stats"
      "cta  stats";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
  }

  .stats { margin-top: 0; }
  .sartagografia__cta { margin-top: 24px; }
}

/* ---------- 5. Quem somos ---------- */

.team__intro {
  max-width: 800px;
  margin-top: clamp(24px, calc(24px + 24 * (100vw - 390px) / 1050), 48px);
  font-size: clamp(18px, calc(18px + 4 * (100vw - 390px) / 1050), 22px);
  font-style: italic;
  line-height: 1.45;
}

.team__grid {
  display: grid;
  gap: 56px;
  margin-top: clamp(40px, calc(40px + 8 * (100vw - 390px) / 1050), 48px);
}

.person__photo { aspect-ratio: 4 / 5; }

.person__name {
  margin: 24px 0 14px;
  font-size: clamp(21px, calc(21px + 3 * (100vw - 390px) / 1050), 24px);
  font-weight: 700;
  line-height: 1.2;
}

/* retratos a preto e branco, como pede a especificação */
.person__photo img { filter: grayscale(1); }

.team__note {
  margin-top: clamp(40px, calc(40px + 16 * (100vw - 390px) / 1050), 56px);
  font-size: 16px;
  font-style: italic;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
}

/* ---------- 6. Fecho e 7. Rodapé ---------- */

.dark {
  background: var(--ink);
  color: #FFFFFF;
}

.closing {
  padding-top: clamp(72px, calc(72px + 68 * (100vw - 390px) / 1050), 140px);
}

.closing__phrase {
  font-size: clamp(19px, calc(19px + 5 * (100vw - 390px) / 1050), 24px);
  font-style: italic;
  line-height: 1.3;
}

.closing__email {
  margin-top: 24px;
  font-size: clamp(16px, calc(16px + 4 * (100vw - 390px) / 1050), 20px);
  font-weight: 700;
  line-height: 1.3;
}

.closing__email a {
  display: inline-block;
  padding-block: 6px;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  overflow-wrap: anywhere;
}

.closing__logo {
  width: clamp(140px, calc(140px + 40 * (100vw - 390px) / 1050), 180px);
  height: auto;
  margin: clamp(36px, calc(36px + 20 * (100vw - 390px) / 1050), 56px) auto 0;
}

.site-footer {
  padding: 48px 0 40px;
  color: var(--footer-text);
  font-family: var(--sans);
  font-size: clamp(11px, calc(11px + 1 * (100vw - 390px) / 1050), 12px);
  line-height: 1.6;
}

.site-footer a {
  display: inline-block;
  padding-block: 12px;        /* alvo de toque de 44 px no mobile */
  margin-block: -12px;
  text-decoration: none;
}

@media (hover: hover) {
  .site-footer a:hover { color: #FFFFFF; }
}

@media (min-width: 600px) {
  .site-footer { padding-bottom: 72px; }
}

/* =========================================================
   Efeitos ao passar o rato (e ao navegar com o teclado)
   Só em aparelhos com rato: @media (hover: hover).
   ========================================================= */

/* 1. Sublinhado que se desenha da esquerda para a direita
      (menu, PT / EN, email dos blocos da entrada) */
.site-nav__list a,
.lang-switch a,
.hero__facts a {
  position: relative;
}

.site-nav__list a::after,
.lang-switch a::after,
.hero__facts a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 9px);
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s cubic-bezier(.45, .05, .25, 1);
}

.lang-switch a::after { left: 13px; right: 13px; top: calc(50% + 8px); }
.hero__facts a::after { top: auto; bottom: -1px; }

.site-nav__list a:focus-visible::after,
.lang-switch a:focus-visible::after,
.hero__facts a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

@media (hover: hover) {
  .site-nav__list a:hover::after,
  .lang-switch a:hover::after,
  .hero__facts a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* 2. Links dentro do texto: o sublinhado ganha peso
      ("Sartagografia" no painel, email do fecho) */
.hero__panel-link a,
.closing__email a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness .25s ease, text-underline-offset .25s ease;
}

.closing__email a { text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

.hero__panel-link a:focus-visible { text-decoration-thickness: 2px; text-underline-offset: 2px; }
.closing__email a:focus-visible { text-decoration-thickness: 3px; text-underline-offset: 3px; }

@media (hover: hover) {
  .hero__panel-link a:hover { text-decoration-thickness: 2px; text-underline-offset: 2px; }
  .closing__email a:hover { text-decoration-thickness: 3px; text-underline-offset: 3px; }
}

/* 3. Botão: o fundo preto entra a deslizar e a seta avança */
.button {
  background-color: transparent;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size .35s cubic-bezier(.45, .05, .25, 1), color .25s ease;
}

.button__arrow {
  display: inline-block;
  margin-left: .35em;
  transition: transform .3s cubic-bezier(.45, .05, .25, 1);
}

.button:focus-visible {
  background-size: 100% 100%;
  color: var(--bg);
}

.button:focus-visible .button__arrow { transform: translateX(4px); }

@media (hover: hover) {
  .button:hover {
    background-size: 100% 100%;
    color: var(--bg);
  }

  .button:hover .button__arrow { transform: translateX(4px); }
}

/* Com "reduzir movimento": muda logo, sem animação */
@media (prefers-reduced-motion: reduce) {
  .site-nav__list a::after,
  .lang-switch a::after,
  .hero__facts a::after,
  .hero__panel-link a,
  .closing__email a,
  .button,
  .button__arrow { transition: none; }
}
