:root {
  --cream: #f7efe3;
  --paper: #fffaf3;
  --maroon: #562821;
  --espresso: #2d201b;
  --sage: #7e8a70;
  --sage-dark: #4f5d48;
  --brass: #b99355;
  --rose: #d7a69a;
  --ink: #231b17;
  --muted: #75675e;
  --line: rgba(86, 40, 33, 0.18);
  --shadow: 0 24px 60px rgba(45, 32, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Georgia", "Times New Roman", serif;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(18px);
}

.topbar {
  padding: 8px 16px;
  color: var(--paper);
  background: var(--maroon);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--maroon);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--paper);
  background: var(--maroon);
  font-size: 17px;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--espresso);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
}

.nav-cta,
.button,
.quote-button {
  min-height: 44px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-cta {
  padding: 14px 22px;
  color: var(--paper);
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 106px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 54px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--maroon);
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  font-size: clamp(64px, 11vw, 144px);
}

h2 {
  font-size: clamp(36px, 5vw, 72px);
}

.lede,
.split-copy p,
.inquiry-copy p {
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
}

.button.primary,
.quote-button {
  color: var(--paper);
  background: var(--maroon);
}

.button.secondary {
  color: var(--maroon);
  background: transparent;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: 250px 250px;
  gap: 16px;
}

.hero-image,
.split-media img,
.collection-tile img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image.tall {
  grid-row: span 2;
}

.ticker {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 15px 20px;
  color: var(--paper);
  background: var(--sage-dark);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 760px;
}

.section-heading a {
  color: var(--maroon);
  border-bottom: 1px solid currentColor;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading.centered {
  display: block;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.product-card img {
  aspect-ratio: 4 / 5;
  height: auto;
}

.product-card div {
  padding: 18px;
}

.product-card h3 {
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 24px;
  font-weight: 500;
}

.product-card p,
.product-card span,
.review span,
.footer,
.inquiry-form {
  font-family: Inter, Arial, sans-serif;
}

.product-card p {
  min-height: 44px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-card span {
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  background: var(--cream);
}

.split-media {
  min-height: 520px;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(24px, 5vw, 84px);
}

.process-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.process-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--espresso);
  font-family: Inter, Arial, sans-serif;
}

.process-list strong {
  color: var(--brass);
  font-size: 16px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.collection-tile {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  background: var(--espresso);
}

.collection-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  transition: transform 240ms ease;
}

.collection-tile:hover img {
  transform: scale(1.04);
}

.collection-tile span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  color: var(--paper);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

.dessert-strip {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
  padding: 72px clamp(24px, 7vw, 120px);
  color: var(--paper);
  background: var(--maroon);
}

.dessert-strip h2,
.dessert-strip .eyebrow {
  color: var(--paper);
}

.dessert-strip ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dessert-strip li {
  min-height: 74px;
  padding: 24px;
  border: 1px solid rgba(255, 250, 243, 0.25);
  border-radius: 8px;
  color: var(--cream);
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.review p {
  margin: 0 0 28px;
  color: var(--espresso);
  font-size: 27px;
  line-height: 1.25;
}

.review span {
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
}

.inquiry {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  padding: 86px clamp(24px, 7vw, 120px);
  background: var(--sage);
}

.inquiry h2,
.inquiry .eyebrow {
  color: var(--paper);
}

.inquiry-copy p {
  color: rgba(255, 250, 243, 0.78);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  color: var(--paper);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inquiry-form label,
.reference-desk legend,
.drawing-desk legend {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inquiry-form input:not([type="submit"]):not([type="file"]):not([type="color"]):not([type="range"]),
.inquiry-form select,
.inquiry-form textarea,
.upload-drop {
  width: 100%;
  border: 1px solid rgba(255, 250, 243, 0.34);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--paper);
  font: 16px Inter, Arial, sans-serif;
}

.reference-desk,
.drawing-desk {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.reference-desk legend,
.drawing-desk legend {
  margin-bottom: 8px;
  color: var(--paper);
}

.upload-drop {
  display: grid;
  min-height: 112px;
  place-items: center;
  gap: 8px;
  border-style: dashed;
  cursor: pointer;
  text-align: center;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-drop span {
  color: var(--maroon);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.upload-drop small {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reference-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}

.reference-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 250, 243, 0.34);
  border-radius: 8px;
  background: var(--cream);
}

.drawing-tools {
  display: grid;
  grid-template-columns: minmax(112px, 150px) 1fr auto;
  gap: 12px;
  align-items: end;
}

.drawing-tools label {
  color: var(--paper);
}

.drawing-tools input[type="color"] {
  height: 46px;
  padding: 5px;
}

.drawing-tools input[type="range"] {
  accent-color: var(--maroon);
}

.clear-drawing {
  width: 92px;
  min-height: 46px;
  border: 1px solid rgba(255, 250, 243, 0.42);
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.drawing-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 15 / 7;
  border: 1px solid rgba(255, 250, 243, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(86, 40, 33, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 40, 33, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  cursor: crosshair;
  touch-action: none;
}

.quote-button {
  width: 190px;
  border-color: var(--maroon);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--paper);
  font-size: 14px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer div {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.confirmation-page {
  min-height: calc(100vh - 106px);
  padding: 76px clamp(18px, 7vw, 120px);
  background:
    linear-gradient(rgba(255, 250, 243, 0.9), rgba(255, 250, 243, 0.96)),
    url("https://images.unsplash.com/photo-1488477181946-6428a0291777?auto=format&fit=crop&w=1600&q=85") center / cover;
}

.confirmation-hero {
  max-width: 820px;
  margin-bottom: 34px;
}

.confirmation-hero h1 {
  max-width: 780px;
  font-size: clamp(46px, 8vw, 96px);
}

.confirmation-hero p,
.confirmation-card {
  font-family: Inter, Arial, sans-serif;
}

.confirmation-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.confirmation-card {
  display: grid;
  gap: 24px;
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 250, 243, 0.94);
  box-shadow: var(--shadow);
}

.request-number {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.request-number span,
.confirmation-grid span,
.confirmation-notes span {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-number strong {
  color: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
  overflow-wrap: anywhere;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.confirmation-grid article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--cream);
}

.confirmation-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--maroon);
  font-size: 18px;
}

.confirmation-grid p,
.confirmation-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.confirmation-notes {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flash-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 36px));
}

.flash,
.form-errors {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--maroon);
  box-shadow: var(--shadow);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

.flash.alert,
.form-errors {
  border-color: rgba(86, 40, 33, 0.35);
  background: #fff2ed;
}

.form-errors p {
  margin: 6px 0 0;
}

.admin-body {
  background: #f4efe7;
  font-family: Inter, Arial, sans-serif;
}

.admin-body h1,
.admin-body h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.admin-body h1 {
  color: var(--maroon);
  font-size: clamp(42px, 6vw, 76px);
}

.admin-body h2 {
  color: var(--maroon);
  font-size: 28px;
}

.admin-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.admin-link-button,
.status-form .quote-button {
  min-height: 42px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--maroon);
  cursor: pointer;
  font: 800 12px Inter, Arial, sans-serif;
  text-transform: uppercase;
}

.admin-flash {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 24px;
}

.admin-auth,
.admin-dashboard,
.admin-detail {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.admin-auth {
  display: grid;
  grid-template-columns: 0.9fr minmax(320px, 480px);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 84px);
}

.admin-auth p,
.detail-hero p,
.detail-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.admin-form,
.status-form {
  display: grid;
  gap: 16px;
}

.admin-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-form label,
.status-form label {
  display: grid;
  gap: 8px;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input:not([type="submit"]),
.status-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font: 16px Inter, Arial, sans-serif;
}

.admin-dashboard-heading,
.detail-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px;
}

.admin-stats span {
  display: grid;
  gap: 4px;
  min-width: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stats strong {
  color: var(--maroon);
  font-size: 28px;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.status-tabs a,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--maroon);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-tabs a.active {
  color: var(--paper);
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.admin-table-wrap,
.detail-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--espresso);
  font-size: 14px;
}

.table-muted {
  color: var(--muted);
  font-size: 12px;
}

.admin-table td a {
  color: var(--maroon);
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--paper);
  background: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  padding: 28px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}

.detail-panel {
  padding: 24px;
}

.detail-panel.full {
  grid-column: 1 / -1;
}

.customer-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.customer-details div {
  display: grid;
  gap: 5px;
}

.customer-details dt {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-details dd {
  margin: 0;
  color: var(--espresso);
  font-size: 15px;
  line-height: 1.45;
}

.customer-details a {
  color: var(--maroon);
  font-weight: 800;
}

.admin-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-reference-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
}

.admin-drawing {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero,
  .split-section,
  .dessert-strip,
  .inquiry {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 210px 210px;
  }

  .product-grid,
  .confirmation-grid,
  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-tile {
    min-height: 330px;
  }

  .ticker {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .admin-auth,
  .admin-dashboard-heading,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-heading,
  .detail-hero {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav {
    padding: 14px 16px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-cta {
    padding: 12px 16px;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .hero,
  .section,
  .split-copy,
  .dessert-strip,
  .inquiry {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-gallery {
    grid-template-rows: 180px 180px;
    gap: 10px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 18px;
  }

  .product-grid,
  .form-grid,
  .confirmation-grid,
  .testimonials,
  .dessert-strip ul {
    grid-template-columns: 1fr;
  }

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

  .drawing-tools {
    grid-template-columns: 1fr;
  }

  .clear-drawing {
    width: 100%;
  }

  .review p {
    font-size: 23px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-shell-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 680px;
  }

  .admin-stats,
  .admin-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
