/* shelleypanulla.com
   Default theme: teal background. Optional light theme: cream background, teal accent.
   Every text/background pair is checked against WCAG 2.2 AA (see README). */

:root {
  /* Teal theme (default) */
  --bg: #0b5a5f;
  --panel: #094c50;
  --text: #fdf8ee;
  --muted: #d5e7e4;
  --accent: #f5d78e;
  --accent-hover: #fbe8b8;
  --on-accent: #06363a;
  --rule: rgba(253, 248, 238, 0.28);
  --focus: #f5d78e;

  --heading: "Alice", Georgia, "Times New Roman", serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 64rem;
  --gutter: clamp(1rem, 5vw, 3rem);
  --space: clamp(3.5rem, 9vw, 6.5rem);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f8f3e8;
  --panel: #fdf9f1;
  --text: #1b2a2c;
  --muted: #45585b;
  --accent: #0b5a5f;
  --accent-hover: #073f43;
  --on-accent: #fdf8ee;
  --rule: #d9cfbc;
  --focus: #0b5a5f;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;      /* 18px */
  font-weight: 400;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;          /* Alice has a single weight */
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw + 0.5rem, 2.75rem); }
h3 { font-size: 1.4rem; }

p, ul, ol, dl { margin: 0 0 1.25em; }
p, li { max-width: 62ch; }
strong { font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 0.15em; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}
.site-name {
  font-family: var(--heading);
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.site-name:hover { color: var(--accent); }

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

.theme-toggle {
  display: none;            /* shown only when JavaScript runs */
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 500 0.9375rem/1 var(--body);
  cursor: pointer;
}
.js .theme-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .dot {
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.theme-toggle.is-light .dot { background: currentColor; }

/* Sections */
section { padding-block: var(--space); }
section + section { border-top: 1px solid var(--rule); }

.label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem);
  line-height: 1.55;
  max-width: 34ch;
}
.lead-wide { max-width: 46ch; }

.muted { color: var(--muted); }

/* Intro */
.intro { padding-block: clamp(4rem, 12vw, 8rem) var(--space); }
.intro h1 { margin-bottom: 0.35em; }
.intro .current {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Intro layout with illustration */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.intro-art { max-width: 26rem; width: 100%; }
.hero-svg { display: block; width: 100%; height: auto; }
@media (min-width: 46rem) {
  .intro-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
  .intro-art { max-width: 30rem; justify-self: end; }
}
@media (max-width: 45.99rem) {
  .intro-art { max-width: 22rem; margin-inline: auto; }
}

/* Key figures */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 3rem;
  list-style: none;
  margin: 3rem 0;
  padding: 0;
}
.figures li { max-width: none; border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.figures .num {
  display: block;
  font-family: var(--heading);
  font-size: clamp(2.6rem, 4vw + 1rem, 3.5rem);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.figures p { margin: 0; }
.figures .basis {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Career list */
.career {
  list-style: none;
  margin: 0;
  padding: 0;
}
.career li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem 2rem;
  max-width: none;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}
.career li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .career li { grid-template-columns: 9rem minmax(0, 1fr); }
}
.career .years {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.career .role { font-weight: 600; }
.career .org { display: block; }
.career .what { display: block; color: var(--muted); font-size: 1rem; margin-top: 0.2rem; }

h3.sub { margin-top: 3.5rem; }

/* Background columns */
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 4rem;
}
@media (min-width: 52rem) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.columns ul { list-style: none; padding: 0; }
.columns li { margin-bottom: 1rem; }
.columns li span { display: block; color: var(--muted); font-size: 1rem; }

/* Invitation panel */
.invite {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1rem;
}
.invite h3 { margin-bottom: 0.4em; }
.invite p:last-child { margin-bottom: 0; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
  text-decoration: underline;
}
.button-quiet { background: transparent; color: var(--accent); }
.button-quiet:hover { background: transparent; color: var(--accent-hover); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

.note { font-size: 0.9375rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

@media print {
  :root { --bg: #fff; --text: #000; --muted: #333; --accent: #0b5a5f; --rule: #ccc; --panel: #fff; }
  .site-nav, .theme-toggle, .skip-link { display: none !important; }
  section { padding-block: 1.25rem; }
}

cite { font-style: italic; }
