/* skenovanifilmu.cz
   Paper: matte fibre print. Film: the strip itself, true black.
   Safelight red only for actions. Archivo, width axis carries the hierarchy. */

:root {
  --paper: #eceee9;
  --paper-2: #e1e4de;
  --ink: #1e2320;
  --mute: #5c635e;
  --line: #c4c9c2;
  --film: #000;
  --rebate: #b9beb7;
  --safelight: #b3261e;
  --safelight-ink: #fff;
  --focus: #1f5fbf;

  --font: "Archivo", system-ui, sans-serif;
  --wrap: 72rem;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.4rem, 6.4vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 {
  font-weight: 760;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 108; line-height: 1.2; }
p, ul, ol { margin: 0 0 1em; }
p, li { max-width: var(--measure); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 1rem; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; padding-block: 0.6rem; }
.brand {
  font-weight: 760; font-variation-settings: "wdth" 112; text-decoration: none;
  font-size: 1.15rem; letter-spacing: -0.01em; margin-right: auto;
}
.brand span { font-variation-settings: "wdth" 62; font-weight: 500; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: var(--step--1); font-weight: 560; padding-block: 0.3rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 52rem) {
  .top nav { order: 3; width: 100%; overflow-x: auto; }
  .nav { flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--safelight); color: var(--safelight-ink);
  font-weight: 650; text-decoration: none; padding: 0.85rem 1.35rem; border-radius: 3px;
  font-variation-settings: "wdth" 104;
}
.btn:hover { background: #8f1e18; }
.btn-small { padding: 0.5rem 0.9rem; font-size: var(--step--1); }
.btn-plain { background: none; color: var(--ink); padding-inline: 0.2rem; text-decoration: underline; }
.btn-plain:hover { background: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.5rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { max-width: 17ch; }
.hero .lead { font-size: var(--step-1); line-height: 1.45; max-width: 34rem; color: var(--ink); }

/* The film strip: the one loud element */
.strip {
  background: var(--film);
  color: var(--rebate);
  padding-block: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.strip-in {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 1fr);
  gap: 0.9rem;
  min-width: min(100%, 72rem);
  max-width: 96rem;
  margin-inline: auto;
  padding: 0 0.9rem;
}
.strip::before, .strip::after {
  content: ""; display: block; height: 1.6rem; min-width: 64rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26'%3E%3Crect x='6' y='8' width='10' height='11' rx='2' fill='%23e1e4de'/%3E%3C/svg%3E") repeat-x left center / 22px 26px;
}
.frame {
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: var(--rebate);
}
.frame-img { aspect-ratio: 3 / 2; overflow: hidden; background: #222; }
.frame-img img { width: 100%; height: 100%; object-fit: cover; }
.frame-edge {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  padding: 0.45rem 0.1rem 0.15rem;
  font-variation-settings: "wdth" 70; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em;
}
.frame-num { color: #e8c45c; font-variation-settings: "wdth" 62; }
.frame-name {
  display: block; padding: 0.1rem 0.1rem 0.2rem;
  color: #f2f3f0; font-weight: 700; font-size: var(--step-1); font-variation-settings: "wdth" 112;
}
.frame-price { display: block; padding: 0 0.1rem 0.4rem; font-size: var(--step--1); color: var(--rebate); }
.frame:hover .frame-name, .frame:focus-visible .frame-name { text-decoration: underline; }

/* Developing: frames start as negatives and come up one after another, once. */
@media (prefers-reduced-motion: no-preference) {
  .strip .frame-img img { animation: develop 1.6s ease-out both; }
  .strip .frame:nth-child(2) .frame-img img { animation-delay: 0.35s; }
  .strip .frame:nth-child(3) .frame-img img { animation-delay: 0.7s; }
  .strip .frame:nth-child(4) .frame-img img { animation-delay: 1.05s; }
}
@keyframes develop {
  0% { filter: invert(1) contrast(0.7) brightness(1.15); }
  45% { filter: invert(1) contrast(0.7) brightness(1.15); }
  100% { filter: none; }
}

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-2); }
.intro { font-size: var(--step-1); line-height: 1.45; max-width: 36rem; }

.split { display: grid; gap: 2rem 3.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }

/* Steps are a real sequence, so they are numbered */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem 2.5rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.steps li::before {
  content: counter(step); display: block;
  font-weight: 760; font-size: var(--step-2); font-variation-settings: "wdth" 62; line-height: 1; margin-bottom: 0.5rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--mute); }

/* Service list on home: ordered by priority, quiet */
.services { display: grid; gap: 0; margin-top: 1.5rem; }
.service {
  display: grid; gap: 0.25rem 2rem; grid-template-columns: 1fr;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
}
@media (min-width: 52rem) { .service { grid-template-columns: 18rem 1fr auto; align-items: baseline; } }
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--mute); }
.service .from { font-weight: 650; white-space: nowrap; }

/* Price tables */
.price { margin: 2.25rem 0 0; }
.price figcaption p { color: var(--mute); margin-bottom: 0.75rem; }
.price-scroll { overflow-x: auto; }
.price table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 30rem; }
.price th, .price td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price thead th { font-size: var(--step--1); font-weight: 600; color: var(--mute); border-bottom: 2px solid var(--ink); }
.price tbody th { font-weight: 500; }
.price td { white-space: nowrap; font-weight: 620; text-align: right; }
.price thead th:not(:first-child) { text-align: right; }
.price-note { font-size: var(--step--1); color: var(--mute); margin-top: 0.6rem; }

/* Resolution comparison */
.res { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 40rem) { .res { grid-template-columns: 1fr 1fr; } }
.res div { border-top: 2px solid var(--ink); padding-top: 0.75rem; }
.res strong { font-size: var(--step-1); font-variation-settings: "wdth" 112; }

/* Before / after */
.ba { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 40rem) { .ba { grid-template-columns: 1fr 1fr; } }
.ba figure { margin: 0; }
.ba figcaption { font-size: var(--step--1); color: var(--mute); padding-top: 0.4rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding-block: 0.9rem; max-width: 46rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 620; font-size: var(--step-1); font-variation-settings: "wdth" 104; }
.faq details p { margin: 0.6rem 0 0; color: var(--mute); }

/* Order form */
.form { display: grid; gap: 1.1rem; max-width: 40rem; margin-top: 1.5rem; }
.form label, .form legend { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.form .hint { font-weight: 400; color: var(--mute); font-size: var(--step--1); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #9aa19b; border-radius: 3px; padding: 0.6rem 0.7rem;
}
.form textarea { min-height: 7rem; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .checks { display: grid; gap: 0.35rem; }
.form .checks label { font-weight: 400; display: flex; gap: 0.5rem; align-items: baseline; margin: 0; }
.form .row2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.notice { border-left: 4px solid var(--safelight); padding: 0.75rem 1rem; background: #fff; max-width: 40rem; }

/* Article (guide) */
.article { max-width: var(--measure); }
.article h2 { font-size: var(--step-2); margin-top: 2.2rem; }

/* Footer */
.foot { background: var(--film); color: var(--rebate); padding-block: 3rem 1.5rem; margin-top: 0; }
.foot a { color: #f2f3f0; }
.foot-in { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .foot-in { grid-template-columns: 2fr 1.5fr 1fr; } }
.foot-brand { color: #f2f3f0; font-weight: 760; font-variation-settings: "wdth" 112; font-size: var(--step-1); margin-bottom: 0.4rem; }
.foot-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.foot-legal { font-size: var(--step--1); margin-top: 2rem; }

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.page-head h1 { font-size: var(--step-3); max-width: 22ch; }

/* Contact strip on subpages: a short length of the same roll, current page picked in grease pencil */
.contact-strip {
  background: var(--film);
  overflow-x: auto;
  scrollbar-width: none;
}
.contact-strip::-webkit-scrollbar { display: none; }
.contact-strip::before, .contact-strip::after {
  content: ""; display: block; height: 1.15rem; min-width: 76rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26'%3E%3Crect x='6' y='8' width='10' height='11' rx='2' fill='%23e1e4de'/%3E%3C/svg%3E") repeat-x left center / 16px 19px;
}
.cs-in {
  display: grid; grid-auto-flow: column; grid-auto-columns: 9.25rem; gap: 0.6rem;
  padding: 0.15rem 0.6rem; width: max-content; min-width: 100%;
  justify-content: center;
}
.cs-frame { display: block; text-decoration: none; color: var(--rebate); }
.cs-img { position: relative; display: block; aspect-ratio: 3 / 2; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) contrast(0.95); transition: filter 0.2s; }
.cs-frame:hover .cs-img img, .cs-frame:focus-visible .cs-img img, .cs-frame.is-picked .cs-img img { filter: none; }
.cs-edge {
  display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.3rem 0.05rem 0.05rem;
  font-variation-settings: "wdth" 70; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.03em;
}
.cs-frame.is-picked .cs-edge > span:first-child { color: #f2f3f0; }
.grease {
  position: absolute; inset: -7px -8px -8px -7px; width: calc(100% + 15px); height: calc(100% + 15px);
  color: #e2402f; transform: rotate(-1.2deg); pointer-events: none;
}

/* Resolution cards */
.res-px { font-variant-numeric: tabular-nums; font-weight: 560; margin-bottom: 0.4rem; }

/* DPI details */
.dpi { margin-top: 2.25rem; }
.dpi-item { border-top: 1px solid var(--line); }
.dpi-item:last-of-type { border-bottom: 1px solid var(--line); }
.dpi-item summary {
  cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.85rem 0; font-weight: 620; list-style: none;
}
.dpi-item summary::-webkit-details-marker { display: none; }
.dpi-item summary > span:first-child::before {
  content: "+"; display: inline-block; width: 1.2em; font-weight: 700; color: var(--safelight);
}
.dpi-item[open] summary > span:first-child::before { content: "−"; }
.dpi-sum { color: var(--mute); font-weight: 450; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.dpi-item table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 36rem; margin-bottom: 1rem; font-size: 0.95rem; }
.dpi-item th, .dpi-item td { text-align: right; padding: 0.45rem 0 0.45rem 0.75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dpi-item th:first-child { text-align: left; padding-left: 0; }
.dpi-item thead th { font-size: var(--step--1); color: var(--mute); font-weight: 600; border-bottom: 2px solid var(--ink); }
.dpi-item tbody th { font-weight: 560; }
.dpi-item tr.is-tier { background: #fff; }
.tier {
  display: inline-block; min-width: 1.5em; text-align: center; margin-left: 0.35rem;
  background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 700; border-radius: 2px; padding: 0 0.3em;
}
