/* ============================================================
   The PROMISE Foundation — shared stylesheet
   Visual language: navy, gold, cream, Georgia serif
   Matches 3pq.online for family resemblance
   ============================================================ */

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: #1a2744;
  background: #f4f1ec;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header {
  background: #1a2744;
  color: #f4f1ec;
  padding: 20px 0;
  border-bottom: 4px solid #c9a84c;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-title {
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.site-title a {
  color: #f4f1ec;
  text-decoration: none;
}

.site-title a:hover {
  color: #c9a84c;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  color: #f4f1ec;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: #c9a84c;
}

nav a.active {
  color: #c9a84c;
}

/* Main content */
main {
  padding: 60px 0 80px;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: normal;
  color: #1a2744;
}

h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  font-weight: normal;
  color: #1a2744;
}

h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
  font-style: italic;
  font-weight: normal;
  color: #1a2744;
}

p {
  margin-bottom: 18px;
}

a {
  color: #1a2744;
  text-decoration: underline;
  text-decoration-color: #c9a84c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #c9a84c;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

/* Tagline / subtitle on home */
.tagline {
  font-size: 1.3rem;
  font-style: italic;
  color: #1a2744;
  margin-bottom: 36px;
  border-left: 3px solid #c9a84c;
  padding-left: 18px;
}

/* Three-paths block on home */
.paths {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid #c9a84c;
  border-bottom: 1px solid #c9a84c;
}

.paths h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a2744;
}

.path-item {
  margin-bottom: 16px;
}

.path-item a {
  font-size: 1.1rem;
  text-decoration: none;
  color: #1a2744;
}

.path-item a::before {
  content: "→ ";
  color: #c9a84c;
}

.path-item a:hover {
  color: #c9a84c;
}

.path-item .desc {
  margin-top: 4px;
  margin-left: 24px;
  font-size: 0.95rem;
  color: #555;
}

/* Credibility note (italic block on home) */
.credibility {
  margin: 48px 0;
  padding: 24px 0;
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* Papers list on framework page */
.papers {
  margin-top: 32px;
}

.paper {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.paper:last-child {
  border-bottom: none;
}

.paper-title {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.paper-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.paper-link {
  font-size: 0.95rem;
}

.paper-link::before {
  content: "→ ";
  color: #c9a84c;
}

/* Equation block */
.equation {
  text-align: center;
  font-size: 1.3rem;
  margin: 24px 0;
  padding: 20px;
  background: white;
  border-left: 3px solid #c9a84c;
  font-family: Georgia, serif;
  letter-spacing: 0.03em;
}

/* Principles list (numbered) */
.principles {
  margin: 24px 0;
  padding-left: 24px;
}

.principles li {
  margin-bottom: 16px;
  line-height: 1.6;
}

.principles li em {
  color: #1a2744;
  font-weight: bold;
  font-style: italic;
}

/* Author bio block on About */
.author {
  margin-bottom: 32px;
}

.author-name {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: #1a2744;
  color: #f4f1ec;
  padding: 40px 0;
  margin-top: 80px;
  font-size: 0.9rem;
}

footer .container {
  text-align: center;
  line-height: 1.8;
}

footer a {
  color: #c9a84c;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-line {
  margin-bottom: 6px;
}

/* Responsive — phone */
@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  .container {
    padding: 0 18px;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    gap: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  main {
    padding: 40px 0 60px;
  }
}