/* Pixel Pathways — hand-written CSS. Near-monochrome, light and dark.
   Note: CSS property names use en_US spelling (color) by specification;
   all authored content and comments are en_AU. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --text: #14171a;
  --muted: #62676d;
  --faint: #8a9096; /* decorative only — never used for text */
  --rule: #e2e4e6;
  --accent: #35605f;
  --tag-bg: #f1f2f3;

  --measure: 36rem;
  --gutter: clamp(1.5rem, 6vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131415;
    --text: #eceded;
    --muted: #a1a6ab;
    --faint: #7c8288;
    --rule: #2a2c2e;
    --accent: #8fb6b9;
    --tag-bg: #222426;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(3.5rem, 12vh, 8rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* Links: underlined always, so colour is never the only cue. */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Masthead */

.wordmark {
  margin: 0 0 1.75rem;
  font-size: clamp(2.75rem, 13vw, 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

/* Sections */

section { margin-top: clamp(3rem, 9vh, 4.5rem); }

.section-heading {
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry + .entry { margin-top: 2rem; }

.entry-title {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.entry p { color: var(--muted); }
.entry strong { color: var(--text); font-weight: 600; }

.tag {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  background: var(--tag-bg);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* People */

.people {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 30rem) {
  .people { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}

.person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tag-bg);
}

.person-name {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}

.person-role,
.person-link {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Footer */

footer {
  margin-top: clamp(3.5rem, 11vh, 5.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
