:root {
  color: #183033;
  background: #f7f9f6;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  --ink: #183033;
  --muted: #496263;
  --link: #075e61;
  --edge: #cddbd6;
  --accent: #087576;
  --wash: #e4f1eb;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #9a5100; outline-offset: .3rem; }
h1, h2 { line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1rem; }
.skip { position: absolute; top: -5rem; left: 1rem; }
.skip:focus { top: 1rem; z-index: 1; padding: .5rem 1rem; background: #fff; }
.masthead { background: #e6efe9; border-bottom: 1px solid var(--edge); }
.masthead nav, footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.4rem;
  max-width: 68rem;
  margin-inline: auto;
  padding: 1rem clamp(1rem, 5vw, 2rem);
}
.masthead nav .brand { margin-right: auto; color: var(--ink); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.listing, .story { max-width: 68rem; margin-inline: auto; padding: 2.75rem clamp(1rem, 5vw, 2rem) 3.5rem; }
.listing > header { margin-bottom: 2rem; }
h1 { margin: .3rem 0 1rem; font-size: clamp(2.15rem, 5.4vw, 4.3rem); letter-spacing: -.04em; }
.summary { max-width: 63ch; font-size: clamp(1.06rem, 2.5vw, 1.36rem); color: var(--muted); }
.category { margin: 0 0 .5rem; color: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.stamp, time { color: var(--muted); }
.stamp { font-size: .9rem; }
.back { display: inline-block; margin-bottom: 1.8rem; }
.story-heading { max-width: 59rem; margin-inline: auto; }
.cover { display: block; width: 100%; height: auto; margin: 1.7rem auto; border-radius: .8rem; }
.story-text { max-width: 70ch; margin-inline: auto; font-size: 1.125rem; }
.story-text section { margin-block: 2.2rem; }
.story-text h2 { font-size: 1.45rem; margin: 0 0 .65rem; }
.validity { color: var(--muted); font-size: 1rem; }
.takeaway { padding: 1.2rem 1.35rem; border-inline-start: .28rem solid var(--accent); background: var(--wash); }
.takeaway p { margin: 0; }
.sources { border-top: 1px solid var(--edge); padding-top: 1.5rem; }
.sources ul { padding-inline-start: 1.2rem; }
.stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.story-card { background: #fff; overflow: hidden; border: 1px solid var(--edge); border-radius: .8rem; }
.story-card:first-child { grid-column: 1 / -1; }
.story-card a { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.story-card a:hover h2, .story-card a:focus-visible h2 { text-decoration: underline; }
.story-card a:focus-visible { outline-offset: -.22rem; }
.story-card img { display: block; width: 100%; height: auto; }
.story-card a > div { padding: 1.25rem; }
.story-card h2 { margin: 0 0 .65rem; font-size: clamp(1.3rem, 3vw, 2.05rem); }
.story-card time { font-size: .9rem; }
.archive { margin-top: 2.8rem; border-top: 1px solid var(--edge); }
.archive ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; padding: 0; list-style: none; }
.agenda { --accent: #8c3e1b; --wash: #faeadd; }
.movilidad { --accent: #355c91; --wash: #e5eef8; }
.islas { --accent: #785329; --wash: #f4edda; }
footer { border-top: 1px solid var(--edge); color: var(--muted); font-size: .9375rem; }

@media (min-width: 48rem) {
  .story-card:first-child a { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .story-card:first-child img { height: 100%; object-fit: cover; }
  .story-card:first-child a > div { padding: 1.5rem 2rem; }
}
@media (max-width: 38rem) {
  .masthead nav .brand { flex-basis: 100%; }
  .stories { grid-template-columns: 1fr; }
}
