:root {
  color-scheme: light;
  --ink: #25201c;
  --muted: #6d6257;
  --paper: #f7f3ee;
  --panel: #ffffff;
  --clay: #a94f35;
  --clay-dark: #77331f;
  --sage: #667b68;
  --blue: #324d5c;
  --cream: #fdf9f2;
  --stone: #d9d1c6;
  --line: rgba(37, 32, 28, 0.14);
  --shadow: 0 18px 45px rgba(41, 31, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-strip {
  padding: 8px clamp(18px, 4vw, 56px);
  color: #fff8ef;
  background: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--clay);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-weight: 650;
}

.nav a:hover {
  color: var(--clay-dark);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(24, 21, 18, 0.78), rgba(24, 21, 18, 0.28) 54%, rgba(24, 21, 18, 0.08)), url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.hero-content {
  max-width: 720px;
  padding: 0 clamp(18px, 5vw, 72px) 72px;
  color: #fffaf4;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6c7a7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 10vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 250, 244, 0.86);
  font-size: 19px;
}

.hero-actions,
.contact-actions,
.section-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: var(--clay);
}

.primary-button:hover {
  background: var(--clay-dark);
}

.secondary-button {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}

.full-button {
  width: 100%;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.intro-band div {
  padding: 24px clamp(18px, 4vw, 56px);
  background: #eee7df;
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band span {
  color: var(--muted);
}

.section,
.feature-band,
.contact-section,
.category-band,
.project-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card div {
  padding: 22px;
}

.product-card p,
.feature-copy p,
.service-list p,
.contact-section p,
.timeline p {
  color: var(--muted);
}

.category-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.category-copy {
  max-width: 560px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-list li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 760;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: #e7ece5;
  border-block: 1px solid rgba(102, 123, 104, 0.22);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(102, 123, 104, 0.22);
  border-radius: 8px;
}

.service-list span {
  grid-row: span 2;
  color: var(--sage);
  font-weight: 900;
}

.service-list p {
  margin-bottom: 0;
}

.project-section {
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline article {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

.visual-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.visual-section img {
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: center;
  background: #f1ece5;
}

.contact-section > div:first-child {
  max-width: 760px;
}

.contact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.contact-panel div {
  padding: 18px;
  background: var(--panel);
}

.contact-panel span,
.contact-panel strong {
  display: block;
}

.contact-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel strong {
  margin-top: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.cart-shortcut {
  position: relative;
}

.cart-shortcut strong {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: white;
  background: var(--clay);
  border-radius: 999px;
  font-size: 12px;
}

.catalog-shell,
.order-shell,
.admin-shell {
  display: grid;
  gap: 24px;
  padding: clamp(32px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.catalog-shell {
  grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr);
}

.catalog-filters,
.order-panel,
.order-form,
.admin-form,
.admin-list-panel,
.export-panel {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(41, 31, 22, 0.08);
}

.catalog-filters {
  position: sticky;
  top: 96px;
  align-self: start;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  text-transform: none;
}

textarea {
  resize: vertical;
}

.filter-buttons,
.admin-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.filter-buttons button,
.order-item button {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-buttons button.active {
  color: white;
  background: var(--blue);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}

.catalog-toolbar p {
  margin: 0;
}

.catalog-toolbar a {
  color: var(--clay-dark);
  font-weight: 800;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.catalog-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.catalog-card-body span,
.catalog-card-body em,
.form-note,
.empty-state,
.order-item span,
.admin-product span,
.panel-heading p:not(.eyebrow) {
  color: var(--muted);
}

.catalog-card-body span,
.catalog-card-body em {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.catalog-card-body h3,
.catalog-card-body p {
  margin-bottom: 0;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-row strong {
  color: var(--clay-dark);
  font-size: 24px;
}

.price-row small {
  color: var(--muted);
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
}

.order-shell {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: start;
}

.panel-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.order-item,
.admin-product {
  display: grid;
  grid-template-columns: 1fr 92px auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.admin-product {
  grid-template-columns: 1fr auto;
}

.order-item strong,
.order-item span,
.admin-product strong,
.admin-product span {
  display: block;
}

.order-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 22px 0;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.order-total strong {
  color: var(--clay-dark);
  font-size: 28px;
}

.order-form,
.admin-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-shell {
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.export-panel {
  margin: 0 clamp(18px, 5vw, 72px) clamp(48px, 6vw, 72px);
}

.export-panel textarea {
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding-bottom: 48px;
  }

  .intro-band,
  .product-grid,
  .feature-band,
  .category-band,
  .timeline,
  .visual-section,
  .contact-section,
  .page-hero,
  .catalog-shell,
  .catalog-grid,
  .order-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: static;
  }

  .contact-actions {
    margin-top: 0;
  }

  .category-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .top-strip {
    text-align: left;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .site-footer {
    flex-direction: column;
  }

  .card-actions,
  .order-item,
  .admin-product,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
