/* Project Anchor — shared stylesheet. Plain CSS, no dependencies. */

:root {
  color-scheme: light dark;
  --bg: #fbf9f6;
  --surface: #ffffff;
  --text: #12293f;
  --muted: #4a5f73;
  --link: #1f4e79;
  --accent: #b8452f;
  --border: #dbe3ea;
  --measure: 42rem;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1a2b;
    --surface: #12293f;
    --text: #e4edf5;
    --muted: #9fb6c9;
    --link: #8fc0e8;
    --accent: #f0937f;
    --border: #244259;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--font);
  overflow-wrap: break-word;
}

/* Layout */
.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding: 3rem 0;
}

/* Comfortable reading width — used by the legal, support, and 404 pages. */
.measure {
  max-width: var(--measure);
}

/* Header, wordmark, navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
}

/* Text */
h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.4rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* Links stay underlined so they are identifiable without colour. */
main a,
footer a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

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

/* Sections */
.hero {
  padding-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

section + section h2 {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Feature cards */
.cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding: 0;
}

.cards li {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

/* Notices */
.notice {
  padding: 1rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.notice :last-child {
  margin-bottom: 0;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  margin: 0 0.5rem 0.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

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