/*
Theme Name: Ebbanomre School
Author: Ebbanomre Chess
Description: Sitio escolar de ajedrez con portada, aula y noticias.
Version: 1.0.1
Text Domain: ebbanomre-school
*/

:root {
  color-scheme: light;
  --ink: #142321;
  --ink-soft: #41504b;
  --paper: #f7f5ef;
  --white: #fffefa;
  --gold: #c7973e;
  --gold-dark: #876020;
  --green: #235b4a;
  --green-light: #d8e6dc;
  --line: #d9ddd5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Aptos', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(rgb(247 245 239 / 78%), rgb(247 245 239 / 78%)), url('assets/chess-background.jpeg');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 12px; }
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1280px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  background: rgb(247 245 239 / 90%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand img { width: 54px; height: 54px; border-radius: 4px; object-fit: cover; }
.brand strong { display: block; font: 700 20px/1.15 var(--serif); }
.brand span { display: block; color: var(--ink-soft); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a:hover { color: var(--green); }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.nav-cta:hover, .button:hover { transform: translateY(-2px); background: #194637; }
.button-light { border-color: var(--ink); background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--green-light); color: var(--ink); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 56px;
  width: min(1280px, calc(100% - 64px));
  min-height: 650px;
  margin: 0 auto;
  padding: 56px 0 72px;
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 600px;
  margin: 0;
  font: 700 62px/1.04 var(--serif);
}
.hero-copy { max-width: 560px; margin: 23px 0 30px; color: var(--ink-soft); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 13px; }
.hero-media { position: relative; min-width: 0; }
.hero-media img {
  display: block;
  width: 100%;
  max-height: 590px;
  aspect-ratio: 1 / .94;
  border: 8px solid var(--white);
  box-shadow: 0 22px 58px rgb(20 35 33 / 18%);
  object-fit: cover;
  object-position: center;
}
.hero-caption {
  position: absolute;
  right: -18px;
  bottom: 24px;
  max-width: 260px;
  padding: 14px 18px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}
.section { padding: 88px 32px; }
.section-inner { width: min(1152px, 100%); margin: 0 auto; }
.section-heading { max-width: 720px; margin-bottom: 46px; }
.section-heading h2 { margin: 0; font: 700 44px/1.12 var(--serif); }
.section-heading p:not(.eyebrow) { margin: 16px 0 0; color: var(--ink-soft); }
.learning-section { background: rgb(35 91 74 / 94%); color: #fff; }
.learning-section .eyebrow { color: #e9c778; }
.learning-section .section-heading p:not(.eyebrow) { color: #dbe7df; }
.learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / 30%); }
.learning-step { padding: 27px 28px 12px 0; }
.learning-step + .learning-step { padding-left: 28px; border-left: 1px solid rgb(255 255 255 / 30%); }
.step-number { color: #e9c778; font: 700 17px var(--serif); }
.learning-step h3 { margin: 14px 0 8px; font: 700 25px/1.2 var(--serif); }
.learning-step p { margin: 0; color: #dbe7df; font-size: 15px; }
.path-section { background: rgb(255 254 250 / 90%); }
.path-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.path-layout .section-heading { margin: 0; }
.path-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.path-list li { display: grid; grid-template-columns: 44px 1fr; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.path-list b { color: var(--gold-dark); font: 700 18px var(--serif); }
.path-list strong { display: block; margin-bottom: 3px; }
.path-list span { color: var(--ink-soft); font-size: 14px; }
.app-band { padding: 0 32px 88px; background: rgb(255 254 250 / 90%); }
.app-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: min(1152px, 100%);
  margin: 0 auto;
  padding: 38px 42px;
  background: var(--green-light);
}
.app-band h2 { margin: 0; font: 700 32px/1.15 var(--serif); }
.app-band p { max-width: 640px; margin: 9px 0 0; color: var(--ink-soft); }
.news-section { background: rgb(247 245 239 / 90%); }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-date { color: var(--gold-dark); font-size: 12px; font-weight: 750; }
.news-title { display: block; font: 700 23px/1.25 var(--serif); }
.news-excerpt { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 14px; }
.news-arrow { color: var(--green); font-size: 22px; }
.empty-news { padding: 22px 0; color: var(--ink-soft); }
.site-footer { padding: 34px 32px; background: rgb(20 35 33 / 96%); color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1152px, 100%); margin: 0 auto; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #e9c778; font-size: 13px; text-decoration: none; }
.content-main { min-height: 60vh; width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 100px; }
.content-main h1 { font: 700 48px/1.1 var(--serif); }
.content-main .entry-content { color: var(--ink-soft); }
.content-main .entry-content a { color: var(--green); }
.entry-date { color: var(--gold-dark); font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  .site-header, .hero { width: min(100% - 40px, 720px); }
  .site-header { min-height: 78px; }
  .main-nav { gap: 16px; }
  .main-nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; min-height: 570px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 17px; }
  .hero-caption { right: -8px; }
  .path-layout { gap: 38px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header, .hero { width: calc(100% - 36px); }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 17px; }
  .brand span { font-size: 11px; }
  .nav-cta { min-height: 42px; padding: 8px 10px; font-size: 11px; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 58px 0 64px; }
  .hero h1 { max-width: 470px; font-size: 42px; }
  .hero-copy { margin: 17px 0 22px; font-size: 16px; }
  .hero-media { width: calc(100% - 10px); }
  .hero-media img { max-height: 440px; aspect-ratio: 1 / .9; }
  .hero-caption { right: -10px; bottom: 15px; max-width: 210px; padding: 10px 12px; font-size: 12px; }
  .section { padding: 64px 20px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: 34px; }
  .learning-grid { grid-template-columns: 1fr; }
  .learning-step, .learning-step + .learning-step { padding: 22px 0; border-left: 0; border-bottom: 1px solid rgb(255 255 255 / 30%); }
  .path-layout { grid-template-columns: 1fr; gap: 28px; }
  .app-band { padding: 0 20px 64px; }
  .app-band-inner { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .app-band h2 { font-size: 28px; }
  .news-item { grid-template-columns: 1fr auto; gap: 5px 15px; }
  .news-date { grid-column: 1; }
  .news-copy { grid-column: 1; }
  .news-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .content-main { padding-top: 46px; }
  .content-main h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}