/* PurpleDigit Inc. — shared stylesheet */
:root {
  --bg: #faf7f2;
  --fg: #17141c;
  --muted: #5b5565;
  --accent: #4a2c8c;
  --accent-ink: #ffffff;
  --rule: #e4ddd3;
  --card: #ffffff;
  --focus: #4a2c8c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15121b;
    --fg: #ece7f2;
    --muted: #a69fb2;
    --accent: #b9a1ea;
    --accent-ink: #15121b;
    --rule: #2b2634;
    --card: #1d1926;
    --focus: #b9a1ea;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15121b;
  --fg: #ece7f2;
  --muted: #a69fb2;
  --accent: #b9a1ea;
  --accent-ink: #15121b;
  --rule: #2b2634;
  --card: #1d1926;
  --focus: #b9a1ea;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-top: 2.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  min-height: 64px;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Main */
main { flex: 1; }
.page { padding: 3rem 0 4rem; }
.home { padding: 3rem 0 2.5rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0 1.5rem;
}
.card h2 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-meta { color: var(--muted); font-size: 0.95rem; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

.contact-line { color: var(--muted); }
.email {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  word-break: break-all;
}
dl { margin: 0 0 1rem; }
dt { font-weight: 500; }
dd { margin: 0 0 0.75rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: center;
}
.site-footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .copy { flex-basis: 100%; }
@media (min-width: 40rem) {
  .site-footer .copy { flex-basis: auto; margin-left: auto; }
}
