:root {
  color-scheme: light dark;
  --bg: #f1ede5;
  --bg-soft: #e4ddd0;
  --ink: #19140f;
  --ink-soft: #4f463d;
  --card: #f8f4ec;
  --edge: #cec3b2;
  --accent: #8a5a2a;
  --accent-2: #2f5236;
  --shadow: 0 18px 40px rgba(15, 12, 8, 0.16);
  --grad-start: #f9f6ef;
  --grad-end: #dfd4c3;
  --header-bg: rgba(250, 246, 237, 0.82);
  --header-edge: rgba(60, 45, 32, 0.15);
  --hero-edge: rgba(33, 25, 17, 0.12);
  --logo-grad-start: #fff7e8;
  --logo-grad-end: #ead9be;
  --logo-edge: rgba(109, 78, 47, 0.3);
  --logo-shadow: 0 8px 16px rgba(34, 25, 15, 0.12);
  --ghost-bg: rgba(255, 255, 255, 0.45);
  --chip-bg: rgba(25, 20, 15, 0.82);
  --mobile-nav-bg: #f8f3e9;
  --png-bg: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #18140f;
    --bg-soft: #241d16;
    --ink: #f2eadd;
    --ink-soft: #cdbfab;
    --card: #201a14;
    --edge: #4a3d30;
    --accent: #d09a62;
    --accent-2: #8fb998;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --grad-start: #1f1912;
    --grad-end: #120f0b;
    --header-bg: rgba(28, 23, 17, 0.82);
    --header-edge: rgba(190, 160, 126, 0.22);
    --hero-edge: rgba(190, 160, 126, 0.22);
    --logo-grad-start: #2f261c;
    --logo-grad-end: #1f1812;
    --logo-edge: rgba(190, 160, 126, 0.35);
    --logo-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    --ghost-bg: rgba(255, 255, 255, 0.1);
    --chip-bg: rgba(8, 6, 5, 0.88);
    --mobile-nav-bg: #241d16;
    --png-bg: color-mix(in srgb, #483c32 34%, #dccab3 66%);
  }
}

:root[data-theme='dark'] {
  --bg: #18140f;
  --bg-soft: #241d16;
  --ink: #f2eadd;
  --ink-soft: #cdbfab;
  --card: #201a14;
  --edge: #4a3d30;
  --accent: #d09a62;
  --accent-2: #8fb998;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --grad-start: #1f1912;
  --grad-end: #120f0b;
  --header-bg: rgba(28, 23, 17, 0.82);
  --header-edge: rgba(190, 160, 126, 0.22);
  --hero-edge: rgba(190, 160, 126, 0.22);
  --logo-grad-start: #2f261c;
  --logo-grad-end: #1f1812;
  --logo-edge: rgba(190, 160, 126, 0.35);
  --logo-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  --ghost-bg: rgba(255, 255, 255, 0.1);
  --chip-bg: rgba(8, 6, 5, 0.88);
  --mobile-nav-bg: #241d16;
  --png-bg: color-mix(in srgb, #483c32 34%, #dccab3 66%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 10% 0%, var(--grad-start) 0, var(--bg) 50%, var(--grad-end) 100%);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  scroll-behavior: smooth;
}

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

.section-pad {
  width: min(1160px, calc(100% - 2.2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1160px, calc(100% - 2.2rem));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--header-edge);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-mark-wrap {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.22rem;
  background: radial-gradient(circle at 30% 30%, var(--logo-grad-start), var(--logo-grad-end));
  border: 1px solid var(--logo-edge);
  box-shadow: var(--logo-shadow);
}

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.theme-toggle {
  border: 1px solid var(--edge);
  background: radial-gradient(circle at 30% 30%, var(--logo-grad-start), var(--logo-grad-end));
  color: var(--ink);
  border-radius: 50%;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.theme-corner {
  position: fixed;
  top: 0.15rem;
  right: 0.95rem;
  z-index: 50;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy p {
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 700;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.02;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

p,
li {
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--edge);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, #7a4724, #9a6935);
  color: #fff;
  border-color: #794b28;
}

.btn-ghost {
  color: var(--ink);
  background: var(--ghost-bg);
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: 1.2rem;
  border: 1px solid var(--hero-edge);
  box-shadow: var(--shadow);
  max-height: 640px;
  width: 100%;
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.45rem 0.8rem;
  background: var(--chip-bg);
  color: #fff;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  border: 1px solid var(--edge);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card img.feature-bottom-focus {
  object-position: center bottom;
}

/* Blend PNG-backed image areas with the page tone instead of stark white. */
img.png-photo {
  background: var(--png-bg);
}

.feature-card div {
  padding: 1rem;
}

.feature-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.craft-copy,
.humidity,
.contact {
  border: 1px solid var(--edge);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem;
}

.craft-copy ul,
.humidity ul {
  padding-left: 1.15rem;
}

.craft-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.craft-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--edge);
}

.humidity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.humidity img {
  border-radius: 1rem;
  border: 1px solid var(--edge);
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--edge);
  display: block;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.contact {
  text-align: center;
}

.contact .hero-actions {
  justify-content: center;
}

.site-footer {
  text-align: center;
  padding: 1.2rem;
  color: var(--ink-soft);
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(1100px, 92vw);
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox img {
  width: 100%;
  border-radius: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.contact-page {
  padding-top: 2.2rem;
}

.contact-shell {
  border: 1px solid var(--edge);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.6rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.contact-form label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 2px;
}

.form-alert {
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--edge);
  margin: 0.8rem 0 0;
}

.form-alert.is-success {
  background: color-mix(in srgb, #6fa071 24%, var(--card));
}

.form-alert.is-error {
  background: color-mix(in srgb, #b76b6b 22%, var(--card));
}

.form-alert p {
  margin: 0;
}

.form-alert ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .hero,
  .featured,
  .craft-grid,
  .humidity {
    grid-template-columns: 1fr;
  }

  .craft-stack img {
    max-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.6rem 0.8rem;
  }

  .brand-mark-wrap {
    width: 2.35rem;
    height: 2.35rem;
  }

  .brand-text {
    font-size: 1.3rem;
  }

  .theme-toggle {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.62rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span {
    width: 19px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    right: 0.8rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    padding: 0.85rem;
    border-radius: 0.75rem;
    background: var(--mobile-nav-bg);
    border: 1px solid var(--edge);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
