/* Matches ptxr-labs root index: #F3F3F3, Comic Sans, #0B99FF accents */

:root {
  --bg: #f3f3f3;
  --text: #000;
  --muted: #555;
  --footer-note: #888;
  --accent: #0b99ff;
  --border: #ccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--bg);
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 24px 0 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.brand a {
  text-decoration: none;
  color: var(--text);
}

.brand a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 1rem;
}

.nav-links a {
  color: var(--accent);
}

.nav-links [aria-current="page"] {
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}

main {
  flex: 1 1 auto;
  padding-bottom: 48px;
}

/* Landing (/rory/) */
.rory-landing {
  max-width: 40rem;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.rory-landing h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.15em;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
}

.rory-landing .rory-logo {
  display: block;
  width: min(128px, 70vw);
  height: auto;
  margin: 64px auto 32px;
  border-radius: 18px;
}

.rory-landing p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.rory-landing h2 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: 0.06em;
}

.rory-landing ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.rory-landing li {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

/* Legal subpages */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.last-updated {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.legal-prose h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 28px 0 10px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose p,
.legal-prose li {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-prose ul,
.legal-prose ol {
  padding-left: 1.35rem;
  margin-bottom: 16px;
}

.legal-prose li {
  margin-bottom: 8px;
}

.legal-prose strong {
  font-weight: 700;
  color: var(--text);
}

.legal-prose a {
  color: var(--accent);
}

footer.wrap {
  flex-shrink: 0;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

footer p {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--footer-note);
}

footer a {
  color: var(--accent);
}
