/* Isa Mercado Photography — contact-sheet look: neutral white, black type, film-edge orange. */
:root {
  --page: #F4F4F2;
  --sheet: #FFFFFF;
  --ink: #141414;
  --text: #262626;
  --muted: #5F5F5F;
  --rule: #DADAD6;
  --rule-strong: #B9B9B4;
  --film: #C2410C;
  --film-dark: #9A3412;
  --ok: #2F6B3F;
  --ok-wash: #E7F1E9;
  --error: #B42318;
  --error-wash: #FBEAE8;
  --dark: #0E0E0E;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }
body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.1; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.375rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 36px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--film); outline-offset: 3px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 2px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: #333; border-color: #333; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--page); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.text-link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 700 1rem/1.4 var(--body); color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--film); text-decoration-thickness: 2px; }
.icon-button {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--rule-strong); border-radius: 2px;
  color: inherit; cursor: pointer;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 244, 242, 0.95); border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { font-family: var(--display); font-size: 1.375rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { font-family: var(--body); font-size: 0.875rem; color: var(--muted); margin-left: 4px; letter-spacing: 0.02em; }
.main-nav { display: none; gap: 26px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 6px 0; }
.main-nav a:hover { text-decoration: underline; text-decoration-color: var(--film); text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-button { display: none; }
}
@media (max-width: 400px) { .wordmark span { display: none; } }

#mobile-menu {
  width: min(92vw, 420px); max-width: none; height: 100dvh; max-height: none;
  margin: 0 0 0 auto; padding: 20px 24px; border: 0; background: var(--sheet); color: var(--text);
}
#mobile-menu::backdrop { background: rgba(14, 14, 14, 0.5); }
.menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.menu-top h2 { font-size: 1.75rem; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { font-size: 1.375rem; font-weight: 500; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* Hero */
.hero { padding-bottom: 56px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: clamp(300px, 62vh, 680px); object-fit: cover; }
.hero-copy { display: grid; gap: 24px; padding-top: 28px; }
.lede { font-size: 1.125rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
@media (min-width: 960px) {
  .hero { padding-bottom: 88px; }
  .hero-copy { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 64px; padding-top: 40px; }
}

/* Section heads */
.section-head { display: grid; gap: 12px; margin-bottom: 28px; }
.section-head p { max-width: 62ch; color: var(--muted); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr 1.1fr; align-items: end; gap: 48px; margin-bottom: 36px; }
}

/* Work: the contact sheet */
.work-section { padding: 64px 0 80px; background: var(--sheet); border-block: 1px solid var(--rule); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--sheet); color: var(--ink); font: 500 0.9375rem/1 var(--body); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { color: var(--muted); font-size: 0.9375rem; margin: 14px 0 18px; }

.sheet {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px 10px;
}
.sheet::after { content: ""; flex-grow: 999; }
.frame { flex: var(--ar) 1 calc(var(--ar) * 130px); display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .sheet { gap: 22px 14px; }
  .frame { flex-basis: calc(var(--ar) * 230px); }
}
.frame-open {
  display: block; padding: 0; border: 0; background: var(--page); cursor: zoom-in;
  aspect-ratio: var(--ar);
}
.frame-open img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.frame-open:hover img { opacity: 0.88; }
.frame-caption { display: flex; gap: 10px; margin-top: 8px; font-size: 0.875rem; color: var(--muted); line-height: 1.35; }
.frame-no { color: var(--film); font-weight: 700; letter-spacing: 0.04em; }
@media (max-width: 767px) {
  .frame { min-width: 150px; }
  .frame-caption { flex-direction: column; gap: 0; }
}

/* Lightbox */
.lightbox {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 16px;
  border: 0; background: var(--dark); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.lightbox::backdrop { background: var(--dark); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; }
.lightbox-bar .icon-button { border-color: #6B6B6B; }
.lightbox-count { font-size: 0.9375rem; color: #D4D4D4; }
.lightbox-figure { margin: 0; min-height: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; justify-items: center; }
.lightbox-figure img { min-height: 0; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.lightbox-figure figcaption { font-size: 0.9375rem; color: #E5E5E5; text-align: center; }
.lightbox-nav { display: flex; justify-content: center; gap: 12px; }
@media (min-width: 768px) { .lightbox { padding: 24px 40px; } }

/* Packages */
.packages-section { padding: 72px 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--sheet); }
.packages { width: 100%; min-width: 640px; border-collapse: collapse; }
.packages th, .packages td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.packages thead th { font-family: var(--display); font-weight: 400; font-size: 1.375rem; color: var(--ink); border-bottom: 2px solid var(--ink); }
.packages tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.packages td + td, .packages th + td { border-left: 1px solid var(--rule); }
.packages thead th + th { border-left: 1px solid var(--rule); }
.packages tbody th { position: sticky; left: 0; background: var(--sheet); }
.price-row th, .price-row td { border-bottom: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.price-row th { font-size: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll-hint { font-size: 0.875rem; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 639px) {
  .packages { min-width: 520px; }
  .packages th, .packages td { padding: 12px 10px; }
  .packages tbody th { width: 104px; font-size: 0.9375rem; }
  .packages thead th { font-size: 1.125rem; }
}
@media (min-width: 640px) { .scroll-hint { display: none; } }
.package-notes { display: grid; gap: 12px; margin-top: 24px; max-width: 75ch; }
@media (min-width: 960px) {
  .package-notes { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 32px; }
}

/* Date checker */
.dates-section { padding: 72px 0; background: var(--ink); color: #E8E8E6; }
.dates-section h2 { color: #fff; margin-bottom: 14px; }
.dates-section a { color: #fff; }
.dates-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .dates-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.checker { background: var(--sheet); color: var(--text); padding: 22px; }
@media (min-width: 768px) { .checker { padding: 28px 32px; } }
.date-row { display: flex; gap: 10px; flex-wrap: wrap; }
.date-row input { flex: 1 1 200px; }
.date-result { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--rule-strong); background: var(--page); }
.date-result.is-open { border-color: var(--ok); background: var(--ok-wash); }
.date-result.is-booked { border-color: var(--error); background: var(--error-wash); }
.date-status { font-weight: 700; font-size: 1.125rem; color: var(--ink); margin-bottom: 4px; }
.date-result .text-link { margin-top: 10px; }

/* Process */
.process-section { padding: 72px 0; background: var(--sheet); border-block: 1px solid var(--rule); }
.process-section h2 { margin-bottom: 36px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.timeline li {
  counter-increment: step; position: relative; padding: 0 0 28px 44px; border-left: 1px solid var(--rule-strong); margin-left: 12px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: -13px; top: -2px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--sheet); border: 1px solid var(--film); color: var(--film);
  font-size: 0.875rem; font-weight: 700;
}
.timeline .when { font-size: 0.875rem; font-weight: 700; color: var(--film); margin-bottom: 2px; }
.timeline h3 { margin-bottom: 4px; }
.timeline li > p:last-child { color: var(--muted); max-width: 60ch; }
@media (min-width: 1100px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
  .timeline li { margin-left: 0; padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--rule-strong); }
  .timeline li:last-child { border-top-color: var(--rule-strong); }
  .timeline li::before { left: 0; top: -14px; }
}

/* Reviews */
.reviews-section { padding: 72px 0; }
.reviews-grid { display: grid; gap: 36px; }
.reviews-grid figure { margin: 0; }
.stars { color: var(--film); letter-spacing: 2px; }
.star-off { color: var(--rule-strong); }
.reviews-grid blockquote { margin: 8px 0 12px; }
.review-long blockquote p { font-family: var(--display); font-size: clamp(1.375rem, 2.5vw, 1.875rem); line-height: 1.35; color: var(--ink); }
.review-short blockquote p { font-size: 1.0625rem; }
.reviews-grid figcaption { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 960px) {
  .reviews-grid { grid-template-columns: 1.6fr 1fr; column-gap: 64px; row-gap: 40px; }
  .reviews-grid h2 { grid-column: 1 / -1; }
  .review-long { grid-row: span 2; padding-right: 32px; border-right: 1px solid var(--rule); }
}

/* About */
.about-section { padding: 72px 0; background: var(--sheet); border-block: 1px solid var(--rule); }
.about-grid { display: grid; gap: 28px; }
.about-grid img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; }
.about-grid h2 { margin-bottom: 16px; }
.about-grid p { max-width: 62ch; margin-bottom: 14px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 420px 1fr; gap: 64px; align-items: center; } }

/* Inquiry */
.inquire-section { padding: 72px 0 88px; }
.inquire-grid { display: grid; gap: 28px; }
.inquire-grid > div > p { max-width: 50ch; margin-top: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.contact-links a { text-underline-offset: 5px; }
@media (min-width: 960px) { .inquire-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
.inquiry-form, .confirmation { background: var(--sheet); border: 1px solid var(--rule); padding: 22px; }
@media (min-width: 768px) { .inquiry-form, .confirmation { padding: 32px; } }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; }
.field-pair { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--rule-strong); border-radius: 2px; background: #fff;
  font: inherit; color: var(--text);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.hint-inline { font-weight: 400; color: var(--muted); }
.error { color: var(--error); font-weight: 500; font-size: 0.9375rem; }
.error:empty { display: none; }
.hint { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; }

.confirmation-icon { color: var(--ok); margin-bottom: 12px; }
.confirmation h3 { font-family: var(--display); font-weight: 400; font-size: 1.875rem; margin-bottom: 10px; }
.confirmation h3:focus { outline: none; }
.confirmation h3:focus-visible { outline: 3px solid var(--film); }
.confirmation .btn { margin-top: 18px; }

/* Footer */
.site-footer { background: var(--ink); color: #D4D4D4; padding: 48px 0 40px; }
.site-footer .wordmark { color: #fff; margin-bottom: 10px; }
.site-footer .wordmark span { color: #BDBDBD; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin-bottom: 6px; }
.footer-grid a { color: #fff; text-underline-offset: 4px; }
.legal { font-size: 0.875rem; color: #BDBDBD; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
