/* Photo Keepers: the darkroom pages (photo-keepers.html, photo-keepers/support.html, photo-keepers/privacy.html).
   Self-contained on purpose: these pages load no merano.css, no merano.js and nothing from another host.
   The film-strip bar (.pk-bar) is the studio's shared product-bar layout in this product's own style. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #0d0c0b;
  --paper: #171513;
  --paper-2: #141210;
  --rule: #2a2622;
  --rule-2: #3a352f;
  --ink: #ece6dc;
  --ink-2: #c9c1b5;
  --ink-3: #a59c90;
  --ink-4: #8f877c;      /* the faintest text; 4.9:1 on --paper */
  --pencil: #ff5a36;     /* grease pencil: marks and the price button */
  --pencil-2: #ff7a5c;   /* grease pencil as text */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --page: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pencil-2); }
:focus-visible { outline: 2px solid var(--pencil-2); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pk-skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--ground); font-weight: 600; }
.pk-skip:focus { top: 16px; }
.pk-wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.pk-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- The bar ---------- */

.pk-bar { position: sticky; top: 0; z-index: 20; background: rgba(13, 12, 11, 0.94); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.pk-bar::before { content: ""; display: block; height: 8px; opacity: 0.9;
  background-image: radial-gradient(circle at 6px 4px, var(--rule-2) 2.5px, transparent 3px); background-size: 22px 8px; }
.pk-bar-inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); min-height: 56px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.pk-crumb { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.pk-crumb a { color: var(--ink-3); text-decoration: none; }
.pk-crumb a[aria-current="page"], .pk-crumb a:last-child { color: var(--ink); }
.pk-crumb a:hover { color: var(--pencil-2); }
.pk-crumb-sep { color: #5c554c; }
.pk-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.pk-nav a { color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pk-nav a:hover, .pk-nav a[aria-current="page"] { color: var(--ink); }
.pk-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pencil); text-underline-offset: 6px; }
.pk-nav { margin-left: auto; }
.pk-download { display: inline-flex; align-items: center; padding: 0 16px; min-height: 36px; background: var(--ink); color: var(--ground);
  border-radius: 999px; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.pk-download:hover { background: #fff; color: var(--ground); }

/* "Other apps": a disclosure, numbered like frames on a strip of film */
.pk-apps { position: relative; }
.pk-apps summary { list-style: none; cursor: pointer; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.pk-apps summary::-webkit-details-marker { display: none; }
.pk-apps summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.pk-apps[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.pk-apps-list { position: absolute; left: -16px; top: 46px; width: 270px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--paper); border: 1px solid var(--rule-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.pk-apps-list a { display: flex; align-items: center; gap: 14px; min-height: 40px; padding: 0 16px; color: var(--ink-3); }
.pk-apps-list a:hover { color: var(--ink); background: #1e1b18; }
.pk-apps-list a[aria-current="page"] { color: var(--ink); background: #221f1b; text-decoration: none; }
.pk-apps-list .pk-frame-no { color: var(--pencil-2); min-width: 3ch; }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 150px; }
  .pk-bar-inner { font-size: 12px; letter-spacing: 0.05em; gap: 0 12px; }
  .pk-download { margin-left: auto; }
  .pk-nav { order: 3; width: 100%; margin-left: 0; }
  .pk-nav > ul { gap: 0 16px; justify-content: space-between; }
  .pk-apps-list { left: 0; width: min(270px, calc(100vw - 32px)); }
}

/* ---------- Product page ---------- */

.pk-hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.pk-eyebrow { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--ink-3); }
.pk-eyebrow img { width: 48px; height: 48px; }
.pk-hero h1 { margin: 0; max-width: 1180px; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 116px); line-height: 0.98; letter-spacing: -0.01em; }
.pk-hero h1 em { color: var(--pencil-2); }
.pk-lede { margin: 0; max-width: 620px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.pk-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }
.pk-button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; min-height: 48px; border-radius: 999px;
  background: var(--ink); color: var(--ground); font-weight: 600; font-size: 16px; text-decoration: none; }
.pk-button:hover { background: #fff; color: var(--ground); }
.pk-button-pencil { background: var(--pencil); }
.pk-button-pencil:hover { background: var(--pencil-2); }
.pk-cta-note { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* The contact sheet */
.pk-sheet-section { padding-top: 24px; padding-bottom: 96px; }
.pk-sheet { background: var(--paper); border: 1px solid var(--rule); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.pk-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 0; }
.pk-sheet-head h2 { margin: 0; font: inherit; }
.pk-legend { display: inline-flex; align-items: center; gap: 10px; }
.pk-legend::before { content: ""; width: 22px; height: 14px; border: 2px solid var(--pencil); border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; transform: rotate(-4deg); }
.pk-frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.pk-frame { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pk-frame-meta, .pk-frame-note { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.pk-frame-meta .pk-score { color: var(--ink-2); }
.pk-frame-photo { position: relative; }
.pk-frame-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pk-frame:not(.is-pick) .pk-frame-photo img { filter: grayscale(0.3) brightness(0.72); }
.pk-frame.is-pick .pk-frame-note { color: var(--pencil-2); }
.pk-frame.is-pick .pk-frame-photo::after { content: ""; position: absolute; inset: -9px -10px; pointer-events: none;
  border: 2.5px solid var(--pencil); border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; transform: rotate(-2deg); opacity: 0.92; }
.pk-frame.is-pick:nth-child(3n+1) .pk-frame-photo::after { border-radius: 52% 48% 55% 45% / 46% 54% 46% 54%; transform: rotate(1.5deg); }
.pk-frame.is-pick:nth-child(4n+2) .pk-frame-photo::after { border-radius: 45% 55% 50% 50% / 52% 48% 56% 44%; transform: rotate(-1deg); inset: -7px -12px; }
.pk-frame.is-pick:nth-child(5n) .pk-frame-photo::after { transform: rotate(2.5deg); inset: -10px -9px; }
.pk-sheet-foot { margin: 4px 0 0; font-size: 15px; color: var(--ink-3); max-width: 760px; }
@media (max-width: 900px) { .pk-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pk-sheet { padding: 20px 16px 24px; } }

/* How it works */
.pk-how { padding-top: 48px; padding-bottom: 96px; }
.pk-section-title { margin: 0 0 40px; max-width: 860px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.pk-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.pk-points li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule-2); padding-top: 18px; }
.pk-points h3 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; color: var(--pencil-2); }
.pk-points p { margin: 0; color: var(--ink-2); }

/* Under the loupe */
.pk-loupe { position: relative; background: #000; }
.pk-loupe-photo { display: block; width: 100%; height: clamp(560px, 56vw, 820px); object-fit: cover; opacity: 0.85; }
.pk-loupe-inner { position: absolute; inset: 0; display: flex; align-items: center; }
.pk-loupe-inner .pk-wrap { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.pk-lens { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pk-lens img { display: block; width: 320px; height: 320px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink);
  box-shadow: 0 0 0 8px rgba(13, 12, 11, 0.55), 0 24px 60px rgba(0, 0, 0, 0.6); }
.pk-lens figcaption { padding: 4px 10px; background: rgba(13, 12, 11, 0.8); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.pk-readout { min-width: 300px; margin: 0; padding: 28px 32px; background: rgba(13, 12, 11, 0.94); border: 1px solid var(--rule-2);
  font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.pk-readout h2 { margin: 0 0 6px; font: inherit; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pk-readout dl { margin: 0; }
.pk-readout dl div { display: flex; justify-content: space-between; gap: 40px; padding: 7px 0; }
.pk-readout dd { margin: 0; color: var(--ink); }
.pk-readout .pk-total { border-top: 1px solid var(--rule-2); margin-top: 6px; padding-top: 14px; align-items: baseline; }
.pk-readout .pk-total dd { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--pencil-2); }
.pk-readout p { margin: 8px 0 0; color: var(--ink-3); }
@media (max-width: 760px) {
  .pk-loupe-photo { height: auto; aspect-ratio: 4 / 3; }
  .pk-loupe-inner { position: relative; padding: 28px 0 40px; background: var(--ground); }
  .pk-loupe-inner .pk-wrap { flex-direction: column; align-items: stretch; }
  .pk-lens { margin-top: -110px; }
  .pk-lens img { width: 200px; height: 200px; }
  .pk-readout { min-width: 0; padding: 22px 20px; }
}

/* Nothing leaves your Mac */
.pk-privacy { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.pk-privacy h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 72px); line-height: 1; }
.pk-privacy-copy { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.pk-privacy-copy p { margin: 0; }

/* Camera formats strip */
.pk-formats { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.pk-formats .pk-wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.pk-formats h2 { margin: 0; font: inherit; font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; color: var(--ink); }
.pk-formats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px;
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; color: var(--ink-3); }
.pk-formats p { margin: 0; font-size: 15px; color: var(--ink-4); }
@media (max-width: 760px) { .pk-formats ul { justify-content: flex-start; } }

/* The app and where picks go */
.pk-app { padding-top: 120px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.pk-app .pk-section-title { margin: 0; }
.pk-window { margin: 0; }
.pk-window img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 12px; }
.pk-outputs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.pk-outputs li { display: flex; flex-direction: column; gap: 8px; }
.pk-outputs h3 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; color: var(--pencil-2); }
.pk-outputs p { margin: 0; color: var(--ink-2); }

/* Price */
.pk-price-section { padding-top: 96px; padding-bottom: 120px; }
.pk-price { border: 1px solid var(--rule-2); padding: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.pk-price-copy { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.pk-price h2 { margin: 0; }
.pk-price-line { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
.pk-price-copy p:not(.pk-price-line) { margin: 0; color: var(--ink-2); }
.pk-price-copy .pk-fine { font-size: 14px; color: var(--ink-4); }
.pk-fine span[lang] { white-space: nowrap; }
@media (max-width: 760px) { .pk-price { padding: 28px 20px; } }

@media (max-width: 760px) {
  .pk-hero { padding-top: 48px; padding-bottom: 48px; }
  .pk-sheet-section, .pk-how { padding-bottom: 64px; }
  .pk-privacy, .pk-app { padding-top: 72px; }
  .pk-privacy { padding-bottom: 72px; }
  .pk-price-section { padding-top: 64px; padding-bottom: 72px; }
}

/* ---------- Support and privacy pages ---------- */

.pk-doc { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.pk-doc h1 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 80px); line-height: 1; }
.pk-doc .pk-lede { margin-bottom: 56px; }
.pk-doc h2 { margin: 48px 0 12px; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pencil-2); }
.pk-doc p, .pk-doc li { color: var(--ink-2); }
.pk-doc p { margin: 0 0 14px; }
.pk-doc ul { margin: 0 0 14px; padding-left: 20px; }
.pk-doc li { margin-bottom: 8px; }
.pk-doc strong { color: var(--ink); font-weight: 600; }
.pk-doc kbd { font-family: var(--mono); font-size: 14px; padding: 1px 6px; border: 1px solid var(--rule-2); border-radius: 4px; color: var(--ink); }
.pk-contact { margin-top: 56px; padding: 28px 32px; border: 1px solid var(--rule-2); }
.pk-contact h2 { margin-top: 0; }

/* ---------- Footer ---------- */

.pk-footer { border-top: 1px solid var(--rule); }
.pk-footer .pk-wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-4); }
.pk-footer p { margin: 0; }
.pk-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pk-footer a { color: var(--ink-3); }
.pk-footer a:hover { color: var(--pencil-2); }
