:root {
  color-scheme: light;
  --paper: #f1eee5;
  --paper-deep: #e9e4d8;
  --ink: #202b22;
  --muted: #6b6e63;
  --pine: #23372a;
  --line: rgba(32, 43, 34, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
  margin: 0;
}

button,
a,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid #758d66;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--pine);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 5.2vw, 5.5rem);
  background: var(--paper);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark__name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 0.98;
  letter-spacing: 0.055em;
}

.wordmark__descriptor {
  margin-top: 0.38rem;
  padding-left: 0.18em;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3.5rem);
}

.navigation[hidden] {
  display: none;
}

@media (min-width: 761px) {
  .navigation[hidden] {
    display: flex;
  }
}

.navigation a,
.navigation__notes {
  position: relative;
  border: 0;
  padding: 0.5rem 0;
  background: none;
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
}

.navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0.18rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.navigation a:hover::after {
  transform: scaleX(1);
}

.header-notes,
.navigation__notes {
  border: 0;
  border-radius: 999px;
  padding: 0.83rem 1.35rem;
  background: var(--pine);
  color: #fffdf7;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.header-notes:hover,
.navigation__notes:hover {
  transform: translateY(-2px);
  background: #344c39;
}

.navigation__notes,
.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(700px, calc(100svh - 98px));
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  background: var(--paper-deep);
}

.hero__copy {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 7vw, 7rem);
  background:
    radial-gradient(ellipse at 4% 93%, rgba(143, 142, 112, 0.15), transparent 38%),
    var(--paper);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.5rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.4vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero__location {
  margin: 0;
  color: #50584d;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.65vw, 1.5rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.8rem;
  border-bottom: 1px solid var(--ink);
  padding: 0.55rem 0;
  font-size: 0.78rem;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.demo-credit {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.025em;
}

.hero__image,
.gallery__image {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.hero__image img,
.gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image img {
  min-height: 540px;
  object-position: 52% 48%;
}

.hero__image figcaption,
.gallery__image figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  padding: 0.45rem 0.7rem;
  background: rgba(27, 35, 27, 0.72);
  color: #fffdf7;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.gallery {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  background: #e6e3d9;
}

.gallery__heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
}

.gallery__heading h2 {
  max-width: 14ch;
  margin: 1.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.7vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.gallery__image img {
  min-height: 420px;
  object-position: center 54%;
}

.site-footer {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem clamp(1.25rem, 5.2vw, 5.5rem);
  background: var(--paper);
}

.wordmark--footer .wordmark__name {
  font-size: 1.25rem;
}

.wordmark--footer .wordmark__descriptor {
  font-size: 0.48rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.site-footer .site-footer__credit {
  font-family: var(--sans);
  font-size: 0.66rem;
}

.notes-dialog {
  width: min(520px, calc(100vw - 2rem));
  max-width: none;
  border: 1px solid rgba(32, 43, 34, 0.12);
  border-radius: 4px;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(25, 31, 25, 0.25);
}

.notes-dialog::backdrop {
  background: rgba(22, 28, 23, 0.55);
  backdrop-filter: blur(3px);
}

.notes-dialog[open] {
  animation: dialog-enter 180ms ease both;
}

.notes-dialog__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.notes-dialog h2 {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.icon-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.65rem;
  cursor: pointer;
}

.notes-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.notes-dialog textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid rgba(32, 43, 34, 0.25);
  border-radius: 2px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
}

.notes-dialog textarea::placeholder {
  color: #7c7d72;
}

.notes-status {
  margin: 0.7rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.notes-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.button {
  border: 1px solid var(--pine);
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-size: 0.73rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--quiet {
  background: transparent;
  color: var(--pine);
}

.button--quiet:hover {
  background: rgba(35, 55, 42, 0.07);
}

.button--dark {
  background: var(--pine);
  color: white;
}

.button--dark:hover {
  background: #344c39;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 78px;
    padding: 0.75rem 1.15rem;
  }

  .wordmark__name {
    font-size: 1.5rem;
  }

  .wordmark__descriptor {
    font-size: 0.5rem;
  }

  .header-notes {
    display: block;
    padding: 0.72rem 0.85rem;
    font-size: 0.67rem;
  }

  .menu-toggle {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 1rem;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .navigation:not([hidden]) {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem 1.15rem 1.2rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 14px 20px rgba(27, 34, 27, 0.08);
  }

  .navigation a {
    padding: 1rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .navigation a::after {
    display: none;
  }

  .navigation__notes {
    display: none;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero__copy {
    min-height: 380px;
    padding: 3.4rem 1.45rem 2.6rem;
  }

  .hero h1 {
    margin-top: 1.15rem;
    font-size: clamp(3.35rem, 14vw, 5.4rem);
  }

  .text-link {
    margin-top: 1.8rem;
  }

  .demo-credit {
    margin-top: 1.4rem;
  }

  .hero__image {
    height: clamp(310px, 95vw, 470px);
  }

  .hero__image img {
    min-height: 0;
    object-position: 52% 45%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__heading {
    min-height: 190px;
    padding: 2rem 1.45rem;
  }

  .gallery__heading h2 {
    font-size: 2.6rem;
  }

  .gallery__image img {
    min-height: 300px;
    max-height: 390px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.6rem 1.2rem;
  }

  .site-footer > p:nth-child(2) {
    order: 3;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
