/* stefan huwiler — one page. Black background, halo-studio type scale & colors.
   Reference: http://www.halostudio.love (body bg #000, hero h1 2.5rem #00fbfb
   weight 500 lh 120%, links = #00fbfb pills with #000 text, padding 9px 16px). */

:root {
  --bg: #000;
  --ink: #fff;
  --muted: #9d9d9d;
  --accent: #00fbfb;
  --accent-ink: #000;
  --blue: #0000d8;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { font-weight: 500; }

.who {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

/* halo hero heading: 2.5rem, cyan, weight 500, line-height 120% */
.name {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--accent);
  max-width: 600px;
  margin: 0 0 0.75rem;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 2.5rem;
}

p { margin: 0 0 1rem; }
a { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 9px 16px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--accent-ink); }

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

/* ---------- Header: language switch only ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid #1a1a1a;
}

.header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 64px;
}

.logo {
  display: block;
  margin-right: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid #333;
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Hero / content ---------- */

.hero { padding: 168px 0 64px; }

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

.contact-list .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-list .value { font-size: 1.25rem; }

/* halo-style link pills: cyan background, black text, 9px 16px */
.pill {
  display: inline-block;
  padding: 9px 16px;
  margin: 0 0.4rem 0.4rem 0;
  background: var(--accent);
  color: var(--accent-ink) !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
}
.pill:hover { background: var(--ink); }

.error-text { font-size: 1.25rem; color: var(--ink); margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 1.5rem 0;
  margin-top: 4rem;
}
.site-footer p { margin: 0; font-size: 0.8125rem; color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding: 96px 0 48px; }
  .name { font-size: 2rem; }
  .contact-list .value { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Display settings (a11y.js sets data-* on <html>) ---------- */

.a11y-menu {
  position: relative;
  margin-right: 0.75rem;
}
.a11y-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
}
.a11y-menu summary::-webkit-details-marker { display: none; }
.a11y-menu summary:hover { border-color: var(--accent); color: var(--accent); }
.a11y-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  min-width: 230px;
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.a11y-panel button {
  appearance: none;
  border: 1px solid #333;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
.a11y-panel button:hover { border-color: var(--accent); }
.a11y-panel button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.a11y-group { display: flex; gap: 0.25rem; }
.a11y-group button { text-align: center; flex: 1; }

/* text size: root font-size scales all rem-based sizes */
html[data-font-scale="1.125"] { font-size: 18px; }
html[data-font-scale="1.25"] { font-size: 20px; }

/* reading mode: wider line/letter/word spacing */
html[data-reading="on"] body {
  line-height: 1.8;
  letter-spacing: 0.04em;
  word-spacing: 0.08em;
}
html[data-reading="on"] .name { letter-spacing: 0; }

/* high contrast: pure white on black, yellow accent, underlined links */
html[data-contrast="high"] {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #ffffff;
  --accent: #ffff00;
  --accent-ink: #000000;
}
html[data-contrast="high"] a { text-decoration: underline; }
html[data-contrast="high"] .pill { border: 2px solid #ffffff; }
html[data-contrast="high"] :focus-visible { outline-width: 4px; }

/* manual reduce-motion (in addition to the OS-level media query above) */
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after { transition: none !important; animation: none !important; }
