/* ============================================================
  REFERENCE PAGE STYLESHEET
  For works-cited.html only
============================================================ */

/* ============================================================
  DESIGN TOKENS
============================================================ */
:root {
  --cream:      #F7F2EA;
  --paper:      #EDE7D9;
  --ink:        #1A1410;
  --bark:       #3D2B1F;
  --rust:       #C04B20;
  --rust-lt:    #E06840;
  --sage:       #4A6741;
  --sage-lt:    #6A8F66;
  --sand:       #B89A6A;
  --warm-gray:  #7A6F65;
  --border:     rgba(58,40,28,.15);
  --radius:     4px;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --container:  1180px;
}
.reveal-hero {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1),
              transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal-hero.visible { opacity: 1; transform: translateY(0); }
 
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1),
              transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
 
.delay-1 { transition-delay: .08s !important; }
.delay-2 { transition-delay: .16s !important; }
.delay-3 { transition-delay: .24s !important; }
.delay-4 { transition-delay: .32s !important; }
/* ============================================================
  RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.1vw, 17px);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ============================================================
  ACCESSIBILITY
============================================================ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--rust);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  transition: top .2s;
}

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

/* ============================================================
  BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  border: 2px solid transparent;
  transition: all .22s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}

.btn-primary:hover {
  background: var(--rust-lt);
  border-color: var(--rust-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192,75,32,.3);
}

.btn-secondary {
  background: transparent;
  color: var(--rust);
  border-color: var(--rust);
}

.btn-secondary:hover {
  background: var(--rust);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sage {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.btn-sage:hover {
  background: var(--sage-lt);
  border-color: var(--sage-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,103,65,.3);
}

.btn-copyright {
  background: #D4A373; /* warm gold */
  color: #fff;
  border-color: #D4A373;
}

.btn-copyright:hover {
  background: #E6B98A;
  border-color: #E6B98A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,163,115,.3);
}

/* ============================================================
  HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--rust);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--cream);
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--rust);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
}

.brand-text {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
}

.primary-nav a {
  color: rgba(247,242,234,.75);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.primary-nav a:hover {
  background: rgba(255,255,255,.08);
  color: var(--cream);
}

.primary-nav a.nav-cta {
  background: var(--rust);
  color: #fff;
  margin-left: .5rem;
}

.primary-nav a.nav-cta:hover {
  background: var(--rust-lt);
}

/* ============================================================
  SHARED TYPOGRAPHY HELPERS
============================================================ */
.hero-eyebrow,
.section-label {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
}

.hero-eyebrow {
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--rust);
}

.section-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--bark);
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}

.section-sub {
  font-size: 1rem;
  color: var(--warm-gray);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ============================================================
  DOCS HERO
============================================================ */
.docs-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6rem);
  border-bottom: 3px solid var(--rust);   /* ← thick rust border like highlights */
}

.docs-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;              /* ← right-half only, like highlights */
  background: repeating-linear-gradient(
    -60deg, transparent, transparent 38px,
    rgba(255,255,255,.025) 38px, rgba(255,255,255,.025) 39px
  );
  pointer-events: none;
}

.docs-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 380px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.docs-hero-copy h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: .75rem;
}

.docs-hero-copy h1 em {
  color: var(--rust);
  font-style: italic;
}

.docs-hero-copy > p:not(.hero-eyebrow) {
  color: rgba(247,242,234,.6);
  max-width: 480px;
  margin-bottom: 1.65rem;
}
.docs-hero-panel {
  display: grid;
  gap: 1rem;
}

.docs-preview {
  background: rgba(247,242,234,.05);
  border: 1px solid rgba(247,242,234,.1);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
}

.docs-preview .label {
  display: block;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .45rem;
}

.docs-preview h3 {
  font-family: var(--ff-display);
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: .3rem;
}

.docs-preview p {
  color: rgba(247,242,234,.58);
  font-size: .85rem;
  line-height: 1.5;
}

/* ============================================================
  DOCS SECTION
============================================================ */
.docs-section {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  background: var(--cream);
}

.docs-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.doc-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26,20,16,.06);
}

.doc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(184,154,106,.12), rgba(237,231,217,0));
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 2rem;
  background: rgba(58,40,28,.08);
  color: var(--rust);
  margin-bottom: .7rem;
}

.doc-title {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
  color: var(--bark);
  margin-bottom: .45rem;
}

.doc-copy {
  color: var(--warm-gray);
  max-width: 60ch;
  font-size: .94rem;
}

.doc-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.doc-frame-wrap {
  padding: 1.15rem;
  background: rgba(247,242,234,.55);
}
.references-tabs {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.reference-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--bark);
  padding: .7rem 1rem;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  transition: all .2s ease;
}

.reference-tab:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.reference-tab.active {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
  box-shadow: 0 4px 14px rgba(192,75,32,.22);
}

.document-frame,
.placeholder-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.placeholder-frame {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(237,231,217,.85), rgba(247,242,234,.95));
}

.placeholder-inner {
  max-width: 720px;
  text-align: center;
  border: 1px dashed rgba(58,40,28,.25);
  border-radius: 8px;
  padding: 2rem;
  background: rgba(255,255,255,.45);
}

.placeholder-inner h4 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--bark);
  margin-bottom: .75rem;
}

.placeholder-inner p {
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

.placeholder-note {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rust);
  background: rgba(192,75,32,.08);
  border: 1px solid rgba(192,75,32,.18);
  padding: .45rem .7rem;
  border-radius: 2rem;
}

/* ============================================================
  FOOTER
============================================================ */
.site-footer {
  background: #0F0C09;
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,242,234,.08);
}

.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.footer-brand-dot {
  width: 10px;
  height: 10px;
  background: var(--rust);
  border-radius: 50%;
  display: inline-block;
}

.footer-mission {
  font-size: .875rem;
  color: rgba(247,242,234,.45);
  line-height: 1.65;
  max-width: 340px;
}

.footer-col-title {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,242,234,.4);
  margin-bottom: .85rem;
}

.footer-links li + li {
  margin-top: .4rem;
}

.footer-links a {
  font-size: .875rem;
  color: rgba(247,242,234,.6);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-disclaimer {
  font-size: .75rem;
  color: rgba(247,242,234,.3);
  line-height: 1.5;
  max-width: 620px;
}

.footer-disclaimer strong {
  color: rgba(247,242,234,.5);
}

.footer-date {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: rgba(247,242,234,.2);
  white-space: nowrap;
}

/* ============================================================
  RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .docs-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .doc-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-frame,
  .placeholder-frame {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .primary-nav {
    display: none;
  }

  .hero-ctas,
  .doc-actions {
    width: 100%;
  }

  .hero-ctas .btn,
  .doc-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .document-frame,
  .placeholder-frame {
    min-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}