/* ============================================================
   Catenaccio — pages.css
   Long-form article styling, page-specific blocks
   ============================================================ */

/* ---------- Article body ---------- */
.article {
  padding-block: clamp(2.4rem, 6vw, 4rem);
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.article__meta .tag { margin-right: 0.2rem; }

.prose { font-size: 1.06rem; }
.prose h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  position: relative;
  padding-top: 1.2rem;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 54px; height: 3px;
  background: var(--gold-500);
}
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; color: var(--navy-700); }
.prose p { color: var(--ink); }
.prose .lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--navy-700);
  font-family: var(--font-display);
  margin-bottom: 1.6rem;
}
.prose figure {
  margin: 2rem 0;
}
.prose figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.prose figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
}

/* drop-cap for longread */
.prose--longread > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.8;
  font-weight: 700;
  float: left;
  margin: 0.18rem 0.6rem 0 0;
  color: var(--gold-500);
}

/* pull quote */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.35;
  color: var(--navy-800);
  text-align: center;
  border-top: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  padding: 1.6rem 0;
  margin: 2.4rem 0;
}

/* info / tactic box */
.box {
  background: var(--paper-dim);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin: 1.8rem 0;
}
.box h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--navy-700);
  margin-bottom: 0.5rem;
}
.box p:last-child { margin-bottom: 0; }

/* table of contents */
.toc {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}
.toc h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--gold-500);
  margin-bottom: 0.7rem;
}
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.94rem; }

/* player / defender list */
.roster { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.roster li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 0;
}
.roster__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-500);
  text-align: center;
  line-height: 1;
  border-right: 1px solid var(--line-soft);
  padding-right: 0.6rem;
}
.roster__num small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.roster h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.roster .nat { font-size: 0.8rem; color: var(--gold-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.roster p { font-size: 0.94rem; color: var(--ink-soft); margin: 0.4rem 0 0; }

/* formation diagram (CSS pitch) */
.pitch {
  position: relative;
  background:
    repeating-linear-gradient(0deg, #11502f 0 38px, #12552f 38px 76px);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  max-width: 360px;
  margin: 1rem auto;
  overflow: hidden;
}
.pitch::before {
  content: "";
  position: absolute; left: 8%; right: 8%; top: 50%;
  height: 2px; background: rgba(255,255,255,0.45);
}
.pitch::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 70px; height: 70px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.dot {
  position: absolute;
  width: 26px; height: 26px;
  background: var(--gold-400);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-card .ic {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800);
  border-radius: 50%;
  margin-bottom: 1rem;
}
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.contact-card a { font-size: 1.05rem; font-weight: 600; color: var(--navy-700); }
.contact-card a:hover { color: var(--gold-500); }
.contact-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.4rem; }

.social-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.6rem; }
.social-row a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--navy-900);
}
.social-row a svg { width: 18px; height: 18px; fill: var(--gold-300); }
.social-row a:hover { background: var(--gold-500); }
.social-row a:hover svg { fill: var(--navy-900); }

/* about team */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.member { text-align: center; }
.member__avatar {
  width: 96px; height: 96px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.member h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.member .role { font-size: 0.8rem; color: var(--gold-500); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.member p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* legal / privacy */
.legal { font-size: 1rem; }
.legal h2 { margin-top: 2rem; }
.legal h3 { margin-top: 1.4rem; color: var(--navy-700); }
.legal time { color: var(--ink-soft); font-size: 0.9rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.94rem;
}
.legal th, .legal td {
  border: 1px solid var(--line-soft);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--paper-dim); font-family: var(--font-body); }

@media (max-width: 860px) {
  .contact-grid, .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .contact-grid { grid-template-columns: 1fr; }
}
