/* ─── Amador Camera Co. — site styles ───
   Built on the Amador Camera Co. design system (light theme).
   Tokens mirror the system's tokens.json; change values there first. */

/* ── Fonts (self-hosted) ── */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ── Tokens ── */
:root {
  /* color: roles */
  --surface: #f4f0e5;
  --surface-raised: #fbf9f4;
  --panel: #1a2330;
  --line: #ddd5c4;
  --line-strong: #8b8473;
  --ink: #1a2330;
  --ink-muted: #5b6371;
  --gold-ink: #855a27;
  --on-gold: #1a2330;
  --on-panel: #f4f0e5;
  --on-panel-muted: #a9b1bd;
  --on-panel-accent: #c08c52;
  --focus: var(--gold-ink);
  --link: var(--gold-ink);
  /* color: brand constants */
  --navy: #1a2330;
  --gold: #c08c52;
  --cream: #f4f0e5;

  /* type */
  --font-serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-12: 48px;

  /* radius */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* layout */
  --container: 72rem;
  --measure: 40rem;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.panel :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--on-panel-accent); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--gold); color: var(--on-gold);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }

/* ── Type styles (design system) ── */
.display   { font-family: var(--font-serif); font-size: clamp(40px, 6vw, 56px); line-height: 1.07; font-weight: 500; letter-spacing: 0.02em; }
.heading-1 { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 40px); line-height: 1.1; font-weight: 500; }
.heading-2 { font-family: var(--font-serif); font-size: 28px; line-height: 34px; font-weight: 600; }
.eyebrow   { display: block; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); }
.body      { font-size: 16px; line-height: 26px; }
.body-sm   { font-size: 14px; line-height: 22px; }
.label     { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; }
.muted     { color: var(--ink-muted); }

/* ── Panels (navy bands) ── */
.panel { background: var(--panel); color: var(--on-panel); }
.panel .eyebrow { color: var(--on-panel-accent); }
.panel .muted { color: var(--on-panel-muted); }

/* ── Gold rule: the one decorative device ── */
.gold-rule { width: 48px; height: 2px; background: var(--gold); border: 0; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-6);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-primary:hover { background: #cf9c62; border-color: #cf9c62; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.panel .btn-secondary { color: var(--on-panel); border-color: var(--on-panel-muted); }
.panel .btn-secondary:hover { border-color: var(--on-panel-accent); color: var(--on-panel-accent); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--panel); border-bottom: 1px solid #2c3748; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); max-width: var(--container); margin: 0 auto; padding: var(--space-2) var(--space-6); min-height: 72px; }
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a {
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--on-panel-muted); text-decoration: none; padding: var(--space-2) 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--on-panel); }
.site-nav a.active { color: var(--on-panel); border-bottom-color: var(--gold); }
.site-nav a.nav-shop { color: var(--on-gold); background: var(--gold); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); border-bottom: 0; font-weight: 600; }
.site-nav a.nav-shop:hover { background: #cf9c62; }

.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--on-panel); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .site-logo img { height: 40px; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-top: 1px solid #2c3748; padding: var(--space-2) var(--space-6) var(--space-6);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: var(--space-4) 0; border-bottom: 1px solid #2c3748; font-size: 16px; }
  .site-nav a.active { border-bottom-color: #2c3748; color: var(--on-panel-accent); }
  .site-nav a.nav-shop { margin-top: var(--space-4); text-align: center; padding: var(--space-4); }
}

/* ── Hero (home) ── */
.hero { position: relative; overflow: hidden; padding: 96px 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-12); align-items: center; }
.hero .eyebrow { margin-bottom: var(--space-6); }
.hero-headline { font-family: var(--font-serif); font-size: clamp(44px, 7vw, 76px); line-height: 1; font-weight: 500; letter-spacing: 0.01em; color: var(--on-panel); margin-bottom: var(--space-6); }
.hero-headline em { font-style: italic; color: var(--on-panel-accent); }
.hero-sub { font-size: 18px; line-height: 30px; color: var(--on-panel-muted); max-width: 34rem; margin-bottom: var(--space-12); }
.hero-mark { width: 100%; max-width: 320px; justify-self: end; }
.hero-arcs { position: absolute; right: 0; bottom: 0; width: 384px; height: 384px; pointer-events: none; }
.hero-arcs path { fill: none; stroke: var(--on-panel-accent); stroke-width: 1.5; opacity: .35; }
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero-arcs { width: 240px; height: 240px; }
}

/* ── Page hero (inner pages) ── */
.page-hero { padding: var(--space-12) 0 56px; }
.page-hero .eyebrow { margin-bottom: var(--space-4); }
.page-hero h1 { color: var(--on-panel); max-width: 40rem; }
.page-hero p { margin-top: var(--space-4); max-width: 34rem; font-size: 18px; line-height: 30px; color: var(--on-panel-muted); }
.page-hero .gold-rule { margin-top: var(--space-6); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: var(--space-12); max-width: var(--measure); }
.section-head .eyebrow { margin-bottom: var(--space-4); }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* ── Cards ── */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.card .gold-rule { margin-bottom: var(--space-6); }
.card h3 { font-family: var(--font-serif); font-size: 28px; line-height: 32px; font-weight: 600; margin-bottom: var(--space-2); }
.card p { color: var(--ink-muted); }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ── Inventory ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.split .eyebrow { margin-bottom: var(--space-4); }
.split h2 { margin-bottom: var(--space-6); }
.split p + p { margin-top: var(--space-4); }
.split .btn { margin-top: var(--space-6); }
.split-aside { display: grid; gap: var(--space-6); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── Quote ── */
.quote { border-radius: var(--radius-md); padding: var(--space-12) var(--space-6) var(--space-6); position: relative; }
.quote::before { content: ""; position: absolute; top: var(--space-6); left: var(--space-6); width: 48px; height: 2px; background: var(--gold); }
.quote blockquote p, .prose .quote blockquote p { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 26px; line-height: 34px; color: var(--on-panel); }
.quote cite, .prose .quote cite { display: block; margin-top: var(--space-4); font-style: normal; font-size: 14px; line-height: 22px; color: var(--on-panel-muted); }
.quote cite a { color: var(--on-panel-accent); text-decoration: none; font-weight: 600; }
.quote cite a:hover { text-decoration: underline; }

/* ── Policy note ── */
.note .eyebrow { margin-bottom: var(--space-2); }
.note p { font-size: 15px; line-height: 24px; color: var(--ink); }

/* ── CTA band ── */
.cta-band { padding: 72px 0; text-align: center; }
.cta-band h2 { color: var(--on-panel); margin-bottom: var(--space-2); }
.cta-band p { color: var(--on-panel-muted); margin-bottom: var(--space-6); font-size: 18px; line-height: 28px; }
.cta-band .gold-rule { margin: 0 auto var(--space-6); }

/* ── Footer ── */
.site-footer { padding: var(--space-12) 0; border-top: 1px solid #2c3748; }
.site-footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6) var(--space-12); align-items: center; }
.footer-brand { display: flex; align-items: center; gap: var(--space-4); }
.footer-brand img { width: 48px; height: 48px; border-radius: var(--radius-sm); }
.footer-name { font-family: var(--font-serif); font-size: 20px; line-height: 24px; font-weight: 600; color: var(--on-panel); }
.footer-place { font-size: 14px; line-height: 20px; color: var(--on-panel-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: center; }
.footer-nav a { font-size: 14px; line-height: 20px; color: var(--on-panel-muted); text-decoration: none; padding: var(--space-1) 0; }
.footer-nav a:hover, .footer-nav a.active { color: var(--on-panel); }
.footer-nav a.nav-shop { color: var(--on-panel-accent); font-weight: 600; }
.footer-copy { font-size: 14px; line-height: 20px; color: var(--on-panel-muted); }
@media (max-width: 820px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ── Prose (grading, about) ── */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.prose section + section { margin-top: var(--space-12); padding-top: var(--space-12); border-top: 1px solid var(--line); }
.prose h2 { font-family: var(--font-serif); font-size: 28px; line-height: 34px; font-weight: 600; margin-bottom: var(--space-4); }
.prose h3 { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; margin-top: var(--space-6); margin-bottom: var(--space-1); }
.prose > p, .prose section > p { font-size: 17px; line-height: 29px; }
.prose section > p + p { margin-top: var(--space-4); }
.prose ul { margin: var(--space-4) 0; display: grid; gap: var(--space-2); }
.prose li { position: relative; padding-left: var(--space-6); font-size: 17px; line-height: 29px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 2px; background: var(--gold); }
.prose strong { font-weight: 600; }
.prose a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* ── Grading layout + TOC ── */
.with-toc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.toc { position: sticky; top: 104px; }
.toc .eyebrow { margin-bottom: var(--space-4); }
.toc a { display: block; padding: var(--space-2) 0 var(--space-2) var(--space-4); font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.toc a.current { color: var(--ink); font-weight: 600; border-left-color: var(--gold); }
section[id] { scroll-margin-top: 96px; }
@media (max-width: 820px) { .with-toc { grid-template-columns: 1fr; } .toc { display: none; } }

/* ── Grade cards ── */
.grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.grade-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.grade-code { display: inline-block; font-family: var(--font-serif); font-size: 32px; line-height: 36px; font-weight: 600; color: var(--ink); }
.grade-name { display: block; margin: var(--space-1) 0 var(--space-4); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); }
.grade-card p.grade-desc { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.grade-card.as-is { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.grade-tag { display: inline-block; margin-left: var(--space-2); vertical-align: 6px; padding: 0 var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 12px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }

/* ── About ── */
.byline { display: flex; align-items: center; gap: var(--space-4); padding-bottom: var(--space-6); margin-bottom: var(--space-12); border-bottom: 1px solid var(--line); }
.byline-avatar { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; background: var(--panel); border-radius: var(--radius-md); font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--on-panel-accent); }
.byline-name { font-family: var(--font-serif); font-size: 22px; line-height: 26px; font-weight: 600; }
.byline-sub { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.prose .page-actions, .page-actions { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* ── Contact ── */
.contact-body { max-width: var(--measure); }
.contact-body > p { font-size: 17px; line-height: 29px; }
.contact-body > p + p { margin-top: var(--space-4); }
.email-card { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-12) 0; }
.email-icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; background: var(--panel); border-radius: var(--radius-md); }
.email-icon svg { width: 22px; height: 22px; stroke: var(--on-panel-accent); fill: none; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.email-address { font-family: var(--font-serif); font-size: 26px; line-height: 32px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.email-address:hover { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.email-note { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.faq { margin-top: var(--space-12); }
.faq .eyebrow { margin-bottom: var(--space-6); }
.faq-item { padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-family: var(--font-serif); font-size: 22px; line-height: 28px; font-weight: 600; margin-bottom: var(--space-2); }
.faq-a { font-size: 16px; line-height: 26px; color: var(--ink-muted); }

/* ── Motion ── */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
.no-js .fade-in { opacity: 1; transform: none; }
