/* David Lee Photography · Frederick, MD
   Layout idea: photo-first pages. Big images with crop-bracket frames, quiet serif headlines, one brick accent per view. */
:root {
  --surface: #f6f1e9;          /* Paper */
  --surface-raised: #fffdf9;
  --text: #1e1b18;             /* Ink */
  --text-muted: #46555e;       /* Slate */
  --accent: #a4472f;           /* Brick */
  --accent-hover: #7f3622;
  --on-accent: #fffdf9;
  --accent-soft: #f3ded6;
  --line: #cfc6b8;             /* Stone */
  --line-strong: #8c8377;
  --band: #1e1b18;
  --band-text: #f6f1e9;
  --band-muted: #cfc6b8;
  --band-accent: #d9775a;      /* Brick light */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 2px;
  --radius-md: 6px;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1e1b18; --surface-raised: #282420; --text: #f6f1e9; --text-muted: #cfc6b8;
    --accent: #d9775a; --accent-hover: #e8957c; --on-accent: #1e1b18; --accent-soft: #3a2a24;
    --line: #3d3833; --line-strong: #7d756b; --band: #12100e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1e1b18; --surface-raised: #282420; --text: #f6f1e9; --text-muted: #cfc6b8;
  --accent: #d9775a; --accent-hover: #e8957c; --on-accent: #1e1b18; --accent-soft: #3a2a24;
  --line: #3d3833; --line-strong: #7d756b; --band: #12100e; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface-raised); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.lede { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 56ch; }
.muted { color: var(--text-muted); }
section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.raised { background: var(--surface-raised); border-block: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 500; line-height: 20px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 12px; }
.brand { display: flex; flex: 0 0 auto; }
.brand img { height: 54px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; padding-block: 6px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 40px; padding: 8px 16px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--text); font: inherit; font-size: 15px; padding: 8px 14px; cursor: pointer; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 12px; min-height: 46px; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 420px) { .brand img { height: 38px; } }

/* Crop-bracket frame: the brand's viewfinder corners */
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px); border: 0 solid var(--band-accent); pointer-events: none; z-index: 1; }
.frame::before { top: 16px; right: 16px; border-top-width: 5px; border-right-width: 5px; }
.frame::after { bottom: 16px; left: 16px; border-bottom-width: 5px; border-left-width: 5px; }
.frame img { border-radius: var(--radius-sm); width: 100%; }
figure { margin: 0; }
figcaption { font-size: 13px; line-height: 18px; color: var(--text-muted); margin-top: 10px; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; }
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); }
.hero-img img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-img { order: -1; } }

/* Page hero for service pages */
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; }
.page-hero .hero-copy { gap: 20px; }
.page-hero .hero-img img { aspect-ratio: 4 / 5; object-fit: cover; max-height: 640px; }
.page-hero .hero-img.wide img { aspect-ratio: 5 / 4; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } .page-hero .hero-img img { aspect-ratio: 4 / 3; } }
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-line .from { font-size: 14px; color: var(--text-muted); }
.price-line .amount { font-family: var(--font-display); font-size: 30px; font-weight: 600; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1060px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--line-strong); color: var(--text); }
.card:hover .card-cta { text-decoration: underline; }
.card .card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card .card-img::before, .card .card-img::after { content: ""; position: absolute; width: 26px; height: 26px; border: 0 solid var(--band-accent); z-index: 1; }
.card .card-img::before { top: 12px; right: 12px; border-top-width: 4px; border-right-width: 4px; }
.card .card-img::after { bottom: 12px; left: 12px; border-bottom-width: 4px; border-left-width: 4px; }
.card-body { padding: 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-body h3 { font-size: 24px; }
.card-body p { font-size: 15px; line-height: 22px; color: var(--text-muted); }
.card-foot { margin-top: auto; padding: 0 22px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-price { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.card-price small { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--text-muted); }
.card-cta { font-size: 14px; font-weight: 500; color: var(--accent); }

/* Gallery (masonry by columns) */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; border-radius: var(--radius-sm); transition: opacity .2s; }
.gallery button:hover img { opacity: .92; }
.gallery figcaption { margin: 8px 0 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.steps .num { font-family: var(--font-display); font-size: 38px; line-height: 1; font-weight: 600; color: var(--accent); }
.steps h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 500; letter-spacing: 0; }
.steps p { color: var(--text-muted); font-size: 16px; }

/* Lists of what you get */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 12px; border: 0 solid var(--accent); border-bottom-width: 3px; border-left-width: 3px; }
.checklist li:first-child { border-top: 1px solid var(--line); }

/* Quote / local line */
.local { text-align: center; }
.local p { font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.35; max-width: 820px; margin: 0 auto; }

/* Dark CTA band */
.band { background: var(--band); color: var(--band-text); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.band h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 680px; color: var(--band-text); }
.band p { color: var(--band-muted); max-width: 60ch; margin-top: 12px; }
.band .btn-primary { background: var(--band-accent); color: #1e1b18; }
.band .btn-primary:hover { background: #e8957c; color: #1e1b18; }
.band .btn-secondary { color: var(--band-text); border-color: #7d756b; }
.band .btn-secondary:hover { border-color: var(--band-text); color: var(--band-text); }
.band :focus-visible { box-shadow: 0 0 0 2px var(--band), 0 0 0 4px var(--band-accent); }

/* Strip of recent work on home */
.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.strip a { display: block; overflow: hidden; border-radius: var(--radius-sm); position: relative; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.strip a:hover img { transform: scale(1.03); }
.strip .s1 { grid-column: span 5; grid-row: span 2; }
.strip .s2 { grid-column: span 4; }
.strip .s3 { grid-column: span 3; }
.strip .s4 { grid-column: span 3; }
.strip .s5 { grid-column: span 4; }
.strip { grid-auto-rows: clamp(150px, 19vw, 270px); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; } .strip a, .strip .s1 { grid-column: span 1; grid-row: auto; aspect-ratio: 1 / 1; } }

/* Pricing */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; display: grid; gap: 10px; align-content: start; }
.tile h3 { font-size: 24px; }
.tile .amount { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .amount small { font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--text-muted); }
.tile p { font-size: 15px; color: var(--text-muted); }
.tile ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }
.tile.featured { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.tag { display: inline-block; justify-self: start; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 3px 10px; border-radius: 9999px; background: var(--accent-soft); color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
@media (max-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--text-muted); max-width: 65ch; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--text-muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-msg { font-size: 15px; color: var(--text-muted); }
.form-msg.error { color: var(--accent); }
.notice { grid-column: 1 / -1; background: var(--surface-raised); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 16px 18px; border-radius: var(--radius-sm); }
.contact-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; display: grid; gap: 14px; align-content: start; }
.contact-card a { font-weight: 500; }

/* Lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lightbox::backdrop { background: rgba(18, 16, 14, .94); }
.lb-inner { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 56px 16px 16px; gap: 12px; }
.lb-img { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lb-cap { color: #cfc6b8; text-align: center; font-size: 14px; min-height: 20px; }
.lb-btn { position: fixed; background: rgba(30, 27, 24, .7); color: #f6f1e9; border: 1px solid #7d756b; border-radius: var(--radius-md); font: inherit; font-size: 15px; padding: 10px 14px; cursor: pointer; }
.lb-btn:hover { border-color: #f6f1e9; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 56px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .brand img { height: 42px; }
.site-footer .small { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 560px) {
  .gallery { columns: 2; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; }
  .gallery figcaption { display: none; }
}
