/* style.css (external; no lazy-loading assumptions) */
:root { color-scheme: light; }

body {
  margin: 0;
  background: #ccc;
  font: 18px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
}

.wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  text-align: center;
}

header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

header p { margin: 0 0 16px; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  margin: 12px 0 22px;
}

a { color: #0645ad; }
a:hover, a:focus { text-decoration: underline; }

.meta { margin: 12px 0 22px; font-size: 0.95rem; }

main { display: grid; gap: 22px; }

section {
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

section > h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-align: left;
}

figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

figcaption {
  width: min(100%, 900px);
  text-align: left;
}

.smiley {
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
  border-radius: 0;
}

.toc { font-size: 0.95rem; }
.toc a { text-decoration: none; }
.toc a:hover, .toc a:focus { text-decoration: underline; }

footer { margin-top: 26px; font-size: 0.95rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.skip-link:focus { left: 8px; }
