/* ========================================
   SHARED STYLES — rufuscurnow.com
   Common reset, variables, navigation,
   buttons, utilities, footer, and responsive
   ======================================== */

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

:root {
  --rust: #8C2F1E;
  --sand: #FAF4EA;
  --clay: #C65A3A;
  --terracotta: #E2A07B;
  --charcoal: #2E2E2E;
  --stone: #D9D2C7;
  --white: #FFFFFF;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-label: 'Space Grotesk', sans-serif;
  --max-width: 1140px;
  --section-padding: 6rem 0;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--charcoal); background-color: var(--sand); }
a { color: var(--clay); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--rust); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* SKIP LINK */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--rust); color: var(--white); padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.875rem; z-index: 200; transition: top 0.2s ease; }
.skip-link:focus { top: 0.5rem; color: var(--white); }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--sand); border-bottom: 1px solid var(--stone); transition: box-shadow 0.3s ease; }
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(46,46,46,0.06); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.nav-name { font-family: var(--font-label); font-size: 1.3rem; font-weight: 600; color: var(--charcoal); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; color: var(--charcoal); position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--rust); transition: width 0.25s ease; }
.nav-links a:hover { color: var(--rust); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--rust); }
.nav-links a.active::after { width: 100%; }

/* MOBILE NAV */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; margin-right: -0.5rem; }
.nav-toggle svg { display: block; width: 22px; height: 22px; stroke: var(--charcoal); stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* BUTTONS */
.btn { display: inline-block; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; padding: 0.75rem 1.75rem; border-radius: 4px; transition: all 0.25s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: #732818; color: var(--white); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--stone); }
.btn-outline:hover { border-color: var(--rust); color: var(--rust); }

/* UTILITIES */
.section-label { font-family: var(--font-label); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.75rem; }
.section-heading { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; color: var(--charcoal); line-height: 1.25; margin-bottom: 1rem; }
.divider { width: 3rem; height: 2px; background: var(--terracotta); border: none; margin: 2rem 0; }

/* PAGE HEADER (shared by work, writing) */
.page-header { padding-top: 7rem; padding-bottom: 3rem; }
.page-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--charcoal); letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.2; }
.page-subtitle { font-size: 1.0625rem; line-height: 1.65; color: #5a5a5a; max-width: 36rem; }

/* CTA (shared by all pages) */
.cta { padding: 5rem 0; text-align: center; }
.cta-statement { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--charcoal); line-height: 1.35; max-width: 36rem; margin: 0 auto 1rem; }
.cta-subtext { font-size: 1.0625rem; color: #5a5a5a; line-height: 1.65; max-width: 32rem; margin: 0 auto 2rem; }

/* FOOTER */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--stone); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 1.5rem; }
.footer-left p { font-size: 0.875rem; line-height: 1.7; color: #6b645a; }
.footer-left p:first-child { font-family: var(--font-serif); font-weight: 600; color: var(--charcoal); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: #6b645a; }
.footer-links a:hover { color: var(--rust); }

/* RESPONSIVE — shared breakpoints */
@media (max-width: 600px) {
  :root { --section-padding: 4rem 0; }
  .nav-inner { height: 3.5rem; }
  .nav-name { font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 3.5rem; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--sand); border-bottom: 1px solid var(--stone); box-shadow: 0 4px 12px rgba(46,46,46,0.08); padding: 0.5rem 0; }
  .nav-links.open { display: flex; }
  .nav-links li { display: block; }
  .nav-links a { display: block; padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
  .nav-links a::after { display: none; }
  .page-header { padding-top: 5.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
