/* =========================================================================
   CRAYOTIVITY, LLC — Accessible, High-Contrast Small Press Stylesheet
   ========================================================================= */
:root {
  --bg-page: #faf9f6;
  --bg-surface: #ffffff;
  --bg-subtle: #f1efe9;
  --ink-primary: #16202a;
  --ink-secondary: #3b4856;
  --brand-navy: #143642;
  --brand-teal: #0f6e6e;
  --brand-amber: #b4690e;
  --border-light: #dcd8ce;
  --focus-ring: #0f6e6e;
  --max-width: 1120px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.65;
}

a {
  color: var(--brand-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-navy);
}

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Imprint Lockup */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brand-navy);
}

.brand-mark {
  width: 38px;
  height: 44px;
  color: var(--brand-navy);
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--brand-navy);
}

.brand-sub {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-weight: 600;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--brand-teal);
  border-bottom-color: var(--brand-teal);
}

/* Hero Banner */
.hero {
  background: linear-gradient(135deg, #143642 0%, #1d4e5f 100%);
  color: #ffffff;
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f3c677;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: #ffffff;
}

.hero p {
  font-size: 1.12rem;
  color: #e6eef2;
  max-width: 62ch;
  margin: 0 0 1.75rem 0;
}

.hero-emblem-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: center;
  min-width: 210px;
}

.hero-emblem-card svg {
  width: 96px;
  height: 112px;
  color: #f3c677;
}

.hero-emblem-caption {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6eef2;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: #f3c677;
  color: #14242b;
}

.btn-primary:hover {
  background: #ffd78e;
  color: #0d181d;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--brand-navy);
}

.btn-dark {
  background: var(--brand-navy);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--brand-teal);
  color: #ffffff;
}

/* Sections & Cards */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  color: var(--brand-navy);
  margin: 0 0 0.4rem 0;
}

.section-header p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(20, 54, 66, 0.04);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-genre {
  background: #e3f1f1;
  color: #0b5252;
}

.badge-status {
  background: #fdf2df;
  color: #7c4505;
}

.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  margin: 0 0 0.35rem 0;
  color: var(--brand-navy);
}

.card-meta {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card p {
  margin: 0 0 1.25rem 0;
  color: var(--ink-primary);
}

.card-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Ethos Strip */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.ethos-item h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brand-navy);
  margin: 0 0 0.4rem 0;
  font-size: 1.15rem;
}

.ethos-item p {
  margin: 0;
  color: var(--ink-secondary);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--ink-primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
}

.filter-btn[aria-pressed="true"], .filter-btn:hover {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

/* Subpage Page Header */
.page-banner {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 2.75rem 0;
}

.page-banner h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  color: var(--brand-navy);
  margin: 0 0 0.5rem 0;
}

.page-banner p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.08rem;
  max-width: 65ch;
}

/* Footer */
.site-footer {
  background: #14242b;
  color: #d6e2e8;
  padding: 3rem 0 2rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
}

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

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #d6e2e8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #f3c677;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: #a9bec8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-emblem-card {
    max-width: 240px;
  }
}
