/* =========================================================
   SARA RAMOS — STYLE.CSS
   ---------------------------------------------------------
   Este é o CSS principal do site inteiro.

   Regra prática:
   - algo usado em várias páginas -> altere aqui
   - ajuste muito específico de uma página -> pode ficar
     em um pequeno <style> dentro daquele HTML
   ========================================================= */


/* =========================================================
   01. VARIÁVEIS GERAIS
   ========================================================= */

:root {
  --cream: #ecede4;
  --green: #2d4128;
  --light: #f2f4ec;
  --dark: #151914;

  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: "Inter", Arial, sans-serif;

  --page-padding-x: clamp(28px, 3.8vw, 70px);
  --header-height: 84px;

  --transition: 220ms ease;
}


/* =========================================================
   02. RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


html,
body {
  margin: 0;

  min-height: 100%;

  /* Esconde a barra, mas mantém a rolagem */
  scrollbar-width: none;
  -ms-overflow-style: none;
}


/* Chrome / Edge / Safari */

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;

  width: 0;
  height: 0;
}


body {
  font-family: var(--sans);

  background: var(--cream);

  color: var(--green);

  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;
}


img {
  display: block;

  max-width: 100%;
}


a {
  color: inherit;

  text-decoration: none;
}


button,
input,
textarea,
select {
  font: inherit;
}


button {
  color: inherit;
}


::selection {
  background: rgba(45, 65, 40, 0.22);
}


a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 1px solid currentColor;

  outline-offset: 4px;
}


/* =========================================================
   03. FUNDO FOTOGRÁFICO
   ========================================================= */

.page-photo {
  min-height: 100vh;

  color: var(--light);

  background: #111;
}


.page-background {
  position: fixed;

  inset: 0;

  z-index: -3;

  width: 100%;

  height: 100%;

  object-fit: cover;

  pointer-events: none;

  filter:
    brightness(0.68)
    saturate(0.72)
    contrast(0.98);

  transform: scale(1.002);
}


.page-overlay {
  position: fixed;

  inset: 0;

  z-index: -2;

  pointer-events: none;

  background: rgba(10, 14, 12, 0.28);
}


/* =========================================================
   GRÃO
   ========================================================= */

.page-grain {
  position: fixed;

  inset: 0;

  z-index: 1000;

  pointer-events: none;

  opacity: 0.025;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}


/* =========================================================
   04. CABEÇALHO / MENU
   ========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  height: var(--header-height);

  padding:
    0
    var(--page-padding-x);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 28px;

  font-family: var(--mono);

  font-size: 14px;

  letter-spacing: 0.02em;
}


.site-brand {
  flex: 0 0 auto;

  opacity: 1;

  transition:
    opacity
    var(--transition);
}


.site-brand:hover {
  opacity: 0.65;
}


.site-nav {
  display: flex;

  align-items: center;

  gap:
    clamp(
      22px,
      2.8vw,
      46px
    );
}


.site-nav a {
  opacity: 0.60;

  padding-bottom: 4px;

  border-bottom:
    1px
    solid
    transparent;

  transition:
    opacity
    var(--transition),

    border-color
    var(--transition);
}


.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
}


.site-nav a.active {
  border-bottom-color: currentColor;
}


.menu-toggle {
  display: none;

  border: 0;

  padding: 8px 0;

  background: transparent;

  cursor: pointer;

  font-family: var(--mono);
}


/* Menu verde nas páginas claras */

.page-series .site-header,
.page-exposicao .site-header {
  color: var(--green);
}


/* =========================================================
   05. TÍTULOS GERAIS
   ========================================================= */

.page-title {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(
      68px,
      6.8vw,
      118px
    );

  line-height: 0.92;

  font-weight: 400;

  letter-spacing: -0.02em;
}


.mono-label {
  font-family: var(--mono);

  letter-spacing: 0.08em;
}


/* =========================================================
   06. HOME
   ========================================================= */

.page-home {
  overflow: hidden;
}


.page-home .page-background {
  filter:
    brightness(0.72)
    saturate(0.72)
    contrast(0.95);
}


.page-home .page-overlay {
  background:
    rgba(
      20,
      30,
      18,
      0.43
    );
}


.home-main {
  min-height: 100vh;

  display: grid;

  place-items: center;

  padding:
    90px
    24px
    40px;

  text-align: center;
}


.home-title {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(
      62px,
      10.8vw,
      168px
    );

  line-height: 0.86;

  font-weight: 400;

  letter-spacing: -0.025em;
}


.home-subtitle {
  margin:
    32px
    0
    0;

  font-family: var(--mono);

  font-size: 13px;

  letter-spacing: 0.22em;

  opacity: 0.88;
}


/* =========================================================
   07. OBRAS — MASONRY
   ========================================================= */

.page-obras .page-background {
  filter:
    brightness(0.56)
    saturate(0.58)
    contrast(0.94);
}


.page-obras .page-overlay {
  background:
    rgba(
      14,
      18,
      17,
      0.22
    );
}


.obras-main {
  padding:
    calc(
      var(--header-height)
      + 60px
    )

    var(--page-padding-x)

    110px;
}


.obras-heading {
  margin-bottom:
    clamp(
      54px,
      7vw,
      110px
    );
}


.masonry-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  grid-auto-rows: 8px;

  gap:
    0
    clamp(
      26px,
      3.2vw,
      54px
    );

  align-items: start;
}


.obra-card {
  min-width: 0;
}


.obra-inner {
  padding-bottom:
    clamp(
      28px,
      3vw,
      52px
    );
}


.obra-card a {
  display: block;
}


.obra-card img {
  width: 100%;

  height: auto;

  filter:
    brightness(0.82)
    saturate(0.78)
    contrast(0.94);

  transition:
    filter
    var(--transition),

    transform
    var(--transition);
}


.obra-card a:hover img {
  filter:
    brightness(0.96)
    saturate(0.92)
    contrast(1);

  transform:
    translateY(-2px);
}


.obra-title {
  margin:
    11px
    0
    0;

  font-family: var(--serif);

  font-size:
    clamp(
      25px,
      2.05vw,
      36px
    );

  line-height: 1;

  font-weight: 400;
}


/* =========================================================
   08. SOBRE

   Estrutura:
   FOTO       TEXTO
   FOTO       TEXTO
   FOTO       TEXTO

   texto inferior atravessando a largura abaixo
   ========================================================= */

.page-sobre .page-background {
  filter:
    brightness(0.44)
    saturate(0.60)
    contrast(1);
}


.page-sobre .page-overlay {
  background:
    rgba(
      8,
      12,
      9,
      0.20
    );
}


/* =========================================================
   POSICIONAMENTO GERAL DA PÁGINA SOBRE

   13.8vw faz o bloco começar aproximadamente onde ele
   começa no Figma em telas grandes.
   ========================================================= */

.sobre-main {
  padding:
    126px

    var(--page-padding-x)

    110px

    clamp(
      150px,
      13.8vw,
      238px
    );
}


/* =========================================================
   FOTO + TEXTO SUPERIOR
   ========================================================= */

.sobre-grid {
  width: 100%;

  max-width: 1275px;

  margin: 0;

  display: grid;

  grid-template-columns:
    minmax(
      430px,
      528px
    )

    minmax(
      0,
      1fr
    );

  column-gap:
    clamp(
      38px,
      2.6vw,
      48px
    );

  align-items: start;
}


/* =========================================================
   FOTO
   ========================================================= */

.sobre-photo-wrap {
  position: relative;
}


.sobre-photo {
  width: 100%;

  aspect-ratio: 3 / 4;

  object-fit: cover;

  object-position: center center;
}


/* =========================================================
   TEXTO À DIREITA DA FOTO
   ========================================================= */

.sobre-text {
  width: 100%;

  max-width: 700px;

  font-size:
    clamp(
      17px,
      1.18vw,
      20px
    );

  line-height: 1.62;
}


.sobre-text p {
  margin:
    0
    0
    1.25em;
}


.sobre-text p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   TEXTO ABAIXO DA FOTO

   Este é o bloco com:
   "A artista vem apresentando..."
   "Possui trabalhos..."
   "Atualmente trabalha..."
   ========================================================= */

.sobre-bottom {
  width: 100%;

  max-width: 1275px;

  margin-top: 52px;

  font-size:
    clamp(
      17px,
      1.18vw,
      20px
    );

  line-height: 1.62;
}


.sobre-bottom p {
  margin:
    0
    0
    1.25em;
}


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


/* =========================================================
   09. CV
   ========================================================= */

.page-cv .page-background {
  filter:
    brightness(0.48)
    saturate(0.55)
    contrast(0.96);
}


.page-cv .page-overlay {
  background:
    rgba(
      11,
      14,
      17,
      0.26
    );
}


.cv-main {
  padding:
    calc(
      var(--header-height)
      + 42px
    )

    var(--page-padding-x)

    120px;

  min-height: 100vh;
}


.cv-top {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 30px;

  margin-bottom: 48px;
}


.cv-download {
  margin-top: 38px;

  font-family: var(--mono);

  font-size: 13px;

  letter-spacing: 0.12em;

  opacity: 0.78;

  transition:
    opacity
    var(--transition);
}


.cv-download:hover {
  opacity: 1;
}


.cv-accordion {
  max-width: 1180px;
}


.cv-section {
  border: 0;

  margin:
    0
    0
    28px;
}


.cv-section summary {
  position: relative;

  cursor: pointer;

  list-style: none;

  padding:
    10px
    72px
    16px
    0;

  font-family: var(--mono);

  font-weight: 500;

  letter-spacing: 0.08em;

  font-size:
    clamp(
      13px,
      1.15vw,
      17px
    );
}


.cv-section summary::-webkit-details-marker {
  display: none;
}


.cv-section summary::after {
  content: "+";

  position: absolute;

  right: 0;

  top: 8px;

  font-family: var(--mono);

  font-weight: 400;

  opacity: 0.76;
}


.cv-section[open] summary::after {
  content: "−";
}


.cv-content {
  padding:
    20px
    0
    12px;
}


.cv-year {
  display: grid;

  grid-template-columns:
    72px
    minmax(
      0,
      1fr
    );

  gap: 18px;

  margin-bottom: 25px;
}


.cv-year-number {
  font-family: var(--mono);

  font-size: 13px;

  opacity: 0.60;

  padding-top: 3px;
}


.cv-items {
  font-size:
    clamp(
      15px,
      1.2vw,
      19px
    );

  line-height: 1.55;
}


.cv-items p {
  margin:
    0
    0
    6px;
}


.cv-items a {
  text-decoration: none;
}


/* =========================================================
   LINKS DO CV PARA EXPOSIÇÕES
   ========================================================= */

.cv-link {
  display: inline;

  border-bottom:
    1px
    solid
    transparent;

  transition:
    opacity
    var(--transition),

    border-color
    var(--transition);
}


.cv-link:hover {
  opacity: 0.72;

  border-bottom-color: currentColor;
}


/* =========================================================
   10. TEXTOS
   ========================================================= */

.page-textos .page-background {
  filter:
    brightness(0.52)
    saturate(0.66)
    contrast(1);
}


.page-textos .page-overlay {
  background:
    rgba(
      9,
      12,
      16,
      0.30
    );
}


.textos-main {
  padding:
    calc(
      var(--header-height)
      + 46px
    )

    var(--page-padding-x)

    120px;

  max-width: 1040px;
}


.textos-title {
  margin-bottom: 60px;
}


.texto-year {
  margin:
    0
    0
    68px;
}


.texto-year-label {
  margin:
    0
    0
    34px;

  font-family: var(--mono);

  font-size: 13px;

  opacity: 0.70;
}


.texto-entry {
  margin-bottom: 32px;
}


.texto-entry:last-child {
  margin-bottom: 0;
}


.texto-entry-title {
  display: inline;

  font-family: var(--serif);

  font-size:
    clamp(
      27px,
      2.25vw,
      38px
    );

  line-height: 1.05;

  text-decoration: underline;

  text-decoration-thickness: 1px;

  text-underline-offset: 5px;
}


.texto-entry-title:hover {
  opacity: 0.72;
}


.texto-author {
  margin:
    9px
    0
    0;

  font-size: 16px;
}


.texto-note {
  margin:
    7px
    0
    0;

  font-family: var(--mono);

  font-size: 12px;

  letter-spacing: 0.07em;

  opacity: 0.56;
}


/* =========================================================
   11. CONTATO
   ========================================================= */

.page-contato {
  overflow: hidden;
}


.page-contato .page-background {
  filter:
    brightness(0.62)
    saturate(0.82)
    contrast(1.04);
}


.page-contato .page-overlay {
  background:
    rgba(
      4,
      13,
      24,
      0.22
    );
}


.contato-main {
  min-height: 100vh;

  padding:
    calc(
      var(--header-height)
      + 140px
    )

    var(--page-padding-x)

    70px;
}


.contato-title {
  margin-bottom: 68px;
}


.contato-group {
  margin-bottom: 40px;
}


.contato-label {
  margin:
    0
    0
    7px;

  font-family: var(--mono);

  font-size: 13px;

  letter-spacing: 0.08em;

  opacity: 0.74;
}


.contato-link {
  font-family: var(--mono);

  font-size:
    clamp(
      19px,
      1.65vw,
      28px
    );

  border-bottom:
    1px
    solid
    transparent;

  transition:
    border-color
    var(--transition),

    opacity
    var(--transition);
}


.contato-link:hover {
  border-bottom-color: currentColor;

  opacity: 0.78;
}


/* =========================================================
   12. PÁGINAS INDIVIDUAIS DAS SÉRIES
   ========================================================= */

.page-series {
  min-height: 100vh;

  background: var(--cream);

  color: var(--green);
}


.series-main {
  min-height: 100vh;

  padding:
    calc(
      var(--header-height)
      + 20px
    )

    var(--page-padding-x)

    60px;
}


.series-heading {
  display: flex;

  align-items: baseline;

  gap: 22px;

  margin-bottom:
    clamp(
      120px,
      15vh,
      190px
    );
}


.series-number {
  font-family: var(--mono);

  font-size: 13px;

  opacity: 0.62;
}


.series-title {
  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(
      65px,
      7.2vw,
      124px
    );

  line-height: 0.85;

  font-weight: 400;

  letter-spacing: -0.025em;
}


.series-layout {
  display: grid;

  grid-template-columns:
    minmax(
      320px,
      0.78fr
    )

    minmax(
      430px,
      1.22fr
    );

  gap:
    clamp(
      60px,
      10vw,
      170px
    );

  align-items: center;
}


.series-description {
  max-width: 560px;

  font-size:
    clamp(
      17px,
      1.35vw,
      22px
    );

  line-height: 1.58;
}


.series-description p {
  margin:
    0
    0
    1.15em;
}


.series-tech {
  margin-top: 38px;

  font-family: var(--mono);

  font-size: 12px;

  line-height: 1.75;

  opacity: 0.68;
}


.series-gallery {
  min-width: 070;

  display: flex;

  align-items: center;

  justify-content: center;
}


.series-image-frame {
  width:
    min(
      100%,
      700px
    );

  min-height: 370px;

  display: grid;

  place-items: center;

  background:

    linear-gradient(
      45deg,
      rgba(
        45,
        65,
        40,
        0.025
      )
      25%,
      transparent 25%
    )
    0
    0
    /
    18px
    18px,

    linear-gradient(
      -45deg,
      rgba(
        45,
        65,
        40,
        0.025
      )
      25%,
      transparent 25%
    )
    0
    9px
    /
    18px
    18px;
}


.series-image {
  max-width: 100%;

  max-height: 56vh;

  width: auto;

  height: auto;

  object-fit: contain;

  transition:
    opacity
    160ms
    ease;
}


.series-image.is-changing {
  opacity: 0;
}


.gallery-controls {
  margin-top:
    clamp(
      62px,
      9vh,
      110px
    );

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 36px;

  font-family: var(--mono);

  font-size: 13px;
}


.gallery-button {
  border: 0;

  background: transparent;

  padding:
    8px
    10px;

  cursor: pointer;

  opacity: 0.55;

  transition:
    opacity
    var(--transition);
}


.gallery-button:hover:not(:disabled) {
  opacity: 1;
}


.gallery-button:disabled {
  cursor: default;

  opacity: 0.18;
}


/* =========================================================
   13. PÁGINAS DE EXPOSIÇÕES
   ========================================================= */

.page-exposicao {
  min-height: 100vh;

  background: var(--cream);

  color: var(--green);
}


.exposicao-main {
  min-height: 100vh;

  padding:
    calc(
      var(--header-height)
      + 25px
    )

    var(--page-padding-x)

    110px;
}


.exposicao-voltar {
  display: inline-block;

  margin-bottom: 45px;

  font-family: var(--mono);

  font-size: 13px;

  opacity: 0.65;

  transition:
    opacity
    var(--transition);
}


.exposicao-voltar:hover {
  opacity: 1;
}


.exposicao-title {
  max-width: 1200px;

  margin: 0;

  font-family: var(--serif);

  font-size:
    clamp(
      64px,
      6.5vw,
      115px
    );

  line-height: 0.95;

  font-weight: 400;

  letter-spacing: -0.025em;
}


.exposicao-info {
  margin-top: 26px;

  font-family: var(--mono);

  font-size: 13px;

  letter-spacing: 0.08em;

  opacity: 0.65;
}


.exposicao-texto {
  max-width: 880px;

  margin-top: 38px;

  font-size:
    clamp(
      17px,
      1.35vw,
      22px
    );

  line-height: 1.55;
}


.exposicao-texto p {
  margin:
    0
    0
    1.2em;
}


/* =========================================================
   GALERIA DE EXPOSIÇÕES
   ========================================================= */

.exposicao-galeria {
  margin-top: 56px;

  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 30px;
}


.exposicao-galeria figure {
  margin: 0;
}


.exposicao-galeria img {
  width: 100%;

  height: auto;

  object-fit: cover;
}


.exposicao-galeria .imagem-grande {
  grid-column:
    1
    /
    -1;
}


.exposicao-legenda {
  margin-top: 8px;

  font-family: var(--mono);

  font-size: 11px;

  line-height: 1.45;

  opacity: 0.62;
}


.exposicao-placeholder {
  min-height: 390px;

  display: grid;

  place-items: center;

  border:
    1px
    solid
    rgba(
      45,
      65,
      40,
      0.12
    );

  background:

    linear-gradient(
      45deg,
      rgba(
        45,
        65,
        40,
        0.025
      )
      25%,
      transparent 25%
    )
    0
    0
    /
    18px
    18px,

    linear-gradient(
      -45deg,
      rgba(
        45,
        65,
        40,
        0.025
      )
      25%,
      transparent 25%
    )
    0
    9px
    /
    18px
    18px;

  font-family: var(--mono);

  font-size: 12px;

  letter-spacing: 0.08em;

  opacity: 0.60;
}


/* =========================================================
   14. RESPONSIVO — TABLET
   ========================================================= */

@media (max-width: 1100px) {


  .masonry-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .sobre-grid,
  .series-layout {
    grid-template-columns: 1fr;
  }


  .sobre-main {
    padding-left: var(--page-padding-x);

    padding-right: var(--page-padding-x);
  }


  .sobre-grid {
    max-width: 760px;

    row-gap: 42px;
  }


  .sobre-photo-wrap {
    max-width: 560px;
  }


  .sobre-photo {
    aspect-ratio: auto;

    height: auto;
  }


  .sobre-bottom {
    max-width: 760px;

    margin-top: 42px;
  }


  .series-heading {
    margin-bottom: 80px;
  }


  .series-gallery {
    justify-content: flex-start;
  }


  .series-image-frame {
    width: 100%;
  }

}


/* =========================================================
   15. RESPONSIVO — CELULAR
   ========================================================= */

@media (max-width: 760px) {


  :root {
    --header-height: 68px;

    --page-padding-x: 22px;
  }


  .site-header {
    height: auto;

    min-height: var(--header-height);

    align-items: flex-start;

    padding-top: 22px;

    padding-bottom: 14px;
  }


  .menu-toggle {
    display: block;
  }


  .site-nav {
    position: absolute;

    top: 62px;

    right: var(--page-padding-x);

    display: none;

    flex-direction: column;

    align-items: flex-end;

    gap: 14px;

    padding:
      16px
      18px;

    background:
      rgba(
        15,
        18,
        16,
        0.88
      );

    backdrop-filter:
      blur(
        8px
      );
  }


  .page-series .site-nav,
  .page-exposicao .site-nav {
    background:
      rgba(
        236,
        237,
        228,
        0.96
      );

    border:
      1px
      solid
      rgba(
        45,
        65,
        40,
        0.14
      );
  }


  .site-nav.is-open {
    display: flex;
  }


  .page-title {
    font-size:
      clamp(
        58px,
        18vw,
        92px
      );
  }


  .home-title {
    font-size:
      clamp(
        62px,
        20vw,
        104px
      );
  }


  .home-subtitle {
    font-size: 10px;
  }


  .masonry-grid {
    grid-template-columns: 1fr;

    display: block;
  }


  .obra-card {
    margin-bottom: 34px;
  }


  .obra-inner {
    padding-bottom: 0;
  }


  .sobre-main,
  .obras-main,
  .cv-main,
  .textos-main {
    padding-top:
      calc(
        var(--header-height)
        + 58px
      );
  }


  /* SOBRE */

  .sobre-grid {
    row-gap: 30px;
  }


  .sobre-text,
  .sobre-bottom {
    font-size: 16px;

    line-height: 1.58;
  }


  .sobre-bottom {
    margin-top: 34px;
  }


  /* CV */

  .cv-top {
    display: block;
  }


  .cv-download {
    margin-top: 22px;
  }


  .cv-year {
    grid-template-columns:
      52px
      minmax(
        0,
        1fr
      );
  }


  /* SÉRIES */

  .series-main {
    padding-top:
      calc(
        var(--header-height)
        + 48px
      );
  }


  .series-heading {
    gap: 12px;

    margin-bottom: 70px;
  }


  .series-title {
    font-size:
      clamp(
        64px,
        19vw,
        100px
      );
  }


  .series-image-frame {
    min-height: 280px;
  }


  .series-image {
    max-height: 48vh;
  }


  .gallery-controls {
    margin-top: 46px;
  }


  /* CONTATO */

  .contato-main {
    padding-top:
      calc(
        var(--header-height)
        + 110px
      );
  }


  /* EXPOSIÇÕES */

  .exposicao-main {
    padding-top:
      calc(
        var(--header-height)
        + 48px
      );
  }


  .exposicao-galeria {
    grid-template-columns: 1fr;
  }


  .exposicao-galeria .imagem-grande {
    grid-column: auto;
  }


  .exposicao-placeholder {
    min-height: 280px;
  }

}


/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {


  *,
  *::before,
  *::after {
    scroll-behavior:
      auto
      !important;

    transition:
      none
      !important;
  }

}