/* Clint McDonald Photography
   Palette taken from the photographs: salt-crust greys, deep lake blue, dry reed gold.
   Newsreader for reading and headings, Archivo for interface text. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-latin-standard-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-latin-standard-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
}

:root {
  --salt: #eceeeb;
  --salt-2: #e0e4e1;
  --paper: #f8f9f7;
  --brine: #17212a;
  --dusk: #4c5864;
  --line: #c6cdca;
  --reed: #87580f;
  --lake: #1c2d39;
  --lake-ink: #dde4e8;
  --alert: #8e2a22;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3.2vw, 2.75rem);
  --max: 1360px;
  color-scheme: light;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (min-width: 900px) { html { font-size: 18px; } }

body {
  margin: 0;
  background: var(--salt);
  color: var(--brine);
  font-family: var(--serif);
  font-optical-sizing: auto;
  line-height: 1.6;
  font-kerning: normal;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 360; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--reed); }
/* The address is one long word; let it wrap on narrow phones. */
a[href^="mailto:"] { overflow-wrap: anywhere; }

::selection { background: var(--lake); color: var(--paper); }
:focus-visible { outline: 2px solid var(--reed); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--dusk); }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 38rem; color: var(--brine); }
.lede p { margin-bottom: 0.6em; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--lake);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  font-family: var(--sans);
}
.skip:focus { top: 0.5rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  padding-top: calc(0.85rem + env(safe-area-inset-top));
  background: rgba(236, 238, 235, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.page-home .site-header { border-bottom-color: transparent; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop { display: none; gap: 1.6rem; }
.site-header nav a {
  font-family: var(--sans);
  font-stretch: 92%;
  font-size: 0.92rem;
  font-weight: 450;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a[aria-current="page"] { border-bottom-color: var(--reed); }

.nav-toggle {
  font-family: var(--sans);
  font-size: 0.92rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--salt);
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0 0.8rem;
}
.nav-panel a {
  display: block;
  padding: 0.85rem var(--gutter) !important;
  font-size: 1.05rem !important;
  border-bottom: 0 !important;
}
.nav-panel a[aria-current="page"] { color: var(--reed); }

@media (min-width: 820px) {
  .nav-toggle, .nav-panel { display: none !important; }
  .nav-desktop { display: flex; }
}

/* ---------- home ---------- */

.hero { margin: 0; }
.hero-photo { display: block; background: var(--salt-2); }
.hero-photo img {
  width: 100%;
  height: clamp(380px, 78svh, 980px);
  object-fit: cover;
  object-position: center 45%;
}
.hero-empty { height: 50svh; }
.plate {
  max-width: var(--max);
  margin: 0.55rem auto 0;
  padding-inline: var(--gutter);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--dusk);
  text-align: right;
}

.statement {
  display: grid;
  gap: 1.5rem 4rem;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
}
.statement h1 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  max-width: 11ch;
  margin: 0;
}
.statement-body { max-width: 34rem; font-size: 1.12rem; }
@media (min-width: 900px) {
  .statement { grid-template-columns: 1.15fr 1fr; align-items: end; }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; margin-top: 1.6rem; }

.section { padding-block: clamp(2rem, 5vw, 4rem); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.4rem;
}
.section-head h2 { margin: 0; }

.covers { display: grid; gap: 2.2rem 1.5rem; }
@media (min-width: 760px) { .covers { grid-template-columns: 1fr 1fr; } }
.covers-index { padding-bottom: 4rem; }

.cover { display: grid; gap: 0.2rem; text-decoration: none; }
.cover-image { display: block; overflow: hidden; background: var(--salt-2); margin-bottom: 0.7rem; }
.cover-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cover-title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.015em; }
.cover:hover .cover-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.cover-count { font-family: var(--sans); font-size: 0.88rem; color: var(--dusk); }
.cover-summary { color: var(--dusk); max-width: 36rem; margin-top: 0.35rem; }

.offer-band { border-top: 1px solid var(--line); }
.offer-list { list-style: none; padding: 0; margin: 0; }
.offer-list li { border-bottom: 1px solid var(--line); }
.offer-list li:first-child { border-top: 1px solid var(--line); }
.offer-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1.5rem;
  padding: 1.1rem 0;
  text-decoration: none;
}
.offer-name { font-size: 1.35rem; line-height: 1.2; }
.offer-price { font-size: 1.35rem; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.offer-unit { grid-column: 1 / -1; font-family: var(--sans); font-size: 0.88rem; color: var(--dusk); }
.offer-list a:hover .offer-name { color: var(--reed); }
@media (min-width: 900px) {
  .offer-list a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 8rem; align-items: baseline; }
  .offer-unit { grid-column: auto; grid-row: 1; grid-column-start: 2; }
}

.prints-band { display: grid; gap: 2rem 3.5rem; align-items: center; padding-bottom: clamp(3rem, 7vw, 6rem); }
.prints-photo img { width: 100%; height: auto; }
.prints-copy { max-width: 30rem; }
@media (min-width: 900px) { .prints-band { grid-template-columns: 1.45fr 1fr; } }

.dev-hint {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 0.8rem var(--gutter);
  background: #f3ead6;
  font-family: var(--sans);
  font-size: 0.9rem;
}

/* ---------- buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  background: var(--lake);
  color: var(--paper);
  border: 1px solid var(--lake);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--brine); color: var(--paper); }
.button-quiet { background: transparent; color: var(--brine); border-color: var(--brine); }
.button-quiet:hover { background: var(--brine); color: var(--paper); }

.link {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--reed);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

/* ---------- page headings ---------- */

.page-head { padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: 1.8rem; }
.page-head h1 { max-width: 18ch; }
.crumb { font-family: var(--sans); font-size: 0.9rem; color: var(--dusk); margin-bottom: 0.6rem; }
.crumb a { color: var(--dusk); }
.empty { padding-bottom: 4rem; }

/* ---------- justified grid ---------- */

.grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  visibility: hidden;
}
.grid.is-ready { visibility: visible; }
.grid .cell {
  display: block;
  flex: none;
  width: min(100%, calc(var(--ar) * 260px));
  max-width: 100%;
  background: var(--salt-2) center / cover no-repeat;
}
.grid .cell picture { height: 100%; }
.grid .cell img { width: 100%; height: auto; aspect-ratio: var(--ar); }
.grid.is-justified .cell img { height: 100%; object-fit: cover; }
.grid .cell:hover img { opacity: 0.92; }
@media (max-width: 699px) { .grid { gap: 6px; } }

.print-note { padding-block: 2.5rem 4rem; color: var(--dusk); }

/* ---------- photo page ---------- */

.photo-figure {
  margin: 0;
  padding: clamp(0.75rem, 2.5vw, 2rem) var(--gutter) 0;
  display: grid;
  justify-items: center;
}
.photo-full img {
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: calc(100svh - 7rem);
}
.photo-info {
  display: grid;
  gap: 1rem 3rem;
  padding-top: 1.6rem;
  padding-bottom: 1rem;
}
.photo-info h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 0.4em; }
.photo-text { max-width: 40rem; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; align-self: start; }
@media (min-width: 900px) {
  .photo-info { grid-template-columns: 1fr auto; }
  .photo-actions { padding-top: 2.2rem; }
}
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 4rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

/* ---------- about ---------- */

.about {
  display: grid;
  gap: 2rem 4rem;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .about-photo { position: sticky; top: 6rem; }
}

.prose { max-width: 36rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose p, .prose li { font-size: 1.08rem; }

/* ---------- services ---------- */

.service {
  display: grid;
  gap: 0.75rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.service h2 { margin-bottom: 0.35em; }
.service-price { font-size: 2rem; line-height: 1.1; margin-bottom: 0.25em; font-variant-numeric: lining-nums; }
.service-unit { font-family: var(--sans); font-size: 0.9rem; color: var(--dusk); margin-bottom: 0.3em; }
.service-body { max-width: 40rem; font-size: 1.05rem; }
@media (min-width: 900px) { .service { grid-template-columns: 1fr 1.5fr; } }

.ticks { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.45rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--reed);
}

.fine {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--dusk);
  max-width: 44rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}

.faq { padding-block: 2rem 5rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-size: 1.18rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.9rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--reed);
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-bottom: 0.4rem; color: var(--brine); }

/* ---------- prints ---------- */

.prints { display: grid; gap: 2rem 4rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .prints { grid-template-columns: 1.1fr 1fr; } }

.price-table {
  width: 100%;
  max-width: 34rem;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.price-table caption { text-align: left; font-size: 1.5rem; padding-bottom: 0.6rem; }
.price-table th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--dusk);
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--brine);
}
.price-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }

.finish { margin-bottom: 2rem; max-width: 32rem; }
.finish h2 { font-size: 1.5rem; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.steps li::marker { font-family: var(--sans); color: var(--reed); font-size: 0.9rem; }

.prints-figure { margin: 0 auto; padding-bottom: 5rem; }
.prints-figure img { width: 100%; height: auto; }

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: 2rem 5rem;
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: 5rem;
}
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact-head { max-width: 30rem; font-size: 1.08rem; }
.contact-photo { margin: 1.5rem 0 0; max-width: 320px; }
.contact-photo figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--dusk); margin-top: 0.4rem; }

form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-family: var(--sans); font-size: 0.92rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #aab3b0;
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
}
textarea { line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brine); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--alert); }
.field-error { color: var(--alert); margin: 0; font-family: var(--sans); font-size: 0.9rem; }
form .button { justify-self: start; }

.note {
  border-left: 3px solid var(--reed);
  background: var(--paper);
  padding: 1rem 1.1rem 0.2rem;
  margin-bottom: 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.note-alert { border-left-color: var(--alert); }
p.note { padding-bottom: 1rem; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

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

.site-footer {
  background: var(--lake);
  color: var(--lake-ink);
  padding-block: 3rem 2rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.site-footer a { color: var(--lake-ink); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #e7c98f; }
.footer-grid { display: grid; gap: 1.5rem 3rem; }
.footer-grid p { margin: 0 0 0.3rem; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-grid nav { display: grid; gap: 0.35rem; align-content: start; }
.footer-grid nav a { text-decoration: none; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Touch screens: at least 44px-tall tap areas for standalone links. The
   padding is cancelled by negative margins, so the layout does not move. */
@media (pointer: coarse) {
  .wordmark { padding-block: 3px; margin-block: -3px; }
  .link, .pager a { padding-block: 0.55rem; margin-block: -0.55rem; }
  .crumb a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
  .footer-grid nav { gap: 0; }
  .footer-grid nav a { padding-block: 0.55rem; }
  .footer-grid a[href^="mailto:"] { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; }
}
.copyright { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(221, 228, 232, 0.2); font-size: 0.82rem; color: #b5c1c8; }

/* ---------- lightbox ---------- */

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101820;
  color: #e9edef;
  /* Keep horizontal drags for the swipe handler in site.js; otherwise the
     browser claims them and fires pointercancel instead of pointerup. */
  touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: rgba(16, 24, 32, 0.96); }
.lb-figure {
  margin: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  padding: 1rem 1rem 0;
}
.lb-figure img { max-width: min(100%, 2000px); max-height: calc(100dvh - 9rem); width: auto; height: auto; }
.lb-figure figcaption { text-align: center; padding-top: 0.75rem; min-height: 2.4rem; }
.lb-title { display: block; font-size: 1.15rem; }
.lb-meta { display: block; font-family: var(--sans); font-size: 0.85rem; color: #aab6be; }
.lb-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.75rem calc(0.9rem + env(safe-area-inset-bottom));
  font-family: var(--sans);
  font-size: 0.92rem;
}
.lb-bar button, .lb-bar a {
  background: transparent;
  color: #e9edef;
  border: 1px solid rgba(233, 237, 239, 0.35);
  border-radius: 2px;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.lb-bar button:hover, .lb-bar a:hover { border-color: #e9edef; }
.lb-bar :focus-visible { outline-color: #e7c98f; }
.lb-bar p { margin: 0; min-width: 5.5rem; text-align: center; color: #aab6be; }

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

/* Long-press on phones would otherwise offer "Save image". */
picture img, .lightbox img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
