/* The Mind Society — shared stylesheet */
:root {
  --bg: #f3f0e8;
  --paper: #faf8f2;
  --ink: #1b1814;
  --muted: #4f4a43;
  --line: #d5cec2;
  --line-strong: #b9b1a3;
  --accent: #6a3a2c;
  --accent-hover: #4d281e;
  --gold: #8a7044;
  --focus: #6a3a2c;
  --max: 40rem;
  --serif: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Liberation Serif", "Times New Roman", Times, serif;
  --sans: "Libre Franklin", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 112.5%; /* 18px */
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 10;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 0.75rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
.nav a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Header */
.site-header {
  padding: 2.5rem 1.25rem 0;
  text-align: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
  max-width: 100%;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-mark {
  font-size: 3rem;
  line-height: 1;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

.brand-name {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  padding: 0 0.5rem;
}

.nav {
  width: 100%;
  max-width: calc(var(--max) + 2.5rem);
  margin: 1.75rem auto 0;
  padding: 0 1.25rem 0;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 0 0.85rem;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0.15rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4rem;
}

.page-title {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede,
.prose p {
  margin: 0 0 1.15rem;
}

.lede {
  font-size: 1.12rem;
  line-height: 1.7;
}

.section {
  margin-top: 2.5rem;
}

.page-title + .section {
  margin-top: 0;
}

.section h2 {
  margin: 0 0 0.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section h2 + p {
  margin-top: 1rem;
}

/* Scores */
.scores {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scores li {
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.scores .test {
  display: block;
  font-weight: 600;
  font-style: italic;
}

.scores .detail {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
}

.scores .note {
  color: var(--muted);
  font-size: 0.95rem;
}

.nowrap {
  white-space: nowrap;
}

.notice {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.tagline {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-style: italic;
}

/* Address & lists */
address {
  font-style: normal;
  margin: 1rem 0 0;
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  line-height: 1.55;
}

.sisters {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sisters li {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.75rem 1.25rem 2.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.35rem;
}

/* Responsive */
@media (min-width: 640px) {
  .site-header {
    padding-top: 3.25rem;
  }

  .brand-mark {
    font-size: 3.4rem;
  }

  .page-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 439px) {
  html {
    font-size: 100%;
  }

  .nav ul {
    gap: 0.1rem 1.15rem;
  }

  .brand-name {
    letter-spacing: 0.16em;
  }
}

/* Print */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .skip-link,
  .nav {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .site-footer {
    border-color: #ccc;
  }
}
