/* =========================================================
   SENTIDIÑO
   Laboratorio de cidadanía cultural e humanidades aplicadas
   ========================================================= */

:root {
  --text: #171717;
  --muted: #68706a;
  --cream: #f4f0e6;
  --olive: #69744c;
  --teal: #477b78;
  --ochre: #c48b1e;
  --navy: #0d2d50;
  --max-width: 1360px;
  --side-padding: 42px;
}


/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;

  font-family:
    "Avenir Next",
    Avenir,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.45;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(17, 27, 43, 0.06);

  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100%, var(--max-width));
  min-height: 108px;

  margin: 0 auto;
  padding: 14px var(--side-padding);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;
}


/* MARCA */

.brand {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 16px;
}

.brand-logo {
  display: block;

  width: 315px;
  height: auto;

  flex: 0 0 auto;
}

.brand-divider {
  display: block;

  width: 1px;
  height: 46px;

  flex: 0 0 1px;

  background: var(--olive);
}

.brand-subtitle {
  display: block;

  width: 210px;

  color: var(--navy);

  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}


/* NAVEGACIÓN */

.main-nav {
  flex: 1 1 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 17px;

  font-size: 10.5px;
  font-weight: 500;

  white-space: nowrap;
}

.main-nav a {
  position: relative;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.main-nav a:not(.language)::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 100%;
  height: 1px;

  background: var(--olive);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.22s ease;
}

.main-nav a:hover {
  color: var(--olive);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav .language {
  color: var(--muted);
}


/* HERO */

.hero {
  width: min(100%, var(--max-width));
  min-height: 470px;

  margin: 0 auto;

  padding:
    24px
    var(--side-padding)
    46px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.14fr)
    minmax(0, 0.86fr);

  align-items: center;

  gap: 82px;
}

.hero-text {
  width: 100%;
  max-width: 650px;
}

.hero h1 {
  margin: 0;

  font-size: 43px;
  font-weight: 400;

  line-height: 1.025;
  letter-spacing: -0.035em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-text > p {
  max-width: 625px;

  margin: 14px 0 0;

  font-size: 16px;
  line-height: 1.35;
}

.hero-visual {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image {
  display: block;

  width: 100%;
  max-width: 495px;

  height: auto;
}


/* SECCIÓNS XERAIS */

.section {
  width: 100%;

  padding: 74px var(--side-padding);
}

.section > * {
  width: min(
    100%,
    calc(var(--max-width) - (2 * var(--side-padding)))
  );

  margin-left: auto;
  margin-right: auto;
}

.section-tinted {
  background: var(--cream);
}


/* TÍTULOS */

.eyebrow {
  margin: 0 0 11px;

  font-size: 12px;
  font-weight: 500;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;

  font-size: 38px;
  font-weight: 400;

  line-height: 1.08;
  letter-spacing: -0.025em;
}


/* ENLACES */

.text-link {
  display: inline-block;

  margin-top: 19px;
  padding-bottom: 2px;

  font-size: 14px;

  border-bottom: 1px solid currentColor;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.text-link:hover {
  color: var(--olive);
  transform: translateX(3px);
}


/* O LABORATORIO — HOME */

.laboratory-section {
  width: 100%;

  padding:
    52px
    max(
      var(--side-padding),
      calc((100vw - var(--max-width)) / 2 + var(--side-padding))
    )
    62px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.18fr)
    minmax(0, 0.82fr);

  gap: 90px;

  background: var(--cream);
}

.laboratory-section > * {
  width: auto;
  margin: 0;
}

.laboratory-section .section-heading {
  align-self: start;
  min-width: 0;
}

.laboratory-section .section-heading h2 {
  font-size: 36px;
  line-height: 1.08;
  white-space: nowrap;
}

.section-content {
  max-width: 590px;

  align-self: start;

  padding-top: 8px;
}

.section-content p {
  margin-bottom: 15px;

  font-size: 17px;
  line-height: 1.42;
}

.section-content p:last-of-type {
  margin-bottom: 0;
}


/* EN CONSTRUCIÓN */

.placeholder-section {
  min-height: 235px;

  padding:
    60px
    max(
      var(--side-padding),
      calc((100vw - var(--max-width)) / 2 + var(--side-padding))
    );

  border-top: 1px solid rgba(17, 27, 43, 0.08);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.placeholder-section:nth-of-type(even) {
  background: #ffffff;
}

.placeholder-section:nth-of-type(odd) {
  background: #faf9f5;
}

.construction-title {
  margin: 0;

  color: var(--muted);

  font-size: 30px;
  font-weight: 400;

  line-height: 1.1;
  letter-spacing: -0.02em;
}


/* =========================================================
   PÁXINA O LABORATORIO / THE LAB
   ========================================================= */

.lab-page {
  width: 100%;
}


/* INTRO */

.lab-page-intro {
  width: min(100%, var(--max-width));

  margin: 0 auto;

  padding:
    95px
    var(--side-padding)
    110px;
}

.lab-page-intro h1 {
  max-width: 900px;

  margin: 0;

  font-size: 64px;
  font-weight: 400;

  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lab-lead {
  max-width: 780px;

  margin: 38px 0 0;

  font-size: 22px;
  line-height: 1.42;
}


/* BLOQUES */

.lab-text-section {
  width: 100%;

  padding:
    88px
    max(
      var(--side-padding),
      calc((100vw - var(--max-width)) / 2 + var(--side-padding))
    )
    96px;

  display: grid;

  grid-template-columns:
    minmax(0, 0.78fr)
    minmax(0, 1.22fr);

  gap: 120px;

  border-top: 1px solid rgba(17, 27, 43, 0.08);
}

.lab-text-tinted {
  background: var(--cream);
}

.lab-text-label span {
  display: block;

  margin-bottom: 10px;

  color: var(--olive);

  font-size: 18px;
}

.lab-text-label h2 {
  max-width: 420px;

  margin: 0;

  font-size: 34px;
  font-weight: 400;

  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lab-text-content {
  max-width: 660px;
}

.lab-text-content p {
  margin: 0 0 22px;

  font-size: 18px;
  line-height: 1.55;
}

.lab-text-content p:last-of-type {
  margin-bottom: 0;
}


/* MANIFESTO */

.lab-manifesto {
  width: 100%;

  padding:
    105px
    max(
      var(--side-padding),
      calc((100vw - var(--max-width)) / 2 + var(--side-padding))
    )
    110px;

  background: var(--navy);
  color: #ffffff;
}

.lab-manifesto p {
  max-width: 900px;

  margin: 0 0 55px;

  font-size: 42px;
  font-weight: 400;

  line-height: 1.13;
  letter-spacing: -0.025em;
}

.lab-manifesto strong {
  color: var(--cream);

  font-size: 15px;
  font-weight: 500;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* FOOTER */

.site-footer {
  min-height: 210px;

  padding:
    60px
    max(
      var(--side-padding),
      calc((100vw - var(--max-width)) / 2 + var(--side-padding))
    );

  display: flex;
  justify-content: space-between;

  gap: 40px;

  background: var(--navy);
  color: #ffffff;

  font-size: 14px;
  line-height: 1.55;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer strong {
  font-size: 21px;
  font-weight: 500;

  letter-spacing: 0.12em;
}


/* TABLET */

@media (max-width: 1180px) {

  :root {
    --side-padding: 36px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;

    padding-top: 14px;
    padding-bottom: 16px;
  }

  .brand-logo {
    width: 300px;
  }

  .brand-subtitle {
    font-size: 12.5px;
  }

  .main-nav {
    width: 100%;

    justify-content: flex-start;

    flex-wrap: wrap;

    row-gap: 13px;
  }

  .hero {
    gap: 55px;
    padding-top: 32px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .laboratory-section .section-heading h2 {
    white-space: normal;
  }

  .lab-text-section {
    gap: 75px;
  }

}


/* TABLET PEQUENA */

@media (max-width: 900px) {

  .hero {
    min-height: auto;

    grid-template-columns: 1fr;

    gap: 42px;

    padding-top: 48px;
    padding-bottom: 68px;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-image {
    width: min(100%, 620px);
    max-width: 620px;
  }

  .laboratory-section {
    grid-template-columns: 1fr;

    gap: 38px;

    padding-top: 58px;
    padding-bottom: 65px;
  }

  .laboratory-section .section-heading h2 {
    white-space: normal;
  }

  .lab-page-intro {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .lab-page-intro h1 {
    font-size: 54px;
  }

  .lab-text-section {
    grid-template-columns: 1fr;

    gap: 42px;

    padding-top: 68px;
    padding-bottom: 72px;
  }

  .lab-manifesto p {
    font-size: 36px;
  }

}


/* MÓBIL */

@media (max-width: 620px) {

  :root {
    --side-padding: 24px;
  }

  .header-inner {
    min-height: 88px;

    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    width: 100%;

    gap: 9px;
  }

  .brand-logo {
    width: 205px;
  }

  .brand-divider {
    height: 35px;
  }

  .brand-subtitle {
    width: auto;

    font-size: 9px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 58px;

    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 42px);
  }

  .hero-line {
    white-space: normal;
  }

  .hero-text > p {
    margin-top: 18px;

    font-size: 16px;
  }

  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .section h2 {
    font-size: 34px;
  }

  .laboratory-section .section-heading h2 {
    font-size: 34px;
    white-space: normal;
  }

  .placeholder-section {
    min-height: 190px;
  }

  .construction-title {
    font-size: 27px;
  }

  .lab-page-intro {
    padding-top: 55px;
    padding-bottom: 65px;
  }

  .lab-page-intro h1 {
    font-size: 43px;
  }

  .lab-lead {
    margin-top: 28px;

    font-size: 19px;
  }

  .lab-text-section {
    gap: 32px;

    padding-top: 55px;
    padding-bottom: 60px;
  }

  .lab-text-label h2 {
    font-size: 30px;
  }

  .lab-text-content p {
    font-size: 17px;
  }

  .lab-manifesto {
    padding-top: 70px;
    padding-bottom: 75px;
  }

  .lab-manifesto p {
    margin-bottom: 40px;

    font-size: 30px;
  }

  .lab-manifesto strong {
    font-size: 12px;
    line-height: 1.6;
  }

  .site-footer {
    flex-direction: column;

    padding: 50px var(--side-padding);
  }

}


/* =========================================================
   LECTURAS — TRABALLO LABORATORIAL
   ========================================================= */

.lab-readings-intro {
  margin-bottom: 0;
}

.lab-reading {
  margin-top: 46px;
}

.lab-reading + .lab-reading {
  margin-top: 52px;
  padding-top: 42px;

  border-top: 1px solid rgba(17, 27, 43, 0.14);
}

.lab-reading .lab-reading-heading {
  margin-bottom: 24px;
}

.lab-reading .lab-reading-heading strong {
  font-size: 19px;
  font-weight: 600;
}

.lab-reading .text-link {
  margin-top: 10px;
}


/* MÓBIL */

@media (max-width: 620px) {

  .lab-reading {
    margin-top: 38px;
  }

  .lab-reading + .lab-reading {
    margin-top: 42px;
    padding-top: 34px;
  }

}
