/* Platform Accountability — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --text: #000000;
  --muted: #555;
  --link: #000000;
  --border: #e2e2e2;
  --bg: #ffffff;
  --accent: #008afc;
  --accent-text: #ffffff;
  --max-width: 940px;
  --serif-font: Georgia, Palatino, "Book Antiqua", "Palatino Linotype", serif;
  --sans-font: 'Poppins', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans-font);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav — overlays the hero image, transparent background */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  font-family: var(--sans-font);
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: var(--max-width);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-nav a {
  display: block;
  padding: 1.4rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: #4da3ff;
  border-bottom-color: #4da3ff;
}

/* Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 260px;
  margin-bottom: 2.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
}

.hero-tall { min-height: 480px; }

.hero-home { background-image: url('/assets/img/hero-home.jpg'); }
.hero-proposal { background-image: url('/assets/img/banner-proposal.jpg'); }
.hero-about { background-image: url('/assets/img/banner-about.jpg'); }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 1.25rem 3rem;
  width: 100%;
}

.hero h1 {
  font-family: var(--serif-font);
  font-weight: 400;
  color: #fff;
  font-size: 3.4rem;
  max-width: 620px;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.hero .tagline {
  color: #fff;
  max-width: 640px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

h1, h2, h3, h4, h5 {
  font-family: var(--sans-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

.tagline {
  font-family: var(--sans-font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.reading-list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--sans-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
}

.btn:hover { background: #0077dd; text-decoration: none; }

.btn-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.citation-list {
  list-style: disc;
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: #fff;
}

.citation-list li {
  margin: 0.5rem 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.citation-list a {
  color: #fff;
  text-decoration: underline;
}

.citation-list em { font-style: italic; }

article { font-weight: 300; }
article p { margin: 1rem 0; }
article a { text-decoration: underline; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--sans-font);
  font-weight: 300;
  font-size: 0.92rem;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--sans-font);
  font-weight: 700;
  border-bottom: 2px solid var(--text);
}

.figure {
  margin: 2rem 0;
  text-align: center;
}

.figure figcaption {
  font-family: var(--sans-font);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--sans-font);
  font-size: 0.9rem;
}

/* About page */
.bio { margin-bottom: 2rem; }
.bio h3 { margin-bottom: 0.25rem; font-weight: 700; }
.bio h3 a { color: var(--text); }

/* Contact form */
.contact-form {
  font-family: var(--sans-font);
  max-width: 480px;
  margin-top: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  font-weight: 300;
  font-size: 0.95rem;
  background: #fff;
  color: #000;
  border: 1px solid #bbb;
  border-radius: 0;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.inquiry-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.3rem;
}

.inquiry-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 300;
  margin: 0;
}

.inquiry-options input { width: auto; }

.contact-form button {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 0;
  font-family: var(--sans-font);
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-form button:hover { background: #0077dd; }

.form-note {
  font-family: var(--sans-font);
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  font-family: var(--sans-font);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--muted);
}

footer p { margin: 0.25rem 0; }

@media (max-width: 600px) {
  .hero-tall { min-height: 360px; }
  .hero { min-height: 200px; }
  .hero h1 { font-size: 2.1rem; }
  .site-nav ul { gap: 1.25rem; padding: 0 1rem; }
}
