/*
 * ═══════════════════════════════════════════════════════════════
 * R-Mount.com — Shared Stylesheet
 * Location: /css/style.css
 * ───────────────────────────────────────────────────────────────
 * This single file controls the look and feel of the entire site.
 * Edit here to change colours, fonts, or layout globally.
 *
 * All HTML pages link to this file with:
 *   <link rel="stylesheet" href="/css/style.css">
 *   (or a relative path like ../../css/style.css depending on depth)
 *
 * Page-specific styles (e.g. lens table, article comparison table)
 * remain in a small <style> block on those individual pages.
 * ═══════════════════════════════════════════════════════════════
 */

/* ── DESIGN TOKENS ─────────────────────────────────────────────
   Change colours, fonts, and spacing here to update site-wide.
──────────────────────────────────────────────────────────────── */
:root {
  --charcoal:    #1a1a18;
  --parchment:   #f0ebe2;
  --brass:       #b8924a;
  --brass-light: #d4ab6a;
  --off-white:   #faf8f4;
  --slate:       #6b7280;
  --slate-light: #9ca3af;
  --border:      #d4cfc6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── UTILITY ────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   NAV
   ── To change nav appearance, edit this section only.
══════════════════════════════════════════════════════════════ */
.site-nav {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--brass);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--off-white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--brass); }
.nav-logo-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-light);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  justify-content: flex-end;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brass-light); }

/* "Back to Articles" link on article pages — matches nav link colour */
.nav-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  transition: color 0.2s;
}
.nav-back:hover { color: var(--brass-light); }

/* ══════════════════════════════════════════════════════════════
   AD BANNER WRAPPER
══════════════════════════════════════════════════════════════ */
.ad-banner-wrap {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   HERO (index.html only)
══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--charcoal);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero::before {
  content: "R";
  font-family: var(--font-display);
  font-size: clamp(320px, 40vw, 520px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 146, 74, 0.12);
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero .label { margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero p {
  font-size: 18px;
  color: #c5bfb5;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-stats { display: flex; gap: 48px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--brass-light);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--slate-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════════════════════════════════
   CAMERA CARDS (index.html)
══════════════════════════════════════════════════════════════ */
.cameras-section { padding: 72px 0 56px; }
.cameras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.camera-card {
  background: white;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}
.camera-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.camera-card-img {
  background: var(--charcoal);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  color: rgba(184,146,74,0.2);
  position: relative;
  overflow: hidden;
}
.camera-card-img .cam-label {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--brass);
  position: absolute;
  letter-spacing: 0.05em;
}
.camera-card-body { padding: 20px; }
.camera-card-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.camera-card-body p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 14px;
}
.camera-years {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.12em;
}

/* ══════════════════════════════════════════════════════════════
   LENS TEASER SECTION (index.html)
══════════════════════════════════════════════════════════════ */
.lens-section {
  background: var(--parchment);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════
   TWO-COLUMN LAYOUT (content + sidebar)
══════════════════════════════════════════════════════════════ */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 64px 0 72px;
  align-items: start;
}
@media (max-width: 900px) {
  .content-sidebar { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE LIST (index.html)
══════════════════════════════════════════════════════════════ */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  transition: background 0.15s;
}
.article-card:first-child { border-top: 1px solid var(--border); }
.article-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-light);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.article-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.article-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.article-card:hover .article-title { color: var(--brass); }
.article-body a { text-decoration: none; color: inherit; display: block; }
.article-body a:hover .article-title { color: var(--brass); }
.article-excerpt {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 560px;
}
.article-meta { font-size: 12px; color: var(--slate-light); }
.article-meta span { margin-right: 12px; }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR (index.html)
══════════════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.quick-links { list-style: none; }
.quick-links li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.quick-links li:last-child { border-bottom: none; }
.quick-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--charcoal);
  transition: color 0.15s;
}
.quick-links a:hover { color: var(--brass); }
.quick-links .arrow { color: var(--brass); font-size: 12px; }
a.tag { text-decoration: none; display: inline-block; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: var(--parchment);
  border: 1px solid var(--border);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s;
}
.tag:hover { background: var(--charcoal); color: var(--brass-light); border-color: var(--charcoal); }

/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGES (single article layout)
══════════════════════════════════════════════════════════════ */
.article-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .article-wrap { grid-template-columns: 1fr; } }
.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  display: block;
}
.article-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.article-standfirst {
  font-size: 20px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 300;
  border-left: 3px solid var(--brass);
  padding-left: 18px;
}
.article-byline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-light);
  letter-spacing: 0.08em;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.article-byline strong { color: var(--charcoal); }
.article-body h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 44px 0 16px; }
.article-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.article-body p { margin-bottom: 22px; }
.article-body ul { margin: 0 0 22px 24px; }
.article-body ul li { margin-bottom: 8px; }
.article-body ol { margin: 0 0 22px 24px; }
.article-body ol li { margin-bottom: 10px; }
.pull-quote {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--charcoal);
  border-top: 2px solid var(--brass);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin: 40px 0;
  line-height: 1.4;
}
.spec-box { background: var(--parchment); border: 1px solid var(--border); padding: 24px; margin: 32px 0; }
.spec-box h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.spec-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { color: var(--slate); }
.spec-row dd { font-family: var(--font-mono); font-size: 13px; color: var(--charcoal); }
.article-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 80px; }
.sidebar-widget { background: white; border: 1px solid var(--border); padding: 20px; }
.widget-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.related-link { display: block; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--charcoal); transition: color 0.15s; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--brass); }
.related-cat { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 2px; }

/* ══════════════════════════════════════════════════════════════
   CAMERA PAGES
══════════════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .page-wrap { grid-template-columns: 1fr; } }
.camera-hero { background: var(--charcoal); color: var(--off-white); padding: 72px 0 60px; position: relative; overflow: hidden; }
.camera-hero-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.camera-hero .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; display: block; }
.camera-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 64px); font-weight: 900; line-height: 1.08; margin-bottom: 12px; }
.camera-hero h1 em { color: var(--brass-light); font-style: italic; }
.camera-hero .years { font-family: var(--font-mono); font-size: 14px; color: var(--slate-light); letter-spacing: 0.12em; }
.entry-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 40px 0 14px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul { margin: 0 0 20px 24px; }
.entry-content li { margin-bottom: 8px; }
.camera-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }

/* Sample photo section (camera pages) */
.sample-photo-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.sample-photo-section h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.sample-photo-wrap { position: relative; }
.sample-photo-wrap img { width: 100%; height: auto; display: block; }
.photo-caption { background: var(--charcoal); padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.photo-caption-left { font-family: var(--font-display); font-size: 15px; font-style: italic; color: var(--off-white); }
.photo-caption-left span { font-style: normal; font-size: 12px; color: var(--slate-light); margin-left: 8px; }
.photo-caption-right { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--slate-light); }
.photo-caption-right a { color: var(--brass); }
.photo-caption-right a:hover { color: var(--brass-light); }

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER (about, privacy, resources, lenses)
══════════════════════════════════════════════════════════════ */
.page-header { background: var(--charcoal); color: var(--off-white); padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-header::before { content: "R"; font-family: var(--font-display); font-size: clamp(200px, 28vw, 380px); font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(184,146,74,0.08); position: absolute; right: -30px; top: 50%; transform: translateY(-50%); line-height: 1; pointer-events: none; }
.page-header-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.page-header .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; display: block; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 14px; }
.page-header .updated { font-family: var(--font-mono); font-size: 11px; color: var(--slate-light); letter-spacing: 0.08em; margin-top: 12px; display: block; }
.page-header p { color: #b0a89e; font-size: 16px; max-width: 580px; line-height: 1.65; }
.page-body { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.page-body h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.page-body p { margin-bottom: 20px; }
.page-body ul { margin: 0 0 20px 24px; }
.page-body ul li { margin-bottom: 8px; }
.page-body a { color: var(--brass); }
.page-body a:hover { color: var(--brass-light); }
.info-box { background: var(--parchment); border-left: 3px solid var(--brass); padding: 14px 18px; margin-bottom: 28px; font-size: 13px; color: var(--slate); line-height: 1.6; }
.info-box strong { color: var(--charcoal); }

/* Resources page link cards */
.link-card { display: block; border: 1px solid var(--border); background: white; padding: 28px 32px; margin-bottom: 16px; transition: box-shadow 0.2s, transform 0.2s; }
.link-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-2px); }
.link-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.link-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--charcoal); transition: color 0.2s; }
.link-card:hover .link-card-title { color: var(--brass); }
.link-card-url { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--brass); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.link-card-desc { font-size: 15px; color: var(--slate); line-height: 1.65; }
.link-card-arrow { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ── Edit this section to change the footer site-wide.
   ── Changes here apply to every page automatically.
══════════════════════════════════════════════════════════════ */
footer {
  background: #111110;
  color: #666;
  padding: 40px 0 28px;
  font-size: 13px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #aaa;
}
.footer-logo span { color: var(--brass); }

/* Footer tagline — colour matches nav links (--slate-light) */
.footer-tagline {
  margin-top: 8px;
  font-size: 13px;
  max-width: 340px;
  line-height: 1.6;
  color: var(--slate-light);
}

/* Facebook social link */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover { color: #4a90d9; }
.footer-social svg { flex-shrink: 0; }
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--slate-light);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--brass); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-disclaimer {
  font-size: 11px;
  color: #3a3a38;
  max-width: 600px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { gap: 28px; }
  .article-card { grid-template-columns: 1fr; gap: 4px; }
  .article-date { font-size: 10px; }
  .lens-table { font-size: 12px; }
  .link-card-url { max-width: 100%; }
}
