/*
  The site's design (Idaho Permit Photos), taken from the owner's finished design. Fonts are self-hosted
  (public/fonts, SIL Open Font License) because the Content-Security-Policy allows no third-party fonts.
  The owner admin (/admin) keeps its own stylesheet, styles.css.
*/

/* ---------- fonts ---------- */
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/overpass-latin-wght.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-opsz.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}

/* ---------- design ---------- */
:root {
  --vellum: #EEF0EC;
  --paper: #F7F8F5;
  --ink: #1E2A36;
  --slate: #5A6672;
  --concrete: #C5CAC3;
  --orange: #FF6B1A;
  --line: 1.5px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(8px, 1.2vw, 14px);
  --sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--sans); margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons and links */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: var(--orange);
  border: var(--line) solid var(--ink);
  border-radius: 2px;
  padding: 0.85em 1.3em 0.75em;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.text-link {
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--orange);
}
.text-link:hover { text-decoration-color: currentColor; }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 22px;
}
.site-header .logo img { width: clamp(150px, 16vw, 190px); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.site-nav a:not(.btn) {
  font-family: var(--sans); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.site-nav .btn { font-size: 0.9375rem; padding: 0.7em 1.05em 0.6em; }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* Plan sheet + title block: the system used by every image on the page */
.sheet {
  margin: 0;
  border: var(--line) solid var(--ink);
  background: var(--paper);
}
.titleblock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 0;
  border-top: var(--line) solid var(--ink);
}
.titleblock > div {
  padding: 12px 16px 10px;
  border-left: var(--line) solid var(--ink);
  margin-left: calc(var(--line) * -1);
}
.titleblock dt {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600;
  color: var(--slate); line-height: 1.3;
}
.titleblock dd {
  margin: 2px 0 0; font-family: var(--sans); font-weight: 700;
  font-size: 1rem; line-height: 1.35;
}

/* Clickable photos */
.shot {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--concrete);
  cursor: zoom-in; overflow: hidden;
}
.shot img { width: 100%; }
.tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--sans); font-weight: 700; font-size: 0.8125rem;
  line-height: 1; padding: 7px 10px 5px;
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
}
.tag--proposed { background: var(--orange); color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.hero-copy {
  display: grid; gap: 28px 48px;
  grid-template-columns: 1fr;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero-side { align-self: end; max-width: 30rem; }
.hero-side p { font-size: 1.25rem; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
@media (min-width: 960px) {
  .hero-copy { grid-template-columns: 7fr 4fr; }
}
.hero-sheet .shot img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 100%; }
@media (max-width: 760px) {
  .hero-sheet .shot img { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-sheet .shot img { animation: print 1.2s cubic-bezier(.2,.7,.2,1) .15s both; }
  .hero-sheet .titleblock > div { animation: settle .5s ease-out both; }
  .hero-sheet .titleblock > div:nth-child(1) { animation-delay: 1.05s; }
  .hero-sheet .titleblock > div:nth-child(2) { animation-delay: 1.15s; }
  .hero-sheet .titleblock > div:nth-child(3) { animation-delay: 1.25s; }
  .hero-sheet .titleblock > div:nth-child(4) { animation-delay: 1.35s; }
}
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: var(--line) solid var(--ink); }
.section h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.025em;
  max-width: 20ch;
}
.lede { max-width: 62ch; margin-top: 24px; color: var(--ink); }
.lede + .lede { margin-top: 16px; }

/* Pricing: graphic scale */
.scale { margin: clamp(48px, 6vw, 72px) 0 0; }
.dim { position: relative; height: 56px; }
.dim-line {
  position: absolute; bottom: 8px; height: 16px;
  left: var(--from); width: calc(var(--to) - var(--from));
  border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
}
.dim-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; transform: translateY(-50%); background: var(--ink);
}
.dim--ours .dim-line { border-color: var(--orange); border-width: 0 3px; }
.dim--ours .dim-line::before { height: 5px; background: var(--orange); }
.dim-label {
  position: absolute; font-family: var(--sans); font-weight: 700;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem); line-height: 1.2; white-space: nowrap;
}
.dim--agency .dim-label { bottom: 30px; right: 0; text-align: right; }
.dim--ours .dim-label { bottom: 9px; left: calc(var(--to) + 14px); }
@media (min-width: 760px) {
  .dim--agency .dim-label { left: var(--from); right: auto; width: calc(var(--to) - var(--from)); text-align: center; }
}
.scale-bar { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.scale-bar span { height: 12px; border: var(--line) solid var(--ink); }
.scale-bar span + span { border-left: 0; }
.scale-bar span:nth-child(odd) { background: var(--ink); }
.scale-ticks { position: relative; height: 28px; margin-top: 8px; }
.scale-ticks span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-family: var(--sans); font-weight: 600; font-size: 0.875rem; color: var(--slate);
}
.scale-ticks span:first-child { transform: none; }
.scale-ticks span:last-child { transform: translateX(-100%); }

.included {
  list-style: none; padding: 0; margin: clamp(48px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px 40px;
}
.included li { border-top: var(--line) solid var(--ink); padding-top: 14px; }
.included strong { display: block; font-family: var(--sans); font-weight: 800; font-size: 1.1875rem; line-height: 1.3; }
.included span { display: block; margin-top: 6px; color: var(--slate); font-size: 1.0625rem; line-height: 1.55; }

/* Process */
.steps {
  list-style: none; padding: 0; margin: clamp(48px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px 40px;
}
.steps li { border-top: var(--line) solid var(--ink); padding-top: 16px; }
.steps li.is-free { border-top: 6px solid var(--orange); padding-top: 11.5px; }
.step-n {
  display: block; font-family: var(--sans); font-weight: 900;
  font-size: 3rem; line-height: 1; letter-spacing: -0.03em;
}
.steps h3 { font-size: 1.3125rem; font-weight: 800; line-height: 1.25; margin-top: 18px; }
.steps p { margin-top: 10px; color: var(--slate); font-size: 1.0625rem; line-height: 1.55; }

/* Case study */
.cs-head { display: grid; gap: 40px 64px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .cs-head { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.cs-facts { margin: 0; border: var(--line) solid var(--ink); background: var(--paper); }
.cs-facts > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px;
  padding: 12px 16px 10px;
}
.cs-facts > div + div { border-top: var(--line) solid var(--ink); }
.cs-facts dt { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; color: var(--slate); line-height: 1.45; }
.cs-facts dd { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.4; }

.views { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: clamp(56px, 7vw, 88px); }
.pair { display: grid; gap: var(--gap); padding: var(--gap); }
.pair--even  { grid-template-columns: 1fr 1fr; }
.pair--wide  { grid-template-columns: 0.75fr 1.3333fr; }
.pair--stack { grid-template-columns: 1.13fr 1fr; }
.pair .stack { display: grid; gap: var(--gap); align-content: start; }
.pair--wide > .shot:first-child img,
.pair--stack > .shot:first-child img {
  position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 62%;
}
.sheet-caption {
  display: grid; grid-template-columns: minmax(170px, 15rem) 1fr;
  border-top: var(--line) solid var(--ink);
}
.sheet-caption > * { padding: 14px 16px 12px; }
.sheet-caption h3 { font-size: 1.125rem; font-weight: 800; line-height: 1.3; border-right: var(--line) solid var(--ink); }
.sheet-caption p { font-size: 1.0625rem; line-height: 1.55; max-width: 62ch; }

@media (max-width: 760px) {
  .pair--even, .pair--wide, .pair--stack { grid-template-columns: 1fr; }
  .pair > .shot:first-child { aspect-ratio: 4 / 5; }
  .pair > .shot:first-child img {
    position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 70%;
  }
  .sheet-caption { grid-template-columns: 1fr; }
  .sheet-caption h3 { border-right: 0; border-bottom: var(--line) solid var(--ink); }
}

/* Closing band: testimonial + contact + footer */
.closing { background: var(--ink); color: var(--paper); }
.closing h2, .closing h3 { color: var(--paper); }
.testimonial { padding-block: clamp(80px, 11vw, 144px) clamp(64px, 9vw, 112px); }
.testimonial figure {
  margin: 0; display: grid; gap: 28px 64px;
  grid-template-columns: 1fr;
  grid-template-areas: "stars" "quote" "cap";
}
.testimonial .stars { grid-area: stars; }
.testimonial blockquote { grid-area: quote; }
.testimonial figcaption { grid-area: cap; }
@media (min-width: 960px) {
  .testimonial figure {
    grid-template-columns: 1fr 2.4fr;
    grid-template-areas: "stars quote" "cap quote";
    grid-template-rows: auto 1fr;
  }
  .testimonial figcaption { margin-top: 0; }
}
.stars { display: flex; gap: 6px; align-self: start; }
.stars svg { width: 28px; height: 28px; fill: var(--orange); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-family: var(--serif); font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.45; text-indent: -0.42em; max-width: 46ch;
}
.testimonial figcaption { font-family: var(--sans); line-height: 1.4; }
.testimonial figcaption strong { display: block; font-weight: 800; font-size: 1.125rem; }
.testimonial figcaption span { color: #B7C0C8; font-weight: 600; font-size: 1rem; }

.contact { border-top: var(--line) solid #3A4856; padding-block: clamp(72px, 10vw, 128px); }
.contact-grid { display: grid; gap: 32px 64px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact h2 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; max-width: 12ch; }
.contact p { max-width: 34rem; color: #D5DBE0; }
.contact .btn { border-color: var(--orange); margin-top: 28px; }
.contact .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .email { display: block; margin-top: 16px; font-family: var(--sans); font-weight: 600; font-size: 1rem; color: #B7C0C8; }

.site-footer { border-top: var(--line) solid #3A4856; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-block: 28px 36px;
  font-family: var(--sans); font-size: 0.875rem; color: #B7C0C8;
}
.site-footer img { width: 170px; }

/* Image viewer */
.viewer {
  padding: 0; border: 0; background: transparent; color: var(--paper);
  max-width: min(96vw, 1500px); max-height: 96vh;
}
.viewer::backdrop { background: rgba(30, 42, 54, 0.92); }
.viewer-inner { display: grid; gap: 12px; justify-items: center; }
.viewer img { max-width: 100%; max-height: calc(96vh - 72px); width: auto; object-fit: contain; }
.viewer-bar { display: flex; gap: 24px; align-items: center; justify-content: space-between; width: 100%; font-family: var(--sans); }
.viewer-cap { font-weight: 600; font-size: 0.9375rem; }
.viewer-close {
  font: 700 0.9375rem var(--sans); color: var(--ink); background: var(--paper);
  border: 0; border-radius: 2px; padding: 8px 14px 6px; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: settle .18s ease-out; }
}

/* ---------- positions the design set inline (the CSP allows no style="" attributes) ---------- */
.dim--agency { --from: 50%; --to: 100%; }
.dim--ours { --from: 0%; --to: 12.5%; }
.scale-ticks span:nth-child(1) { left: 0; }
.scale-ticks span:nth-child(2) { left: 25%; }
.scale-ticks span:nth-child(3) { left: 50%; }
.scale-ticks span:nth-child(4) { left: 75%; }
.scale-ticks span:nth-child(5) { left: 100%; }

/* ---------- what every page of the site also needs ---------- */
/* Focus: the design's orange ring is under 3:1 on the light backgrounds (WCAG 1.4.11), so it is ink there;
   on the dark closing band orange has the contrast and stays. */
:focus-visible { outline-color: var(--ink); }
.closing :focus-visible { outline-color: var(--orange); }
main:focus { outline: none; }
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  font-family: var(--sans); font-weight: 700;
  background: var(--paper); color: var(--ink);
  border: var(--line) solid var(--ink); padding: 8px 14px 6px;
}
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.site-notice {
  font-family: var(--sans); font-weight: 600; text-align: center;
  background: var(--orange); color: var(--ink); padding: 10px var(--gutter);
  white-space: pre-line;
}
.site-footer a { color: inherit; }

/* Privacy and not-found pages: plain text in the design's type. */
.page { padding-block: clamp(48px, 8vw, 96px); }
.page h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 800;
  line-height: 0.98; letter-spacing: -0.03em; max-width: 14ch;
}
.page h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.1; margin-top: 48px; }
.page p { max-width: 62ch; margin-top: 16px; }
.page .actions { margin-top: 32px; }
