/* Casa Palabra – the fictional school on the test website.
   Its own look, deliberately not the service's: it stands for any website. */

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --ink: #2a2522;
  --muted: #6b625b;
  --line: #e7ddd2;
  --accent: #b5482f;        /* terracotta */
  --accent-soft: #f6e4dc;
  --sea: #1f5f7a;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --surface: #262220;
    --ink: #f1ebe5;
    --muted: #b6aba1;
    --line: #3b3431;
    --accent: #e0775c;
    --accent-soft: #3a2621;
    --sea: #7fb7cf;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--sea); }
a:hover { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar {
  max-width: 64rem; margin: 0 auto; padding: .9rem 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; margin-right: auto; }
.sections, .languages { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .95rem; }
.sections a, .languages a { color: var(--ink); text-decoration: none; }
.sections a:hover, .languages a:hover { color: var(--accent); }
.languages a[aria-current="page"] { color: var(--accent); font-weight: 600; }

main { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 1.2rem; }
article p { margin: 0 0 1rem; }

footer.site {
  max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
footer.site p { margin: .2rem 0; }

/* On every page: this school is invented. Big enough not to be missed by
   someone who lands here from a search or a report. */
.fiction {
  margin: 0 0 1.2rem; padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--ink); font-size: 1.05rem;
}
.fiction p { margin: 0 0 .8rem; }
.fiction .fiction-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: 0; }
.fiction .about { font-weight: 700; color: var(--accent); }

/* Shared by the start page and the notice above. */
.cta {
  display: inline-block; padding: .65rem 1.1rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
}
.cta:hover { color: #fff; filter: brightness(1.08); }

/* The start page: the test website's business card. */
.start { max-width: 56rem; }
.start .hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; margin-bottom: 1.5rem;
}
.start .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .2rem .7rem; margin-bottom: 1rem;
}
.start .lead { font-size: 1.1rem; color: var(--muted); }
.start .doors { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 1.5rem 0 0; }
.start .door {
  display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); text-decoration: none;
}
.start .door strong { display: block; color: var(--accent); }
.start .door:hover { border-color: var(--accent); }
.start .cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.start .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.start .card h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.start .card p { margin: 0 0 .6rem; font-size: .95rem; }
.start .card ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.start .cta { margin-top: .5rem; }
