/* Camera Observer. A field guide: warm paper, near-black ink, one green accent.
   Type: Fraunces (headlines), Literata (body). No monospace. Light is the identity; dark is a courtesy. */

:root {
  --paper: #f7f3ea;
  --surface: #fffdf7;
  --surface-2: #efe9db;
  --ink: #1d1a16;
  --ink-2: #433e37;
  --muted: #6b645a;
  --line: #d8d1c1;
  --line-2: #e7e1d3;
  --rule: #1d1a16;
  --accent: #2f5d3e;
  --accent-ink: #275035;
  --accent-soft: #e4ece5;
  --danger: #8f2f23;
  --focus: #2f5d3e;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171512; --surface: #1f1c18; --surface-2: #28241e;
    --ink: #ece6da; --ink-2: #d2cabb; --muted: #a69d8d; --line: #3b352c; --line-2: #2d2923; --rule: #d2cabb;
    --accent: #9fc9a8; --accent-ink: #9fc9a8; --accent-soft: #223026; --danger: #e08a7c; --focus: #9fc9a8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171512; --surface: #1f1c18; --surface-2: #28241e;
  --ink: #ece6da; --ink-2: #d2cabb; --muted: #a69d8d; --line: #3b352c; --line-2: #2d2923; --rule: #d2cabb;
  --accent: #9fc9a8; --accent-ink: #9fc9a8; --accent-soft: #223026; --danger: #e08a7c; --focus: #9fc9a8;
  color-scheme: dark;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--accent); }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; }
h2 { font-size: clamp(26px, 2.5vw, 32px); }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 9; top: 8px; left: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border: 1px solid var(--ink); }
.preview-banner { font-size: 13px; color: var(--paper); background: var(--ink); padding: 7px 16px; text-align: center; }

/* Labels: one kind of kicker, sentence case, italic serif in the accent. */
.kicker { font-family: var(--body); font-style: italic; font-size: 15px; color: var(--accent-ink); margin: 0 0 10px; }
.meta { font-size: 14px; color: var(--muted); margin: 0; }
.meta .sep, .byline .sep { margin: 0 4px; }
.section-label { font-family: var(--body); font-variant-caps: all-small-caps; letter-spacing: 0.08em; font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }

/* ---- masthead and footer ---- */
.masthead, main, .site-footer { max-width: 1120px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 14px; border-bottom: 3px double var(--rule); }
.brand { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--accent-ink); }
.brand.small { font-size: 20px; }
nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--ink-2); }
nav a:hover { color: var(--ink); text-decoration-color: var(--accent); }
.site-footer { border-top: 3px double var(--rule); margin-top: 24px; padding-top: 26px; padding-bottom: 48px; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: baseline; font-size: 14px; }
.site-footer p { margin: 0; color: var(--muted); font-style: italic; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 6px 20px; grid-column: 1 / -1; color: var(--ink-2); }
.site-footer small { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.amazon-statement { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ---- buttons: text buttons in the accent, nothing louder ---- */
.button, .retailer { display: inline-block; padding: 9px 16px; border: 1px solid var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; line-height: 1.3; border-radius: 2px; background: transparent; transition: background-color .15s ease, color .15s ease; }
.button:hover, .retailer:hover { background: var(--accent); color: var(--paper); text-decoration: none; }
.more { font-weight: 600; color: var(--accent-ink); font-size: 15px; }

/* ---- home: front page ---- */
.home { padding-bottom: 24px; }
.standfirst { font-style: italic; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 74ch; margin: 18px 0 0; }
.front { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 48px 64px; padding: 36px 0 44px; border-bottom: 1px solid var(--rule); }
.lead h2 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.06; margin: 0 0 18px; }
.lead h2 a:hover { text-decoration-thickness: 2px; }
.lead-dek { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin: 0 0 14px; }
.lead .meta { margin-bottom: 22px; }
.latest ol { list-style: none; margin: 0; padding: 0; }
.latest li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.latest li:last-child { border-bottom: 0; }
.latest li a { font-family: var(--display); font-size: 18px; line-height: 1.3; display: block; }
.latest .meta { display: block; margin-top: 4px; font-size: 13.5px; }

/* ---- home: sections ---- */
section { scroll-margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 0 0 8px; }
.section-head p { font-style: italic; font-size: 15px; color: var(--muted); margin: 0; text-align: right; max-width: 42ch; }
.guides { padding: 44px 0 8px; }
.cat { padding: 24px 0 36px; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 4px; }
.cat-head h3 { font-size: 24px; }
.cat-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; align-items: start; }
.cat-n1 .cat-grid { grid-template-columns: minmax(0, 1fr); }
.cat-n2 .cat-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.entry { padding: 18px 0 20px; border-bottom: 1px solid var(--line-2); }
.entry .kicker { font-size: 14px; margin-bottom: 6px; }
.entry h4 a:hover, .entry h3 a:hover { text-decoration-thickness: 1px; }
.entry-dek { font-size: 15.5px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.entry-lead { grid-row: 1 / span 2; padding-right: 8px; }
.entry-lead h4 { font-size: 30px; line-height: 1.12; }
.entry-lead .entry-dek { font-size: 17px; color: var(--ink-2); max-width: 48ch; }
.entry-medium h4, .entry-medium h3 { font-size: 21px; line-height: 1.2; }
.entry-list { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; align-items: start; }
.entry-list .entry { padding: 11px 0 12px; }
.entry-list .entry .kicker { display: none; }
.entry-list h4 { font-size: 17px; line-height: 1.3; font-weight: 500; }
.gear, .best { padding: 40px 0 36px; border-top: 1px solid var(--rule); }
.gear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; margin-top: 8px; }
.gear-grid .entry-medium h3 { font-size: 23px; }
.best-index { columns: 3; column-gap: 44px; margin-top: 8px; }
.best-cat { font-size: 20px; padding: 18px 0 8px; margin: 0; border-bottom: 1px solid var(--line); break-after: avoid; break-inside: avoid; }
.best-item { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line-2); break-inside: avoid; }
.best-item a { font-family: var(--display); font-size: 18px; line-height: 1.3; display: block; }
.best-item .meta { display: block; margin-top: 3px; font-size: 13.5px; font-style: italic; }

/* ---- home: planner, plain form ---- */
.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 72px; padding: 44px 0 48px; border-top: 1px solid var(--rule); }
.planner-copy h2 { margin-bottom: 14px; }
.planner-copy p { font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }
.planner .micro { font-size: 13.5px; color: var(--muted); font-style: italic; }
.cost-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
label { display: block; font-size: 14.5px; color: var(--ink-2); }
.planner input { display: block; width: 100%; margin-top: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; font-size: 18px; font-variant-numeric: tabular-nums; }
.planner input:focus { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 0; }
.planner input:invalid { border-color: var(--danger); }
.cost-result { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 16px; }
.cost-result > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cost-result > div span { font-size: 15px; color: var(--ink-2); }
.cost-result output { font-family: var(--display); font-size: 36px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cost-result p { margin: 4px 0 0; text-align: right; font-size: 14.5px; font-style: italic; color: var(--muted); }
.cost-result p.over { color: var(--danger); }
.about-note { max-width: 66ch; padding: 48px 0 40px; border-top: 1px solid var(--rule); }
.about-note h2 { margin-bottom: 12px; }
.about-note p:not(.kicker) { color: var(--ink-2); font-size: 17.5px; }

/* ---- article ---- */
.article { padding-top: 32px; padding-bottom: 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.crumbs span { margin: 0 8px; }
.article-head { max-width: 760px; }
.article-head h1 { margin: 0 0 16px; }
.article .dek { font-size: 21px; line-height: 1.45; font-style: italic; color: var(--ink-2); margin: 0 0 18px; }
.byline { font-size: 14.5px; color: var(--muted); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.byline time { color: var(--ink-2); }
.reader { font-size: 14.5px; color: var(--muted); font-style: italic; margin: 4px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 40px; align-items: start; }
.article-copy { max-width: 68ch; font-size: 18px; }
.article-copy p { line-height: 1.7; }
.article-copy h2 { margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--rule); }
.article-copy h3 { margin: 32px 0 10px; }
.article-copy ul, .article-copy ol { line-height: 1.65; padding-left: 22px; }
.article-copy li { margin-bottom: 8px; }
.article-copy strong { font-weight: 600; }
.article-copy blockquote { margin: 24px 0; padding: 0 0 0 20px; border-left: 2px solid var(--accent); color: var(--ink-2); font-style: italic; }
.article-copy p a, .article-copy li a, .narrow p a, .narrow li a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.article-copy p a:hover, .article-copy li a:hover, .narrow p a:hover { text-decoration-color: var(--accent); }
.takeaway { font-family: var(--display); font-size: 26px; line-height: 1.3; font-weight: 500; margin: 0 0 14px; padding: 0 0 22px; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.takeaway::before { content: ""; display: block; width: 56px; height: 3px; background: var(--accent); margin-bottom: 18px; }
.research-note { font-size: 14px; color: var(--muted); font-style: italic; line-height: 1.6; margin: 0 0 28px; }

/* Reference tables: hairline rules, no fills. */
.article-copy table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; margin: 26px 0; display: block; overflow-x: auto; font-variant-numeric: tabular-nums; border-top: 1px solid var(--rule); }
.article-copy th, .article-copy td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.article-copy th { font-variant-caps: all-small-caps; letter-spacing: 0.06em; font-weight: 600; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.article-copy tr:last-child td { border-bottom: 1px solid var(--rule); }

/* Sidebar: a quiet boxed note. Sticky only applies here, never to anything inside the copy column. */
.article-side { position: sticky; top: 24px; }
.side-note { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px 24px; }
.side-note .kicker { margin-bottom: 4px; }
.side-note h2 { font-size: 21px; margin-bottom: 12px; border: 0; padding: 0; }
.side-note ul, .side-note ol { margin: 0 0 18px; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.side-note li { padding: 6px 0; border-top: 1px solid var(--line-2); }
.side-note li::marker { color: var(--accent-ink); }
.side-note .button { display: block; text-align: center; }
.sources { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 14px; }
.sources h2 { font-size: 20px; border: 0; margin: 0 0 8px; padding: 0; }
.sources p, .sources li { font-size: 14px; line-height: 1.55; }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 6px; }
.sources a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.sources a:hover { text-decoration-color: var(--accent); }
.next-read { margin-top: 56px; border-top: 3px double var(--rule); padding-top: 22px; max-width: 68ch; }
.next-read .kicker { margin-bottom: 6px; }
.next-read a { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -0.005em; }
.narrow { max-width: 720px; }
.narrow .dek { margin-bottom: 30px; }
.narrow h2 { margin: 36px 0 10px; font-size: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.narrow p, .narrow li { font-size: 17.5px; line-height: 1.7; }
.narrow .button { margin-top: 24px; }

/* ---- picks: a buying table, not tiles ---- */
.disclosure { font-size: 13.5px; color: var(--muted); font-style: italic; line-height: 1.6; margin: 6px 0 16px; }
.disclosure a { text-decoration: underline; }
.picks { margin: 6px 0 28px; }
.pick-group { font-size: 20px; margin: 30px 0 4px; }
.pick-list { margin: 10px 0 6px; border-top: 1px solid var(--rule); }
.pick { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 22px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.pick-ranked { grid-template-columns: 2.4ch minmax(0, 1fr); }
.pick.has-figure { grid-template-columns: 128px minmax(0, 1fr); }
.pick-ranked.has-figure { grid-template-columns: 2.4ch 128px minmax(0, 1fr); }
.rank { font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 2px; }
.pick-figure { margin: 0; }
.pick-figure img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface); border: 1px solid var(--line-2); }
.pick-figure figcaption { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.pick-name { font-size: 23px; margin: 0 0 2px; line-height: 1.2; }
.pick-role { font-style: italic; color: var(--accent-ink); font-size: 15.5px; margin: 0 0 8px; }
.pick-desc { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 8px; }
.pick-why { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.pick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.top-pick { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); padding: 18px 0 22px; margin: 0 0 34px; }
.top-pick.has-figure { grid-template-columns: 120px minmax(0, 1fr); }
.top-pick .kicker { margin-bottom: 4px; }
.top-pick .pick-name { font-size: 24px; }
.top-pick .pick-why { font-size: 16.5px; margin-top: 6px; }
.top-pick-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.top-pick-all { font-size: 14.5px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.top-pick-all:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* ---- ad slots (dormant until AdSense is configured) ---- */
.ad { margin: 32px 0; display: flex; flex-direction: column; gap: 6px; }
.ad-label { font-size: 12px; font-style: italic; color: var(--muted); }
.ad-placeholder { position: relative; border: 1px dashed var(--line); background: var(--surface); min-height: 250px; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--muted); padding: 20px; }
.ad-placeholder .ad-label { position: absolute; top: 10px; left: 12px; }
.ad-sidebar { margin: 20px 0 0; }
.ad-articleEnd { margin-top: 40px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .masthead, main, .site-footer { padding-left: 24px; padding-right: 24px; }
  .front { grid-template-columns: 1fr; gap: 36px; }
  .cat-grid, .cat-n2 .cat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .entry-lead { grid-column: 1 / -1; grid-row: auto; }
  .entry-list { grid-column: 1 / -1; }
  .gear-grid { grid-template-columns: 1fr 1fr; }
  .best-index { columns: 2; }
  .planner { grid-template-columns: 1fr; gap: 28px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-copy, .article-side { min-width: 0; }
  .article-side { position: static; }
  .ad-sidebar { display: none; }
}
@media (max-width: 600px) {
  .masthead, main, .site-footer { padding-left: 18px; padding-right: 18px; }
  .masthead { padding-top: 20px; }
  .brand { font-size: 24px; }
  nav { gap: 4px 16px; font-size: 14px; }
  .standfirst { font-size: 16px; }
  .front { padding: 28px 0 32px; }
  .lead h2 { font-size: 32px; }
  .lead-dek { font-size: 18px; }
  .section-head { display: block; }
  .section-head p { text-align: left; margin-top: 4px; }
  .cat-grid, .cat-n2 .cat-grid { grid-template-columns: 1fr; }
  .entry-lead h4 { font-size: 26px; }
  .entry-list { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr; }
  .best-index { columns: 1; }
  .cost-inputs { grid-template-columns: 1fr; }
  .article-copy { font-size: 17px; }
  .takeaway { font-size: 22px; }
  .pick-name { font-size: 21px; }
  .pick-ranked { grid-template-columns: 2ch minmax(0, 1fr); column-gap: 14px; }
  .pick.has-figure { grid-template-columns: 1fr; }
  .pick-ranked.has-figure { grid-template-columns: 2ch minmax(0, 1fr); }
  .pick-ranked.has-figure .pick-figure, .pick-ranked.has-figure .pick-body { grid-column: 2; }
  .pick.has-figure .pick-figure { width: 112px; margin-bottom: 12px; }
  .top-pick.has-figure { grid-template-columns: 1fr; }
  .top-pick.has-figure .pick-figure { width: 112px; margin-bottom: 12px; }
  .rank { font-size: 26px; }
  .next-read a { font-size: 24px; }
  .site-footer { grid-template-columns: 1fr; }
}
