/* Pezastu — hoja de estilo común */

:root {
  --bg: #eceff1;
  --bg-alt: #dde3e7;
  --bg-dark: #1f2a33;
  --ink: #151c22;
  --ink-soft: #606d78;
  --ink-inv: #eceff1;
  --accent: #a2472c;
  --accent-2: #3f6b86;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gap: 128px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

/* ---------- rejilla ---------- */

.wrap {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 48px;
}

.col-text { grid-column: 4 / 10; }
.col-list { grid-column: 4 / 11; }
.col-wide { grid-column: 3 / 11; }

/* ---------- tipografía ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.1vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.26;
  margin-bottom: 28px;
}

h3 {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 44px 0 14px;
}

p { margin: 0 0 22px; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

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

.label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  line-height: 1.6;
  margin: 0 0 18px;
}

.lead { color: var(--ink-soft); }

/* ---------- listas ---------- */

ul.marked {
  list-style: none;
  margin: 6px 0 22px;
  padding: 0;
}

ul.marked li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

ul.marked li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.83em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

ul.marked li:last-child { margin-bottom: 0; }

/* ---------- cabecera y navegación ---------- */

.site-head {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 38px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 44px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 38px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* ---------- hero ---------- */

.hero {
  min-height: 76vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 14vh;
}

.hero h1 { text-align: center; }

.hero .subtitle {
  margin: 30px auto 0;
  text-align: center;
  color: var(--ink-soft);
  max-width: 46ch;
}

.page-head {
  padding: 96px 0 0;
}

.page-head h1 { text-align: center; }

.page-head .subtitle {
  margin: 26px auto 0;
  text-align: center;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* ---------- ritmo de secciones ---------- */

main > section,
main > .band {
  margin-top: var(--gap);
}

main > section:first-child { margin-top: 0; }

.col-list > h3:first-child { margin-top: 0; }

.band {
  padding: var(--gap) 0;
}

.band-alt { background: var(--bg-alt); }

.band-dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
}

.band-dark h2,
.band-dark h3 { color: var(--ink-inv); }

.band-dark .label { color: #8fb0c6; }

.band-dark ul.marked li::before { background: #c9714f; }

/* ---------- imágenes ---------- */

.main-figure {
  margin: 0;
  padding: 96px 0;
}

.main-figure img,
.detail-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.caption {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.detail-grid {
  align-items: start;
  row-gap: 56px;
}

.detail-figure {
  grid-column: 2 / 6;
  margin: 0;
}

.detail-figure .caption {
  color: #9fb0bb;
  text-align: left;
}

.detail-text { grid-column: 7 / 12; }

/* ---------- página "sobre el proyecto" ---------- */

.about-col { grid-column: 4 / 10; }

.about-col > p:first-of-type {
  font-size: 21px;
  line-height: 1.6;
}

.dash {
  display: block;
  text-align: center;
  color: var(--accent-2);
  margin: 64px 0;
  font-size: 15px;
  letter-spacing: 0.3em;
}

/* ---------- pie ---------- */

.site-foot {
  margin-top: var(--gap);
  background: var(--bg-alt);
  padding: 112px 0;
  text-align: center;
}

.foot-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 26px;
}

.foot-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.foot-mail { margin-bottom: 22px; }

.foot-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- adaptación ---------- */

@media (max-width: 980px) {
  .col-text, .col-list, .col-wide, .about-col { grid-column: 2 / 12; }
  .detail-figure { grid-column: 2 / 8; }
  .detail-text { grid-column: 2 / 12; }
}

@media (max-width: 700px) {
  :root { --gap: 72px; }

  body { font-size: 16.5px; }

  .wrap { width: 90vw; column-gap: 0; }

  .col-text, .col-list, .col-wide, .about-col,
  .detail-figure, .detail-text { grid-column: 1 / -1; }

  .site-head {
    width: 90vw;
    padding-top: 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav { gap: 10px 24px; }

  .hero {
    min-height: 0;
    padding: 84px 0 72px;
  }

  .hero h1, .hero .subtitle,
  .page-head h1, .page-head .subtitle { text-align: left; }

  .hero .subtitle, .page-head .subtitle { margin-inline: 0; }

  .page-head { padding-top: 56px; }

  .main-figure { padding: 56px 0; }

  .caption { text-align: left; }

  .site-foot { padding: 72px 0; }

  .about-col > p:first-of-type { font-size: 19px; }

  .dash { margin: 44px 0; }
}
