@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcfaf6;
  --white: #fffcf8;
  --ink: #282c24;
  --muted: #5c6255;
  --forest: #394e3d;
  --forest-hover: #293c2c;
  --sage: #e8ede2;
  --blush: #f3e8e4;
  --line: #e1ded4;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 96px;
  scrollbar-gutter: stable;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
p { line-height: 1.6; }

.shell { width: min(1320px, calc(100% - 88px)); margin-inline: auto; }

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--white);
}

.preview-strip {
  padding: 7px 14px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  color: var(--white);
  background: var(--forest);
}

.preview-strip span { margin-inline: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid #ebe8e0;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 75px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--forest);
  text-decoration: none;
}

.brand-flower {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #a8b19f;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.96rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-name small {
  padding-left: 1px;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.site-nav { display: flex; gap: clamp(24px, 3vw, 47px); }
.site-nav a { padding: 12px 0; font-size: 0.87rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.basket-toggle {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 8px 0 8px 8px;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 700;
}

.basket-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--sage);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.hero {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: clamp(410px, 37vw, 520px);
  margin-top: 25px;
  background: var(--blush);
  overflow: hidden;
  border-radius: 4px;
}

.hero-copy {
  align-self: center;
  padding: clamp(32px, 5.2vw, 78px);
}

.eyebrow {
  color: var(--forest);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.155em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 15px;
  font-size: clamp(4rem, 6.5vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.023em;
}

.hero em { color: var(--forest); font-weight: 400; }
.hero-copy > p:not(.eyebrow) {
  max-width: 340px;
  margin-top: 22px;
  color: #414a3e;
  font-size: clamp(0.97rem, 1.22vw, 1.09rem);
}

.hero-copy .button { margin-top: 25px; }
.hero-media { position: relative; min-height: 100%; background: #e4d7c5; }
.hero-media > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }

.featured-link {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(100% - 40px);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #fffaf3;
  border-radius: 3px;
  background: var(--white);
  color: var(--forest);
  font-size: 0.81rem;
  font-weight: 700;
  text-align: left;
}

.featured-link:hover { background: var(--sage); }
.featured-arrow { font-size: 1.05rem; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button span[aria-hidden] { font-size: 1.16rem; }
.primary { background: var(--forest); color: var(--white); }
.primary:hover { background: var(--forest-hover); }
.primary:disabled { background: #dce0d6; color: #5f6559; }
.secondary { border-color: #aeb6a7; background: transparent; color: var(--forest); }
.secondary:hover { background: var(--sage); }
.wide { width: 100%; }

.shop-section { margin-block: 63px 74px; }
.shop-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 23px;
  margin-bottom: 22px;
}

.shop-heading h2, .maker-story h2 { font-size: clamp(2.85rem, 4.2vw, 4rem); line-height: 0.97; }
.shop-heading p { margin-top: 9px; color: var(--muted); }
.filters { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }

.filter {
  min-height: 38px;
  padding: 7px 13px;
  color: #4d584a;
  border: 1px solid #dbdfd4;
  border-radius: 999px;
  background: transparent;
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
}

.filter:hover { border-color: var(--forest); }
.filter[aria-pressed="true"] { background: var(--sage); border-color: #b2bcae; color: var(--forest); }

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

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--blush);
}

.product-image-button:focus-visible { outline-offset: -4px; }
.product-image-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.32;
  object-fit: cover;
  transition: transform 270ms ease;
}

.product-image-button:hover img { transform: scale(1.035); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.product-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; }
.product-card h3 { font-size: clamp(1.55rem, 2.05vw, 2.02rem); line-height: 0.99; }
.product-name-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.product-name-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-price { color: var(--forest); font-size: 0.89rem; font-weight: 700; white-space: nowrap; }
.product-card-body > p { flex: 1; margin: 9px 0 17px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.product-action { width: 100%; min-height: 40px; border-color: #ccd5c8; background: var(--sage); color: var(--forest); }
.product-action:hover { border-color: var(--forest); background: var(--forest); color: var(--white); }

.maker-section { background: var(--sage); }
.maker-inner { display: grid; grid-template-columns: 1.26fr 0.74fr; gap: clamp(28px, 6vw, 86px); padding-block: 54px; }
.maker-story .eyebrow { margin-bottom: 10px; }
.maker-story > p:not(.eyebrow) { max-width: 490px; margin-top: 12px; color: #435140; }
.maker-contact { border-left: 1px solid #c2cbbd; padding: 7px 0 7px clamp(27px, 5vw, 75px); }
.maker-contact h3 { font-size: 2.15rem; line-height: 1; }
.maker-contact p { margin: 10px 0 14px; color: #435140; }

.text-link {
  display: inline-block;
  width: fit-content;
  color: var(--forest);
  font-size: 0.89rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.contact-email { display: block; margin-top: 7px; font-weight: 500; overflow-wrap: anywhere; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 94px; }
.footer-inner p { color: var(--muted); font-size: 0.85rem; }

dialog {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 60px #1e271b35;
}

dialog::backdrop { background: #1d251b70; }

.product-dialog {
  position: fixed;
  width: min(850px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 5px;
}

.product-dialog-inner { display: grid; grid-template-columns: 0.94fr 1.06fr; min-height: 400px; }
.product-detail-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #f3eee7; }
.product-detail-copy { align-self: center; padding: 41px 32px 32px; }
.product-detail-copy h2 { margin: 10px 0 7px; font-size: clamp(2.35rem, 4vw, 3.8rem); line-height: 0.94; }
.detail-price { font-size: 1.02rem; font-weight: 700; color: var(--forest); }
#product-dialog-description { margin: 12px 0 20px; color: var(--muted); }
.product-detail-copy .field { margin-bottom: 12px; }
.product-detail-copy .button { margin-top: 5px; }
.product-source { margin-top: 10px; }
.product-note { margin-top: 5px; color: var(--muted); font-size: 0.79rem; }

.icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 1.65rem;
  line-height: 1;
}

.icon-button:hover { background: var(--sage); }
.floating-close { position: absolute; top: 12px; right: 12px; z-index: 1; }

.basket-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(490px, 100%);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  overflow: hidden;
}

.drawer-panel { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-size: clamp(2.65rem, 5vw, 3.25rem); line-height: 0.96; }
.drawer-body { min-height: 0; padding: 18px 24px; overflow: auto; overscroll-behavior: contain; }
.drawer-footer { padding: 13px 24px max(17px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer-footer .button + .button { margin-top: 8px; }
.basket-items { margin: 0; padding: 0; list-style: none; }
.basket-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.basket-line:first-child { padding-top: 3px; }
.basket-line:last-child { border-bottom: 0; }
.line-image { width: 64px; height: 64px; border-radius: 3px; object-fit: cover; }
.line-content h3 { font-size: 1.6rem; line-height: 0.99; }
.line-details { margin-top: 5px; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; white-space: pre-line; }
.line-price { color: var(--forest); font-size: 0.91rem; white-space: nowrap; }
.line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

.quantity {
  display: inline-grid;
  grid-template-columns: 31px minmax(22px, auto) 31px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.quantity button { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--forest); }
.quantity button:hover:not(:disabled) { background: var(--sage); }
.quantity button:disabled { opacity: 0.4; }
.plain-button { padding: 7px 0; border: 0; background: transparent; color: var(--forest); font-size: 0.83rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.plain-button:hover { color: var(--ink); }
.empty-basket { color: var(--muted); }

.totals { display: grid; gap: 5px; margin: 0 0 12px; font-size: 0.84rem; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals .order-total { margin-top: 4px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--forest); font-size: 1.03rem; font-weight: 700; }

.back-button { margin-bottom: 7px; }
.form-note { color: var(--muted); font-size: 0.87rem; }
.sample-button { min-height: 38px; margin-block: 10px 16px; padding: 6px 12px; font-size: 0.81rem; }
.checkout-fields { display: grid; gap: 11px; }
.field { display: grid; min-width: 0; gap: 5px; color: #374338; font-size: 0.84rem; font-weight: 600; }
.field .optional { color: var(--muted); font-size: 0.8em; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 41px;
  padding: 8px 9px;
  border: 1px solid #afbaab;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.field textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 10px; }
.checkout-delivery { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 3px; background: var(--sage); color: var(--forest); font-size: 0.87rem; }
.checkout-delivery span { display: block; margin-top: 2px; font-size: 0.81rem; }

.order-body > p { margin-bottom: 15px; color: var(--muted); }
.order-slip { padding: 19px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); }
.order-slip h3 { margin-top: 4px; font-size: 2.15rem; line-height: 1; }
.order-slip h4 { margin-top: 16px; color: var(--forest); font-size: 0.9rem; }
.order-slip ul { display: grid; gap: 8px; margin: 7px 0 0; padding-left: 19px; font-size: 0.85rem; overflow-wrap: anywhere; }
.order-slip li span { display: block; margin-top: 2px; color: var(--muted); white-space: pre-line; }
.order-slip address, .order-email { margin-top: 5px; font-size: 0.85rem; font-style: normal; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.order-slip .totals { margin-top: 17px; margin-bottom: 0; }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 56px); }
  .hero-copy { padding-inline: clamp(24px, 4vw, 44px); }
  .shop-heading { align-items: start; flex-direction: column; gap: 15px; }
  .filters { justify-content: start; }
  .product-card-heading { align-items: start; flex-direction: column; gap: 5px; }
}

@media (max-width: 840px) {
  .hero h1 { font-size: clamp(3.6rem, 8vw, 5.1rem); }
  .hero-copy { padding-block: 35px; }
  .hero { min-height: 365px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card-heading { align-items: baseline; flex-direction: row; }
  .product-card h3 { font-size: 1.83rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 15px; }
}

@media (max-width: 640px) {
  :root { scroll-padding-top: 73px; scrollbar-gutter: auto; }
  .shell { width: calc(100% - 30px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 61px; gap: 10px; }
  .brand-name { font-size: 1.77rem; }
  .brand-flower { width: 28px; height: 28px; font-size: 1rem; }
  .wordmark { gap: 7px; }
  .site-nav { display: none; }
  .basket-toggle { gap: 5px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; }
  .hero-copy { padding: 32px 25px 29px; }
  .hero h1 { font-size: clamp(3.72rem, 13vw, 5.1rem); }
  .hero-copy > p:not(.eyebrow) { margin-top: 13px; }
  .hero-copy .button { margin-top: 16px; }
  .hero-media { min-height: 0; aspect-ratio: 1.43; }
  .featured-link { right: 10px; bottom: 10px; min-height: 37px; max-width: calc(100% - 20px); gap: 9px; padding: 7px 9px; font-size: 0.73rem; }
  .shop-section { margin-block: 45px 48px; }
  .shop-heading { gap: 13px; margin-bottom: 16px; }
  .shop-heading p { font-size: 0.92rem; }
  .filters { gap: 6px; }
  .filter { min-height: 35px; padding: 6px 10px; font-size: 0.74rem; }
  .product-grid { gap: 12px 9px; }
  .product-card-body { padding: 10px; }
  .product-card-heading { align-items: start; flex-direction: column; }
  .product-card h3 { font-size: 1.66rem; }
  .product-card-body > p { margin-block: 7px 10px; font-size: 0.78rem; }
  .product-action { padding-inline: 6px; font-size: 0.78rem; }
  .maker-inner { grid-template-columns: 1fr; gap: 20px; padding-block: 35px; }
  .maker-contact { padding: 17px 0 0; border-top: 1px solid #c2cbbd; border-left: 0; }
  .footer-inner p { flex-basis: 100%; order: 1; }
  .footer-inner .text-link { font-size: 0.78rem; }
  .product-dialog-inner { grid-template-columns: 1fr; }
  .product-detail-image { height: clamp(145px, 37vw, 235px); object-position: center; }
  .product-detail-copy { padding: 20px; }
  .drawer-header, .drawer-body, .drawer-footer { padding-inline: 16px; }
}

@media (max-width: 350px) {
  .brand-name { font-size: 1.55rem; }
  .basket-toggle > span:not(.basket-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
