/* camistry — style-first film camera discovery
   Palette: #1a1a1a dark · #c0392b accent · #faf8f5 bg · #e8e4dc border */

:root {
  --dark: #1a1a1a;
  --accent: #c0392b;
  --bg: #faf8f5;
  --border: #e8e4dc;
  --muted: #7a746a;
  --card: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

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

a { color: var(--dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; color: var(--dark); text-decoration: none; display: inline-flex; align-items: center; line-height: 1;
}
.logo .cam {
  position: relative; display: inline-block; padding: 3px 8px 3px 10px;
  border: 2px solid var(--dark); border-radius: 9px 2px 2px 2px; margin-right: 4px;
}
.logo .cam::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px;
  border: 2px solid var(--dark); border-radius: 50%; transform: translateY(-50%);
}
.logo .dot {
  display: inline-block; width: 7px; height: 7px; margin-left: 2px;
  background: var(--accent); border-radius: 50%; vertical-align: super;
}
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--dark); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.main-nav a:hover { border-bottom-color: var(--accent); }
.nav-cta { background: var(--dark); color: #fff !important; padding: 7px 14px !important; border-radius: 6px; border-bottom: none !important; }
.nav-cta:hover { background: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 72px 20px 48px; text-align: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 5.5vw, 52px); line-height: 1.12; max-width: 760px; margin: 0 auto 18px; letter-spacing: -0.5px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0 auto; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block; background: var(--dark); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 7px; border: none; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }

/* ---------- Section scaffolding ---------- */
.section { padding: 56px 20px; border-top: 1px solid var(--border); }
.section .container, .section .container-narrow { padding: 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 10px; letter-spacing: -0.3px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }

/* ---------- Guided finder ---------- */
.finder-wrap { max-width: 720px; margin: 0 auto; }
.finder-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; }
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--dark); }

.finder-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.finder-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.finder-card .step-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.option-chip {
  text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 14px 16px; font-family: var(--sans); font-size: 15px; cursor: pointer; color: var(--dark);
  transition: border-color 0.12s, background 0.12s;
}
.option-chip:hover { border-color: var(--dark); }
.option-chip.selected { border-color: var(--accent); background: #fdf3f1; box-shadow: inset 0 0 0 1px var(--accent); }
.option-chip small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.finder-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.btn-ghost { background: none; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--dark); }

/* ---------- Camera cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.camera-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--dark);
  transition: box-shadow 0.18s, transform 0.18s;
}
.camera-card:hover { box-shadow: 0 10px 28px rgba(26,26,26,0.09); transform: translateY(-2px); }
.camera-card .card-img {
  aspect-ratio: 4/3; background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 44px; color: var(--border); border-bottom: 1px solid var(--border);
  font-style: italic;
}
.camera-card .card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.camera-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 2px; }
.camera-card .card-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.camera-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.camera-card .card-tags span { font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px; color: var(--dark); }
.camera-card .card-reason { font-size: 14px; color: var(--muted); margin-bottom: 12px; font-style: italic; }
.camera-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.camera-card .card-price { color: var(--muted); }
.camera-card .card-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.camera-card .card-link:hover { text-decoration: underline; }

/* ---------- Results ---------- */
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.results-head h3 { font-family: var(--serif); font-size: 26px; }
.results-note { font-size: 13px; color: var(--muted); }
.primary-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 28px 0 14px; }
.secondary-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 28px 0 14px; }

/* ---------- Style index tiles ---------- */
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.style-tile { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px; text-decoration: none; color: var(--dark); transition: box-shadow 0.18s, transform 0.18s; }
.style-tile:hover { box-shadow: 0 10px 28px rgba(26,26,26,0.09); transform: translateY(-2px); }
.style-tile h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.style-tile p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.style-tile .count { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Camera detail page ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--dark); }

.detail-hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 32px 20px 44px; align-items: start; }
.detail-hero .hero-img {
  aspect-ratio: 4/3; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 72px;
  color: var(--border); font-style: italic;
}
.detail-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin: 4px 0 6px; letter-spacing: -0.4px; }
.detail-hero .brand-line { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.detail-hero .hero-summary { font-size: 17px; color: var(--muted); margin: 14px 0 18px; max-width: 520px; }
.detail-hero .price-line { font-size: 15px; margin-bottom: 20px; }
.detail-hero .price-line strong { font-size: 20px; font-family: var(--serif); }
.detail-hero .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag-row span { font-size: 13px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 4px 11px; }

.detail-section { border-top: 1px solid var(--border); padding: 44px 20px; }
.detail-section h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }
.detail-section h2 .sec-num { color: var(--accent); margin-right: 8px; }
.detail-section .container, .detail-section .container-narrow { padding: 0; }

/* Quick character */
.character-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; max-width: 640px; }
.character-item { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.character-item .meter { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.character-item .meter span { display: block; height: 100%; background: var(--dark); border-radius: 3px; }
.character-note { font-size: 13px; color: var(--muted); margin-top: 16px; font-style: italic; }

/* Two-column info layouts */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.bullet-list { list-style: none; }
.bullet-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; gap: 10px; }
.bullet-list li::before { content: "—"; color: var(--accent); flex-shrink: 0; }

/* Film pairings */
.pairing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pairing-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.pairing-card h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 6px; }
.pairing-card p { font-size: 14px; color: var(--muted); }

/* Offers */
.offer-list { max-width: 560px; }
.offer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 14px 18px; margin-bottom: 10px; }
.offer-row .merchant { font-weight: 700; font-size: 15px; }
.offer-row .offer-cta { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.offer-row .offer-cta:hover { text-decoration: underline; }
.affiliate-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Related */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 20px 40px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand .logo { font-size: 20px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 300px; }
.footer-links { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-links h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px; }
.footer-links ul { list-style: none; }
.footer-links a { display: block; font-size: 14px; color: var(--dark); text-decoration: none; padding: 3px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }
.footer-bottom .container { display: block; }
.footer-bottom p { font-size: 12px; color: var(--muted); }
.affiliate-disclosure { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- Misc pages ---------- */
.page-hero { padding: 56px 20px 32px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 17px; }
.prose { font-size: 15px; max-width: 720px; }
.prose h2 { font-family: var(--serif); font-size: 22px; margin: 32px 0 12px; }
.prose h3 { font-size: 16px; margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; color: #333; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }

.directory-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.directory-filters button {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px;
  font-size: 13px; cursor: pointer; color: var(--dark); font-family: var(--sans);
}
.directory-filters button.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid, .style-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .pairing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { grid-template-columns: 1fr; }
  .info-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 20px 36px; }
  .card-grid, .style-grid, .related-grid, .pairing-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .finder-card { padding: 24px 20px; }
  .character-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { gap: 14px; }
  .detail-hero .hero-img { font-size: 56px; }
}
