/* Design tokens. The dev HUD (hud.js) can override these at runtime. */
:root {
  color-scheme: dark;
  --bg: #212121;
  --fg: #ececec;
  --muted: #b4b4b4;
  --disabled: #6b6b6b;
  --accent: #8ab4f8;
  --panel: rgba(33, 33, 33, 0.5);
  --border: #4a4a4a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 2.5rem;
  padding-top: 3rem;
  display: flex;
  justify-content: center;
  font-family: "Radio Canada", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}

@media (min-width: 640px) {
  body {
    margin: 0 6rem;
  }
}

/* Seasonal particle layer, fixed behind everything. */
#season {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: 42rem;
  min-height: 100vh;
  background: var(--panel);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
  font: inherit;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.name {
  font-size: 1.125rem;
}

.location {
  font-size: 0.875rem;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 1rem;
  padding-top: 0.2rem;
}

.links a,
.links .disabled {
  display: block;
}

.links svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Content */
main {
  padding-bottom: 3rem;
}

.intro {
  margin-top: 2rem;
}

.intro p + p {
  margin-top: 1.25rem;
}

.intro a {
  font-weight: 600;
}

.intro a:hover {
  text-decoration: underline;
}

.section-title {
  margin: 2.5rem 0 1.25rem;
  font-weight: bold;
  color: var(--accent);
}

.entry + .entry {
  margin-top: 1.5rem;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entry-title a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meta {
  color: var(--muted);
}

/* Disabled items: dimmed, with a tooltip on hover or focus. */
.disabled {
  position: relative;
  padding: 0;
  font: inherit;
  color: var(--disabled);
  background: none;
  border: 0;
  cursor: not-allowed;
}

.disabled::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  padding: 2px 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1;
}

.disabled:hover::after,
.disabled:focus::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .disabled::after {
    transition: none;
  }
}
