:root {
  --ink: #211d19;
  --muted: #655b52;
  --line: #d8cdbe;
  --soft: #e8dfd2;
  --canvas: #f3eee5;
  --paper: #fbf8f3;
  --accent: #8a603d;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(52px, 7vw, 96px);
  --container: 1280px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    400 16px/1.6 "DM Sans",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.site-container {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--ink);
  text-decoration: none;
}
.skip-link:focus {
  top: 14px;
}
.eyebrow,
.category,
.image-note,
.channel-kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.eyebrow {
  margin-bottom: 12px;
}

.button,
.header-cta,
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.button-dark,
.header-cta {
  background: var(--ink);
  color: #fff;
}
.button-dark:hover,
.header-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.button-light {
  background: transparent;
}
.button-light:hover {
  background: #fff;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 229, 0.96);
  backdrop-filter: blur(10px);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  font:
    500 24px/1.05 "DM Sans",
    Arial,
    sans-serif;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  margin-top: 4px;
  color: var(--muted);
  font:
    400 11px/1.2 "DM Sans",
    Arial,
    sans-serif;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 26px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 14px;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.header-cta {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 13px;
}
.menu-toggle {
  display: none;
}
.business-strip {
  border-top: 1px solid rgba(216, 205, 190, 0.8);
  background: var(--ink);
  color: #f5efe6;
}
.business-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 34px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.business-strip-inner span + span::before {
  content: "•";
  margin-right: 24px;
  color: #aa927e;
}

/* Footer */
.footer {
  padding: 48px 0 20px;
  background: var(--ink);
  color: #fff;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: start;
  gap: 36px;
  padding-bottom: 36px;
}
.footer .brand {
  color: #fff;
}
.footer .brand span,
.footer-top p {
  color: #d9d0c5;
}
.footer-top p {
  max-width: 340px;
  margin: 14px 0 0;
  font-size: 14px;
}
.footer nav {
  display: grid;
  gap: 8px;
}
.footer nav a {
  font-size: 14px;
  text-decoration: none;
}
.footer nav a:hover {
  text-decoration: underline;
}
.footer-cta {
  border-color: #d9d0c5;
  color: #fff;
}
.footer-cta:hover {
  background: #fff;
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #5d554e;
  color: #d9d0c5;
  font-size: 13px;
}
.footer-bottom a {
  color: inherit;
}

/* Homepage */
.home-hero {
  padding: clamp(44px, 6.5vw, 84px) 0 clamp(56px, 7.5vw, 96px);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: clamp(40px, 5.5vw, 72px);
}
.hero-copy h1 {
  max-width: 590px;
  margin-bottom: 22px;
  font-size: clamp(50px, 5.5vw, 80px);
  line-height: 0.98;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin-bottom: 30px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-product {
  width: min(100%, 540px);
  min-width: 0;
  margin: 0;
  justify-self: end;
}
.hero-product-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.22 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}
.hero-product img {
  width: 112%;
  max-width: none;
  height: auto;
  object-fit: contain;
}
.hero-product figcaption,
.weave-detail figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.browse-types,
.home-products,
.workshop-services,
.weave-detail,
.custom-order,
.home-contact {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 36px;
}
.section-heading h2 {
  max-width: 700px;
}
.section-intro {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}
.type-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.type-link {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 144px;
  padding: 16px 18px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.type-link + .type-link {
  border-left: 1px solid var(--line);
}
.type-link:hover {
  background: rgba(255, 255, 255, 0.34);
}
.type-link img {
  width: 88px;
  height: 100px;
  object-fit: contain;
}
.type-link strong {
  display: block;
  font:
    400 26px/1.1 "Playfair Display",
    Georgia,
    serif;
}
.type-link small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.type-link:hover strong {
  color: var(--accent);
}

.home-products {
  background: #eee7dc;
}
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 24px;
}
.home-product-grid article {
  min-width: 0;
}
.home-product-image {
  display: block;
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  border: 1px solid rgba(216, 205, 190, 0.65);
  background: var(--paper);
}
.home-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform 0.2s ease;
}
.home-product-image:hover img {
  transform: scale(1.03);
}
.home-product-grid .category {
  margin: 14px 0 5px;
}
.home-product-grid h3 {
  margin: 0;
  font:
    500 19px/1.3 "DM Sans",
    Arial,
    sans-serif;
}
.home-product-grid h3 a {
  text-decoration: none;
}
.home-product-grid h3 a:hover {
  text-decoration: underline;
}

.workshop-services {
  background: var(--paper);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid article {
  padding: 30px 28px 34px 0;
}
.service-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.service-grid span {
  color: var(--accent);
  font-size: 12px;
}
.service-grid h3 {
  margin: 18px 0 12px;
  font:
    500 22px/1.25 "DM Sans",
    Arial,
    sans-serif;
}
.service-grid p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.weave-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 8vw, 112px);
}
.weave-layout figure {
  margin: 0;
}
.weave-image {
  aspect-ratio: 1.1 / 1;
  overflow: hidden;
  background: var(--soft);
}
.weave-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.weave-layout > div > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
}

.custom-order {
  background: var(--soft);
}
.custom-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: end;
  gap: 44px;
}
.custom-layout > div > p:not(.eyebrow) {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--muted);
}
.order-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-steps li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.order-steps li::before {
  content: counter(list-item, decimal-leading-zero);
  margin-right: 10px;
  color: var(--accent);
  font-size: 12px;
}

.home-contact {
  background: var(--ink);
  color: #fff;
}
.home-contact .eyebrow,
.home-contact p {
  color: #d9d0c5;
}
.home-contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.home-contact-layout h2 {
  max-width: 640px;
}
.home-contact-layout > div:first-child > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
}
.home-contact-links {
  display: grid;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}
.contact-channel-copy {
  display: grid;
  gap: 2px;
}
.contact-channel small {
  color: #bdb3a9;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-channel strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-channel-arrow {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 14px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.contact-channel:hover .contact-channel-arrow {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* Shared catalogue utilities used outside pages.css too */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 24px;
}
.product-image {
  display: block;
  aspect-ratio: 1.08;
  overflow: hidden;
  background: var(--soft);
}
.product-image img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.product-image:hover img {
  transform: scale(1.03);
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
}
.product-meta h3 {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 500;
}
.product-index {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .type-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .type-link:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .type-link:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .footer-top,
  .custom-layout {
    grid-template-columns: 1fr 1fr;
  }
  .custom-layout > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-grid article,
  .service-grid article + article {
    padding: 26px 0;
    border-left: 0;
  }
  .service-grid article + article {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }
  .site-header {
    position: relative;
  }
  .nav-row {
    flex-wrap: wrap;
    gap: 14px;
    min-height: var(--header-height);
  }
  .brand {
    font-size: 21px;
  }
  .brand span {
    font-size: 10px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 13px;
  }
  .nav-links {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 12px;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    min-height: 46px;
    border-top: 1px solid var(--line);
  }
  .header-cta {
    display: none;
  }
  .business-strip-inner {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-block: 9px;
    white-space: nowrap;
  }
  .business-strip-inner span + span::before {
    margin-right: 14px;
  }

  .hero-layout,
  .weave-layout,
  .home-contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-copy h1 {
    font-size: clamp(43px, 13vw, 62px);
  }
  .hero-product {
    width: min(100%, 620px);
    justify-self: stretch;
  }
  .hero-product-frame {
    aspect-ratio: 1.15 / 1;
  }
  .hero-product img {
    width: 116%;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
  }
  .section-intro {
    max-width: 100%;
  }
  .type-list {
    grid-template-columns: 1fr;
  }
  .type-link {
    grid-template-columns: 100px 1fr;
    min-height: 126px;
  }
  .type-link + .type-link,
  .type-link:nth-child(3),
  .type-link:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .type-link img {
    width: 90px;
    height: 94px;
  }
  .home-product-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }
  .home-product-image img {
    padding: 12px;
  }
  .home-product-grid h3 {
    font-size: 15px;
  }
  .weave-image {
    aspect-ratio: 1;
  }
  .footer-top,
  .custom-layout {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }
  .home-product-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .home-product-image {
    aspect-ratio: 1.08;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
