
/* Base (Red theme) */

:root {
  --bg: #f84f4f;      /* red */
  --text: #000000;    /* black */
  --muted: #000000;   /* use black for all text variants */
  --brand: #000000;   /* links/buttons black */
  --brand-ink: #000000;
  --surface: #f84f4f; /* same red for surfaces */
  --ring: #000000;    /* focus underline uses black */
  --border: #000000;  /* if any borders remain, force black */
}


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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

/* Links */
a { color: var(--brand); text-decoration: underline; }
a:hover, a:focus { text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; background: var(--text); color: var(--bg); padding: .5rem .75rem; border-radius: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

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

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0;
}

.logo {
  font-weight: 800; font-size: 1.25rem; letter-spacing: .5px;
  color: var(--text);
}
.logo span { color: var(--text); }

.site-nav ul {
  list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0;
}
.site-nav a {
  display: inline-block; padding: .5rem .75rem; border-radius: .6rem;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
}
.site-nav a.active { background: transparent; text-decoration: underline; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--text); font-size: 1.1rem; border-radius: .4rem; padding: .2rem .45rem; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .site-nav ul { display: none; position: absolute; right: 4%; top: 60px; background: var(--surface); padding: .5rem; border-radius: .75rem; box-shadow: none; }
  .site-nav[data-open="true"] ul { display: block; }
  .site-nav li { margin: .25rem 0; }
}

/* Hero */
.hero { padding: 6rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); margin: 0 0 .5rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: var(--text); margin: 0 0 1.25rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: .7rem 1rem; border-radius: .8rem;
  border: 1px solid var(--text);
  background: transparent; color: var(--text); font-weight: 600;
}
.btn.primary {
  background: var(--text); color: #f84f4f;  /* inverted for emphasis */
}
.btn:focus { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Cards & grids */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card, .well {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.1rem; border-radius: 1rem;
  color: var(--text);
}

/* Page header */
.page-header { padding: 3.5rem 0 1.5rem; }
.page-header h1 { margin: 0 0 .4rem; }
.page-header p { margin: 0; }

/* Two column layout */
.two-col {
  display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Forms */
.contact-form { max-width: 720px; padding: 1rem 0 3rem; }
.form-field { display: grid; gap: .35rem; margin-bottom: 1rem; }
input, textarea {
  font: inherit; padding: .7rem .8rem; border-radius: .8rem; width: 100%;
  border: 1px solid var(--text);
  background: var(--surface); color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 3rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
@media (max-width: 700px) { .footer-inner { flex-direction: column; text-align: center; } }

/* Resource grid cards look clickable */
.resource-card a {
  display: block;
  border: 1px solid var(--text);
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
}
.resource-card a:hover, .resource-card a:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}


/* Allow linked cards on Services to inherit card look */
a.card {
  display: block;
  text-decoration: none;
  color: var(--text);
}
a.card:hover, a.card:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}


/* === Global override: remove rounded corners and outlined frames === */
* { border-radius: 0 !important; }

/* Remove borders on cards, wells, buttons, inputs, nav links, etc. */
.card, .well, .btn, input, textarea, .site-nav a, .site-header, .site-footer, .resource-card a {
  border: none !important;
  box-shadow: none;
}

/* Replace focus outline with underline-only (keeps accessibility without frames) */
:focus { outline: none !important; }
:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

/* Ensure clickable cards still look like blocks without frames */
a.card, .resource-card a {
  display: block;
  text-decoration: none;
  color: var(--text);
}
a.card:hover, a.card:focus-visible,
.resource-card a:hover, .resource-card a:focus-visible {
  text-decoration: underline;
}

/* Input fields without frames: rely on spacing and placeholder text */
input, textarea {
  background: var(--surface);
  padding-left: 0;
  padding-right: 0;
}


/* Lexicon accordion */
details.lexi { margin-bottom: 1rem; }
details.lexi > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: .25rem 0;
}
details.lexi > summary::-webkit-details-marker { display: none; }
details.lexi[open] > summary { text-decoration: underline; }
details.lexi .lexi-body { padding: .5rem 0 1rem; }


/* Floating index for Lexicon (two-color only) */
.lexi-index {
  position: fixed;
  right: 1rem;
  top: 20%;
  background: var(--bg);
  color: var(--text);
  padding: .5rem .75rem;
  z-index: 1000;
}
.lexi-index strong { display: block; margin-bottom: .25rem; }
.lexi-index ul { list-style: none; margin: 0; padding: 0; }
.lexi-index a { color: var(--text); text-decoration: underline; display: block; padding: .15rem 0; }
.lexi-index a:focus-visible, .lexi-index a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .lexi-index {
    right: 50%;
    transform: translateX(50%);
    top: auto;
    bottom: 1rem;
    padding: .4rem .6rem;
  }
  .lexi-index strong { display: none; }
  .lexi-index ul { display: flex; gap: .75rem; }
  .lexi-index a { padding: 0; }
}


/* Byline under titles: left-aligned, italic, small */
.byline {
  font-style: italic;
  font-size: 0.8rem; /* smaller than body text */
  margin: .25rem 0 0;
  color: var(--text); /* black */
  text-align: left;
}


/* Colophon list styling */
.colophon-list {
  margin: 0 0 2rem;
}
.colophon-list dt {
  font-weight: 700;
}
.colophon-list dd {
  margin: 0 0 1rem;
}
