:root {
  color-scheme: light;
  --paper: #f5efdf;
  --surface: #e9dfc8;
  --ink: #302d26;
  --muted: #736b5e;
  --rule: #c9bda4;
  --pine: #354332;
  --moss: #7b815e;
  --rust: #b45135;
  --mustard: #e5b647;
  --page-gutter: clamp(1.25rem, 5.5vw, 6rem);
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--page-gutter);
}

.site-header {
  position: relative;
  z-index: 5;
  min-height: 88px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-grid;
  grid-template-columns: 2.65rem auto;
  grid-template-rows: auto auto auto;
  column-gap: 0.6rem;
  row-gap: 1px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.wordmark-logo {
  display: block;
  width: 2.65rem;
  height: 1.6rem;
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  object-fit: contain;
}

.wordmark > span:first-of-type {
  grid-column: 2;
  grid-row: 1;
}

.wordmark-sub {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.wordmark-history {
  grid-column: 2;
  grid-row: 3;
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-menu {
  position: relative;
}

.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  color: var(--pine);
  cursor: pointer;
  font-size: 0.75rem;
  list-style: none;
}

.site-menu > summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 1rem;
}

.menu-icon span {
  display: block;
  height: 1px;
  background: currentColor;
}

.site-menu nav {
  display: none;
}

.site-menu[open] nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 13rem;
  padding: 0.4rem 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 0.75rem 1.5rem rgb(39 44 40 / 12%);
  font-size: 0.85rem;
}

.site-menu nav a,
.back-to-top {
  transition: color 160ms ease;
}

.site-menu nav a {
  padding: 0.8rem 1rem;
}

.site-menu nav a:hover,
.back-to-top:hover {
  color: var(--rust);
}

.site-menu nav a[aria-current="page"] {
  color: var(--pine);
  text-decoration: none;
  background: var(--surface);
}

.header-note,
.eyebrow,
.category-number,
.photo-index {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-note {
  max-width: 15rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: right;
  text-transform: none;
}

.hero,
.collection {
  padding-inline: var(--page-gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 9rem);
  max-width: 1800px;
  min-height: 650px;
  margin: 0 auto;
  padding-block: 5.5rem 6rem;
}

.hero-copy {
  max-width: 490px;
  padding-block: 1rem;
}

.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--rust);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
.category-heading h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 600px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5.2vw, 5.3rem);
  line-height: 1.08;
}

.hero-intro {
  max-width: 330px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--pine);
  font-size: 0.82rem;
}

.text-link span {
  color: var(--rust);
}

.hero-image {
  position: relative;
  height: clamp(360px, 44vw, 560px);
  margin-bottom: 0;
  overflow: hidden;
  background: #d8d8cc;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.8rem;
  color: var(--paper);
  background: var(--pine);
  font-size: 0.68rem;
}

.hero-image-credit {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.56rem;
  line-height: 1.4;
}

.hero-image-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.collection {
  padding-block: 5.5rem 7rem;
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1800px;
  margin: 0 auto 3rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.75rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.1;
}

.section-heading > p,
.category-description {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.category {
  max-width: 1800px;
  margin-inline: auto;
  padding-block: 2rem 3.25rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}

.category + .category {
  margin-top: 1.25rem;
}

.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.category-number {
  margin-bottom: 0.55rem;
  color: var(--rust);
  font-size: 0.62rem;
}

.category-heading h3 {
  margin-bottom: 0;
  color: var(--pine);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.category-description {
  max-width: 300px;
}

.category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 4rem);
  max-width: 1800px;
  margin: 0 auto;
}

.category-link-card {
  min-width: 0;
}

.category-preview {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, transparent 48%, #34463b 48.3% 63%, transparent 63.3%),
    linear-gradient(35deg, #9ca99b 0 35%, #d9ded4 35.3% 100%);
}

.category-preview::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.55rem 0.7rem;
  color: var(--paper);
  background: var(--pine);
  content: attr(data-photo-count);
  font-size: 0.65rem;
}

.category-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.category-preview:hover img {
  transform: scale(1.025);
}

.category-preview > .category-number {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  margin: 0;
  color: var(--paper);
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
}

.category-link-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
}

.category-link-copy h3 {
  margin: 0;
  color: var(--pine);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.category-link-copy p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.category-link-arrow {
  display: grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--pine);
  transition: color 160ms ease, background-color 160ms ease;
}

.category-link-arrow:hover {
  color: var(--paper);
  background: var(--pine);
}

.gallery-page {
  min-height: calc(100vh - 198px);
  padding: clamp(3rem, 7vw, 6rem) var(--page-gutter) 6rem;
  background: var(--surface);
}

.gallery-page-heading,
.gallery-page > .photo-grid {
  max-width: 1800px;
  margin-inline: auto;
}

.gallery-page-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 3.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.back-link:hover {
  color: var(--rust);
}

.gallery-page-heading .eyebrow {
  margin-bottom: 0.75rem;
}

.gallery-page-heading h1 {
  margin-bottom: 0.75rem;
  color: var(--pine);
}

.gallery-intro {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.info-page {
  min-height: calc(100vh - 198px);
  padding: clamp(3rem, 7vw, 6rem) var(--page-gutter);
  background: var(--surface);
}

.info-page > .back-link {
  display: block;
  max-width: 1800px;
  margin: 0 auto 3rem;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  max-width: 1350px;
  min-height: 440px;
  margin: 0 auto;
}

.info-copy {
  max-width: 600px;
}

.info-copy h1,
.coming-soon h1 {
  margin-bottom: 1.5rem;
  color: var(--pine);
}

.info-lead {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.info-copy > p:not(.eyebrow, .info-lead) {
  max-width: 520px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.maker-location {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--pine);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.maker-location span {
  color: var(--muted);
  font-size: 0.72rem;
}

.maker-location strong {
  color: var(--pine);
  font-weight: 600;
}

.info-detail {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--rule);
  background: var(--paper);
}

.info-detail-rule {
  width: 2.5rem;
  height: 2px;
  margin-bottom: 2.5rem;
  background: var(--rust);
}

.info-detail-label,
.info-detail-year,
.info-detail-place,
.info-detail-elevation {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-detail-year {
  margin-top: 3.5rem;
}

.info-detail-number {
  color: var(--pine);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.info-detail-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  text-align: center;
}

.info-detail-place {
  line-height: 1.8;
}

.info-detail-elevation {
  margin-top: 0.35rem;
}

.coming-soon {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.coming-soon .eyebrow {
  margin-bottom: 1rem;
}

.coming-soon h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6rem);
}

.coming-soon .info-lead {
  max-width: 440px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.photo-card {
  min-width: 0;
  margin: 0;
  background: var(--paper);
}

.photo-card-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  background: #fff;
}

.photo-zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-zoom-trigger:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: -3px;
}

.photo-zoom-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.photo-card:hover .photo-zoom-trigger img {
  transform: scale(1.025);
}

.photo-lightbox {
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
  padding: 3.25rem 1rem 1rem;
  border: 0;
  background: var(--paper);
  box-shadow: 0 1rem 4rem rgb(0 0 0 / 35%);
}

.photo-lightbox::backdrop {
  background: rgb(18 24 20 / 82%);
}

.photo-lightbox-image {
  display: block;
  max-width: min(calc(100vw - 3rem), 1600px);
  max-height: 84vh;
  object-fit: contain;
}

.photo-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rule);
  color: var(--paper);
  background: var(--pine);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox-close:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

body[data-gallery="kitchen"] .photo-grid {
  align-items: start;
}

body[data-gallery="kitchen"] .photo-card-media {
  display: block;
  aspect-ratio: auto;
  overflow: visible;
}

body[data-gallery="kitchen"] .photo-zoom-trigger {
  height: auto;
}

body[data-gallery="kitchen"] .photo-zoom-trigger img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

body[data-gallery="kitchen"] .photo-card:hover .photo-zoom-trigger img {
  transform: none;
}

body[data-gallery="kitchen"] .gallery-page-heading {
  margin-bottom: 0;
}

body[data-gallery="kitchen"] .gallery-divider {
  position: relative;
  height: 1px;
  margin: 2.5rem auto;
  border: 0;
  background: var(--rule);
}

body[data-gallery="kitchen"] .gallery-divider::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--rust);
  background: var(--surface);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

body[data-gallery="kitchen"] .kitchen-photo-surface,
body[data-gallery="cutlery"] .cutlery-photo-surface {
  max-width: 1800px;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
}

body[data-gallery="cutlery"] .gallery-page-heading {
  margin-bottom: 0;
}

body[data-gallery="cutlery"] .gallery-divider {
  position: relative;
  height: 1px;
  margin: 2.5rem auto;
  border: 0;
  background: var(--rule);
}

body[data-gallery="cutlery"] .gallery-divider::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--rust);
  background: var(--surface);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.photo-index {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.55rem 0.7rem;
  color: var(--paper);
  background: var(--pine);
  font-size: 0.6rem;
}

.gallery-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.5rem;
  border: 1px dashed #aeb0a5;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.gallery-error {
  color: #873c2e;
  border-color: #b9887c;
}

.site-footer {
  min-height: 110px;
  gap: 1rem;
}

.site-footer > p,
.back-to-top {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.72rem;
}

.footer-contact a {
  color: var(--muted);
}

.footer-contact a:hover {
  color: var(--rust);
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
  }

  .header-note {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding-block: 4.5rem 5rem;
  }

  .hero-copy {
    max-width: 560px;
  }

  .hero-image {
    height: clamp(300px, 75vw, 480px);
  }

  .info-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .info-detail {
    min-height: 300px;
  }

  .coming-soon {
    min-height: 55vh;
  }

  .collection {
    padding-block: 4rem 5rem;
  }
}

@media (max-width: 540px) {
  .site-header {
    flex-wrap: nowrap;
    gap: 1rem;
    padding-block: 0.75rem;
  }

  .hero {
    padding-block: 3.5rem 4rem;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.7rem);
  }

  .section-heading,
  .category-heading {
    display: block;
  }

  .category-links {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-heading > p,
  .category-description {
    margin-top: 1rem;
  }

  .back-link {
    margin-bottom: 2.5rem;
  }

  body[data-gallery="kitchen"] .gallery-divider {
    margin-block: 1.75rem;
  }

  body[data-gallery="kitchen"] .kitchen-photo-surface,
  body[data-gallery="cutlery"] .cutlery-photo-surface {
    padding: 0.75rem;
  }

  body[data-gallery="cutlery"] .gallery-divider {
    margin-block: 1.75rem;
  }

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

  .photo-card-caption {
    min-height: 0;
  }

  .site-footer {
    flex-wrap: wrap;
    min-height: 130px;
    padding-block: 1.5rem;
  }

  .site-footer > p {
    order: 1;
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3,
.category-heading h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.site-header {
  border-bottom: 2px dashed var(--rule);
}

.header-note {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
}

.site-menu > summary {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
}

.site-menu[open] nav {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.header-note,
.eyebrow,
.category-number,
.photo-index {
  letter-spacing: 0.03em;
}

.eyebrow {
  display: table;
  padding: 0.25rem 0.5rem;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
  text-transform: none;
}

.hero h1 {
  max-width: 680px;
  line-height: 1.02;
}

.hero-image {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  transform: rotate(0.4deg);
}

.hero-image figcaption {
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
}

.collection {
  border-top: 2px solid var(--ink);
}

.section-heading {
  margin-bottom: 2.25rem;
}

.section-heading > p {
  max-width: 17rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
}

.category-preview {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.category-preview::after,
.photo-index {
  border: 1px solid var(--ink);
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
}

.category-link-copy h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.category-link-arrow {
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.gallery-page,
.info-page {
  background:
    linear-gradient(rgb(255 255 255 / 18%), rgb(255 255 255 / 18%)),
    var(--surface);
}

.gallery-page-heading,
.info-layout {
  position: relative;
}

.gallery-page-heading h1,
.info-copy h1,
.coming-soon h1 {
  color: var(--ink);
}

.gallery-intro,
.info-lead {
  max-width: 640px;
}

body[data-gallery="kitchen"] .kitchen-photo-surface,
body[data-gallery="cutlery"] .cutlery-photo-surface {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.photo-card {
  background: transparent;
}

.photo-card-media {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--rule);
}

.photo-card-caption {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px dashed var(--rule);
  background: var(--paper);
}

.photo-card-caption h2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.info-detail {
  border: 2px solid var(--ink);
  background: var(--mustard);
  box-shadow: 6px 6px 0 var(--ink);
}

.info-detail-rule {
  background: var(--rust);
}

.info-detail-number,
.info-detail-label,
.info-detail-year,
.info-detail-place {
  color: var(--ink);
}

.info-copy > p:not(.eyebrow, .info-lead) {
  color: var(--ink);
}

.text-link {
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.site-footer {
  border-top: 2px dashed var(--rule);
}

.back-link {
  font-weight: 700;
}

@media (max-width: 760px) {
  .hero-image {
    transform: none;
  }
}
