/*
 * mydata.haus — one stylesheet for a static site with no build step, no
 * scripts and no third-party requests (see ../AGENTS.md for why this is not
 * Panda). Colours are tokens; dark mode follows the system preference.
 */
:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #1b1d1f;
  --muted: #5d6166;
  --line: #ddd8cc;
  --accent: #2f5d50;
  --accent-ink: #f6f4ef;
  --focus: #2f5d50;
  --measure: 68ch;
  --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #181b1e;
    --ink: #e9e6df;
    --muted: #a4a8ad;
    --line: #2c3035;
    --accent: #8cc4b3;
    --accent-ink: #121416;
    --focus: #8cc4b3;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 1;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

main {
  flex: 1;
  width: 100%;
}

/* Landing */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 14vh, 160px) 16px 64px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 9vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero p {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--muted);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 36px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact:hover {
  filter: brightness(1.06);
}

/* Legal pages */
.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 24px 16px 72px;
}

.doc h1 {
  margin: 16px 0 4px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc .updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 40px 0 8px;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.doc h3 {
  margin: 24px 0 4px;
  font-size: 1rem;
}

.doc p,
.doc li {
  overflow-wrap: anywhere;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 6px;
}

.callout {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
}

.callout p {
  margin: 0;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}
