:root {
  --paper: #fff6e5;
  --ink: #3a2416;
  --brown: #784727;
  --brown-deep: #5c3418;
  --muted: #6e5644;
  --line: rgba(120, 71, 39, 0.22);
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --measure: min(1120px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: #e7c8a4;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--brown);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 30;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: var(--measure);
  margin-inline: auto;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  color: var(--brown);
  letter-spacing: -0.02em;
}

h1 {
  margin: 12px 0 18px;
  font-size: clamp(46px, 6.2vw, 76px);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.lead {
  max-width: 38rem;
  margin: 0;
  font-size: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff6e5;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 104px;
}

.logo {
  display: block;
  margin-right: auto;
}

.logo img {
  height: 92px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--brown);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--brown);
  color: var(--brown);
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--brown);
  color: var(--paper);
  border: 1px solid var(--brown);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
}

.btn.ghost {
  background: transparent;
  color: var(--brown);
}

.btn.ghost:hover {
  background: var(--brown);
  color: var(--paper);
}

.btn.small {
  min-height: 42px;
  padding: 0 14px;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: end;
  padding: 48px 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #e8d4b4;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 22px 22px 22px 0;
}

.fact + .fact {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.fact strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
  line-height: 1.1;
  color: var(--brown);
}

.fact p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 36rem;
  margin: 12px 0 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filters button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--brown);
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper);
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 22px;
}

.card-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.card figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #e8d4b4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffaf0;
  transition: transform 0.45s ease;
}

.card-open:hover img,
.card-open:focus-visible img {
  transform: scale(1.035);
}

.card-meta {
  padding-top: 14px;
}

.card h3 {
  margin-top: 6px;
  font-size: 34px;
}

.card-line,
.price {
  margin: 6px 0 0;
}

.price {
  color: var(--brown);
  font-weight: 600;
}

.note,
.fine {
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin: 22px 0 0;
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.empty {
  margin: 0;
  padding: 28px 0;
}

.material-layout,
.visit-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
}

.swatch-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}

.swatch-btn[aria-pressed="true"] {
  border-color: var(--brown);
}

.swatch-btn span:last-child {
  font-size: 14px;
}

.swatch {
  display: block;
  width: 100%;
  height: 74px;
  border: 1px solid var(--line);
}

.swatch.oak {
  background:
    repeating-linear-gradient(90deg, rgba(80, 42, 16, 0.16) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #d7a56a, #b78345);
}

.swatch.ash {
  background:
    repeating-linear-gradient(90deg, rgba(120, 90, 50, 0.14) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #edd9b8, #d3b78a);
}

.swatch.walnut {
  background:
    repeating-linear-gradient(90deg, rgba(255, 220, 180, 0.14) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #7a4b2c, #4d2d18);
}

.swatch.linen {
  background:
    repeating-linear-gradient(0deg, rgba(120, 71, 39, 0.09) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(120, 71, 39, 0.07) 0 1px, transparent 1px 5px),
    #f4e7cf;
}

.swatch.smoke {
  background:
    repeating-linear-gradient(0deg, rgba(58, 36, 22, 0.08) 0 1px, transparent 1px 5px),
    #cfc3b2;
}

.swatch.cocoa {
  background:
    repeating-linear-gradient(0deg, rgba(255, 246, 229, 0.12) 0 1px, transparent 1px 5px),
    #8d5a3b;
}

.material-copy h3 {
  margin: 8px 0 12px;
}

.material-copy p:last-child {
  margin-bottom: 0;
  max-width: 38rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 8px 0 0;
  padding: 0;
}

.steps li {
  border-top: 1px solid var(--brown);
  padding-top: 14px;
}

.steps span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--brown);
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.visit-copy p {
  max-width: 34rem;
}

.visit-panel,
.form {
  border: 1px solid var(--line);
  padding: 26px 26px 18px;
  background: rgba(255, 255, 255, 0.28);
}

.visit-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.visit-panel .form,
.visit-panel .success {
  border: 1px solid var(--line);
  padding: 26px 26px 18px;
  background: rgba(255, 255, 255, 0.28);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brown);
}

.error {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: #8c2f1b;
  font-size: 14px;
}

.form .btn {
  width: 100%;
  margin-top: 8px;
}

.success {
  padding: 12px 0 6px;
}

.success h3 {
  margin-bottom: 10px;
}

.success[hidden],
.empty[hidden],
.form[hidden] {
  display: none;
}

dialog {
  width: min(960px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
}

dialog::backdrop {
  background: rgba(58, 36, 22, 0.48);
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.dialog-layout figure {
  margin: 0;
  background: #e8d4b4;
}

.dialog-layout img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  background: #fffaf0;
}

.dialog-body {
  padding: 22px 26px 26px;
}

.dialog-close {
  float: right;
  background: transparent;
  border: 0;
  color: var(--brown);
  cursor: pointer;
  padding: 4px 0 4px 12px;
}

.dialog-body h2 {
  clear: right;
  margin: 18px 0 12px;
  font-size: clamp(36px, 4vw, 48px);
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 20px 0;
  padding: 0;
}

.specs div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.specs dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs dd {
  margin: 4px 0 0;
}

.points {
  margin: 0 0 18px;
  padding-left: 18px;
}

.points li + li {
  margin-top: 6px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dialog-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.dialog-nav button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--brown);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: start;
}

.location-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.location-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.location-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.location-list a {
  color: var(--brown);
}

.location-card {
  border: 1px solid var(--line);
  padding: 28px 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent),
    rgba(255, 255, 255, 0.22);
}

.location-card h3 {
  margin: 10px 0 12px;
}

.location-card p {
  margin: 0 0 8px;
}

.consent-field {
  margin-top: 4px;
}

.consent-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.consent-label input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--brown);
}

.consent-label a {
  color: var(--brown);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}

.footer-inner,
.footer-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.site-footer img {
  height: 72px;
  width: auto;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-links a {
  color: var(--brown);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tg-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px 0 12px;
  background: var(--brown);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--brown-deep);
  box-shadow: 0 12px 28px rgba(58, 36, 22, 0.18);
}

.tg-widget:hover {
  background: var(--brown-deep);
}

.tg-widget-icon {
  display: inline-flex;
}

.tg-widget-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff6e5;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-inner p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  max-width: 52rem;
}

.cookie-inner a {
  color: var(--brown);
}

.legal {
  padding: 48px 0 72px;
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(34px, 4vw, 48px);
  margin-bottom: 24px;
}

.legal h2 {
  margin: 28px 0 12px;
  font-size: 28px;
}

.legal h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal ul {
  padding-left: 18px;
}

.legal a {
  color: var(--brown);
}

@media (max-width: 980px) {
  .hero,
  .material-layout,
  .visit-grid,
  .location-grid,
  .footer-grid,
  .dialog-layout,
  .steps {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner,
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tg-widget-text {
    display: none;
  }

  .tg-widget {
    right: 16px;
    bottom: 16px;
    padding: 0;
    width: 52px;
    justify-content: center;
  }

  body:has(#cookie-banner:not([hidden])) .tg-widget {
    bottom: 110px;
  }

  .filters {
    justify-content: flex-start;
  }

  .dialog-layout img {
    max-height: 320px;
  }
}

@media (max-width: 760px) {
  :root {
    --measure: min(1120px, calc(100% - 32px));
  }

  .header-inner {
    min-height: 84px;
  }

  .logo img {
    height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 16px 18px;
    background: #fff6e5;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .facts,
  .catalog-grid,
  .specs {
    grid-template-columns: 1fr;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card img {
    transition: none;
  }
}
