/* Anegada UG — anegada.net
   Monochrome paper/ink palette derived from the black ANEGADA wordmark. */

:root {
  --paper: #faf9f6;
  --ink: #14181c;
  --muted: #5c6570;
  --rule: #e4e2dc;
  --link-line: #c3bfb4;
  --focus: #3d4c5c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101316;
    --ink: #f2f1ed;
    --muted: #98a1ab;
    --rule: #262b31;
    --link-line: #4a545e;
    --focus: #b9c6d2;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@supports (min-height: 100svh) {
  body { min-height: 100svh; }
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--link-line);
  transition: border-color 0.15s ease;
}

a:hover,
a:focus-visible { border-bottom-color: currentColor; }

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

/* --- logo ------------------------------------------------------------- */

.logo {
  display: block;
  width: 100%;
  max-width: min(420px, 78vw);
  height: auto;
  margin: 0 auto;
  color: var(--ink);
}

.logo--small { max-width: min(200px, 60vw); margin: 0; }

/* Particle intro (assets/logo-particles.js): the canvas reaches beyond the
   wordmark so the dots have room to drift before they settle. */
.logo-wrap {
  position: relative;
  width: 100%;
  max-width: min(420px, 78vw);
  margin: 0 auto;
}

.logo-canvas {
  position: absolute;
  inset: -90px -12%;
  width: 124%;
  height: calc(100% + 180px);
  pointer-events: none;
}

a.logo-link {
  display: inline-block;
  border-bottom: 0;
  line-height: 0;
}

/* --- home ------------------------------------------------------------- */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  padding: 2rem 0;
}

.tagline {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

/* --- imprint ---------------------------------------------------------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.masthead { margin-bottom: 4rem; }

h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1rem; }

.lead { margin-bottom: 2rem; }

.lead p { margin-bottom: 0.25rem; }

dl {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: minmax(11rem, auto) 1fr;
  gap: 0.5rem 2rem;
}

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

dd { margin: 0; }

@media (max-width: 34rem) {
  dl { grid-template-columns: 1fr; gap: 0 0; }
  dt { margin-top: 0.9rem; }
}

.note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- footer ----------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

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

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

/* --- 404 -------------------------------------------------------------- */

.home .status {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
