/* Colours and type taken from the original Squarespace site */
:root {
  --bg-white: #eae6e1;      /* gallery pages */
  --bg-light: #e5e0da;      /* contact / footer */
  --bg-bright: #c2bfcb;     /* lavender home hero */
  --olive: #7e7b46;         /* big headings, gallery text */
  --brown: #583b1f;         /* body text, buttons */
  --on-brown: #eae6e1;
  --font-head: "Marcellus", "Times New Roman", serif;
  --font-body: "PT Serif", Georgia, serif;
  --pad: max(16px, 4vw);
  --gap: max(8px, 0.87vw);
  --radius: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-white); color: var(--brown);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.6rem, 4.85vw, 3.88rem); line-height: 1.056; letter-spacing: -0.02em; color: var(--olive); }
h3, .section-title { font-size: clamp(1.9rem, 2.69vw, 2.15rem); line-height: 1.14; letter-spacing: -0.02em; }
h4 { font-size: clamp(1.3rem, 1.97vw, 1.576rem); line-height: 1.17; letter-spacing: -0.02em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brown); color: var(--bg-bright); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { padding-inline: var(--pad); max-width: 2000px; margin-inline: auto; }
.section { padding-block: 42px 64px; }
.theme-white  { background: var(--bg-white); }
.theme-light  { background: var(--bg-light); }
.theme-bright { background: var(--bg-bright); }
.theme-bright h1 { color: var(--olive); }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--pad) 22px; position: relative; z-index: 20;
}
.logo img { height: clamp(70px, 12.3vw, 157px); width: auto; }
.logo-text { font-family: var(--font-head); font-size: 2rem; text-decoration: none; }
.logo { text-decoration: none; flex-shrink: 0; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 26px; }
.main-nav a { text-decoration: none; padding: 1px 0; line-height: 24px; }
.main-nav a.active, .main-nav > a:hover, .dropdown-toggle:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.theme-white .main-nav { color: var(--olive); }

.nav-dropdown { position: relative; }
.caret { display: inline-block; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 5px; }
.dropdown-panel {
  position: absolute; right: -18px; top: calc(100% + 10px); min-width: 250px; padding: 18px 22px 16px;
  background: var(--bg-white); color: var(--brown); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(60, 40, 20, .18); display: none; flex-direction: column; gap: 14px;
}
.dropdown-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel, .nav-dropdown.open .dropdown-panel { display: flex; }
.dropdown-group { display: flex; flex-direction: column; gap: 4px; }
.dropdown-heading { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin-bottom: 2px; }
.dropdown-panel a:hover { text-decoration: underline; }
.dropdown-all { border-top: 1px solid rgba(88, 59, 31, .2); padding-top: 10px !important; font-size: 14px; }

.burger { display: none; background: none; border: 0; padding: 12px 0; width: 36px; cursor: pointer; }
.burger span { display: block; height: 1px; background: var(--brown); margin: 9px 0; transition: transform .2s; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 15; background: var(--bg-bright); padding: 150px var(--pad) 40px; overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mobile-menu a { font-size: 2.2rem; line-height: 1.3; text-decoration: none; color: var(--brown); }
.mobile-heading { margin-top: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.mobile-galleries { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.mobile-galleries a { font-size: 1.5rem; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { position: fixed; inset: 0 0 auto 0; background: var(--bg-bright); }
body.menu-open .burger span:first-child { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* Header takes the colour of the first section below it */
.site-header.theme-bright { background: var(--bg-bright); }
.site-header.theme-light { background: var(--bg-light); }

/* ---------- home ---------- */
.hero { padding-block: 42px 42px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.hero-text { padding-left: 3.9vw; max-width: calc(560px + 3.9vw); }
.hero-text h3 {
  margin-bottom: 12px;
  text-wrap: balance;   /* if it ever has to wrap, split the words evenly */
}
.hero-block { margin-bottom: 52px; }
.hero-block p { margin-bottom: 1em; }
.hero-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.hero-img { display: block; overflow: hidden; aspect-ratio: 282 / 245; }
.hero-img:nth-child(n+3) { aspect-ratio: 282 / 223; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.hero-img:hover img { transform: scale(1.03); }

.home-galleries { padding-block: 72px 80px; }
.home-galleries .section-title { margin-bottom: 28px; }
.card-group { margin-bottom: 44px; }
.card-group:last-child { margin-bottom: 0; }
.card-group-title { font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: 0; line-height: 1.5; margin-bottom: 14px; color: var(--brown); }
h2.card-group-title { font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px var(--gap); }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: rgba(88, 59, 31, .08); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-title { font-family: var(--font-head); font-size: 1.45rem; color: var(--olive); margin-top: 12px; line-height: 1.2; }
.card-meta { font-size: 14px; opacity: .8; }

/* ---------- gallery pages ---------- */
.gallery-page h1 { margin: 16px 0 22px; }
.gallery-page .subtitle { color: var(--olive); margin: 0 0 11px; max-width: 576px; }
.gallery-page .card-group { margin-top: 36px; }
.gallery-intro { color: var(--brown); max-width: 680px; margin: 12px 0 8px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: max(16px, 2.2vw); margin-top: 11px; }
.photo-cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 4; cursor: zoom-in; }
.photo-cell img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius); transition: opacity .3s; }
.photo-cell:hover img { opacity: .92; }
.photo-cell:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--gap) / 2); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(14, 14, 14, .96); color: #eee; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 72px 12px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-caption { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; padding: 10px 72px 22px; min-height: 64px; }
.lb-title { font-family: var(--font-head); font-size: 1.35rem; color: #f3efe9; margin: 0 0 2px; }
.lb-desc { font-size: 15px; color: #cfc9c1; max-width: 760px; max-height: 22vh; overflow-y: auto; }
.lb-desc p { margin-bottom: .5em; }
.lb-desc a { color: #f3efe9; }
.lb-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.lb-count { font-size: 13px; color: #aaa; }
.lb-share { font: inherit; font-size: 14px; color: #f3efe9; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 300px; padding: 7px 18px; cursor: pointer; }
.lb-share:hover { background: rgba(255,255,255,.1); }
.lb-close, .lb-prev, .lb-next { position: absolute; color: #eee; text-decoration: none; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-close { top: 10px; right: 18px; font-size: 40px; width: 48px; height: 48px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; width: 60px; height: 96px; opacity: .75; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { opacity: 1; }
.lightbox a:focus { outline: none; }
.lightbox a:focus-visible { outline: 1px solid rgba(255,255,255,.5); border-radius: 6px; }
.lb-toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); background: #f3efe9; color: #222; padding: 8px 16px; border-radius: 300px; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.lb-toast.show { opacity: 1; }
body.lb-open { overflow: hidden; }

/* ---------- about / contact ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.about-section { padding-block: 36px 120px; }
.about-text h1 { margin-bottom: 47px; }
.about-text .prose { max-width: 527px; }
.about-img { margin-top: 72px; }
.about-img img { width: 100%; height: auto; }
.contact-section { padding-block: 108px 96px; }
.contact-intro { max-width: 430px; }
.contact-intro h1 { margin-bottom: 30px; }
.theme-bright .contact-intro h1 { color: var(--olive); }
.contact-page { padding-block: 36px 72px; }
.contact-page .two-col { grid-template-columns: 1fr 1fr; column-gap: 4.6vw; }
.contact-left { max-width: 478px; }
.contact-left h1 { margin-bottom: 14px; }
.contact-left .prose { margin-bottom: 44px; }
.contact-img { aspect-ratio: 527 / 715; overflow: hidden; }
.contact-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 26px; max-width: 576px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { padding: 0; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.contact-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.contact-form label.big { font-size: 16px; }
.req { opacity: .7; font-size: 12px; margin-left: 4px; }
.contact-form label > .req { display: inline; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--brown); background: transparent;
  border: 1px solid var(--brown); border-radius: 24px; padding: 9px 16px; width: 100%;
}
.contact-form input { height: 42px; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.btn { align-self: flex-start; font: inherit; background: var(--brown); color: var(--on-brown); border: 0; border-radius: 300px; padding: 19px 32px; cursor: pointer; line-height: 1.3; }
.btn:hover { opacity: .88; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-flash { padding: 12px 18px; border-radius: 14px; margin-bottom: 18px; max-width: 576px; }
.form-flash.ok { background: rgba(126, 123, 70, .16); }
.form-flash.error { background: rgba(160, 40, 20, .12); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-light); padding: 16px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; padding-inline: var(--pad); flex-wrap: wrap; }
.footer-inner h4 { margin-bottom: 24px; }
.footer-contact { min-width: 185px; }
.footer-contact a { text-decoration: none; word-break: break-all; }
.footer-contact a:hover { text-decoration: underline; }
.small { font-size: 14px; }

/* ---------- mobile ---------- */
@media (max-width: 1200px) {
  .hero-text { padding-left: 0; max-width: 560px; }
}
@media (min-width: 768px) and (max-width: 1000px) {
  /* the two columns get narrow here — ease the heading down so it stays on one line */
  .hero-text h3 { font-size: 1.55rem; }
}
@media (max-width: 900px) {
  .main-nav { gap: 4px 18px; }
}
@media (max-width: 767px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .site-header { padding-block: 22px 18px; }
  .hero-grid, .two-col, .contact-page .two-col { grid-template-columns: 1fr; }
  .hero-text { padding-left: 0; }
  .hero-images { margin-top: 12px; }
  .hero-block { margin-bottom: 36px; }
  .photo-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .photo-cell { aspect-ratio: auto; }
  .photo-cell:last-child:nth-child(odd) { width: 100%; }
  .about-img { margin-top: 32px; }
  .contact-section { padding-block: 64px; }
  .contact-img { margin-top: 36px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .lb-stage { padding: 56px 8px 8px; }
  .lb-caption { padding: 8px 16px 18px; flex-direction: column; align-items: stretch; gap: 10px; }
  .lb-actions { justify-content: space-between; }
  .lb-prev, .lb-next { display: none; }
  .cards { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card-title { font-size: 1.15rem; }
}
