:root {
  --ink: #3a3a3a;
  --muted: #626262;
  --heading: #818181;
  --navy: #2c4a6e;
  --paper: #ffffff;
  --blush: #fff2ed;
  --mint: #c8efed;
  --line: rgba(0, 0, 0, 0.08);
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--muted);
  font-family: Quicksand, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

main {
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner,
.wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.logo {
  text-decoration: none;
}

.logo img {
  display: block;
  height: 70px;
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--navy);
}

.site-nav a:hover {
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 11px;
}

.nav-toggle-bar::before { top: 14px; }
.nav-toggle-bar::after { bottom: 14px; }

.hero,
.page,
.contact-page {
  padding: 56px 0 80px;
}

.hero {
  text-align: center;
}

.hero-figure {
  margin: 0 auto 40px;
  max-width: 520px;
}

.hero-figure img {
  margin: 0 auto;
}

h1,
h2 {
  margin: 0 0 16px;
  color: var(--heading);
  font-family: Quattrocento, Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead,
.page p,
.intro p,
.contact-copy p {
  max-width: 42rem;
  margin: 0 auto 28px;
}

body.page-mint,
.page-mint {
  background: var(--mint);
}

body.page-blush,
.page-blush {
  background: var(--blush);
}

.mosaic > div {
  display: grid;
  gap: 16px;
}

.gold-banner {
  min-height: 42vh;
  background: #111 center / cover no-repeat;
}

.gallery,
.mosaic {
  display: grid;
  gap: 16px;
}

.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.mosaic { grid-template-columns: repeat(3, 1fr); align-items: start; }

.gallery a,
.mosaic a {
  display: block;
  overflow: hidden;
  background: #f4f4f4;
}

.gallery img,
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.gallery a:hover img,
.mosaic a:hover img {
  transform: scale(1.03);
}

.gallery-3 a {
  aspect-ratio: 1;
}

.rule {
  width: min(100%, 640px);
  height: 1px;
  margin: 36px auto;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}

.footer-brand {
  margin: 0 0 12px;
}

.footer-brand img {
  display: inline-block;
  height: 48px;
  width: auto;
}

.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.social a {
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-photo img {
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  font: inherit;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

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

.btn {
  justify-self: start;
  padding: 14px 28px;
  border: 0;
  background: #e1e4e6;
  color: #111;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: #c5cbcf;
}

.alert {
  padding: 12px 14px;
  margin-bottom: 16px;
}

.alert-ok { background: #e8f6ef; }
.alert-err { background: #fdecea; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 32px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .gallery-3,
  .gallery-4,
  .mosaic,
  .contact-grid,
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .wrap,
  .footer-inner { width: calc(100% - 32px); }
  .gallery-3,
  .gallery-4,
  .mosaic,
  .contact-grid,
  .field-row { grid-template-columns: 1fr; }
}
