/* Bowe Advisory — Field Notes shared stylesheet.
   Carries the site design tokens, nav/footer, reused components, and the
   article + listing layouts. Linked by /field-notes/index.html and every article. */

:root {
  --ink: #0e0e0d;
  --parchment: #f5f2ec;
  --stone: #c8c2b4;
  --gold: #b8902a;
  --gold-light: #d4a84b;
  --deep: #1a1a17;
  --muted: #6b6558;
  --line: rgba(184,144,42,0.25);
  --read: #423e35;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--parchment); color: var(--ink); font-family: 'Barlow', sans-serif; font-weight: 300; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; opacity: 0.5; }

/* NAV (matches main site) */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 4rem; background: rgba(245,242,236,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.nav-logo span { color: var(--gold); }
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.current { color: var(--gold); }
.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: 1px; background: var(--ink); transition: all 0.3s ease; transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-dropdown { display: none; position: fixed; left: 0; right: 0; background: rgba(245,242,236,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 1.5rem 2rem; flex-direction: column; z-index: 97; }
.nav-dropdown.open { display: flex; }
.nav-dropdown a { font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 1rem 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { color: var(--gold); }
@media (max-width: 1280px) { nav { padding: 1.2rem 2rem; } .nav-links { display: none; } .nav-toggle { display: flex; } }

/* BUTTONS (matches main site) */
.btn-primary { display: inline-block; padding: 0.9rem 2.2rem; background: var(--ink); color: var(--parchment); font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); transition: background 0.2s, color 0.2s; }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-primary.white { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }
.btn-primary.white:hover { background: var(--gold); border-color: var(--gold); color: var(--parchment); }
.btn-ghost { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--stone); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* SHARED COMPONENTS (matches main site) */
.scripture-block { margin: 2rem 0; padding: 1.25rem 2rem; border-left: 2px solid var(--gold); background: rgba(184,144,42,0.05); }
.scripture-block p { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; color: var(--ink); line-height: 1.7; margin: 0; }
.scripture-block cite { display: block; font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-top: 0.6rem; font-style: normal; }
.pull-quote { margin: 2.5rem 0; padding: 1.5rem 2rem; border-left: 2px solid var(--gold); background: rgba(184,144,42,0.04); }
.pull-quote p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic; color: var(--ink); line-height: 1.6; margin: 0; }
.bridge-text { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic; color: var(--muted); line-height: 1.7; margin: 2rem 0; text-align: center; }
.section-divider { display: flex; align-items: center; gap: 1.5rem; padding: 0; margin: 3rem 0; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.divider-mark { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }

/* REVEAL (matches main site) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ARTICLE LAYOUT */
.article { max-width: 780px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.article-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.article h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 300; line-height: 1.08; color: var(--ink); margin-bottom: 1.2rem; }
.article h1 em { font-style: italic; color: var(--gold); }
.article-byline { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.75rem; }
.article-byline span { color: var(--gold); margin: 0 0.5rem; }
.article-dek { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--muted); line-height: 1.5; padding-bottom: 2.25rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }

.article-body p { font-size: 1.05rem; line-height: 1.85; color: var(--read); margin-bottom: 1.3rem; }
.article-body h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 2.75rem 0 1rem; }
.article-body h2 em { font-style: italic; color: var(--gold); }
.article-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin: 1.9rem 0 0.75rem; }
.article-body a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); transition: color 0.2s; }
.article-body a:hover { color: var(--gold); }
.article-body strong { color: var(--ink); font-weight: 500; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.4rem; }
.article-body li { font-size: 1.05rem; line-height: 1.75; color: var(--read); margin-bottom: 0.5rem; }
.article-body li::marker { color: var(--gold); }

/* AUTHOR + CTA + RELATED */
.article-author { max-width: 780px; margin: 3.5rem auto 0; padding: 1.75rem 2rem; border: 1px solid var(--line); background: rgba(184,144,42,0.04); }
.article-author .label { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.article-author h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--ink); margin-bottom: 0.5rem; }
.article-author p { font-size: 0.92rem; line-height: 1.7; color: var(--muted); margin-bottom: 0.75rem; }
.article-author a { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--stone); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.article-author a:hover { color: var(--gold); border-color: var(--gold); }

.article-cta { max-width: 780px; margin: 2rem auto 0; padding: 3rem 2.5rem; background: linear-gradient(135deg, var(--deep) 0%, #2d2a22 100%); text-align: center; }
.article-cta h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; color: var(--parchment); line-height: 1.2; margin-bottom: 1.5rem; }
.article-cta h3 em { font-style: italic; color: var(--gold-light); }

.article-related { max-width: 780px; margin: 3rem auto 0; }
.article-related .label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.article-related a { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--ink); text-decoration: none; padding: 0.85rem 0; border-top: 1px solid var(--line); transition: color 0.2s; }
.article-related a:last-child { border-bottom: 1px solid var(--line); }
.article-related a:hover { color: var(--gold); }

/* LISTING PAGE */
.notes-head { max-width: 1000px; margin: 0 auto; padding: 8rem 2rem 2rem; }
.notes-head .eyebrow { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.notes-head h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1.05; color: var(--ink); }
.notes-head h1 em { font-style: italic; color: var(--gold); }
.notes-head p { margin-top: 1.5rem; max-width: 640px; font-size: 1rem; line-height: 1.8; color: var(--muted); }

.notes-grid { max-width: 1000px; margin: 0 auto; padding: 1.5rem 2rem 5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.note-card { display: flex; flex-direction: column; background: var(--parchment); border: 1px solid var(--line); padding: 2.25rem; text-decoration: none; transition: border-color 0.2s; }
.note-card:hover { border-color: var(--gold); }
.note-card .cat { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.note-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--ink); line-height: 1.15; margin-bottom: 0.6rem; }
.note-card .dek { font-size: 0.9rem; line-height: 1.7; color: var(--muted); flex: 1; }
.note-card .meta { font-family: 'DM Mono', monospace; font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 1.5rem; opacity: 0.8; }

/* FOOTER (matches main site) */
footer { background: var(--deep); padding: 3rem 4rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(184,144,42,0.15); flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--parchment); text-decoration: none; }
.footer-logo span { color: var(--gold); }
footer p { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
footer a.foot-link { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(184,144,42,0.2); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
footer a.foot-link:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 880px) {
  .notes-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; padding: 2rem; }
}
@media (max-width: 768px) {
  .article { padding: 7rem 1.5rem 3rem; }
  .notes-head { padding: 7rem 1.5rem 1.5rem; }
  .notes-grid { padding: 1.5rem 1.5rem 4rem; }
  .article-cta { padding: 2.25rem 1.5rem; }
}
