:root {
  --paper: #f6f1e8;
  --paper-2: #efe8dc;
  --ink: #262a2b;
  --ink-soft: #5c615d;
  --moss: #59724b;
  --moss-dark: #44583a;
  --line: #d9d0c2;
  --white: #fffcf7;
  --danger: #8b3a2a;
  --radius: 8px;
  --nav-h: 64px;
  --max: 1040px;
  --phi: 1.618;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}

img {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: var(--moss-dark);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 92%, white);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand span {
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--paper-2);
}

.nav-links a.btn {
  background: var(--ink);
  color: var(--white);
  margin-left: 6px;
}

.nav-links a.btn:hover {
  background: var(--moss-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* HERO */
.hero {
  padding: 40px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: var(--phi) 1fr;
  gap: 34px;
  align-items: center;
}

.kicker {
  color: var(--moss);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 0 0 10px;
}

.lead {
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.btn:hover {
  background: var(--moss-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--paper-2);
}

.hero-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 821px) {
  .hero {
    padding: 24px 0 20px;
  }

  .hero-photo img {
    aspect-ratio: auto;
    height: min(340px, calc(100vh - var(--nav-h) - 160px));
    object-position: center center;
  }
}

/* SECTIONS */
section {
  padding: 36px 0;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.muted {
  color: var(--ink-soft);
  margin: 0;
}

.quiet-link {
  font-size: 0.92rem;
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* GALLERY */
.album + .album {
  margin-top: 34px;
}

.album h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.album .grid > .card-img:nth-child(n + 4) {
  display: none;
}

.full-gallery .album .grid > .card-img:nth-child(n + 4) {
  display: block;
}

.card-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
  min-height: 160px;
}

.card-img img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--phi);
  object-fit: cover;
}

.card-img figcaption {
  padding: 8px 10px 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.card-img button {
  all: unset;
  display: block;
  cursor: zoom-in;
  width: 100%;
}

.about-box {
  display: grid;
  grid-template-columns: var(--phi) 1fr;
  gap: 21px;
  align-items: start;
}

/* SERVICES */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}

.service h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ABOUT */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* FORM */
.form-layout {
  display: grid;
  grid-template-columns: 1fr var(--phi);
  gap: 34px;
}

form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.field {
  margin-bottom: 12px;
}

.planner {
  margin: 4px 0 22px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.planner-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.planner-step {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.planner-step.is-active,
.planner-step.is-complete {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.planner-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.planner-panel h3 {
  margin: 0 0 6px;
}

.planner-panel .muted {
  margin: 0 0 18px;
}

.planner-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.label-note {
  color: var(--ink-soft);
  font-weight: 400;
}

.planner-checks {
  margin: 0;
}

.service-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 66px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.service-choice:has(input:checked) {
  border-color: var(--moss);
  background: #edf1e9;
}

.service-choice input {
  width: auto;
  margin: 3px 0 0;
}

.service-choice strong,
.service-choice small {
  display: block;
}

.service-choice small {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 400;
}

.planner-error {
  display: none;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.planner-error.show {
  display: block;
}

.planner-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.planner-summary p {
  margin: 2px 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--moss-dark);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 4px 0 12px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.95rem;
  font-weight: 400;
}

.check input {
  width: auto;
  margin-top: 4px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.hint,
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
  font-weight: 400;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--danger);
  background: #faf3f0;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}

.form-status {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--paper-2);
}

.form-status.error {
  display: block;
  background: #f4e4df;
  color: var(--danger);
}

.form-status.wait {
  display: block;
}

.contact-aside h2 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.contact-list li {
  margin: 0 0 8px;
}

.socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
}

.socials a:hover {
  border-color: var(--moss);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* THANKS BANNER */
.thanks {
  display: none;
  background: var(--moss);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 18px 0 8px;
}

.thanks.show {
  display: block;
}

.thanks a {
  color: var(--white);
}

body.lb-open {
  overflow: hidden;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgb(20 22 20 / 88%);
  display: none;
  place-items: center;
  z-index: 200;
  padding: 64px 76px 56px;
}

.lightbox.open {
  display: grid;
}

.lb-stage {
  margin: 0;
  max-width: min(1100px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.lightbox img {
  max-height: min(78vh, 820px);
  max-width: 100%;
  width: auto;
  border-radius: 8px;
  background: #111;
}

.lb-stage figcaption,
.lb-count {
  margin: 0;
  color: #f6f1e8;
  font-size: 0.92rem;
  text-align: center;
}

.lb-count {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  z-index: 2;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.lb-prev {
  left: 14px;
}

.lb-next {
  right: 14px;
}

.lb-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.lb-prev span {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.lb-next span {
  transform: rotate(45deg);
  margin-right: 4px;
}

.lb-arrow:hover,
.lb-close:hover {
  background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* LEGAL */
.prose {
  max-width: 68ch;
}

.prose h1 {
  font-size: 2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

/* MOBILE */
@media (max-width: 820px) {
  .hero-grid,
  .about-box,
  .form-layout,
  .services,
  .row,
  .checks {
    grid-template-columns: 1fr;
  }

  .grid,
  .grid.full {
    grid-template-columns: 1fr 1fr;
  }

  .album .grid > .card-img:nth-child(n + 3) {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a.btn {
    margin-left: 0;
  }

  .brand span {
    display: none;
  }
}

@media (max-width: 520px) {
  .grid,
  .grid.full {
    grid-template-columns: 1fr;
  }

  .album .grid > .card-img:nth-child(n + 2) {
    display: none;
  }

  .lightbox {
    padding: 58px 12px 64px;
  }

  .lb-arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .lb-prev {
    left: 16px;
  }

  .lb-next {
    right: 16px;
  }

  .lb-count {
    bottom: 26px;
  }
}
