/* Scott Falconer Photography, 2026 redesign. The photographs are the design; the chrome recedes.
   Paper, ink, one lake-blue accent. Spectral for words, Archivo for controls. */

:root {
  --paper: #fafafa;
  --ink: #141414;
  --ink-2: #5f5f5f;   /* 7.0:1 on paper */
  --rule: #e3e3e3;
  --lake: #24506e;    /* 8.2:1 on paper */
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1160px;
  --row-h: 230px;
  --t-fast: 160ms;
  --t-mid: 220ms;
  --t-img: 400ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.6; font-weight: 400;
}
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--lake); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lake); outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; font-family: var(--sans); }
.skip:focus { left: 8px; z-index: 50; }

/* Masthead */
.masthead { position: relative; z-index: 5; padding: 22px 0 16px; border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.005em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.nav { font-family: var(--sans); font-size: 15px; font-weight: 500; display: flex; gap: 4px 26px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.nav a { position: relative; color: inherit; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) ease-out; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: var(--lake); }
.menu-btn { display: none; font: 500 15px var(--sans); background: none; border: 1px solid currentColor; border-radius: 3px; padding: 6px 12px; color: inherit; cursor: pointer; }

/* Masthead over the hero (home): the name is set large in the hero, so the masthead carries only the nav */
.home .masthead .brand { display: none; }
.home .masthead .wrap { justify-content: flex-end; }
.over-hero { position: absolute; left: 0; right: 0; top: 0; border-bottom: 0; color: #fff; }
.over-hero .brand, .over-hero .nav a { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.over-hero .nav a:hover { color: #fff; }
.over-hero .brand:hover { color: #fff; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #1a1a1a; }
.hero .slides, .hero .slides img { position: absolute; inset: 0; }
.hero .slides img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease-in-out; transform: scale(1.03); }
.hero .slides img.is-on { opacity: 1; transform: scale(1); transition: opacity 1.6s ease-in-out, transform 8s linear; }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 32%, rgba(0,0,0,0) 62%), linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 26%); }
.hero .hero-text { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding: 0 0 56px; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1.02; letter-spacing: -0.02em; margin: 0; max-width: 12ch; }
.hero .sub { font-family: var(--sans); font-size: 17px; margin: 14px 0 0; opacity: .92; max-width: 40ch; }
.hero .dots { position: absolute; right: var(--gutter); bottom: 22px; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero .dots button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; background: transparent; padding: 0; cursor: pointer; opacity: .8; }
.hero .dots button[aria-pressed="true"] { background: #fff; }
.hero .dots button:focus-visible { outline-color: #fff; }

/* Page body */
main { padding: 40px 0 72px; }
.home main { padding-top: 0; }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: 40px; }
h2 { font-size: 28px; margin-top: 1.6em; }
h3 { font-size: 21px; margin-top: 1.4em; }
h1 + p, h2 + p, h3 + p { margin-top: .6em; }
p { margin: 0; }
.lede { font-size: 21px; line-height: 1.5; }
.meta { font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.section { padding: 56px 0 0; }
.section h2 { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.section-head .meta a { color: var(--ink-2); }

/* Gallery tiles */
.tiles { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tiles a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #e8e8e8; text-decoration: none; color: #fff; }
.tiles img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-img) ease-out, transform 600ms ease-out; }
.tiles img.is-loaded { opacity: 1; }
.tiles a:hover img { transform: scale(1.025); }
.tiles .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-family: var(--serif); font-size: 24px; line-height: 1.15; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.tiles .label small { display: block; font-family: var(--sans); font-size: 13px; opacity: .9; margin-top: 3px; }

/* Home band */
.band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--rule); }
.band h2 { margin-top: 0; }
.band p { margin-top: .6em; }
.band .more { display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 15px; font-weight: 500; }

/* Gallery pages */
.gal-nav { font-family: var(--sans); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 18px 0 0; padding: 0 0 14px; list-style: none; border-bottom: 1px solid var(--rule); }
.gal-nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.gal-nav a:hover { color: var(--lake); }
.gal-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.intro { max-width: 66ch; margin-top: 18px; }
.intro > * + * { margin-top: 1em; }
.intro h2 { font-size: 24px; margin-top: 1.4em; }
.grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; }
.grid li { margin: 0; }
.grid::after { content: ""; flex-grow: 999999; }
.grid a { display: block; background: #ededed; }
.grid img { width: 100%; height: auto; opacity: 0; transition: opacity var(--t-img) ease-out; }
.grid img.is-loaded { opacity: 1; }
.grid a:focus-visible { outline-offset: 0; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.96); display: none; opacity: 0; transition: opacity var(--t-mid) ease-out; }
.lb.is-open { display: block; }
.lb.is-in { opacity: 1; }
.lb figure { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transform: scale(1.02); transition: opacity 180ms ease-out, transform var(--t-mid) ease-out; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb img.is-in { opacity: 1; transform: scale(1); }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 500 15px var(--sans); padding: 12px; opacity: .85; }
.lb button:hover { opacity: 1; }
.lb button:focus-visible { outline-color: #fff; }
.lb .close { top: 10px; right: 12px; }
.lb .prev, .lb .next { top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; padding: 20px 16px; }
.lb .prev { left: 8px; } .lb .next { right: 8px; }
.lb .count { position: absolute; left: 16px; bottom: 14px; color: #fff; font: 400 14px var(--sans); opacity: .8; }
body.lb-open { overflow: hidden; }

/* Forms */
.form { max-width: 560px; margin-top: 28px; font-family: var(--sans); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .field { margin-top: 16px; }
.form label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: 400 16px var(--sans); padding: 10px 12px; border: 1px solid #bdbdbd; border-radius: 3px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--lake); outline: 2px solid var(--lake); outline-offset: 1px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 6px 0; }
.form .check input { width: 18px; height: 18px; accent-color: var(--lake); }
.form .req { color: var(--ink-2); font-weight: 400; }
.button:disabled { background: #9a9a9a; }
.button { display: inline-block; font: 500 15px var(--sans); color: #fff; background: var(--ink); border: 0; border-radius: 3px; padding: 11px 18px; cursor: pointer; text-decoration: none; }
.button:hover { background: var(--lake); color: #fff; }
.button:disabled { cursor: not-allowed; }
.notice { font-family: var(--sans); font-size: 15px; color: var(--ink-2); border-left: 2px solid var(--rule); padding: 6px 14px; margin-top: 18px; max-width: 560px; }
.contact-line { font-size: 24px; margin-top: 12px; }
.form .hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.form .field-label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.form-status { max-width: 560px; margin-top: 18px; font-family: var(--sans); font-size: 16px; }
.form-status p { border-left: 3px solid var(--lake); padding: 10px 14px; background: #fff; }
.form-status p.err { border-left-color: #a33a2a; }
.contact-line a { text-decoration: none; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 26px 0 40px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
footer a { color: var(--ink-2); }

@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 52px; }
}
@media (max-width: 720px) {
  :root { --row-h: 160px; }
  h1 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  .hero { min-height: 460px; }
  .hero .hero-text { padding-bottom: 48px; }
  .lb figure { padding: 52px 8px; }
  .lb .prev, .lb .next { top: auto; bottom: 4px; transform: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tiles .label { font-size: 19px; padding: 28px 12px 10px; }
  .menu-btn { display: inline-block; }
  .masthead .wrap { gap: 10px 12px; }
  .brand { font-size: 20px; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 2px; padding-top: 10px; }
  .nav.is-open { display: flex; }
  .over-hero .menu-btn { color: #fff; }
}
@media print {
  .masthead, .hero, .gal-nav, footer, .form, .lb { display: none; }
  .grid img { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero .slides img { transform: none; }
  .tiles a:hover img { transform: none; }
}
