/* Poltergeist the Cat — shared styles. No external fonts or trackers: everything loads from this site. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f2ece3;
  --text: #24211d;
  --muted: #6b645a;
  --border: #e4ddd2;
  --accent: #6a4c93;
  --accent-strong: #553a7a;
  --accent-soft: #efe8f8;
  --accent-text: #ffffff;
  --peach: #f6e3d3;
  --shadow: 0 1px 2px rgba(36, 33, 29, .06), 0 8px 24px rgba(36, 33, 29, .07);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151a;
    --surface: #211e25;
    --surface-alt: #1c1a20;
    --text: #eeeae4;
    --muted: #a59e95;
    --border: #36313c;
    --accent: #b49bdc;
    --accent-strong: #c9b6e8;
    --accent-soft: #2d2638;
    --accent-text: #17151a;
    --peach: #33282a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip-link:focus { left: 8px; }

/* ---- header ---- */
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface-alt); }
.site-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }

/* ---- sections ---- */
main { flex: 1; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { max-width: 640px; margin-bottom: 32px; }

/* ---- buttons ---- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }

/* ---- hero ---- */
.hero { padding: 56px 0 72px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-photo { margin: 0 18px 0 0; }
.hero-photo img {
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 18px 18px 0 var(--peach);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.hero-photo figcaption { margin-top: 30px; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---- cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 40%; width: 100%; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card-body .more:hover { text-decoration: underline; }
.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 10px;
  align-self: flex-start;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .icon { font-size: 1.8rem; line-height: 1; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }

/* ---- cat profiles ---- */
.profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}
.profile + .profile { margin-top: 72px; }
.profile.flip { grid-template-columns: 1fr 360px; }
.profile.flip .profile-media { order: 2; }
.profile-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.profile-media { position: sticky; top: 96px; }
.facts {
  margin: 20px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  font-size: .95rem;
}
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }
.aka { color: var(--muted); font-size: 1.05rem; margin-top: -6px; }
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.callout h3 { margin-bottom: .35em; font-size: 1.05rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---- accounts ---- */
.account-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.account {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.account:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.account-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.account-icon svg { width: 24px; height: 24px; }
.account-name { font-weight: 700; display: block; }
.account-handle { color: var(--muted); font-size: .95rem; }
.account-arrow { margin-left: auto; color: var(--muted); }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.email-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.email-box .email { font-size: clamp(1.1rem, 3vw, 1.45rem); font-weight: 700; word-break: break-all; }
.checklist { padding-left: 1.2em; }
.checklist li { margin-bottom: .4em; }

/* ---- legal pages ---- */
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.updated { color: var(--muted); font-size: .95rem; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: .92rem;
  color: var(--muted);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 460px; margin: 0 auto; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .profile, .profile.flip { grid-template-columns: 1fr; gap: 28px; }
  .profile.flip .profile-media { order: 0; }
  .profile-media { position: static; max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .card-grid, .account-list { grid-template-columns: 1fr; }
  .site-header .container { justify-content: center; }
  .hero-photo { margin-right: 10px; }
  .hero-photo img { box-shadow: 10px 10px 0 var(--peach); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
