:root {
  --ink: #24231f;
  --paper: #f6f3ec;
  --white: #fffdf8;
  --line: #d9d4ca;
  --clay: #bb684c;
  --olive: #66715b;
  --indigo: #4d5a71;
  --ochre: #c49b52;
  --muted: #78736b;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.announcement {
  height: 32px;
  display: flex;
  gap: 13px;
  justify-content: center;
  align-items: center;
  background: var(--ink);
  color: #f9f4e9;
  font: 11px var(--mono);
  letter-spacing: 0.03em;
}
.announcement span {
  color: #c49b52;
}
.site-header {
  height: 82px;
  padding: 0 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(246, 243, 236, 0.93);
  backdrop-filter: blur(12px);
  z-index: 5;
}
.wordmark {
  font: bold 29px var(--sans);
  letter-spacing: -0.09em;
}
.wordmark span {
  color: var(--clay);
}
.main-nav {
  display: flex;
  gap: 36px;
  margin-left: 8vw;
  font-size: 12px;
}
.main-nav a {
  position: relative;
}
.main-nav a:first-child:after {
  content: "";
  height: 2px;
  background: var(--clay);
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
}
.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
}
.icon-button {
  display: flex;
  gap: 7px;
  align-items: center;
}
.cart-button {
  padding: 10px 0;
}
.cart-button b {
  background: var(--clay);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-left: 5px;
}
.hero {
  max-width: 1400px;
  margin: auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: 45% 55%;
  padding: 72px 7vw 80px;
}
.eyebrow {
  font: 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 17px;
}
.hero h1 {
  font-size: clamp(52px, 7vw, 100px);
  letter-spacing: -0.075em;
  line-height: 0.91;
  margin: 0 0 28px;
}
.hero h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.05em;
}
.hero-text {
  max-width: 275px;
  line-height: 1.7;
  color: #615e57;
  margin-bottom: 28px;
}
.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}
.text-link span {
  font-size: 17px;
}
.hero-art {
  min-height: 420px;
  background: #d9b9a2;
  position: relative;
  overflow: hidden;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 239, 210, 0.5), transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent 0 28px,
      rgba(84, 54, 42, 0.07) 29px 30px
    );
}
.art-stamp {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-content: center;
  text-align: center;
  font: bold 13px var(--mono);
  line-height: 1.1;
  transform: rotate(-12deg);
}
.art-stamp small {
  font-size: 8px;
  font-weight: 400;
}
.art-object {
  position: absolute;
  z-index: 1;
}
.object-one {
  height: 245px;
  width: 270px;
  left: 27%;
  bottom: 28px;
  background: linear-gradient(140deg, #9e4f3d, #d9855e 47%, #7f443a);
  border-radius: 52% 48% 41% 39%/37% 36% 55% 62%;
  transform: rotate(-16deg);
  box-shadow: 26px 18px 0 rgba(102, 60, 43, 0.1);
}
.object-one:after {
  content: "JAAB";
  position: absolute;
  right: 20px;
  bottom: 25px;
  color: #f2c2a7;
  font: 12px var(--mono);
  transform: rotate(16deg);
}
.object-two {
  width: 180px;
  height: 180px;
  right: 9%;
  top: 19%;
  background: #66715b;
  border-radius: 50% 47% 44% 50%;
  box-shadow: inset 18px -15px 0 rgba(27, 44, 31, 0.16);
}
.art-label {
  position: absolute;
  right: 25px;
  bottom: 24px;
  z-index: 2;
  font: italic 17px var(--serif);
  line-height: 1.1;
  text-align: right;
}
.shop-section,
.orders-section,
.admin-section {
  max-width: 1400px;
  margin: auto;
  padding: 82px 7vw;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 43px;
}
.section-heading h2 {
  font-size: 48px;
  letter-spacing: -0.07em;
  line-height: 0.95;
  margin: 0;
}
.section-note {
  line-height: 1.7;
  color: var(--muted);
  font-size: 12px;
  margin: 0 5% 4px 0;
}
.shop-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
}
.categories {
  display: flex;
  gap: 24px;
  overflow: auto;
  white-space: nowrap;
}
.category-button {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
}
.category-button.active {
  color: var(--ink);
  border-bottom: 2px solid var(--clay);
}
.search-field {
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding: 5px 0;
  width: 205px;
}
.search-field span {
  font-size: 20px;
}
.search-field input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  font-size: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 20px;
}
.product-card {
  min-width: 0;
}
.product-visual {
  height: 320px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 17px;
}
.product-visual:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18),
    transparent 55%
  );
}
.product-visual.clay {
  background: #dcb5a0;
}
.product-visual.indigo {
  background: #aab5c2;
}
.product-visual.ochre {
  background: #dcc38b;
}
.product-visual.olive {
  background: #aab29a;
}
.product-visual.wine {
  background: #c5a0a0;
}
.product-visual.sand {
  background: #d8c9af;
}
.product-shape {
  width: 57%;
  height: 64%;
  border-radius: 50% 44% 52% 39%;
  background: #a85a43;
  box-shadow: 20px 18px 0 rgba(75, 50, 38, 0.1);
  transform: rotate(-15deg);
  font: 46px var(--serif);
  color: rgba(255, 239, 216, 0.8);
  display: grid;
  place-items: center;
}
.indigo .product-shape {
  background: #495873;
}
.ochre .product-shape {
  background: #ae7d31;
}
.olive .product-shape {
  background: #5f6f50;
}
.wine .product-shape {
  background: #844958;
}
.sand .product-shape {
  background: #a58a64;
}
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.product-name {
  font-weight: 700;
  margin: 0 0 5px;
}
.product-category {
  font: 10px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
}
.product-price {
  font: 12px var(--mono);
  white-space: nowrap;
}
.product-description {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 13px 0 16px;
  max-width: 290px;
}
.add-button {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}
.add-button:disabled {
  color: #aaa;
  border-color: #aaa;
  cursor: not-allowed;
}
.story-band {
  background: var(--ink);
  color: #f8f2e6;
  padding: 86px 14vw 94px;
}
.story-band .eyebrow {
  color: #beb6a7;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.45fr;
  gap: 8vw;
  align-items: end;
}
.story-grid h2 {
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin: 0;
}
.story-grid p {
  font-size: 13px;
  line-height: 1.8;
  color: #c4bdb2;
  margin: 0;
}
.story-band .text-link {
  border-color: #f8f2e6;
}
.orders-section,
.admin-section {
  min-height: 450px;
}
.orders-content,
.admin-content {
  border-top: 1px solid var(--line);
}
.empty-state {
  padding: 55px 0;
  color: var(--muted);
  line-height: 1.8;
}
.auth-prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 0;
}
.primary-button {
  background: var(--clay);
  color: white;
  padding: 15px 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.primary-button:hover {
  background: #9d513c;
}
.order-row,
.admin-order {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.7fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.order-id,
.admin-id {
  font: 11px var(--mono);
}
.order-date,
.order-items {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.status {
  font: 10px var(--mono);
  text-transform: uppercase;
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 7px;
}
.status:before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--olive);
  border-radius: 50%;
}
.order-total {
  text-align: right;
  font: 12px var(--mono);
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 11px;
  color: var(--muted);
}
.admin-order {
  grid-template-columns: 1.1fr 1.2fr 0.8fr 0.9fr;
}
.status-select,
.stock-input {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px;
  font-size: 11px;
}
.stock-input {
  width: 70px;
}
.inventory-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.inventory-info small {
  display: block;
  color: var(--muted);
  font: 10px var(--mono);
  margin-top: 5px;
}
.inventory-action {
  display: flex;
  gap: 8px;
}
footer {
  background: #e5dfd4;
  padding: 48px 7vw;
  display: flex;
  align-items: start;
  justify-content: space-between;
}
footer p {
  font-size: 11px;
  line-height: 1.7;
  color: #716b61;
  margin: 0;
}
.footer-meta {
  font: 10px var(--mono);
}
.cart-drawer {
  position: fixed;
  z-index: 10;
  right: 0;
  top: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--white);
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}
.scrim {
  position: fixed;
  z-index: 9;
  inset: 0;
  background: rgba(36, 35, 31, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.scrim.show {
  opacity: 1;
  pointer-events: auto;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
}
.drawer-header h2,
dialog h2 {
  font-size: 37px;
  letter-spacing: -0.07em;
  margin: 0;
  line-height: 1;
}
.close-button {
  font-size: 28px;
  font-weight: 300;
  align-self: start;
}
.cart-items {
  flex: 1;
  overflow: auto;
  margin: 35px 0;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-thumb {
  height: 72px;
  display: grid;
  place-items: center;
}
.cart-line p {
  font-weight: 700;
  margin: 0 0 5px;
  font-size: 12px;
}
.cart-line small {
  font: 10px var(--mono);
  color: var(--muted);
}
.cart-qty {
  display: flex;
  gap: 9px;
  align-items: center;
  font: 11px var(--mono);
  margin-top: 9px;
}
.cart-qty button {
  font-size: 18px;
  color: var(--clay);
}
.cart-line strong {
  font: 11px var(--mono);
  align-self: start;
}
.cart-footer {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.cart-footer > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12px;
}
.cart-footer strong {
  font: 13px var(--mono);
}
.cart-footer .primary-button {
  width: 100%;
}
dialog {
  border: 0;
  width: min(460px, calc(100% - 32px));
  padding: 43px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 80px rgba(36, 35, 31, 0.25);
}
dialog::backdrop {
  background: rgba(36, 35, 31, 0.5);
}
dialog > .close-button {
  position: absolute;
  right: 25px;
  top: 20px;
}
.dialog-intro {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 28px;
}
.auth-dialog form,
.checkout-dialog form {
  display: grid;
  gap: 12px;
}
dialog input,
dialog textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 13px;
  outline: none;
  font-size: 12px;
}
dialog input:focus,
dialog textarea:focus {
  border-color: var(--clay);
}
dialog textarea {
  min-height: 80px;
  resize: vertical;
}
#checkout-dialog form label {
  font-size: 11px;
  display: grid;
  gap: 7px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 7px 0 0;
  display: grid;
  gap: 7px;
}
legend {
  font-size: 11px;
  margin-bottom: 7px;
}
.radio-option {
  display: flex !important;
  grid-template-columns: auto 1fr auto;
  display: grid !important;
  grid-template-columns: 17px 1fr auto;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px !important;
}
.radio-option input {
  width: auto;
}
.radio-option span {
  font: 10px var(--mono);
  color: var(--muted);
}
.form-error {
  font-size: 11px;
  color: #a84536;
  min-height: 15px;
  margin: 0;
}
.switch-auth {
  font-size: 11px;
  text-decoration: underline;
  margin-top: 20px;
}
.demo-hint {
  font: 9px var(--mono);
  color: var(--muted);
  line-height: 1.6;
  margin-top: 28px;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 760px) {
  .announcement {
    font-size: 9px;
    padding: 0 12px;
    text-align: center;
  }
  .site-header {
    padding: 0 20px;
    height: 70px;
  }
  .main-nav {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .icon-button span {
    display: none;
  }
  .hero {
    display: block;
    padding: 48px 20px 30px;
  }
  .hero-art {
    margin-top: 48px;
    min-height: 350px;
  }
  .object-one {
    left: 18%;
    width: 230px;
    height: 210px;
  }
  .object-two {
    width: 130px;
    height: 130px;
  }
  .shop-section,
  .orders-section,
  .admin-section {
    padding: 65px 20px;
  }
  .section-heading {
    align-items: start;
    display: block;
  }
  .section-heading h2 {
    font-size: 42px;
  }
  .section-note {
    margin-top: 22px;
  }
  .shop-controls {
    display: block;
  }
  .categories {
    margin-bottom: 22px;
  }
  .search-field {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 11px;
  }
  .product-visual {
    height: 220px;
  }
  .product-description {
    display: none;
  }
  .product-name {
    font-size: 12px;
  }
  .product-price {
    font-size: 10px;
  }
  .story-band {
    padding: 65px 20px;
  }
  .story-grid {
    display: block;
  }
  .story-grid h2 {
    font-size: 43px;
    margin-bottom: 30px;
  }
  .story-grid p {
    margin-bottom: 28px;
  }
  .order-row,
  .admin-order {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .order-total {
    text-align: left;
  }
  .admin-order {
    grid-template-columns: 1fr 1fr;
  }
  .admin-order select {
    width: 100%;
  }
  footer {
    display: grid;
    gap: 25px;
    padding: 38px 20px;
  }
  .cart-drawer {
    padding: 30px 20px;
  }
  dialog {
    padding: 35px 24px;
  }
  .auth-prompt {
    display: block;
  }
  .auth-prompt .primary-button {
    margin-top: 20px;
  }
}
