/* Historia del Albacete Balompié — white field, black type, maroon and gold
   from the club crest. Angular chevrons and shield points. Not a cream
   journal, not gold-on-dark, not the earlier pitch-green programme. */

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

:root {
  --white: #ffffff;
  --ink: #0a0a0a;
  --muted: #3d3d3d;
  --faint: #6a6a6a;
  --rule: #e4e4e4;
  --maroon: #8a1f34;
  --maroon-deep: #6e1528;
  --gold: #e6c400;
  --gold-deep: #c9a600;
  --display: "Arial Black", "Arial Bold", "Helvetica Neue", "Franklin Gothic Heavy", "Gill Sans", "Trebuchet MS", sans-serif;
  --body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --wide: 72rem;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--maroon-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--maroon);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--gold);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

header {
  position: relative;
  background: var(--white);
}

.topbar {
  height: 9px;
  background: linear-gradient(to bottom, var(--gold) 0 3px, var(--maroon) 3px 100%);
}

.mast {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem 0.95rem;
  max-width: var(--wide);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  width: 3.6rem;
  height: auto;
  flex: 0 0 3.6rem;
}

.brand-text {
  min-width: 0;
}

.brand-kicker {
  display: block;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.45rem, 5.2vw, 2.2rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.independence {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 22rem;
}

.menu-toggle {
  display: none;
  position: absolute;
  top: 1.35rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  border-radius: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.nav-wrap {
  background: var(--ink);
  position: relative;
}

.nav-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 28px;
  height: 10px;
  margin-left: -14px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.15rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-nav a {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--white);
  padding: 0.7rem 0.85rem 0.65rem;
  border-bottom: 3px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--maroon);
}

.years {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.15rem 1.25rem 0.35rem;
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--faint);
  overflow-wrap: anywhere;
}

main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3.5rem;
}

.prose {
  max-width: var(--measure);
}

.prose h1,
.hero-copy h1,
.page-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5.8vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0.7rem 0 0.9rem;
  overflow-wrap: anywhere;
}

.prose h1::after,
.page-title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 10px;
  margin-top: 0.55rem;
  background: var(--maroon);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.lede {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2rem 0 0.7rem;
  line-height: 1.15;
  color: var(--ink);
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.5rem;
  color: var(--maroon-deep);
}

.prose p,
.prose li {
  overflow-wrap: anywhere;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.hero {
  margin: 0 0 2rem;
}

.hero-shot {
  margin: 0 -1.25rem 1.35rem;
  position: relative;
}

.hero-shot img {
  width: 100%;
  max-width: none;
  height: clamp(10rem, 32vw, 22rem);
  object-fit: cover;
  object-position: center;
}

.hero-shot::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 1.6rem 1.6rem;
  border-color: transparent transparent var(--maroon) transparent;
  pointer-events: none;
}

figure {
  margin: 1.4rem 0 1.7rem;
  position: relative;
}

figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.shot-wide {
  margin-left: 0;
  margin-right: 0;
}

.shot-wide img,
.frame img {
  width: 100%;
}

.pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.4rem 0 1.7rem;
}

.pair figure {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.6rem 0 2rem;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--ink);
  border-left: 6px solid var(--maroon);
  padding: 0.95rem 1rem 1.05rem;
  position: relative;
  border-radius: 0;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0.85rem 0.85rem 0;
  border-color: var(--gold) var(--gold) transparent transparent;
}

.card h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  list-style: none;
  margin: 1.2rem 0 2rem;
  padding: 0;
  border-left: 3px solid var(--maroon);
}

.timeline li {
  padding: 0 0 1.35rem 1.25rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border: 0;
  border-radius: 0;
}

.timeline .year {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon-deep);
  margin-bottom: 0.2rem;
}

.portrait {
  max-width: 22rem;
}

.notice {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
  padding-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: #d8d8d8;
  padding: 1.7rem 1.25rem 2.2rem;
  border-top: 6px solid var(--gold);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 28px;
  height: 10px;
  margin-left: -14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.site-footer strong {
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0.45rem 0;
  font-size: 0.88rem;
  max-width: 38rem;
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff3a8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.mailto,
code {
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 800px) {
  .independence {
    margin-left: auto;
    padding-top: 0.35rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .hero-shot {
    margin-left: 0;
    margin-right: 0;
  }

  .brand img {
    width: 4.25rem;
    flex-basis: 4.25rem;
  }
}

@media (max-width: 799px) {
  .mast {
    padding-right: 3.7rem;
    flex-direction: column;
    gap: 0.6rem;
  }

  .independence {
    max-width: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.15rem 0 0.4rem;
  }

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

  .site-nav a {
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid #2a2a2a;
    border-left: 3px solid transparent;
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: #2a2a2a;
    border-left-color: var(--gold);
    background: #141414;
  }

  .nav-wrap::after {
    display: none;
  }
}
