@import url("fonts.css");

:root {
  --bg: #243f49;
  --surface: #1f363e;
  --text: #ffffff;
  --muted: #c7d0d3;
  --coral: #f1633e;
  --teal: #b6d3d5;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "DM Sans", sans-serif; }
a { color: var(--teal); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
header, main, footer { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; }
.brand { color: var(--text); font: 700 0.9rem "Space Mono", monospace; letter-spacing: 0.08em; text-decoration: none; }
.languages { display: flex; gap: 0.4rem; }
.languages button { background: transparent; border: 1px solid #ffffff33; border-radius: 4px; color: var(--muted); cursor: pointer; padding: 0.35rem 0.6rem; }
.languages button[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--text); }
main { background: var(--surface); border: 1px solid #ffffff12; border-radius: 12px; padding: clamp(1.25rem, 4vw, 3rem); }
h1, h2 { font-family: "DM Serif Display", serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.45rem; margin-top: 2rem; }
.updated { color: var(--muted); margin-bottom: 2rem; }
.callout { border-left: 3px solid var(--coral); background: #ffffff08; padding: 0.9rem 1rem; }
li + li { margin-top: 0.45rem; }
footer { color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem 0 3rem; font-size: 0.85rem; }
[hidden] { display: none !important; }

@media (max-width: 540px) {
  header { align-items: flex-start; }
  main { border-radius: 8px; }
}
