/* Tested on Film. Cameras are edited in js/cameras.js, not here. */

:root {
  --paper: #f3eee4;
  --paper-deep: #e7dfd1;
  --ink: #1c1612;
  --ink-soft: #5c534a;
  --line: #ddd4c6;
  --orange: #e24e1b;
  --orange-ink: #9c3412;
  --frame: #1a1614;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: only light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image: url("../images/grain.svg");
  background-size: 220px 220px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

::selection {
  background: #f0c2ae;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 70;
  transform: translateY(-160%);
  background: var(--orange);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
  }
}

.top {
  background: var(--paper);
}

@media (min-width: 800px) {
  .top {
    position: sticky;
    top: 0;
    z-index: 30;
  }
}

.rebate {
  background: var(--frame);
  color: var(--paper);
}

.rebate-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding-block: 0.95rem;
}

.logo,
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}

.logo:hover,
.footer-brand:hover {
  color: var(--orange-ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0;
}

.nav a:hover,
.back a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--orange-ink);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--orange);
}

.section-kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.72fr);
  gap: 2.5rem 3rem;
  align-items: center;
  padding: 3.2rem 0 4rem;
}

.brand-title {
  display: block;
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.promise {
  display: block;
  max-width: 22ch;
  margin-top: 1.35rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--orange);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero .section-kicker {
  margin-bottom: 0.85rem;
}

.lede {
  max-width: 38rem;
  margin-top: 1.1rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--orange);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button-ghost:hover {
  background: transparent;
  color: var(--orange-ink);
  box-shadow: inset 0 0 0 1.5px var(--orange);
}

.strip {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  gap: 0 0.45rem;
  background: var(--frame);
  padding: 0.75rem 0.5rem;
}

.strip ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.strip li {
  min-width: 0;
}

.strip-holes {
  background-image: radial-gradient(circle, var(--paper) 3px, transparent 3.5px);
  background-size: 16px 18px;
  background-repeat: repeat-y;
  background-position: center top;
}

.swatch {
  display: block;
  height: 68px;
}

.swatch-a { background: linear-gradient(155deg, #f7f1e6 0%, #e7cbb8 62%, #e24e1b 100%); }
.swatch-b { background: linear-gradient(180deg, #d9d2c6, #8a8175); }
.swatch-c { background: linear-gradient(150deg, #f3eee4 10%, #1c1612 82%); }
.swatch-d { background: linear-gradient(200deg, #f0a07a, #9c3412); }

.cap {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.28rem;
}

.cap b {
  font-weight: 600;
  color: #f0b59a;
}

.band {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0;
}

.band h2,
.shelf h2,
.page-hero h1,
.closer h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.band .lede {
  margin-top: 0.75rem;
}

.steps {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 0.85rem;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.steps h3 {
  margin: 0.3rem 0 0.45rem;
  font-size: 1.55rem;
}

.steps p {
  color: var(--ink-soft);
}

.shelf {
  padding-block: 4.25rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.text-link {
  font-weight: 600;
  color: var(--orange-ink);
}

.camera-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.3rem 1.5rem;
  align-items: start;
}

@media (min-width: 760px) {
  .camera-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-link:hover h3 {
  color: var(--orange-ink);
}

.card-body {
  display: block;
  padding-top: 0.85rem;
}

.card-body h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.card-body .desc {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--ink);
}

.film {
  display: block;
  background: var(--frame);
  padding: 0.55rem 0.55rem 0.65rem;
}

.film::before,
.film::after {
  content: "";
  display: block;
  height: 0.72rem;
  background-image: radial-gradient(circle, var(--paper) 3px, transparent 3.5px);
  background-size: 0.95rem 0.72rem;
  background-repeat: repeat-x;
  background-position: center;
}

.film::before { margin-bottom: 0.45rem; }
.film::after { margin-top: 0.45rem; }

.film-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e7e0d2;
}

.film-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7e0d2;
}

.gallery .film-photo img {
  aspect-ratio: 3 / 2;
}

.status {
  position: absolute;
  z-index: 1;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.22rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--ink);
}

.status-available {
  background: var(--ink);
  color: var(--paper);
}

.status-sold {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.status-unknown {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.is-sold .film-photo img {
  filter: grayscale(0.85);
  opacity: 0.78;
}

.missing-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 10rem;
  padding: 1rem;
  text-align: center;
  color: var(--ink-soft);
}

#shelf-note {
  margin-top: 1.35rem;
}

#shelf-note:empty {
  display: none;
}

.fine {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.notice {
  color: var(--ink-soft);
  padding: 0.4rem 0 1rem;
}

.page {
  padding-top: 2.5rem;
}

.page-hero {
  margin-bottom: 1.6rem;
}

.page-hero h1 {
  margin: 0.25rem 0 0.75rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.filters button {
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filters button:hover {
  border-color: var(--ink);
}

#camera-count {
  margin-bottom: 1rem;
}

.back {
  margin: 0 0 1.2rem;
}

.back a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  grid-template-areas:
    "photo title"
    "photo buy";
  column-gap: 2.25rem;
  row-gap: 1.2rem;
  align-items: start;
}

.detail-photo { grid-area: photo; }
.detail-title { grid-area: title; }
.detail-buy { grid-area: buy; }

.detail-title h1 {
  margin-top: 0.35rem;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.detail-title .desc {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.price-lg {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-size: 2.3rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-lg .section-kicker {
  display: block;
  margin-bottom: 0.35rem;
}

.detail-buy h2,
.rolls h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.detail-buy h2 {
  margin-bottom: 0.35rem;
}

.included {
  list-style: none;
  margin: 0;
  padding: 0;
}

.included li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

.included li:last-child {
  border-bottom: 1px solid var(--line);
}

.included li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: none;
  background: var(--orange);
  transform: translateY(-0.05rem);
}

.detail-actions {
  margin-top: 1.2rem;
}

.detail-actions .fine,
.sold-note {
  margin-top: 0.75rem;
}

.sold-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.frame-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shot {
  display: block;
  width: 100%;
  text-align: left;
}

.rolls {
  margin-top: 3.25rem;
}

.rolls h2 {
  margin-bottom: 0.55rem;
}

.rolls .fine {
  margin-bottom: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.1rem;
}

.sample {
  margin: 0;
}

#lightbox {
  width: min(960px, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  background: transparent;
}

#lightbox::backdrop {
  background: rgba(20, 16, 14, 0.86);
}

.lightbox-panel {
  position: relative;
  background: var(--frame);
  color: var(--paper);
  padding: 2.6rem 0.75rem 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

#lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #e7e0d2;
}

#lightbox-caption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: #e6dccb;
}

.prose {
  max-width: 38rem;
  font-size: 1.125rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose a:not(.button) {
  color: var(--orange-ink);
}

blockquote {
  margin: 1.6rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--orange);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

blockquote p {
  margin: 0;
}

.asking {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
}

.contact-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.contact-list li {
  border-top: 2px solid var(--ink);
  padding-top: 0.85rem;
}

.contact-big {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-big:hover {
  color: var(--orange-ink);
}

.contact-list .fine {
  margin-top: 0.55rem;
}

.closer {
  background: var(--frame);
  color: var(--paper);
  padding: 4rem 0;
}

.closer .section-kicker {
  color: #f0b59a;
}

.closer h2 {
  margin: 0.4rem 0 0.7rem;
  color: var(--paper);
}

.closer p {
  max-width: 34rem;
  color: #e6dccb;
}

.closer .button {
  margin-top: 1.3rem;
  background: var(--orange);
  color: var(--ink);
}

.closer .button:hover {
  background: var(--paper);
}

.closer .button:focus-visible {
  outline-color: var(--paper);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding: 1.7rem 0 2.2rem;
}

body[data-page="home"] .site-footer {
  margin-top: 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-block;
}

.footer-row .fine {
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .card-link img,
  .shot img {
    transition: transform 0.45s ease;
  }

  .card-link:hover img,
  .shot:hover img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-link:hover img,
  .shot:hover img {
    transform: none;
  }
}

#how {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.2rem;
  }

  .strip {
    grid-template-columns: 1fr;
    grid-template-rows: 14px auto 14px;
  }

  .strip ol {
    flex-direction: row;
  }

  .strip li {
    flex: 1;
  }

  .swatch {
    height: 58px;
  }

  .strip-holes {
    background-repeat: repeat-x;
    background-size: 18px 14px;
    min-height: 14px;
  }

  .cap {
    letter-spacing: 0.06em;
    font-size: 0.58rem;
  }
}

@media (max-width: 800px) {
  .detail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "photo"
      "buy";
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 801px) {
  .contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: clamp(3.4rem, 18vw, 4.6rem);
  }
}

@media (max-width: 400px) {
  .rebate-inner {
    letter-spacing: 0.12em;
    font-size: 0.62rem;
  }
}
