@font-face {
  font-family: DM Sans;
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-weight: 400 750;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --paper: #f8f0e4;
  --surface: #fff9ef;
  --cream: #eee2cf;
  --latte: #e8d7bd;
  --ink: #302f27;
  --muted: #63574a;
  --line: #d0bfa5;
  --field-line: #967f65;
  --forest: #3d5345;
  --forest-hover: #49604f;
  --sage: #dce5d6;
  --sage-line: #aab9a6;
  --accent: #974326;
  --accent-light: #f1b887;
  --accent-tint: #efd0b4;
  --error: #873b2b;
  --error-tint: #f7ded2;
  --error-line: #cf9d8e;
  --heading: Fraunces,Georgia,serif;
  --body: "DM Sans",system-ui,sans-serif;
  color: var(--ink);
  font: 16px/1.5 var(--body);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button {
  cursor: pointer;
}

button[disabled] {
  cursor: wait;
  opacity: .65;
}

:focus-visible {
  outline: 3px solid var(--forest-hover);
  outline-offset: 4px;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.06;
}

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

[hidden] {
  display: none!important;
}

.shell {
  max-width: 1320px;
  padding-inline: 48px;
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
}

.topline {
  background: var(--forest);
  color: var(--surface);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .05em;
}

.topline span {
  color: var(--accent-light);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 77px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.wordmark strong {
  font: 800 2.25rem/.95 var(--heading);
  letter-spacing: -.085em;
}

.wordmark span {
  font-size: .71rem;
  font-weight: 750;
  line-height: 1.06;
  padding-left: 9px;
  border-left: 1px solid var(--ink);
}

.header-inner nav {
  display: flex;
  gap: 33px;
  font-weight: 650;
  font-size: .95rem;
}

.header-inner nav a, .footer-inner>a:not(.wordmark) {
  text-decoration: none;
}

.header-inner nav a:hover, .footer-inner>a:not(.wordmark):hover {
  text-decoration: underline;
}

.bag-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: transparent;
  font-weight: 700;
}

.bag-button:hover {
  background: var(--sage);
}

.bag-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 4px;
  background: var(--latte);
  border-radius: 50%;
  font-size: .8rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.11fr;
  margin-top: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 21px;
  overflow: hidden;
  background: var(--latte);
}

.hero-copy {
  padding: clamp(30px,4.6vw,65px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero h1 {
  color: var(--forest);
  font-size: clamp(3rem,5.3vw,4.55rem);
  letter-spacing: -.056em;
  line-height: 1.01;
  margin-bottom: 19px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.11rem;
  max-width: 310px;
  margin-bottom: 25px;
}

.hero-photo {
  position: relative;
  min-height: 424px;
  border-left: 1.5px solid var(--ink);
  background: var(--latte);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-position: center;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background: var(--cream);
}

.button.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--surface);
  box-shadow: 0 3px 0 var(--ink);
}

.button.primary:hover {
  background: var(--forest-hover);
}

.button.subtle {
  border-color: var(--line);
  box-shadow: none;
}

.button.green {
  background: var(--sage);
}

.catalog {
  padding: 54px 0 62px;
}

.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 21px;
}

.catalog-heading h2, .shipping-info h2 {
  font-size: clamp(2.15rem,4vw,3.3rem);
  letter-spacing: -.055em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-weight: 680;
}

.filters button:hover {
  border-color: var(--ink);
}

.filters button[aria-pressed=true] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--surface);
}

.demo-note {
  font-size: .875rem;
  color: var(--muted);
  margin: -7px 0 14px;
}

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

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

.product-picture {
  display: block;
  background: var(--sage);
  width: 100%;
  aspect-ratio: 1.25;
  border: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.product-picture img {
  width: 100%;
  height: 100%;
  transition: transform .24s ease;
}

.product-picture:hover img {
  transform: scale(1.035);
}

.product-card[data-category=desk] .product-picture {
  background: var(--cream);
}

.product-card[data-category=gifts] .product-picture {
  background: var(--latte);
}

.product-copy {
  padding: 17px;
}

.product-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.product-line h3 {
  font-size: 1.45rem;
  letter-spacing: -.03em;
}

.product-line button {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  font: inherit;
}

.product-line button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price {
  font-weight: 750;
  white-space: nowrap;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: .9rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest-hover);
  display: inline-block;
}

.dot.off {
  background: var(--accent);
}

.product-copy>.button {
  width: 100%;
  min-height: 37px;
  padding: 6px 10px;
}

.empty {
  grid-column: 1/-1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}

.shipping-info {
  background: var(--sage);
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 25px;
  align-items: center;
  margin-bottom: 55px;
}

.shipping-info h2 {
  font-size: clamp(2rem,3.5vw,2.9rem);
}

.shipping-info p {
  max-width: 580px;
  margin-top: 12px;
}

.shipping-illustration {
  font-family: var(--heading);
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--ink);
  font-size: 3.4rem;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 23px;
  padding-block: 23px;
}

.footer-inner .wordmark {
  margin-right: auto;
}

.footer-inner>a:not(.wordmark) {
  font-weight: 650;
}

.order-note {
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: 11px;
  background: var(--sage);
  border: 1px solid var(--sage-line);
}

.order-note strong {
  display: block;
}

.order-note .button {
  margin-top: 8px;
}

dialog {
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  padding: 0;
  max-height: calc(100% - 32px);
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgb(37 44 35 / 47%);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.dialog-head {
  padding: 19px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  font-size: 1.85rem;
  letter-spacing: -.035em;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  line-height: 1;
}

.icon-button:hover {
  background: var(--cream);
}

.product-dialog {
  width: min(730px,calc(100% - 28px));
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-grid>img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  min-height: 270px;
}

.detail-copy {
  padding: 23px;
  display: grid;
  align-content: center;
  gap: 15px;
}

.detail-copy .product-status {
  margin: 0;
}

.detail-copy form {
  display: grid;
  gap: 10px;
}

.bag-dialog {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(475px,100%);
  max-width: none;
  height: 100%;
  max-height: 100%;
  border-radius: 15px 0 0 15px;
}

#bag-content {
  padding: 20px 23px;
}

.payment-open .hero,
.payment-open .catalog,
.payment-open .shipping-info,
.payment-open .header-inner nav,
.payment-open .site-footer,
.payment-open #order-note {
  display: none;
}

.payment-panel {
  max-width: 960px;
  margin: 32px auto 60px;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.payment-heading h1 {
  font-size: 2rem;
}

.payment-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.bag-list {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.bag-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 11px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.bag-row img, .bag-row .thumb {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: var(--cream);
}

.bag-row p {
  font-size: .91rem;
}

.qty {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: .9rem;
}

.qty button {
  min-width: 32px;
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  font-weight: 750;
}

.stack {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 4px;
  font-weight: 650;
  font-size: .92rem;
  min-width: 0;
}

.field small, .hint {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 450;
}

.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: 7px;
  padding: 8px 10px;
  min-height: 41px;
  font-weight: 450;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);
  background-position: calc(100% - 16px) center,calc(100% - 11px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 27px;
}

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

.fields-3 {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.check {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: .94rem;
}

.check input, .rate-choice input {
  accent-color: var(--forest);
  margin-top: 4px;
  flex: none;
}

.rate-choice {
  display: flex;
  align-items: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  background: var(--surface);
}

.rate-choice:has(input:checked) {
  border-color: var(--forest-hover);
  background: var(--sage);
}

.rate-choice .price {
  margin-left: auto;
}

.form-error {
  color: var(--error);
  font-size: .9rem;
  font-weight: 650;
}

.form-error:empty {
  display: none;
}

.link-button {
  border: 0;
  background: none;
  padding: 3px 0;
  justify-self: start;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 650;
  text-align: left;
}

@media(max-width:920px) {
  .shell {
    padding-inline: 28px;
  }

  .hero-copy {
    padding: 35px;
  }

  .hero-photo {
    min-height: 345px;
  }

  .hero h1 {
    font-size: clamp(2.9rem,6.2vw,4.3rem);
  }
}

@media(max-width:670px) {
  .shell {
    padding-inline: 16px;
  }

  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .header-inner nav {
    gap: 12px;
    font-size: .87rem;
  }

  .header-inner nav a:nth-child(2) {
    display: none;
  }

  .wordmark strong {
    font-size: 1.95rem;
  }

  .hero {
    margin-top: 20px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 27px 24px;
  }

  .hero h1 {
    font-size: clamp(3.1rem,10vw,4.2rem);
  }

  .hero-photo {
    min-height: 230px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .catalog {
    padding-block: 35px;
  }

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

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

  .product-copy {
    padding: 11px;
  }

  .product-line {
    display: block;
  }

  .product-line h3 {
    font-size: 1.25rem;
  }

  .product-status {
    font-size: .83rem;
    align-items: baseline;
  }

  .dot {
    flex: none;
  }

  .shipping-info {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 14px;
    margin-bottom: 32px;
  }

  .shipping-illustration {
    display: none;
  }

  .shipping-info .button {
    justify-self: start;
  }

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

  .detail-grid>img {
    height: 205px;
    min-height: 0;
  }
}

@media(max-width:370px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.86rem;
  }
}

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