/* lety.cl: presentación de Letycia Garcés */

:root {
  /* Color */
  --navy: #0D1F3C;
  --navy-rule: #2A3D5E;
  --on-navy: #F3F5F7;
  --on-navy-2: #A9B8CF;
  --paper: #F3F5F7;
  --ink: #10233F;
  --ink-2: #4A5A72;
  --rule: #D3DAE3;
  --focus: #2E5EA8;

  /* Tipografía */
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --t-name: clamp(3.25rem, 9.2vw, 8.75rem);
  --t-lead: clamp(1.375rem, 2.3vw, 2rem);
  --t-h2: clamp(1.75rem, 3.1vw, 2.5rem);
  --t-h3: clamp(1.1875rem, 1.6vw, 1.375rem);
  --t-statement: clamp(1.25rem, 1.8vw, 1.4375rem);
  --t-body: 1.1875rem;
  --t-detail: 1.0625rem;
  --t-small: .9375rem;

  /* Espacio */
  --side: clamp(1.25rem, 5vw, 4rem);
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --row: clamp(1.5rem, 3vw, 2.25rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0A1629;
    --navy-rule: #22324D;
    --paper: #0F1A2B;
    --ink: #E6ECF4;
    --ink-2: #A3B1C6;
    --rule: #26354D;
    --focus: #8DB4F0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --navy: #0A1629;
  --navy-rule: #22324D;
  --paper: #0F1A2B;
  --ink: #E6ECF4;
  --ink-2: #A3B1C6;
  --rule: #26354D;
  --focus: #8DB4F0;
  color-scheme: dark;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--t-body);
  line-height: 1.6;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, dt, .top, .role, .actions, .mail, .links, .foot, .tag {
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-color .15s, background-color .15s, color .15s, border-color .15s;
}
a:hover { text-decoration-thickness: 2px; }

::selection {
  background: #2E5EA8;
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}
.band :focus-visible { outline-color: var(--on-navy); }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: .5rem .75rem;
}

/* Diagramación: 12 columnas, etiqueta a la izquierda y contenido a la derecha */

.wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--side);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.col-label { grid-column: 1 / span 4; }
.col-body { grid-column: 5 / -1; }

@media (max-width: 52em) {
  .col-label, .col-body { grid-column: 1 / -1; }
  .row h3.col-label { font-size: 1.25rem; }
  .row .facts { margin-top: .25rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
}

/* Bandas azules: portada y cierre */

.band {
  background: var(--navy);
  color: var(--on-navy);
}
.band a { text-decoration-color: var(--on-navy-2); }
.band a:hover { text-decoration-color: currentColor; }

/* Portada */

.top {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.25rem;
  font-size: var(--t-small);
  font-weight: 500;
}
.top a + a { margin-left: 1.75rem; }

.hero-body {
  padding-top: clamp(2.5rem, 11vh, 7rem);
  padding-bottom: clamp(3rem, 9vh, 5.5rem);
}

h1 {
  font-size: var(--t-name);
  font-stretch: 118%;
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.035em;
}
h1 span { display: block; }

.role {
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-stretch: 105%;
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  margin-top: .6rem;
  max-width: 27em;
  font-size: var(--t-lead);
  line-height: 1.28;
  color: var(--on-navy);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.75rem;
  margin-top: clamp(1.75rem, 4.5vh, 2.75rem);
  font-size: 1rem;
  font-weight: 500;
}
.button {
  display: inline-block;
  padding: .85rem 1.35rem;
  border: 1px solid var(--on-navy-2);
  border-radius: 3px;
  text-decoration: none;
}
.button:hover {
  background: var(--on-navy);
  border-color: var(--on-navy);
  color: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .role, .hero .lead, .hero .actions {
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero .role { animation-delay: .12s; }
  .hero .lead { animation-delay: .22s; }
  .hero .actions { animation-delay: .34s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.35em); }
}

/* Secciones */

.section { padding-top: var(--section); }

.section-title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--t-h2);
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}

/* Filas con filete: áreas, formación y docencia */

.rows { border-top: 1px solid var(--rule); }
.row {
  row-gap: .75rem;
  padding: var(--row) 0;
  border-bottom: 1px solid var(--rule);
}
.row h3 {
  font-size: var(--t-h3);
  color: var(--ink);
  font-stretch: 105%;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.statement {
  max-width: 32em;
  font-size: var(--t-statement);
  line-height: 1.45;
}

.support {
  display: grid;
  gap: .5rem;
  max-width: 40em;
  margin-top: 1rem;
}
.support li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--t-detail);
  line-height: 1.55;
  color: var(--ink-2);
}
.support li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: .75rem;
  border-top: 1px solid currentColor;
}

.facts {
  display: grid;
  gap: 1.1rem;
  max-width: 40em;
}
.facts dt {
  font-size: var(--t-detail);
  font-weight: 500;
  line-height: 1.35;
}
.facts dd {
  margin-top: .15rem;
  font-size: var(--t-detail);
  line-height: 1.55;
  color: var(--ink-2);
}

/* Trayectoria: cuatro etapas en orden */

.intro {
  max-width: 34em;
  font-size: var(--t-statement);
  line-height: 1.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink-2);
  border-radius: 50%;
  background: var(--paper);
}
.step.now::before {
  border-color: var(--ink);
  background: var(--ink);
}
.step h3 {
  font-size: var(--t-h3);
  font-stretch: 105%;
  font-weight: 600;
  line-height: 1.3;
}
.tag {
  margin-left: .5rem;
  padding: .1rem .45rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 600;
  vertical-align: .15em;
  color: var(--ink);
}
.step p {
  margin-top: .5rem;
  font-size: var(--t-detail);
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 52em) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 4px;
    border-left: 1px solid var(--rule);
  }
  .step {
    padding: 0 0 1.75rem 1.5rem;
    border-top: 0;
  }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    top: .5em;
    left: -5px;
  }
}

/* Contacto y pie */

.contact {
  margin-top: var(--section);
  padding-top: var(--section);
}
.contact .section-title { color: var(--on-navy); }
.contact-lead {
  max-width: 30em;
  font-size: var(--t-statement);
  line-height: 1.45;
  color: var(--on-navy-2);
}
.mail {
  margin-top: 1rem;
  font-size: clamp(1.1875rem, 5vw, 2.75rem);
  font-stretch: 105%;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.links .place {
  font-weight: 400;
  color: var(--on-navy-2);
}

.foot-wrap {
  margin-top: var(--section);
  padding-bottom: 2rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-rule);
  font-size: .875rem;
  color: var(--on-navy-2);
}
