/* =========================================================
   thedeclaration.co — Design System
   SPT-2026-0086 · Founding-document register
   Navy + gold on cream, Cormorant Garamond + EB Garamond
   ========================================================= */

:root {
  /* Surface */
  --cream:       #FAF7F0;
  --cream-edge:  #F3EFE2;
  --white:       #FFFFFF;

  /* Ink */
  --navy:        #1F3864;
  --navy-soft:   #2B4775;
  --body:        #1A202C;
  --slate:       #4A5568;

  /* Accents */
  --gold:        #B8860B;
  --gold-soft:   #D4B15A;
  --gold-fill:   #F5E6B8;
  --teal:        #0D7377;

  /* Type */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body-face: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Measure */
  --measure: 650px;
  --measure-wide: 900px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--body-face);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga", "onum";
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color .15s, text-decoration-color .15s;
}
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

/* Skip-to-content for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 100;
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -----------------------------
   Brand bar
----------------------------- */
.brand-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.wordmark {
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.brand-bar .nav {
  font-family: var(--body-face);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.brand-bar .nav a {
  margin-left: 28px;
  color: var(--slate);
  font-style: italic;
}
.brand-bar .nav a:hover { color: var(--navy); }

/* -----------------------------
   Title block
----------------------------- */
.title-block {
  max-width: 860px;
  margin: 100px auto 40px;
  text-align: center;
  padding: 0 48px;
}
.eyebrow {
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 32px;
}
h1.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(46px, 6.4vw, 76px);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin: 0 0 18px;
}
.subtitle {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 36px;
}
.dateline {
  font-family: var(--body-face);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* -----------------------------
   Rules
----------------------------- */
.rule-gold {
  border: none;
  border-top: 1px solid var(--gold);
  max-width: 90px;
  margin: 44px auto;
}
.rule-gold-wide {
  border: none;
  border-top: 1px solid var(--gold);
  max-width: 520px;
  margin: 60px auto;
  opacity: 0.6;
}

/* -----------------------------
   Prose
----------------------------- */
.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
}
.prose p {
  margin: 0 0 1.3em;
}

h2.section {
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  color: var(--navy);
  font-size: 26px;
  letter-spacing: 0.12em;
  text-align: center;
  margin: 88px 0 40px;
}
h2.section::before,
h2.section::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 22px;
}

/* Shifts block */
.shift { margin: 0 0 1.4em; }
.shift-label {
  font-weight: 600;
  color: var(--navy);
}

/* -----------------------------
   Pull quotes
----------------------------- */
.pull {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  font-size: 30px;
  line-height: 1.3;
  color: var(--navy);
  max-width: 620px;
  margin: 72px auto;
  padding: 36px 28px;
  background: var(--gold-fill);
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.pull-center {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  font-size: 30px;
  line-height: 1.3;
  color: var(--navy);
  max-width: 560px;
  margin: 72px auto;
  padding: 0 28px;
}

/* -----------------------------
   Principles
----------------------------- */
.principle { margin: 56px 0; }
.principle .numeral {
  font-family: var(--display);
  font-variant: small-caps;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-align: center;
  display: block;
  margin-bottom: 8px;
}
.principle h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

/* -----------------------------
   Signature block
----------------------------- */
.signoff {
  text-align: center;
  max-width: 620px;
  margin: 88px auto 0;
  padding: 0 32px;
}
.signoff .palante {
  font-family: var(--display);
  font-style: italic;
  font-size: 36px;
  color: var(--navy);
  margin: 0 0 28px;
}
.signoff .name {
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--navy);
}
.signoff .sig-date {
  font-family: var(--body-face);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
  margin-top: 6px;
}

/* -----------------------------
   Signatories preview
----------------------------- */
.signatories {
  max-width: 620px;
  margin: 72px auto 0;
  padding: 36px 32px;
  text-align: center;
}
.sig-count {
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
}
.sig-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--body-face);
  font-size: 17px;
}
.sig-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.25);
  color: var(--body);
}
.sig-list li:first-child {
  font-weight: 600;
  color: var(--navy);
}
.sig-list li:last-child { border-bottom: none; }
.sig-list .meta {
  color: var(--slate);
  font-style: italic;
  margin-left: 8px;
}
.see-all {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--body-face);
  font-style: italic;
  color: var(--teal);
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* -----------------------------
   Sign form
----------------------------- */
.sign-form {
  max-width: 540px;
  margin: 80px auto 40px;
  padding: 48px 44px;
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 2px 0 rgba(184, 134, 11, 0.15);
}
.sign-form h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
  font-size: 34px;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.sign-form .sub {
  text-align: center;
  font-style: italic;
  font-size: 16px;
  color: var(--slate);
  margin: 0 0 32px;
  line-height: 1.5;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--body-face);
  font-size: 17px;
  background: var(--cream);
  border: 1px solid rgba(184, 134, 11, 0.35);
  color: var(--body);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--navy); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--slate);
  margin: 22px 0 26px;
  line-height: 1.5;
}
.checkbox input { margin-top: 4px; }
button.submit {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.22em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
  min-height: 44px;
}
button.submit:hover { background: var(--navy-soft); }
.privacy {
  font-size: 13.5px;
  color: var(--slate);
  text-align: center;
  margin: 16px 0 0;
  font-style: italic;
  line-height: 1.55;
}

/* Honeypot (invisible anti-spam field) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Post-submit states */
.form-message {
  padding: 28px 24px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.4;
}
.form-message.error { color: #8B3A2F; }

/* -----------------------------
   End nav
----------------------------- */
.end-nav {
  max-width: 720px;
  margin: 80px auto;
  padding: 36px 32px;
  text-align: center;
  font-family: var(--body-face);
  font-size: 17px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.end-nav a {
  color: var(--navy);
  font-style: italic;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.end-nav a:hover { color: var(--teal); }

/* -----------------------------
   Footer
----------------------------- */
footer.site-footer {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 40px 48px 64px;
  border-top: 1px solid var(--gold);
  text-align: center;
  font-family: var(--body-face);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
}
footer.site-footer .small-caps {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-variant: small-caps;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--slate);
}

/* -----------------------------
   Argument page scaffolding (used on /argument/* later)
----------------------------- */
.top-rail {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-variant: small-caps;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--slate);
}
.top-rail a { color: var(--slate); }

.bottom-rail {
  max-width: var(--measure);
  margin: 80px auto 40px;
  padding: 28px 32px;
  border-top: 1px solid rgba(184, 134, 11, 0.4);
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
}
.bottom-rail a { color: var(--navy); }

.endnote-marker {
  font-variant-position: super;
  font-size: 0.75em;
  color: var(--gold);
  text-decoration: none;
  padding: 0 0.1em;
}
.endnote-marker:hover { color: var(--navy); }

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand-bar { padding: 22px 24px 0; flex-direction: column; gap: 10px; align-items: center; }
  .brand-bar .nav a { margin: 0 14px; }
  .title-block { margin-top: 60px; padding: 0 24px; }
  .prose { padding: 0 24px; }
  .sign-form { margin: 60px 24px; padding: 36px 26px; }
  .row-2 { grid-template-columns: 1fr; }
  h2.section { font-size: 22px; margin: 64px 0 32px; }
  h2.section::before, h2.section::after { width: 18px; margin: 0 12px; }
  .pull, .pull-center { font-size: 24px; margin: 52px auto; }
  .principle h3 { font-size: 28px; }
}

/* -----------------------------
   Lede (orientation line at top of index pages)
----------------------------- */
.lede {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 0 32px;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  color: var(--slate);
  font-size: 20px;
  line-height: 1.5;
}

/* -----------------------------
   Argument — Table of Contents
----------------------------- */
.toc {
  max-width: 680px;
  margin: 72px auto 48px;
  padding: 0 32px;
}
.toc-item {
  padding: 56px 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.22);
  text-align: center;
}
.toc-item:first-child { padding-top: 32px; }
.toc-item:last-child {
  border-bottom: none;
  padding-bottom: 32px;
}
.toc-numeral {
  font-family: var(--display);
  font-variant: small-caps;
  font-weight: 500;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}
.toc-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
}
.toc-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s;
}
.toc-title a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}
.toc-title .arrow {
  color: var(--gold);
  font-weight: 400;
  margin-left: 6px;
}
.toc-descriptor {
  color: var(--body);
  font-family: var(--body-face);
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .toc { margin: 48px auto 32px; padding: 0 24px; }
  .toc-item { padding: 40px 0; }
  .toc-item:first-child { padding-top: 20px; }
  .toc-item:last-child { padding-bottom: 20px; }
  .toc-title { font-size: 27px; }
  .toc-descriptor { font-size: 17px; }
  .lede { font-size: 18px; padding: 0 24px; }
}
