:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --cream: #eee4d5;
  --ink: #331704;
  --muted: #6b5141;
  --clay: #7b4a34;
  --line: #cdbbaa;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
  --gutters: clamp(1.25rem, 5.2vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
}
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .27em; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.5rem; }

.skip-link {
  position: absolute;
  z-index: 5;
  inset: .5rem auto auto .5rem;
  padding: .5rem 1rem;
  transform: translateY(-150%);
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #4f2e1910; }
.header-inner {
  width: min(100%, 100rem);
  min-height: 5rem;
  margin-inline: auto;
  padding: 1rem var(--gutters);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.25rem;
}
.wordmark { width: clamp(8.6rem, 13vw, 11.3rem); }
.wordmark img { width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: clamp(.9rem, 3.1vw, 2.75rem); }
nav a { font-size: .925rem; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; }
.nav-contact { border-bottom: 1px solid var(--clay); padding-block: .125rem; }
.nav-contact:hover { text-decoration: none; color: var(--clay); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(30rem, 46vw, 44rem);
  display: grid;
  align-items: end;
  color: #fff8ee;
  background: #4b3422;
}
.hero-image, .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 50% 54%; }
.hero-scrim {
  background:
    linear-gradient(90deg, #23150eb3 0%, #23150e70 34%, #23150e0a 78%),
    linear-gradient(0deg, #24160f7a, transparent 61%);
}
.hero-inner {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding: 4rem var(--gutters) clamp(3.4rem, 5.8vw, 6rem);
}
.eyebrow {
  font: 600 .84rem/1.5 var(--body);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--clay);
}
.hero .eyebrow { color: #fff2e1; margin-bottom: 1.2rem; }
.hero h1 {
  font-size: clamp(4rem, 7.2vw, 7.2rem);
  line-height: .86;
  letter-spacing: -.047em;
  margin-bottom: 2rem;
  text-wrap: balance;
  max-width: 13ch;
}
.hero h1 em { font-weight: inherit; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.4rem;
  border: 1px solid currentColor;
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  background: transparent;
  transition: color .2s, background-color .2s, border-color .2s;
}
.button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-dark:hover { background: var(--clay); border-color: var(--clay); }

.section {
  width: min(100%, 88rem);
  margin-inline: auto;
  padding-inline: var(--gutters);
}
.gallery-section { padding-block: clamp(4.25rem, 7.4vw, 7.75rem); }
.section-intro { text-align: center; margin: 0 auto clamp(2.4rem, 4.5vw, 4.2rem); }
h2 {
  font-size: clamp(3.125rem, 6vw, 5.35rem);
  line-height: .96;
  letter-spacing: -.043em;
  text-wrap: balance;
}
.section h2 { margin-block: .9rem 1.05rem; }
.section-intro > p:last-child, .about-inner div > p:last-child, #contact-text { color: var(--muted); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 3.1vw, 3rem) clamp(.8rem, 2.65vw, 2.75rem);
}
.photo-button { padding: 0; border: 0; text-align: left; background: none; cursor: zoom-in; }
.photo-frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-button:hover img { transform: scale(1.045); }
.photo-title {
  display: block;
  margin-top: .7rem;
  font: 500 clamp(1.65rem, 3vw, 2.35rem)/1.15 var(--display);
  overflow-wrap: anywhere;
}
.demo-note { text-align: center; font-size: .875rem; color: var(--muted); margin-top: 1.65rem; }
.gallery-status { text-align: center; color: var(--muted); }

.about { background: var(--cream); }
.about-inner {
  padding-block: clamp(3.25rem, 6.4vw, 6.25rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}
.about-brand { display: grid; place-items: center; border-right: 1px solid var(--line); min-height: 13rem; padding: 1rem 2rem 1rem 0; }
.about-brand img { width: min(100%, 17rem); height: auto; }
#about-text { max-width: 34rem; white-space: pre-line; }
.contact { text-align: center; padding-block: clamp(4rem, 8vw, 8rem); }
.contact h2 { margin-inline: auto; max-width: 16ch; }
.contact-links { margin-top: 1.65rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding: 1.2rem var(--gutters);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  color: var(--muted);
  font-size: .875rem;
}
.footer-inner small { font-size: inherit; }

.viewer {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff8ee;
  background: #20150ff5;
}
.viewer-inner {
  min-height: 100%;
  display: grid;
  grid-template: 1fr / auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 3rem clamp(.5rem, 3vw, 2rem) 1rem;
  gap: clamp(.4rem, 2vw, 1.5rem);
}
.viewer figure { grid-area: 1 / 2; display: grid; justify-items: center; gap: .5rem; }
#viewer-image { max-height: min(77vh, calc(100dvh - 8.5rem)); width: auto; object-fit: contain; }
.viewer:has(.viewer-thumbnails:not([hidden])) #viewer-image {
  max-height: min(77vh, max(8rem, calc(100dvh - 13rem)));
}
.viewer figcaption { font-family: var(--display); font-size: 1.55rem; text-align: center; }
.viewer figcaption:empty { display: none; }
.viewer button {
  background: transparent;
  border: 1px solid #fff8ee67;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  line-height: 1;
  font-size: 1.65rem;
  cursor: pointer;
}
.viewer button:hover { background: #fff8ee28; }
.viewer-close { position: absolute; top: .75rem; right: clamp(.75rem, 3vw, 2rem); }
.viewer-previous { grid-area: 1 / 1; }
.viewer-next { grid-area: 1 / 3; }
body:has(.viewer[open]) { overflow: hidden; }

@media (max-width: 47rem) {
  .header-inner { min-height: 4.5rem; column-gap: 1rem; }
  .hero { min-height: 34rem; }
  .hero-image { object-position: 56% 50%; }
  .hero-scrim { background: linear-gradient(0deg, #23150edb, #23150e2b 71%); }
  .hero h1 { font-size: clamp(3.75rem, 12vw, 6rem); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-brand { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 0 0 1.75rem; }
  .about-brand img { width: 12rem; }
}

@media (max-width: 27rem) {
  .header-inner { justify-content: center; flex-wrap: wrap; gap: .7rem 1rem; }
  .wordmark { width: 100%; }
  .wordmark img { width: 10rem; margin-inline: auto; }
  nav { gap: 1.5rem; }
  .hero { min-height: 30rem; }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.draft-banner {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: .9rem;
}
.hero h1 { overflow-wrap: anywhere; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 68rem; margin-inline: auto; }
.photo-frame { aspect-ratio: 6 / 5; }
.album-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.album-count { font-size: .875rem; color: var(--muted); }
.contact {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2rem, 8vw, 8rem);
  max-width: 78rem;
}
.contact h2 { margin-inline: 0; max-width: 12ch; text-wrap: wrap; }
.locations { margin-top: 1.4rem; color: var(--muted); }
.locations strong, .locations span { display: block; }
.locations strong { color: var(--ink); font-weight: 600; font-size: .925rem; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: #fffdf9;
  font-size: .925rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.contact-links a:hover {
  border-color: var(--clay);
  background: var(--cream);
}
.social-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  color: var(--clay);
}
.social-icon--instagram {
  border: 1.5px solid currentColor;
  border-radius: .28rem;
}
.social-icon--instagram::before {
  content: "";
  width: .43rem;
  height: .43rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.social-icon--instagram::after {
  content: "";
  position: absolute;
  top: .09rem;
  right: .09rem;
  width: .14rem;
  height: .14rem;
  border-radius: 50%;
  background: currentColor;
}
.social-icon--facebook::before {
  content: "f";
  font: bold 1.15rem/1 Arial, sans-serif;
}
.contact-form { display: grid; justify-items: start; gap: 1rem; }
.contact-form label { display: grid; width: 100%; gap: .4rem; font-size: .925rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fffdf9;
  font-weight: 400;
}
.contact-form textarea { resize: vertical; }
.contact-form button { cursor: pointer; }
.contact-form button:disabled { cursor: default; opacity: .6; }
#contact-status { color: var(--muted); font-size: .9rem; }
#contact-status:empty { display: none; }
#contact-status[data-error="true"] { color: #8c301c; }
.viewer-inner { grid-template-rows: auto 1fr; gap: .85rem clamp(.4rem, 2vw, 1.5rem); align-content: center; }
#viewer-title { grid-area: 1 / 2; text-align: center; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -.02em; }
.viewer figure { grid-area: 2 / 2; }
.viewer-previous { grid-area: 2 / 1; }
.viewer-next { grid-area: 2 / 3; }
.viewer figcaption { display: grid; justify-items: center; gap: .15rem; }
#viewer-caption:empty { display: none; }
#viewer-count { font: .875rem/1.5 var(--body); }
.viewer-thumbnails {
  --thumbnail-size: clamp(3rem, 8vw, 4rem);
  position: relative;
  grid-area: 3 / 1 / 4 / -1;
  justify-self: center;
  display: flex;
  gap: .55rem;
  width: min(100%, 42rem);
  padding: .3rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.viewer .viewer-thumbnails button {
  flex: 0 0 auto;
  width: var(--thumbnail-size);
  height: var(--thumbnail-size);
  padding: 2px;
  border-radius: .25rem;
  opacity: .72;
}
.viewer-thumbnails button:first-child { margin-inline-start: auto; }
.viewer-thumbnails button:last-child { margin-inline-end: auto; }
.viewer .viewer-thumbnails button:is(:hover, :focus-visible, [aria-current]) {
  border-color: currentColor;
  opacity: 1;
}
.viewer-thumbnails button:focus-visible { outline-offset: 1px; }
.viewer-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: .125rem; }
@media (max-width: 45rem) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .gallery { grid-template-columns: 1fr; }
  .viewer-inner { padding: 3.4rem .55rem 1rem; }
  .viewer :is(.viewer-previous, .viewer-next) { width: 2.25rem; height: 2.25rem; }
}

.login-panel { max-width: 37rem; padding-block: clamp(3rem, 8vw, 6rem); }
.login-panel h1 { margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; }
.login-panel > a { display: inline-block; margin-top: 1.5rem; }
.editor-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
