/* ============================================================
   UCC9609.COM — Stylesheet
   Aesthetic: Legal Precision / Field Authority
   Fonts: Spectral (statute/legal weight) + DM Sans (UI/body)
   The statute. The gap. The system.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

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

:root {
  --bg:          #080F1A;
  --bg-2:        #0C1626;
  --bg-card:     #0F1E30;
  --bg-card-2:   #132435;
  --navy:        #0A1828;

  /* Steel blue — the legal/statutory color */
  --blue:        #2C5F8A;
  --blue-l:      #3A7AB5;
  --blue-dim:    rgba(44,95,138,.15);
  --blue-border: rgba(44,95,138,.3);

  /* Peace Point gold — the system color */
  --gold:        #C4922A;
  --gold-l:      #D9A83D;
  --gold-dim:    rgba(196,146,42,.12);
  --gold-border: rgba(196,146,42,.25);

  --border:      #162032;
  --border-l:    #1C2D42;
  --text:        #E2E8F0;
  --text-muted:  #7A92AA;
  --text-dim:    #354D62;
  --white:       #F0F4F8;

  --font-display: 'Spectral', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-cond:    'Barlow Condensed', system-ui, sans-serif;

  --radius:   3px;
  --radius-l: 6px;
  --max-w:    1160px;
  --nav-h:    68px;
  --pad:      clamp(56px, 8vw, 96px);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  /* Warm leather texture — radial amber glow like the banner backgrounds */

  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px,4vw,48px);
}

/* ── Typography ─────────────────────────────────────────── */
.statute-display {
  font-family: var(--font-display);
  font-size: clamp(56px,9vw,120px);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -.01em;
  color: var(--white);
}
.statute-display .section { color: var(--blue-l); font-style: italic; }
.statute-display .em { color: var(--gold); }

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(34px,5vw,68px);
  font-weight: 400; line-height: .95;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px,3.5vw,46px);
  font-weight: 400; line-height: 1.05;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(18px,2.5vw,30px);
  font-weight: 400; line-height: 1.2;
}
.label {
  font-family: var(--font-cond);
  font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-l);
}
.label-gold { color: var(--gold); }
.lead {
  font-size: clamp(15px,1.8vw,18px);
  font-weight: 300; color: var(--text-muted); line-height: 1.8;
}
.body-text { font-size: 15px; line-height: 1.85; color: var(--text-muted); }
.body-text p { margin-bottom: 14px; }
.body-text p:last-child { margin-bottom: 0; }
.body-text strong { color: var(--text); font-weight: 600; }
.body-text em { font-style: italic; }

/* ── Statute quote block ────────────────────────────────── */
.statute-quote {
  border-left: 3px solid var(--blue-l);
  padding: 20px 28px;
  background: var(--blue-dim);
  border-radius: 0 var(--radius-l) var(--radius-l) 0;
  position: relative;
}
.statute-quote::before {
  content: '§';
  position: absolute; top: -14px; left: 20px;
  font-family: var(--font-display);
  font-size: 48px; font-weight: 300;
  color: var(--blue); opacity: .4;
  line-height: 1;
}
.statute-quote p {
  font-family: var(--font-display);
  font-size: clamp(15px,1.8vw,19px);
  font-style: italic; font-weight: 300;
  line-height: 1.6; color: var(--white);
}
.statute-quote cite {
  display: block; margin-top: 10px;
  font-family: var(--font-cond); font-size: 11px;
  font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue-l); font-style: normal;
}

/* ── Rule ───────────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--border); }
.accent-line-blue {
  display: block; width: 32px; height: 2px;
  background: var(--blue-l); margin-bottom: 18px;
}
.accent-line-gold {
  display: block; width: 32px; height: 2px;
  background: var(--gold); margin-bottom: 18px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-cond);
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 28px; border-radius: var(--radius);
  cursor: pointer; border: none;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--blue-l); color: var(--white); }
.btn-primary:hover { background: #4B8FCA; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(44,95,138,.3); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(196,146,42,.3); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-l); }
.btn-outline:hover { border-color: var(--blue-l); color: var(--blue-l); transform: translateY(-1px); }
.btn-text {
  background: transparent; padding: 0; border: none;
  font-family: var(--font-cond); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-l); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s;
}
.btn-text:hover { gap: 10px; }
.btn-text::after { content: '→'; }
.btn-text-gold { color: var(--gold); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(8,15,26,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-wordmark {
  display: flex; flex-direction: column;
}
.nav-statute {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 300;
  color: var(--white); letter-spacing: .02em;
  line-height: 1.1;
}
.nav-statute span { color: var(--blue-l); font-style: italic; }
.nav-sub {
  font-family: var(--font-cond); font-size: 9px;
  font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-cond); font-size: 12px;
  font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; right: 0; height: 1px;
  background: var(--blue-l); transform: scaleX(0);
  transform-origin: left; transition: transform .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,15,26,.98); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 24px; z-index: 99; flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-cond); font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); padding: 12px 0;
  border-bottom: 1px solid var(--border); transition: color .2s;
}
.nav-mobile a:hover { color: var(--blue-l); }
.nav-mobile .btn { margin-top: 16px; justify-content: center; }

/* ── Page hero ──────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 56px); padding-bottom: 56px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: radial-gradient(ellipse 80% 100% at 100% 50%, rgba(44,95,138,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-cond); font-size: 11px;
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--blue-l); }
.breadcrumb-sep { color: var(--text-dim); }

/* ── Sections ───────────────────────────────────────────── */
section { position: relative; padding: var(--pad) 0; }
.section-dark { background: var(--bg); }
.section-mid  { background: var(--bg-2); }
.section-card { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: clamp(20px,3vw,32px);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--border-l); }
.card-blue { border-left: 3px solid var(--blue-l); }
.card-gold { border-left: 3px solid var(--gold); }
.card-top-blue { border-top: 2px solid var(--blue-l); }

/* ── Three-column problem grid ──────────────────────────── */
.problem-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden;
}
.problem-cell {
  background: var(--bg-card); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.problem-num {
  font-family: var(--font-display); font-size: 52px;
  font-weight: 300; color: var(--blue); line-height: 1; opacity: .5;
}
.problem-title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 500; color: var(--white);
}
.problem-desc { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); line-height: 1.75; flex: 1; }

/* ── System pillars ─────────────────────────────────────── */
.pillar-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.pillar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 2px solid var(--blue-l);
  border-radius: var(--radius-l); padding: 24px 20px;
  transition: border-color .25s, transform .2s;
}
.pillar-card:hover { border-top-color: var(--gold); transform: translateY(-3px); }
.pillar-letter {
  font-family: var(--font-display); font-size: 40px;
  font-weight: 300; color: var(--blue-l); line-height: 1;
  margin-bottom: 12px;
}
.pillar-word {
  font-family: var(--font-cond); font-size: 16px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); margin-bottom: 8px;
}
.pillar-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── Credential strip ───────────────────────────────────── */
.cred-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cred-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 2px;
  font-family: var(--font-cond); font-size: 11px;
  font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
}
.cred-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-l); flex-shrink: 0; }
.cred-pill-gold .cred-pill-dot { background: var(--gold); }

/* ── Book grid ──────────────────────────────────────────── */
.book-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; }
.book-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-l); overflow: hidden;
  transition: border-color .25s, transform .25s;
  text-decoration: none; display: flex; flex-direction: column;
}
.book-card:hover { border-color: var(--gold-border); transform: translateY(-4px); }
.book-cover-wrap {
  background: var(--navy); padding: 20px;
  display: flex; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.book-cover-wrap img { height: 180px; width: auto; object-fit: contain; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.book-info { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.book-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--white); line-height: 1.3; }
.book-subtitle { font-family: var(--font-body); font-size: 11px; font-style: italic; color: var(--text-muted); line-height: 1.4; }
.book-author { font-family: var(--font-cond); font-size: 11px; color: var(--text-dim); margin-top: auto; padding-top: 10px; }
.book-amazon { font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 6px; display: inline-block; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-label { font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  background: var(--bg); border: 1px solid var(--border-l);
  border-radius: var(--radius); padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--text); outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-l); box-shadow: 0 0 0 3px rgba(44,95,138,.12);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A92AA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-select option { background: var(--bg-2); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-alert { padding: 13px 18px; border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; display: none; }
.form-alert.success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.25); color: #4bc46d; display: block; }
.form-alert.error   { background: rgba(184,50,50,.1); border: 1px solid rgba(184,50,50,.25); color: #e05a5a; display: block; }

/* ── Grid helpers ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(24px,4vw,56px); }
.text-center { text-align: center; }
.text-blue   { color: var(--blue-l); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; } .mb-24 { margin-bottom: 24px; }

/* ── Notice ─────────────────────────────────────────────── */
.notice {
  padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  font-family: var(--font-body); font-size: 13px;
  color: var(--text-muted); line-height: 1.65;
}
.notice strong { color: var(--text); }
.notice-blue {
  border-color: var(--blue-border);
  background: var(--blue-dim);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 40px; }
.footer-wordmark { font-family: var(--font-display); font-size: 22px; font-weight: 300; color: var(--white); margin-bottom: 8px; }
.footer-wordmark span { color: var(--blue-l); font-style: italic; }
.footer-brand p { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-l); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); }
.footer-bottom a { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); transition: color .2s; }
.footer-bottom a:hover { color: var(--blue-l); }

/* ── Responsive ─────────────────────────────────────────── */
@media(max-width:900px){
  .problem-grid { grid-template-columns: 1fr; }
  .pillar-grid  { grid-template-columns: repeat(2,1fr); }
  .grid-2       { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle   { display: flex; }
}
@media(max-width:600px){
  :root { --pad: 48px; }
  .pillar-grid  { grid-template-columns: 1fr; }
  .book-row     { grid-template-columns: repeat(2,1fr); }
  .form-grid    { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media print {
  .nav, footer { display: none; }
  body { background: #fff; color: #000; font-family: Georgia, serif; }
}

/* ── Article list ───────────────────────────────────────── */
.article-item {
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:16px 0;border-bottom:1px solid var(--border);
  text-decoration:none;transition:padding-left .2s;
}
.article-item:last-child{border-bottom:none;}
.article-item:hover{padding-left:8px;}
.article-item:hover .article-title{color:var(--gold);}
.article-title{font-family:var(--font-display);font-size:17px;font-weight:400;color:var(--white);}
.article-pub{font-family:var(--font-cond);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim);flex-shrink:0;}

/* ── Accent line ────────────────────────────────────────── */
.accent-line{display:block;width:32px;height:2px;background:var(--blue-l);margin-bottom:16px;}
.accent-line-gold{background:var(--gold);}

/* ── Page hero ──────────────────────────────────────────── */
.page-hero{
  padding-top:calc(var(--nav-h) + 56px);padding-bottom:56px;
  background:var(--bg-2);border-bottom:1px solid var(--border);
  position:relative;overflow:hidden;
}
.page-hero::after{
  content:'';position:absolute;top:0;right:0;width:50%;height:100%;
  background:radial-gradient(ellipse 80% 100% at 100% 50%,rgba(44,95,138,.07) 0%,transparent 70%);
  pointer-events:none;
}
.page-hero .container{position:relative;z-index:1;}

/* ── Lead text ──────────────────────────────────────────── */
.lead{font-family:var(--font-body);font-size:clamp(15px,1.8vw,18px);font-weight:300;color:var(--text-muted);line-height:1.8;}

/* ── Scrolled nav ───────────────────────────────────────── */
.nav.scrolled{background:rgba(8,15,26,.96);backdrop-filter:blur(16px);box-shadow:0 1px 0 var(--border);}

/* Field hints */
.field-hint {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin-top: 5px;
  line-height: 1.5;
}
