:root {
  --paper: #fbf3e7;
  --porcelain: #fffaf2;
  --ink: #221a15;
  --muted: #73665b;
  --line: #ead9c7;
  --terracotta: #bd643d;
  --terracotta-dark: #8e4329;
  --olive: #6b744f;
  --blue-grey: #e7ece4;
  --honey: #d18a32;
  --graphite: #222321;
  --shadow: 0 20px 70px rgba(32, 30, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

.announcement-bar {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px;
  color: var(--porcelain);
  background: var(--honey);
  font-size: 0.92rem;
  font-weight: 680;
  text-align: center;
}

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

button,
a {
  font: inherit;
}

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

.site-header {
  position: absolute;
  z-index: 5;
  top: 43px;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 6vw;
  color: var(--porcelain);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.nav-links {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.14);
  backdrop-filter: blur(16px);
}

.nav-links a {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.9);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 6vw 86px;
  color: var(--porcelain);
  background: var(--graphite);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(36, 24, 16, 0.44), rgba(36, 24, 16, 0.18)),
    linear-gradient(90deg, rgba(36, 24, 16, 0.22), rgba(36, 24, 16, 0.22)),
    url("assets/table-lamp-day.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff0ca;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  font-weight: 780;
}

h1 {
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.4rem;
  font-weight: 700;
}

h2 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 620px;
  margin: 22px auto 0;
  color: rgba(255, 253, 248, 0.92);
  font-size: 1.28rem;
  font-style: italic;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 730;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: #ffe889;
  color: #312013;
  box-shadow: 0 12px 32px rgba(73, 43, 18, 0.18);
}

.button-primary:hover {
  background: #ffdf62;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--porcelain);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--porcelain);
  background: rgba(255, 255, 255, 0.1);
}

.button-ghost-dark {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--porcelain);
  background: transparent;
}

.hero-meta {
  position: absolute;
  z-index: 1;
  left: 6vw;
  right: 6vw;
  bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 560px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.92rem;
}

.section-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  padding: 58px 0 18px;
}

.intro p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.35rem;
  line-height: 1.35;
  text-align: center;
}

.catalog-section,
.process-section {
  padding: 84px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  justify-items: center;
  text-align: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: var(--porcelain);
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--porcelain);
  box-shadow: 0 8px 28px rgba(32, 30, 26, 0.07);
}

.product-card.hidden {
  display: none;
}

.image-button,
.gallery-item {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-button img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
}

.product-copy {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
}

.product-type {
  color: var(--olive) !important;
  font-size: 0.8rem;
  font-weight: 780;
  text-transform: uppercase;
}

.materials-band {
  padding: 72px 0;
  background: #f6e7d1;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(280px, 0.8fr);
  align-items: center;
  gap: 34px;
}

.materials-layout p {
  margin: 0;
  color: #3e4744;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(25, 24, 22, 0.16);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(30, 32, 30, 0.13);
}

.swatch-graphite {
  background: #1e201e;
}

.swatch-terracotta {
  background: #b95437;
}

.swatch-porcelain {
  background: #f2eadc;
}

.swatch-olive {
  background: #59684a;
}

.swatch-copper {
  background: #a86a4d;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.process-list article {
  min-height: 220px;
  padding: 26px;
  background: rgba(255, 250, 242, 0.88);
}

.process-list span {
  display: block;
  margin-bottom: 44px;
  color: var(--terracotta);
  font-weight: 780;
}

.process-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.gallery {
  padding: 76px 0 88px;
  background: #2c2b25;
  color: var(--porcelain);
}

.gallery-heading {
  margin-bottom: 26px;
}

.gallery .eyebrow {
  color: #d5b9a9;
}

.gallery-track {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 0.8fr;
  gap: 12px;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(3) img {
  aspect-ratio: 4 / 5;
}

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

.contact-section {
  padding: 86px 0;
  color: var(--porcelain);
  background:
    linear-gradient(90deg, rgba(33, 25, 19, 0.92), rgba(33, 25, 19, 0.7)),
    url("assets/wall-clock-red.jpg") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 44px;
  align-items: end;
}

.contact-layout p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.78);
}

.contact-actions {
  justify-content: flex-start;
}

.copy-status {
  min-height: 24px;
  width: 100%;
  margin: 0;
  color: #ffd8c4;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 6vw;
  color: var(--muted);
  background: var(--porcelain);
  border-top: 1px solid var(--line);
}

.lightbox {
  width: min(920px, calc(100% - 34px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  color: var(--porcelain);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(15, 14, 13, 0.74);
}

.lightbox img {
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--porcelain);
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 920px) {
  .announcement-bar {
    padding: 10px 18px;
    font-size: 0.84rem;
  }

  .site-header {
    top: 39px;
    padding: 18px 20px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 9px;
  }

  .hero {
    min-height: 82svh;
    padding: 128px 20px 78px;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, rgba(36, 24, 16, 0.58), rgba(36, 24, 16, 0.2)),
      linear-gradient(90deg, rgba(36, 24, 16, 0.24), rgba(36, 24, 16, 0.24)),
      url("assets/table-lamp-day.jpg") center / cover;
  }

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-meta {
    left: 20px;
    right: 20px;
    justify-content: center;
  }

  .section-wrap {
    width: calc(100% - 40px);
  }

  .product-grid,
  .process-list,
  .contact-layout,
  .materials-layout {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 921px) and (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .brand {
    font-size: 1.3rem;
  }

  .nav-links {
    max-width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 84svh;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-copy,
  .intro p {
    font-size: 1.06rem;
  }

  .hero-meta {
    font-size: 0.84rem;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .catalog-section,
  .process-section {
    padding: 62px 0;
  }

  .materials-band,
  .gallery,
  .contact-section {
    padding: 58px 0;
  }

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