/* M-Film, a contributor's page — one stylesheet, no webfonts, no framework, no JavaScript.

   System fonts only, so the page makes no external request at all. The palette is the one
   M-Film's own interface uses: a near-black ground, one amber accent, warm neutrals, and
   grouping done with hairlines rather than boxes. A photograph or a screen is never rounded,
   framed or shadowed. The shape of this file follows the other sites in the family
   (latent.photoni.st, filmlab.photoni.st) so the set reads as one hand. */

:root {
  --bg:         #0b0b0a;
  --bg-raise:   #141413;
  --line:       #2b2a27;
  --line-strong:#3a3835;
  --ink:        #ece8e1;
  --ink-muted:  #b0a99f;
  --ink-faint:  #8a847b;
  --amber:      #eca834;
  --amber-hi:   #f4bd5c;
  --amber-ink:  #17110a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* A faint grain over the page, as the family's sites have: a nod to the subject, one
   inline SVG, no requests. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap, header, footer { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
a:hover { border-bottom-color: var(--amber); }

/* ---- the strip that says what this page is not ------------------------- */

/* Full width, above the masthead, because the domain looks official and is not: the
   first thing read has to be the correction. */
.banner {
  margin: 0;
  padding: .85rem 1.5rem;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: .875rem;
  text-align: center;
}

.banner strong { color: var(--amber); font-weight: 600; }

/* ---- hero -------------------------------------------------------------- */

.hero { padding-top: 3.5rem; padding-bottom: 3rem; text-align: center; }

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;      /* the tracking widens the right edge otherwise */
  text-transform: uppercase;
}

.tagline {
  margin: 1.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.lede {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  color: var(--ink-muted);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: 2rem 0 0;
}

.btn, .btn-ghost {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: .375rem;
  font-weight: 600;
  font-size: .9375rem;
  border: 1px solid transparent;
}

.btn { background: var(--amber); color: var(--amber-ink); }
.btn:hover { background: var(--amber-hi); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink-muted); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }

/* ---- sections ---------------------------------------------------------- */

section { padding: 3rem 0 0; }
section + section { border-top: 1px solid var(--line); margin-top: 3.5rem; }

.label {
  margin: 0 0 .75rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

h3 { margin: 2.25rem 0 .5rem; font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); font-size: .875rem; }

/* ---- screens: the camera's own 720x480, never upscaled ------------------ */

figure { margin: 0; }

.screen {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}

/* the 720-px canvas at its own size, centred, so the camera's small type stays the
   size the camera draws it */
.screen.native {
  width: 45rem;
  max-width: 100%;
  margin: 0 auto;
}

figure.screen-figure { margin-top: 1.5rem; }

figcaption {
  margin-top: .6rem;
  font-size: .8125rem;
  color: var(--ink-faint);
}

/* ---- photographs: never rounded, never shadowed ------------------------ */

.photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.photos img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}

@media (min-width: 40rem) {
  /* two by two: three of them across a 56rem measure are thumbnails */
  .photos { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
}

/* the whole roll on one sheet: tall, so it is held well inside the measure */
.contact { margin-top: 2rem; max-width: 26rem; }

/* ---- the numbers ------------------------------------------------------- */

.numbers { margin-top: 1.5rem; }

.numbers table { width: 100%; border-collapse: collapse; }

.numbers th, .numbers td {
  text-align: left;
  vertical-align: top;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
  font-weight: 400;
}

.numbers th {
  width: 12rem;
  color: var(--ink-faint);
  font-size: .875rem;
}

.numbers td { color: var(--ink); }

.numbers tr:last-child td, .numbers tr:last-child th { border-bottom: 1px solid var(--line); }

/* ---- the last cards ---------------------------------------------------- */

.get { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 44rem) { .get { grid-template-columns: 1fr 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 1.5rem;
  background: var(--bg-raise);
}

.card h3 { margin-top: 0; }
.card p { color: var(--ink-muted); font-size: .9375rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: .25rem;
  padding: .1rem .35rem;
}

/* ---- footer ------------------------------------------------------------ */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .875rem;
}

footer p { margin: 0 0 .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
