/* struppllc.com: one stylesheet, self-hosted fonts, no external requests.
   Design idea: the camera viewfinder from the logo (corner brackets, a red
   focus dot, small uppercase readouts) frames the content. See .impeccable.md. */

@font-face { font-family: "Jost"; src: url("fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Neutrals are tinted warm, toward the cream paper. */
  --paper:   oklch(97.4% 0.009 85);
  --paper-2: oklch(94.2% 0.014 84);
  --surface: oklch(99% 0.005 85);
  --ink:     oklch(22% 0.008 70);
  --ink-2:   oklch(44% 0.013 70);
  --line:    oklch(86% 0.016 80);
  --field:   oklch(68% 0.016 75);
  /* Brand: evergreen, with one red focus dot. */
  --green:   oklch(38.5% 0.058 162);
  --green-2: oklch(30% 0.048 162);
  --on-green: oklch(97.4% 0.009 85);
  --red:     oklch(45% 0.13 25);
  --focus:   oklch(56% 0.15 48);
  --on-green-2: oklch(88% 0.025 160);
  --placeholder: oklch(60% 0.012 75);
  /* Framed prints and the photo viewer */
  --mat:      oklch(20% 0.02 160);
  --gold:     oklch(84% 0.12 84);
  --gold-hi:  oklch(91% 0.13 90);
  --shade:    oklch(18% 0.02 60);
  --vignette: oklch(14% 0.02 50 / 0.6);
  --on-dark:  oklch(88% 0.02 85);

  --font: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;
  --wrap: 72rem;
  --ease: cubic-bezier(0.25, 1, 0.5, 1); /* ease-out-quart */
  --bracket: 2rem;   /* viewfinder arm length */
  --bw: 3px;         /* viewfinder line weight */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
a:active { opacity: 0.75; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: var(--paper); padding: 0.5rem 0.875rem; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.measure { max-width: 34em; }
.muted { color: var(--ink-2); }

/* Small uppercase labels, like the readouts in a camera viewfinder. */
.readout {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin: 0;
}
.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); margin-right: 0.5em; vertical-align: 0.08em; }

/* ---------- Header ---------- */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.75rem; height: 2.75rem; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-weight: 600; font-size: 1.375rem; letter-spacing: 0.16em; }
.brand-name small { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.32em; color: var(--ink-2); margin-top: 0.375rem; }
.nav { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; color: var(--ink-2); text-decoration: none; font-size: 1rem; padding: 0.75rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- Viewfinder frame: four corner brackets drawn with gradients ---------- */
.viewfinder {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 5rem);
  --c: var(--ink);
  background:
    linear-gradient(var(--c), var(--c)) top left    / var(--bracket) var(--bw),
    linear-gradient(var(--c), var(--c)) top left    / var(--bw) var(--bracket),
    linear-gradient(var(--c), var(--c)) top right   / var(--bracket) var(--bw),
    linear-gradient(var(--c), var(--c)) top right   / var(--bw) var(--bracket),
    linear-gradient(var(--c), var(--c)) bottom left / var(--bracket) var(--bw),
    linear-gradient(var(--c), var(--c)) bottom left / var(--bw) var(--bracket),
    linear-gradient(var(--c), var(--c)) bottom right/ var(--bracket) var(--bw),
    linear-gradient(var(--c), var(--c)) bottom right/ var(--bw) var(--bracket);
  background-repeat: no-repeat;
}
.viewfinder .corner { position: absolute; top: 1.25rem; }
.viewfinder .corner.left { left: 1.5rem; }
.viewfinder .corner.right { right: 1.5rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero:has(+ .gallery) { padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero h1 { max-width: 13em; margin-top: 1.25rem; }
.hero .lede { font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.55; color: var(--ink-2); max-width: 33em; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* Text on the left, a featured framed print on the right. */
.hero-grid { display: grid; gap: 2.5rem 3.5rem; align-items: center; }
.hero-grid .corner { z-index: 1; }
.hero-photo { margin: 0; width: 100%; max-width: 24rem; justify-self: center; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero-photo { max-width: 26rem; justify-self: end; transform: rotate(1.25deg); }
  .hero h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
}

/* ---------- Framed prints ----------
   Each photo is presented like a sold print: a dark mat, a soft vignette,
   and a thin gold keyline set inside the edge. */
.print {
  position: relative; padding: 5px; background: var(--mat);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--shade) 18%, transparent), 0 10px 28px -12px color-mix(in oklch, var(--shade) 40%, transparent);
}
.print img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.print::before, .print::after { content: ""; position: absolute; inset: 5px; pointer-events: none; }
.print::before {   /* vignette: darkens the corners, leaves the faces alone */
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 45%, var(--vignette) 100%);
}
.print::after {    /* gold keyline, with a hairline of shadow so it reads on light areas too */
  inset: 13px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--shade) 25%, transparent), inset 0 0 0 1px color-mix(in oklch, var(--shade) 20%, transparent);
}
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom:focus-visible { outline-offset: 6px; }
.print:has(.zoom:hover) { box-shadow: 0 2px 4px color-mix(in oklch, var(--shade) 20%, transparent), 0 18px 36px -14px color-mix(in oklch, var(--shade) 50%, transparent); }
.print:has(.zoom:hover)::after { border-color: var(--gold-hi); }

/* ---------- Photo strip ---------- */
.gallery { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.gallery-head h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: 0; margin: 0; }
.strip {
  list-style: none; margin: 0; padding: 0 0 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 0.875rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 48rem) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; overflow: visible; }
  .gallery-hint { display: none; }
}

/* ---------- Photo viewer ---------- */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 40rem); max-height: 94vh; overflow: visible; }
.viewer::backdrop { background: oklch(14% 0.015 160 / 0.88); }   /* literal on purpose: older browsers don't pass custom properties to ::backdrop */
.viewer img { display: block; max-width: 100%; max-height: calc(94vh - 4.5rem); width: auto; height: auto; margin: 0 auto; border: 5px solid var(--mat); }
.viewer-bar { display: flex; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.viewer-bar .readout { color: var(--on-dark); min-width: 4.5rem; text-align: center; }
.viewer-btn {
  font: 500 0.9375rem/1 var(--font); color: var(--on-green); background: transparent; min-height: 2.75rem;
  border: 1px solid color-mix(in oklch, var(--on-dark) 50%, transparent); border-radius: 2px; padding: 0.625rem 1rem; cursor: pointer;
}
.viewer-btn:hover { border-color: var(--gold); color: var(--gold); }
.viewer-btn:active { transform: translateY(1px); }
html:has(.viewer[open]) { overflow: hidden; }   /* no scrolling behind the viewer */

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.tint { background: var(--paper-2); }

/* Heading on the left, content on the right. */
.split { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(14rem, 1fr) 2fr; }
  .split > :first-child { position: sticky; top: 2rem; align-self: start; }
}

/* Services: Santa portraits lead; events and headshots are a smaller "also" line. */
.services { border-top: 1px solid var(--line); }
.services .featured { padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line); }
.services .featured h3 { font-size: clamp(1.625rem, 2.6vw, 2rem); margin-bottom: 0.5rem; }
.services .featured h3::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); margin: 0 0.625rem 0.25em 0; }
.services .featured p { font-size: 1.1875rem; color: var(--ink-2); max-width: 32em; margin: 0; }
.services .featured .readout { margin-top: 1rem; }
.services .featured .text-link { margin-top: 0.25rem; }
.services .also { padding: 1.5rem 0 0; display: grid; gap: 0.5rem; max-width: 34em; }
.services .also p { margin: 0; color: var(--ink-2); }

/* Print release strip */
.release { background: var(--green); color: var(--on-green); }
.release .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.release h2 { margin-bottom: 0.25em; }
.release p { margin: 0; color: var(--on-green-2); max-width: 34em; }
.release .button { background: var(--on-green); color: var(--green-2); border-color: var(--on-green); }
.release .button:hover { background: transparent; color: var(--on-green); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font: 500 1.0625rem/1 var(--font); letter-spacing: 0.02em;
  background: var(--green); color: var(--on-green);
  border: 2px solid var(--green); border-radius: 2px;
  padding: 1rem 1.5rem; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--green-2); border-color: var(--green-2); color: var(--on-green); }
.button:active { transform: translateY(1px); background: var(--green-2); }
.button[disabled] { opacity: 0.6; cursor: wait; }
.text-link { display: inline-block; font-weight: 500; padding-block: 0.625rem; }

/* ---------- Form ---------- */
.form { max-width: 34rem; }
.form-note { font-size: 0.9375rem; color: var(--ink-2); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 500; margin-bottom: 0.375rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field); border-radius: 2px; padding: 0.75rem 0.875rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field ::placeholder { color: var(--placeholder); }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; min-height: 1.5em; font-weight: 500; color: var(--green); }
.form-status.error { color: var(--red); }

/* ---------- Print release page ---------- */
.download { --bracket: 1.25rem; --bw: 2px; padding: 2rem; margin-top: 2.5rem; max-width: 38rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.download p { margin: 0; }
.download strong { font-weight: 500; font-size: 1.1875rem; }
.steps { padding-left: 1.25rem; max-width: 36rem; }
.steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.steps li::marker { color: var(--red); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.9375rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; }
.site-footer a { color: var(--ink-2); }
.footer-brand { display: grid; gap: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: -0.625rem; }
.footer-nav a { display: inline-block; padding-block: 0.625rem; }

@media (max-width: 30rem) {
  .nav { gap: 1.25rem; }
  .viewfinder .corner.right { display: none; }
  .release .button, .download .button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .button, .viewer-btn, .field input, .field textarea { transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease); }
  .print { transition: box-shadow 220ms var(--ease); }
  .print::after { transition: border-color 220ms var(--ease); }
  .viewer[open] { animation: viewer-in 240ms var(--ease); }
  .viewer[open]::backdrop { animation: fade-in 240ms var(--ease); }
}
@keyframes viewer-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
