/* Denver Wedding Photographers — mobile-first styles */

:root {
  --ink: #16181A;
  --ink-2: #3F4245;
  --muted: #5B5F63;
  --line: #E7E4DE;
  --line-strong: #CFCBC3;
  --ground: #FFFFFF;
  --sand: #F4F2EE;
  --pine: #1E4D3A;
  --pine-dark: #143528;
  --gold: #9A6F08;
  --radius: 14px;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 220px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.muted { color: var(--muted); font-size: 15px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 12px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand span { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.nav { display: flex; gap: 18px; overflow-x: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; white-space: nowrap; }
.nav a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { background: var(--sand); }
.hero-inner { padding-top: 36px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.04; letter-spacing: -.01em; max-width: 820px; }
.hero h1 em { color: var(--pine); }
.hero-sm h1 { font-size: 36px; }
.lede { font-size: 17px; line-height: 1.55; color: #4A4D50; max-width: 640px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; max-width: 720px; }
.stats div { background: var(--ground); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; }
.stats dd.accent { color: var(--pine); }
.stats dt { font-size: 13px; color: var(--muted); line-height: 1.3; }

/* Filters */
.filters { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.filters-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.label { font-size: 13px; font-weight: 600; color: #4A4D50; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--ground); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
select { height: 44px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 36px 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316181A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; }

/* Results */
.results { padding-top: 20px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 18px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.results-head h2 { font-size: 19px; font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: var(--ground); }
.card[hidden] { display: none; }
.card-photo { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo img.failed { display: none; }
.initials { font-family: var(--serif); font-size: 44px; color: #3A3E3B; }
.badge { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--pine); padding: 5px 10px; border-radius: 999px; }
.card-featured { border: 2px solid var(--pine); }
.credit { position: absolute; left: 8px; bottom: 8px; font-size: 12px; color: #fff; background: rgba(22,24,26,.62); padding: 3px 8px; border-radius: 6px; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.area { font-size: 14px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price span { font-size: 13px; color: var(--muted); }
.price strong { font-size: 30px; font-weight: 600; color: var(--pine); letter-spacing: -.01em; line-height: 1.1; }
.note { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rating { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gold); }
.rating strong { color: var(--ink); }
.rating span { color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--pine); color: #fff; flex-grow: 1; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-radius: 999px; }
.btn-light { background: #fff; color: var(--ink); align-self: flex-start; }
.btn-light:hover { background: #E9E7E2; color: var(--ink); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--ground); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 0 12px; font-size: 14px; flex-shrink: 0; }
.btn-icon { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-icon:hover { border-color: var(--ink); color: var(--ink); }

/* Empty */
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.empty[hidden] { display: none; }
.empty-title { font-size: 17px; font-weight: 600; }

/* Unpublished */
.unpublished { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.unpublished h2 { font-size: 19px; font-weight: 600; }
.rows { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
.row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; }
.row[hidden] { display: none; }
.avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; color: #3A3E3B; }
.row-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: 15px; font-weight: 600; }
.row-meta { font-size: 13px; color: var(--muted); }

.tone-0 { background: #E6E1D8; } .tone-1 { background: #DCE4DE; } .tone-2 { background: #E4DDD5; }
.tone-3 { background: #DADFE5; } .tone-4 { background: #E8E4DA; } .tone-5 { background: #DDE2D9; }

/* How it works */
.how { margin-top: 40px; background: var(--sand); padding: 40px 0; }
.how .wrap { display: flex; flex-direction: column; gap: 20px; }
.serif-h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.how-grid h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.how-grid p { font-size: 15px; color: #4A4D50; }

/* FAQ */
.faq { max-width: 800px; padding-top: 44px; padding-bottom: 48px; display: flex; flex-direction: column; }
.faq h2 { margin-bottom: 16px; }
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 17px; font-weight: 600; padding: 12px 28px 12px 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 14px; font-size: 15px; line-height: 1.6; color: #4A4D50; }

/* Inner pages */
.prose-wrap { max-width: 860px; padding-top: 36px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 36px; }
.prose-wrap h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.prose { gap: 14px; }
.prose h2 { margin-top: 18px; margin-bottom: 0; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose ul, .tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.tips li { line-height: 1.6; color: var(--ink-2); }
.callout { background: #FFF6E0; border: 1px solid #EBD9A8; border-radius: 10px; padding: 12px 14px; }

.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 14px; }
.bar-track { height: 14px; background: var(--sand); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--pine); border-radius: 4px; }
.bar-val { font-weight: 600; text-align: right; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font-weight: 600; font-size: 13px; color: #4A4D50; position: sticky; top: 0; }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.num { font-weight: 600; color: var(--pine); }

/* Footer */
.site-footer { background: var(--ink); color: #E9E7E2; }
.footer-row { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.footer-cta { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.footer-title { font-family: var(--serif); font-size: 26px; color: #fff; }
.footer-cta p:not(.footer-title) { color: #C9C6BF; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer-links a { color: #E9E7E2; padding: 6px 0; }
.footer-links a:hover { color: #fff; }
.muted-light { color: #A9A69F; margin-top: 8px; }

/* Larger screens */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dd { font-size: 28px; }
  .stats div { padding: 16px; }
  .hero h1 { font-size: 56px; }
  .hero-sm h1 { font-size: 46px; }
}
@media (min-width: 900px) {
  .header-row { padding-top: 14px; padding-bottom: 14px; }
  .brand span { font-size: 22px; }
  .nav { gap: 24px; }
  .hero-inner { padding-top: 56px; padding-bottom: 48px; gap: 20px; }
  .hero h1 { font-size: 72px; }
  .lede { font-size: 18px; }
  .filters-row { grid-template-columns: minmax(0, 1fr) 180px 200px; align-items: end; padding-top: 14px; padding-bottom: 14px; }
  .field-wide { grid-column: auto; }
  .chips { margin: 0; padding: 0 0 2px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-row { flex-direction: row; justify-content: space-between; }
  .serif-h2 { font-size: 38px; }
  html { scroll-padding-top: 100px; }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
