/* Skouras Photography
   Graphite sections show the work; concrete sections carry the reading.
   One accent, taken from the dusk sky in the Norway print. */

:root {
  --graphite: #1c1c1c;
  --graphite-2: #262626;
  --concrete: #e3e3df;
  --concrete-2: #d6d6d1;
  --chalk: #f7f7f5;
  --ink: #1c1c1c;
  --smoke-on-dark: #9a9a95;
  --smoke-on-light: #5f5f5a;
  --dusk-on-dark: #9db8c6;
  --dusk-on-light: #3f5e6e;

  --display: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --text: "Newsreader", "Georgia", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--chalk);
  font: 400 var(--step-0)/1.6 var(--text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.15; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }

/* Themes: each section declares which ground it sits on. */
.dark { background: var(--graphite); color: var(--chalk); --smoke: var(--smoke-on-dark); --accent: var(--dusk-on-dark); --rule: #3a3a38; }
.light { background: var(--concrete); color: var(--ink); --smoke: var(--smoke-on-light); --accent: var(--dusk-on-light); --rule: #b9b9b3; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 34em; }
.muted { color: var(--smoke); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--chalk); color: var(--ink); padding: 10px 16px; font-family: var(--display); }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite); border-bottom: 1px solid #333331; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); font-family: var(--display); font-size: 1.0625rem; letter-spacing: .08em; }
.site-nav a { text-decoration: none; color: var(--smoke-on-dark); padding: 6px 0 4px; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--chalk); }
.site-nav a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--dusk-on-dark); }
.nav-toggle { display: none; background: none; border: 1px solid #4a4a47; padding: 9px 14px 6px; font-family: var(--display); letter-spacing: .08em; cursor: pointer; }

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--graphite); border-bottom: 1px solid #333331; padding: 8px var(--gutter) 20px; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0 10px; font-size: 1.25rem; border-bottom: 1px solid #2f2f2d; }
  .site-nav a[aria-current="page"] { border-bottom-color: #2f2f2d; color: var(--dusk-on-dark); }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px 11px; cursor: pointer;
  font-family: var(--display); font-size: 1rem; letter-spacing: .08em; text-decoration: none;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.dark .btn--solid { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.light .btn--solid { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.dark .btn:hover { background: var(--chalk); color: var(--ink); }
.light .btn:hover { background: var(--ink); color: var(--chalk); }
.dark .btn--solid:hover { background: transparent; color: var(--chalk); }
.light .btn--solid:hover { background: transparent; color: var(--ink); }
.text-link { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.back-link { font-family: var(--display); letter-spacing: .06em; font-size: .9375rem; color: var(--smoke); text-decoration: none; display: inline-block; padding: 6px 0; }
.back-link:hover { color: inherit; }

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(64px, 10vw, 140px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { margin: 12px 0 0; color: var(--smoke); max-width: 30em; }

/* ---------- Print mat: the white border every photo already carries ---------- */
.mat { background: var(--chalk); padding: clamp(10px, 2.4vw, 30px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: var(--step-4); max-width: 11em; }
.hero__lede { font-size: var(--step-1); color: var(--smoke); margin: 24px 0 36px; max-width: 24em; }
.hero__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero__film { position: relative; margin: 0; }
.hero__film video { width: 100%; max-height: 74vh; object-fit: cover; background: #000; }
.film-toggle {
  position: absolute; right: clamp(18px, 3.4vw, 42px); bottom: clamp(18px, 3.4vw, 42px);
  background: rgba(28, 28, 28, .72); color: var(--chalk); border: 0; cursor: pointer;
  font-family: var(--display); font-size: .875rem; letter-spacing: .08em; padding: 9px 14px 6px;
}
/* The one orchestrated moment: the film develops like a print in the tray. */
@media (prefers-reduced-motion: no-preference) {
  .hero__film video { animation: develop 2.4s var(--ease) .2s both; }
  .hero__text > * { animation: settle 1s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .5s; }
  .hero__text > :nth-child(3) { animation-delay: .8s; }
}
@keyframes develop { from { filter: brightness(2.6) contrast(.4) grayscale(1); opacity: .2; } to { filter: none; opacity: 1; } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__film { order: -1; }
}

/* ---------- Horizontal gallery strip (home) ---------- */
.strip { display: flex; gap: clamp(20px, 2.6vw, 36px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip__item { flex: none; scroll-snap-align: start; text-decoration: none; color: inherit; }
.strip__item img { height: clamp(260px, 46vh, 480px); width: auto; max-width: 82vw; object-fit: cover; }
.strip__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.strip__title { font-family: var(--display); font-size: var(--step-1); letter-spacing: .04em; }
.strip__meta { color: var(--smoke); font-size: var(--step--1); white-space: nowrap; padding-top: 3px; }
.strip-controls { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.progress { flex: 1; max-width: 220px; height: 2px; background: var(--rule); position: relative; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--ink); }
.dark .progress span { background: var(--chalk); }
.icon-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1px solid var(--rule); background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Featured print viewer (home) and print page ---------- */
.viewer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: 72vh; }
.viewer__caption { text-align: center; }
.viewer__caption h3 { font-size: var(--step-3); }
.viewer__caption p { color: var(--smoke); margin: 10px 0 0; }
.viewer__price { font-family: var(--display); font-size: var(--step-1); color: var(--chalk) !important; margin-top: 20px !important; letter-spacing: .04em; }
.viewer__caption .btn { margin-top: 28px; }
.viewer__image { display: grid; place-items: center; }
.viewer__image img { max-height: 76vh; width: auto; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.dashes { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.dashes button { width: 44px; height: 32px; border: 0; background: none; cursor: pointer; position: relative; }
.dashes button::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: #4a4a47; }
.dashes button[aria-current="true"]::after { background: var(--dusk-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .viewer__image img.is-entering { animation: settle .6s var(--ease) both; }
}
@media (max-width: 900px) {
  .viewer { grid-template-columns: 1fr; min-height: 0; }
  .viewer__image { order: -1; }
  .viewer__image img { max-height: 62vh; }
}

/* ---------- About / commissions (home + about page) ---------- */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__mark { width: min(260px, 60%); }
.about__body { font-size: var(--step-1); line-height: 1.65; }
.about__body p { max-width: 32em; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.services li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(16px, 6vw, 96px); padding: 26px 0 22px; border-bottom: 1px solid var(--rule); }
.services h3 { font-size: var(--step-2); }
.services p { margin: 0; color: var(--smoke); max-width: 32em; }
.cta-row { margin-top: 40px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .about, .services li { grid-template-columns: 1fr; }
  .services li { gap: 6px; }
}

/* ---------- Page intro ---------- */
.page-intro { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.page-intro h1 { font-size: var(--step-4); }
.page-intro p { color: var(--smoke); font-size: var(--step-1); margin: 18px 0 0; max-width: 30em; }

/* ---------- Galleries index and shop grid (natural proportions) ---------- */
.columns { columns: 3 320px; column-gap: clamp(20px, 3vw, 40px); }
/* Row by row, so the order in site-data.js reads left to right; captions share a baseline per row. */
.rows .tile--new-row { grid-column-start: 1; }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); column-gap: clamp(20px, 3vw, 40px); align-items: end; }
.tile { break-inside: avoid; display: block; text-decoration: none; color: inherit; margin-bottom: clamp(36px, 5vw, 64px); }
.tile img { width: 100%; background: var(--concrete-2); }
.tile__caption, .strip__caption { flex-wrap: wrap; column-gap: 16px; row-gap: 2px; }
.tile__title, .strip__title { min-width: 0; overflow-wrap: anywhere; }
.tile__caption { display: flex; justify-content: space-between; margin-top: 14px; }
.tile__title { font-family: var(--display); font-size: var(--step-1); letter-spacing: .03em; }
.tile__meta { color: var(--smoke); font-size: var(--step--1); white-space: nowrap; padding-top: 3px; }

/* ---------- Album and print hover: the print lifts, the title underlines,
   colour work develops from grey, and albums preview their photos (app.js). ---------- */
.thumb { display: block; position: relative; transition: transform .45s var(--ease); }
.thumb img {
  --gray: 0; --lift: 0px;
  filter: grayscale(var(--gray)) drop-shadow(0 var(--lift) calc(var(--lift) * 1.6) rgba(0, 0, 0, .42));
  transition: filter .7s var(--ease), opacity .7s var(--ease);
}
.thumb img.thumb__alt {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; background: none; opacity: 0;
}
.thumb img.thumb__alt.is-visible { opacity: 1; }
.strip { padding-top: 28px; margin-top: -14px; }
.tile__title, .strip__title {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px;
  padding-bottom: 4px; transition: background-size .45s var(--ease);
}
/* any-hover: also covers touchscreen laptops that have a mouse or touchpad. */
@media (any-hover: hover) {
  .is-colour .thumb img { --gray: 1; }
  .tile:hover .thumb, .strip__item:hover .thumb,
  .tile:focus-visible .thumb, .strip__item:focus-visible .thumb { transform: translateY(-14px) scale(1.025); }
  .tile:hover .thumb img, .strip__item:hover .thumb img,
  .tile:focus-visible .thumb img, .strip__item:focus-visible .thumb img { --lift: 22px; --gray: 0; }
  .tile:hover .tile__title, .strip__item:hover .strip__title,
  .tile:focus-visible .tile__title, .strip__item:focus-visible .strip__title { background-size: 100% 2px; }
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.filters button {
  border: 1px solid var(--rule); background: none; cursor: pointer; min-height: 44px; padding: 11px 18px 8px;
  font-family: var(--display); font-size: .9375rem; letter-spacing: .06em;
}
.filters button:hover { border-color: currentColor; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--chalk); border-color: var(--ink); }

/* ---------- Single gallery ---------- */
.gallery-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 6vw, 96px); align-items: end; padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.gallery-head h1 { font-size: var(--step-4); margin-top: 18px; overflow-wrap: anywhere; }
.gallery-head .meta { color: var(--smoke); margin: 10px 0 0; }
.gallery-head .intro { font-size: var(--step-1); max-width: 30em; margin: 0; }
.sequence { display: flex; flex-direction: column; align-items: center; gap: clamp(56px, 9vw, 120px); padding-bottom: clamp(64px, 10vw, 140px); }
.sequence figure { margin: 0; }
.sequence button.frame { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sequence img { max-height: 86vh; width: auto; }
.sequence figcaption { margin-top: 14px; color: var(--smoke); font-size: var(--step--1); text-align: center; }
.sequence .film { width: min(100%, 1100px); }
.sequence .film video { width: 100%; background: #000; }
.next-gallery { border-top: 1px solid var(--rule); padding-block: 48px 64px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.next-gallery a { font-family: var(--display); font-size: var(--step-3); text-decoration: none; }
.next-gallery a:hover { color: var(--accent); }
@media (max-width: 760px) { .gallery-head { grid-template-columns: 1fr; } }

/* ---------- Print page ---------- */
.print-page .viewer { min-height: calc(100vh - var(--header-h) - 120px); padding-block: 40px; }
.print-page .viewer__caption { text-align: left; }
.sizes { border: 0; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.sizes legend { font-family: var(--display); letter-spacing: .06em; margin-bottom: 12px; padding: 0; }
.size { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--rule); padding: 14px 16px 12px; cursor: pointer; }
.size:hover { border-color: var(--smoke); }
.size:has(input:checked) { border-color: var(--chalk); }
.size input { accent-color: var(--dusk-on-dark); width: 18px; height: 18px; margin: 0 12px 0 0; }
.size span:first-of-type { display: flex; align-items: center; }
.size .price { font-family: var(--display); letter-spacing: .04em; }
.print-note { color: var(--smoke); font-size: var(--step--1); margin-top: 18px !important; max-width: 26em; }
.print-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.zoom-btn { padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(64px, 10vw, 140px); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0 12px; border-top: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list .k { display: block; color: var(--smoke); font-size: var(--step--1); }
.contact-list a { font-family: var(--display); font-size: var(--step-1); letter-spacing: .02em; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); letter-spacing: .05em; font-size: .9375rem; }
.field .hint { color: var(--smoke); font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--chalk); border: 1px solid #a9a9a3; border-radius: 0;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--dusk-on-light); outline-offset: 0; border-color: var(--dusk-on-light); }
.field [aria-invalid="true"] { border-color: #9b2c2c; }
.field .error { color: #9b2c2c; font-size: var(--step--1); }
.form-status { grid-column: 1 / -1; margin: 0; padding: 16px 18px 14px; background: var(--chalk); border-left: 3px solid var(--dusk-on-light); }
.form-status[hidden] { display: none; }
@media (max-width: 760px) {
  .contact-grid, .form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #333331; padding-block: 56px 40px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.site-footer img { width: 200px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: flex-end; list-style: none; margin: 0; padding: 0; font-family: var(--display); letter-spacing: .05em; color: var(--smoke-on-dark); }
.footer-links a { text-decoration: none; color: var(--smoke-on-dark); }
.footer-links a:hover { color: var(--chalk); }
.site-footer small { display: block; margin-top: 40px; color: var(--smoke-on-dark); font-size: var(--step--1); }
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-direction: column; }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(20, 20, 20, .97); color: var(--chalk); }
.lightbox::backdrop { background: rgba(20, 20, 20, .9); }
.lightbox__stage { position: absolute; inset: 64px 72px 72px; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lightbox__close { position: absolute; top: 12px; right: 16px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox .icon-btn { border-color: #4a4a47; color: var(--chalk); background: rgba(28, 28, 28, .6); }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--smoke-on-dark); font-size: var(--step--1); }
@media (max-width: 760px) {
  .lightbox__stage { inset: 64px 12px 80px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
