:root {
  --canvas: #e9edf1;
  --paper: #f2f5f7;
  --surface: #e9edf1;
  --ink: #242d36;
  --muted: #495663;
  --line: #c6cfd7;
  --rust: #873b25;
  --copper: #943f27;
  --night: #29333d;
  --highlight: #fff;
  --shade: #c3ccd5;
  --raised: 7px 7px 17px #bac4cfb3, -7px -7px 17px #ffffffeb;
  --raised-small: 4px 4px 9px #bac4cfbd, -4px -4px 9px #ffffffed;
  --inset: inset 4px 4px 9px #bbc5cfb3, inset -4px -4px 9px #ffffffd9;
  --edge: 1px solid #ffffffa6;
  --radius: 24px;
  --ease: cubic-bezier(.2, .68, .28, 1);
}

:focus-visible { outline-color: var(--rust); }
.site-header {
  background: var(--canvas);
  border-bottom: 0;
  padding-block: 14px;
}
.nav-row {
  min-height: 70px;
  padding: 10px clamp(12px, 2vw, 24px);
  border: var(--edge);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--raised-small);
}
.brand { gap: 9px; }
.brand img { padding: 3px; background: var(--night); box-shadow: var(--raised-small); }
.desktop-nav { gap: clamp(4px, .75vw, 11px); }
.desktop-nav a { border-radius: 12px; padding: 7px clamp(8px, 1vw, 13px); }
.desktop-nav a[aria-current] { box-shadow: var(--inset); font-weight: 700; }
.desktop-nav a[aria-current]::after { content: none; }

.button,
.search-tools summary,
.menu-toggle,
.to-top {
  border-radius: 12px;
  transition: transform .23s var(--ease), box-shadow .23s var(--ease), background-color .23s, color .23s;
}
.button {
  color: #fff;
  border: 1px solid #8c3b25;
  background: linear-gradient(145deg, #a85032, #84351f);
  box-shadow: 4px 4px 10px #84351f38, -3px -3px 9px #fff9,
    inset 1px 1px 0 #ffffff42;
}
.button:hover { background: linear-gradient(145deg, #99462c, #732d1b); }
.button.button-dark {
  background: linear-gradient(145deg, #394650, #242d36);
  border-color: #242d36;
  box-shadow: var(--raised-small), inset 1px 1px 0 #ffffff35;
}
.button.button-dark:hover { background: #222a32; }
.button.button-outline,
.button.button-light,
.search-tools summary,
.menu-toggle,
.to-top {
  color: var(--ink);
  border: 1px solid #bdc8d1;
  background: var(--surface);
  box-shadow: var(--raised-small);
}
.button.button-outline:hover, .button.button-light:hover { background: var(--paper); }
.button:active,
.search-tools[open] summary,
.menu-toggle[aria-expanded="true"] {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 7px #0004, inset -2px -2px 6px #ffffff40;
}
.search-tools[open] summary, .menu-toggle[aria-expanded="true"] { box-shadow: var(--inset); }
.search-form {
  background: var(--surface);
  border-color: #bdc8d1;
  border-radius: 15px;
}
.search-tools .search-form { width: min(300px, calc(100vw - 52px)); }
.search-form input { background: var(--surface); box-shadow: var(--inset); border-radius: 9px; padding-inline: 12px; }

.hero { background: var(--canvas); color: var(--ink); padding-block: 23px 14px; }
.hero-inner {
  position: relative;
  min-height: 0;
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(24px, 5vw, 62px);
  border: var(--edge);
  border-radius: 36px;
  box-shadow: var(--raised);
  background:
    radial-gradient(ellipse at 86% 10%, #fff9, transparent 58%),
    linear-gradient(145deg, #e8edf2, #dce4eb);
}
.hero-copy h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); }
.hero-copy em { color: var(--rust); }
.hero-copy p { color: var(--muted); }
.hero-photo {
  display: grid;
  gap: 10px;
  padding: clamp(10px, 1.25vw, 17px);
  aspect-ratio: auto;
  border: var(--edge);
  border-radius: 27px;
  background: #e5ebef;
  box-shadow: var(--inset);
}
.hero-photo::after { content: none; }
.hero-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.62;
  border-radius: 16px;
  background: #2a2829;
}
.hero-photo img { position: absolute; inset: 0; }
.hero-photo figcaption {
  position: static;
  justify-self: start;
  padding: 3px 9px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(111deg, transparent 28%, #fff2 48%, transparent 66%);
  opacity: 0;
}

.products-section { padding-block: clamp(36px, 5.5vw, 69px); }
.section-heading { margin-bottom: 25px; }
.product-grid, .catalog, .post-grid { gap: clamp(13px, 2vw, 23px); }
.product-card, .catalog-card, .post-grid article {
  padding: 10px;
  background: var(--surface);
  border: var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--raised-small);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.product-photo, .catalog-card > img { border-radius: 15px; }
.product-card:focus-visible { outline-offset: 5px; }
.product-card:active { box-shadow: var(--inset); }
.post-grid article { padding: clamp(19px, 3vw, 32px); }

.company { border: 0; background: var(--canvas); padding-block: 8px; }
.company-layout {
  padding: clamp(23px, 4vw, 49px);
  border: var(--edge);
  border-radius: 30px;
  box-shadow: var(--inset);
}
.experience {
  min-height: 165px;
  border: var(--edge);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--raised);
}
.experience strong { color: var(--rust); }
.holding { padding-block: clamp(36px, 5vw, 64px); }

.interior-title { padding-block: 13px 0; background: transparent; color: var(--ink); }
.interior-title .wrap {
  padding: clamp(24px, 5vw, 52px);
  border: var(--edge);
  border-radius: 27px;
  background: linear-gradient(145deg, #eff3f6, #dfe6ed);
  box-shadow: var(--inset);
}
.interior-title p { color: var(--muted); }
.interior-copy { background: var(--surface); border: var(--edge); box-shadow: var(--raised); }
.catalog-card:target, .post-grid article:target { outline-offset: 4px; }

.site-footer { color: var(--ink); background: #dce4eb; border-block-start: 1px solid #c6d0d9; }
.footer-grid p, .footer-grid address, .footer-posts, .footer-bottom { color: var(--muted); }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--rust); }
.footer-bottom { border-color: #bfcbd5; }
.gallery { gap: 9px; }
.gallery a { border: var(--edge); border-radius: 9px; box-shadow: var(--raised-small); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-card:hover, .catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 11px 20px #bac4cfd1, -6px -6px 16px #ffffffe5;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: enter-up .7s var(--ease) both; }
  .hero-photo { animation: enter-up .85s .1s var(--ease) both; }
  .hero-image::after { animation: light-pass 1.1s .65s var(--ease) both; }
  .mobile-nav:not([hidden]), .search-tools[open] .search-form, .gallery-view[open] {
    animation: enter-up .25s var(--ease) both;
  }
  .motion-ready { animation: enter-up .72s var(--motion-delay, 0ms) var(--ease) both; }
  .motion-ready:focus-within { animation: none; }
}

@keyframes enter-up {
  from { opacity: .4; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes light-pass {
  from { transform: translateX(-85%); opacity: 0; }
  25%, 60% { opacity: 1; }
  to { transform: translateX(85%); opacity: 0; }
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .has-js .menu-toggle { display: grid; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #bdc8d1;
    background: var(--surface);
  }
  .has-js .mobile-nav {
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    top: calc(100% + 8px);
    box-shadow: var(--raised);
  }
  .mobile-nav a { padding: 8px 10px; border-radius: 9px; }
  .mobile-nav a[aria-current] { color: var(--rust); box-shadow: var(--inset); }
  html:not(.has-js) .nav-row { flex-wrap: wrap; }
  html:not(.has-js) .mobile-nav { width: 100%; }
}

@media (max-width: 600px) {
  .site-header { padding-block: 10px 6px; }
  .nav-row { min-height: 60px; gap: 8px; }
  .brand { font-size: .9rem; }
  .brand img { width: 36px; height: 36px; }
  .hero { padding-block: 15px 10px; }
  .hero-inner { padding: clamp(14px, 4vw, 23px); border-radius: 23px; }
  .hero-copy h1 { font-size: clamp(1.95rem, 8.6vw, 2.65rem); }
  .hero-photo { border-radius: 19px; }
  .hero-image { border-radius: 11px; }
  .hero-actions .button { padding-inline: 12px; }
  .header-actions, .search-tools { position: static; }
  .search-tools .search-form { inset-inline: 0; top: calc(100% + 8px); width: 100%; }
  .product-card, .catalog-card { padding: 7px; border-radius: 17px; }
  .product-photo, .catalog-card > img { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
}
