/* Full-bleed theme. Photos span the viewport; text sits in a narrow column. */

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

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--bg); }

.wrap { max-width: 46rem; margin-inline: auto; padding-inline: 1.25rem; }

.site-header {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
}
.site-title { font: 600 .95rem/1 var(--font-heading); text-transform: uppercase; letter-spacing: .3em; text-decoration: none; }
.site-header ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--fg); }

main { min-height: 60vh; }
.site-footer { padding: 3rem 1.25rem 2rem; text-align: center; color: var(--muted); font-size: .8rem; }

.page-head { text-align: center; margin-block: 1rem 2.5rem; }
.page-head h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.lede { margin: 0; color: var(--muted); }
.empty { color: var(--muted); text-align: center; }

/* --- Photo layouts. Column counts must match SIZES in index.ts. */

.photos-single { display: grid; gap: .5rem; }
.photos-single img { width: 100%; height: auto; }

.photos-uniform { display: grid; grid-template-columns: 1fr; gap: .5rem; padding-inline: .5rem; }
.photos-uniform .photo { aspect-ratio: 4 / 5; overflow: hidden; }
.photos-uniform img { width: 100%; height: 100%; object-fit: cover; }

.photos-masonry { columns: 1; column-gap: .5rem; padding-inline: .5rem; }
.photos-masonry .photo { display: block; margin-bottom: .5rem; break-inside: avoid; }
.photos-masonry img { width: 100%; height: auto; }

@media (min-width: 600px) {
  .photos-uniform { grid-template-columns: repeat(2, 1fr); }
  .photos-masonry { columns: 2; }
}
@media (min-width: 900px) {
  .photos-uniform { grid-template-columns: repeat(3, 1fr); }
  .photos-masonry { columns: 3; }
}

.cover { position: relative; margin: 0; }
.cover img { width: 100%; height: auto; max-height: 92vh; object-fit: cover; }
.cover figcaption { position: absolute; inset: auto 0 2.5rem; text-align: center; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .5); }
.cover h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); }

.strips { display: grid; gap: .5rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.strips a { position: relative; display: block; text-decoration: none; color: #fff; }
.strips img, .no-cover { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.no-cover { display: block; background: var(--surface); }
.strip-label { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: baseline; padding: 1.5rem 1.25rem; background: linear-gradient(transparent, rgb(0 0 0 / .55)); }
.strip-title { font: 600 clamp(1.3rem, 3vw, 2rem)/1.1 var(--font-heading); }
.strip-count { font-size: .8rem; opacity: .85; }

/* --- Single photo page (the no-JavaScript lightbox). */

.photo-page figure { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.photo-full { width: auto; height: auto; max-height: 85vh; }
.photo-page figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.photo-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-size: .85rem; }
.photo-nav a { text-decoration: none; color: var(--muted); }

/* --- Text pages and the contact form. */

.prose { padding-block: 1rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.prose a { color: var(--accent); }
.page-hero { margin: 0 0 2rem; }
.page-hero img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; }

.contact { margin-top: 2rem; display: grid; gap: .25rem; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
.field .error { display: block; color: #c0392b; font-size: .85rem; }
.contact input, .contact textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 0;
}
.contact [aria-invalid="true"] { border-color: #c0392b; }
button {
  padding: .75rem 1.75rem;
  font: 600 .8rem var(--font-body);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}
.notice { padding: 1rem; border-left: 3px solid var(--accent); background: var(--surface); }
.not-found { padding-block: 4rem; text-align: center; }

/* --- Lightbox (lightbox.js). */

.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  color: #eee; background: #000;
}
.lb::backdrop { background: #000; }
.lb-stage { position: absolute; inset: 3rem 0; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 6rem); width: auto; height: auto; object-fit: contain; }
.lb-bar { position: absolute; inset: auto 0 0; display: flex; justify-content: center; align-items: center; height: 3rem; font-size: .8rem; letter-spacing: .1em; color: #999; }
.lb button { position: absolute; padding: .6rem .9rem; color: #eee; background: transparent; font-size: 1.4rem; line-height: 1; letter-spacing: 0; }
.lb button:hover { color: #fff; background: rgb(255 255 255 / .08); }
.lb-close { top: .25rem; right: .25rem; }
.lb-prev { left: .25rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .25rem; top: 50%; translate: 0 -50%; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.made-with { margin-top: .5rem; font-size: .75rem; }
.made-with a { color: inherit; }
/* Uploaded logo, in place of the title. Height by the logo setting; never wider than the screen allows. */
.site-title.has-logo { display: inline-block; line-height: 0; }
.site-header:has(.has-logo) { align-items: center; }
.logo { display: block; width: auto; max-width: min(70vw, 28rem); height: var(--logo-height); object-fit: contain; }
.logo-small { --logo-height: 2rem; }
.logo-medium { --logo-height: 3rem; }
.logo-large { --logo-height: 4.5rem; }
@media (max-width: 600px) { .logo { height: calc(var(--logo-height) * .75); } }

/* === shared sections: copied from src/themes/sections.css; edit there === */
/* Packages, contact details and the home page's sections, shared by the built-in themes: copied
   into the end of each theme's site.css (test/themes/sections.test.ts checks they match), so a
   page still loads one stylesheet. Colours
   and fonts come from each theme's own custom properties (--fg, --muted, --line, --surface,
   --accent, --font-heading), so these sit right on any theme and background colour. */

.home-intro, .home-packages, .home-contact { margin: clamp(2.5rem, 6vw, 4.5rem) auto; max-width: 1200px; }
.home-intro { max-width: 42rem; text-align: center; }
.home-intro h2, .home-packages h2, .home-contact h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.15; margin: 0 0 1rem; }
.home-packages h2, .home-contact h2 { text-align: center; }
.home-intro .prose p { color: var(--fg); font-size: 1.1rem; }

/* Package cards */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.package { display: flex; flex-direction: column; padding: 1.5rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.package-name { margin: 0; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; }
.package-price { margin: .4rem 0 0; font-size: 1.5rem; font-weight: 600; color: var(--fg); }
.package-description { margin: .75rem 0 0; color: var(--muted); }
.package-includes { flex: 1; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.package-includes li { position: relative; padding: .3rem 0 .3rem 1.3rem; border-top: 1px solid var(--line); font-size: .95rem; }
.package-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
/* :is() adds weight, so a theme's rule for links in page text (".prose a") can't recolour the button. */
:is(.packages, .home-contact) .package-button { align-self: flex-start; display: inline-block; margin-top: auto; padding: .6rem 1.2rem; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; }
:is(.packages, .home-contact) .package-button:hover { opacity: .9; }
.see-all { text-align: center; }

/* Contact details: on the contact page, in the home page's contact section, and in the footer */
.contact-details { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.home-contact { text-align: center; }
.home-contact .contact-details { justify-content: center; font-size: 1.05rem; }
.home-contact .package-button { align-self: center; }
.site-contact .contact-details { margin: 0 0 .75rem; font-size: .9rem; }
.contact-details a { color: inherit; }
/* === end shared sections === */
