@font-face {
  font-family: Instrument Serif;
  src: url(fonts/instrument-serif.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url(fonts/dm-sans.woff2) format("woff2");
  font-display: swap;
}
:root {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --paper: #f8efe6;
  --ink: #33251d;
  --accent: #8e351a;
  --accent-hover: #6e2713;
  --border: #d2bbab;
  --panel: #f3e4d6;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 var(--sans);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(90%, 78rem); margin-inline: auto; }
.skip {
  position: absolute; z-index: 3; padding: .5rem; top: 1rem; left: 1rem;
  transform: translateY(-200%); background: var(--paper);
}
.skip:focus { transform: none; }
.header {
  min-height: 4.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  padding-block: .65rem;
}
.brand { font: clamp(1.8rem, 3vw, 2.5rem)/1 var(--serif); text-decoration: none; }
.header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem clamp(.75rem, 2.5vw, 2rem); }
.header nav > a:not(.button) { text-decoration: none; }
.header nav > a:not(.button):hover { text-decoration: underline; }
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: .55rem 1rem;
  border-radius: .35rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); }
.button:disabled { opacity: .55; cursor: default; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.button.secondary:hover { background: var(--panel); }
.hero {
  display: grid; grid-template-columns: 1.03fr .97fr; align-items: stretch;
  background: var(--panel);
}
.hero-copy {
  align-self: center;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(2.25rem, 5.5vw, 5rem) clamp(1.35rem, 4.3vw, 4rem);
}
.hero h1 { max-width: 11ch; font: clamp(3.4rem, 6.7vw, 6.4rem)/.92 var(--serif); letter-spacing: -.025em; }
.hero p { max-width: 35ch; }
.hero > img { width: 100%; height: 100%; max-height: 34rem; aspect-ratio: 1.2; object-fit: cover; }
.epoch { padding-block: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .7rem 1.2rem; margin-bottom: 1.35rem; }
h2 { font: clamp(2.4rem, 4.7vw, 4rem)/1 var(--serif); }
.controls { display: flex; flex-wrap: wrap; gap: .45rem; }
.controls button {
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: var(--ink); padding: .45rem .75rem; min-height: 2.6rem;
}
.controls button[aria-pressed="true"] { background: var(--accent); color: white; border-color: var(--accent); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2.2vw, 1.6rem); }
.tile-grid img { aspect-ratio: 1; object-fit: cover; }
.tile h3 { font: clamp(1.9rem, 3vw, 2.55rem)/1 var(--serif); }
.tile p { margin-block: .3rem; }
.product { border: 1px solid var(--border); border-radius: .5rem; overflow: hidden; }
.product .tile-copy { padding: .9rem 1rem 1rem; }
.product .product-meta { margin-block: .55rem; font-weight: 600; }
.product .button { width: 100%; margin-top: .32rem; }
.notice {
  min-height: 1.4rem; margin-top: .7rem; color: var(--accent);
  font-weight: 600;
}
.footer { border-top: 1px solid var(--border); padding-block: 1.2rem 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; }
.footer p { max-width: 55ch; }
dialog {
  width: min(calc(100% - 1.5rem), 31rem); max-height: calc(100dvh - 2rem);
  padding: 1.2rem; background: var(--paper); color: var(--ink); border: 1px solid var(--border);
  border-radius: .55rem;
}
dialog::backdrop { background: #201a16ab; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.close {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: var(--panel); color: var(--ink); border: 1px solid var(--border); border-radius: .3rem; font-size: 1.45rem;
}
.bag-items { margin: 0; padding: 0; list-style: none; }
.bag-items li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid var(--border); padding-block: .7rem; }
.bag-item-name { font-weight: 600; }
.quantity { display: flex; align-items: center; gap: .45rem; }
.quantity button { min-width: 2.4rem; min-height: 2.4rem; border: 1px solid var(--border); background: var(--paper); color: var(--ink); border-radius: .3rem; }
.bag-total { display: flex; justify-content: space-between; padding-block: .85rem; margin-top: .45rem; border-top: 1px solid var(--border); }
.checkout { width: 100%; margin-top: .65rem; }
.receipt p + p { margin-top: .65rem; }
.receipt .button { margin-top: 1rem; }
.stillroom {
  --paper: #fbf7f4;
  --ink: #211919;
  --accent: #824961;
  --accent-hover: #65374a;
  --border: #d4c2c8;
  --panel: #f0e5e6;
}
.stillroom .hero { background: transparent; }
.stillroom .hero h1 { max-width: 13ch; }
.stillroom .hero-copy { padding-left: 0; }
.work-card h3 { margin-top: .65rem; }
.work-card p { font-size: .94rem; }
.inquiry-panel {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  margin-block: 0 3rem;
  padding: clamp(1.35rem, 4vw, 3.5rem);
  border-radius: .6rem;
  background: var(--panel);
}
.inquiry-panel p { margin-top: .65rem; }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.field { display: grid; gap: .3rem; margin-bottom: .75rem; }
.field label { font-weight: 600; }
.field select, .field textarea {
  width: 100%; padding: .6rem .7rem; min-height: 2.85rem; border: 1px solid #aa929d;
  color: var(--ink); background: var(--paper); border-radius: .3rem;
}
.field textarea { min-height: 6rem; resize: vertical; }
#inquiry-receipt { overflow-wrap: anywhere; }
#inquiry-receipt .button { margin-top: .8rem; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero > img { max-height: 23rem; }
  .stillroom .hero-copy { padding-inline: 0; }
  .inquiry-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header { flex-wrap: wrap; }
  .tile-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero h1 { font-size: clamp(3.3rem, 12vw, 4.6rem); }
  .hero > img { max-height: 19rem; }
}
