/* ============================================================
   James Law — photography & video, Berlin
   Shared stylesheet
   ============================================================ */

/* ---------- self-hosted fonts (no third-party requests) ----------
   Variable woff2, one file per family per subset. Replaces the
   Google Fonts links that sent every visitor's IP to Google.
   ---------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper:      #F1F2EF;
  --paper-warm: #E5E7E1;
  --ink:        #1B1E1C;
  --muted:      #676D68;
  --rule:       #D3D6CF;
  --accent:     #0E6B70;
  --accent-dk:  #0A4E52;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --col-label: 8.5rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.62;
  font-optical-sizing: auto;
}

h1, h2, h3, h4, nav, .ui, button, .btn, th, .price, .frame-cap, .seq {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  letter-spacing: -0.022em;
  line-height: 1.06;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.9vw, 4.25rem); }
h2 { font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem); line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem); line-height: 1.2; }
h4 { font-size: 1rem; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dk); }

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

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.6rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--muted); font-weight: 400; }

.masthead nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.masthead nav a { color: var(--ink); text-decoration: none; padding-block: 0.2rem; }
.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

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

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero h1 { max-width: 17ch; }
.hero .standfirst {
  margin-top: 1.6rem;
  font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.45rem);
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.45;
}
.hero .standfirst strong { color: var(--ink); font-weight: 400; }

/* ---------- two-column section grid ---------- */

.row {
  display: grid;
  grid-template-columns: var(--col-label) minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}

.row > .label {
  font-family: "Archivo", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  padding-top: 0.45rem;
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 46rem) {
  .row { grid-template-columns: 1fr; gap: 0.85rem; }
  .row > .label { position: static; padding-top: 0; }
}

.lede { font-size: 1.15em; max-width: 54ch; }

/* ---------- image frames ---------- */

.frames {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.frames.two { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.frame { margin: 0; }

.frame .slot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.frame.wide .slot { aspect-ratio: 3 / 2; }
.frame.tall .slot { aspect-ratio: 9 / 16; }

.frame .slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.frame .slot::after {
  content: attr(data-shot);
  position: absolute;
  inset: auto 0.75rem 0.75rem 0.75rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
}
.frame .slot:has(img)::after { content: none; }

.frame figcaption {
  margin-top: 0.5rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- process ---------- */

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
}
.steps li:first-child { border-top: 0; padding-top: 0; }

.steps li::before {
  content: counter(step);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  padding-top: 0.28rem;
}

.steps h2 { margin-bottom: 0.3rem; }
.steps p { font-size: 0.975em; color: var(--muted); }
.steps p strong { color: var(--ink); font-weight: 600; }

/* ---------- packages ---------- */

.packages { display: grid; gap: 1.75rem; }

.package { border-top: 2px solid var(--ink); padding-top: 1.1rem; }

.package .head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.price {
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
}

.package ul { margin: 0.85rem 0 0; padding-left: 1.1rem; max-width: var(--measure); }
.package li { margin-bottom: 0.35rem; }
.package li::marker { color: var(--muted); }

.fit { font-size: 0.95em; color: var(--muted); }

/* ---------- case studies ---------- */

.case { border-top: 1px solid var(--rule); padding-block: 2.25rem; }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case .kind {
  font-family: "Archivo", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.case h2 { margin-bottom: 0.6rem; }
.case .used-for {
  margin-top: 0.9rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  font-size: 0.975em;
  color: var(--muted);
}
.case .frames { margin-top: 1.25rem; }

/* ---------- callout / quote ---------- */

.quote { border-left: 2px solid var(--ink); padding-left: 1.1rem; max-width: 54ch; }
.quote p { font-size: 1.1em; }
.quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: "Archivo", sans-serif;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- buttons & CTA ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--ink);
  transition: background 120ms linear, color 120ms linear;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.linklist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.linklist li { border-top: 1px solid var(--rule); }
.linklist li:last-child { border-bottom: 1px solid var(--rule); }
.linklist a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding-block: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}
.linklist a:hover { color: var(--accent); }
.linklist .t { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.linklist .d { grid-column: 1 / -1; color: var(--muted); font-size: 0.95em; max-width: 52ch; }
.linklist .go { font-family: "Archivo", sans-serif; font-size: 0.875rem; color: var(--accent); }

/* ---------- form ---------- */

form { max-width: 34rem; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 8rem; resize: vertical; }

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

.foot {
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 2.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.75rem 2.5rem;
  font-size: 0.9375rem;
}
.foot h2 { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin-bottom: 0.3rem; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot .fine { color: var(--muted); font-size: 0.875rem; max-width: 34ch; }

/* ---------- editor notes (delete before launch) ---------- */

.note {
  background: #FFF6D6;
  border: 1px dashed #C9A227;
  padding: 0.9rem 1.1rem;
  margin-block: 1.25rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #5A4708;
  max-width: 52ch;
}
.note b { display: block; margin-bottom: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- added in rebuild ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.875rem;
  z-index: 10;
}
.skip:focus { left: 0; }

.wordmark span::before { content: "\2014\00a0"; }

.field .checkline {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}
.field .checkline input { width: auto; margin-top: 0.35rem; }

/* Nav wraps to its own line on narrow screens rather than crushing */
@media (max-width: 52rem) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .masthead nav { flex-wrap: wrap; gap: 0.5rem 1.15rem; font-size: 0.875rem; }
}

/* ============================================================
   LAUNCH SWITCH
   Uncomment the rule below to hide every yellow editor note at
   once. Better than deleting them one by one while the site is
   still half-built. Delete the notes properly before you go live.
   ============================================================ */
/* .note { display: none !important; } */

/* ============================================================
   PERSONAL WORK
   A deliberately different register. No accent colour, no
   buttons, bigger pictures, less furniture. Someone arriving
   from an open call should see work, not a price list.
   ============================================================ */

.plain body { background: #FBFBFA; }
.plain .row { border-top: 0; padding-block: 0 clamp(2rem, 5vw, 3.5rem); }
.plain .row > .label { display: none; }
.plain .row { grid-template-columns: minmax(0, 1fr); }
.plain .hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 2.5rem); }
.plain .hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.plain .standfirst { max-width: 40ch; }
.plain .lede { max-width: 54ch; white-space: pre-line; }
.plain .frames { gap: clamp(1.5rem, 4vw, 3rem); }
.plain .frame .slot { border: 0; background: #EFEFEC; }
.plain .linklist a { padding-block: 1.6rem; }
.plain .linklist .go { color: var(--muted); }
.plain .foot { border-top: 1px solid var(--rule); }
