@font-face {
  font-family: "DM Sans"; src: url("dm-sans.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic; font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f4ec;
  --ink: #242f27;
  --muted: #555c50;
  --line: #d8d9ce;
  --accent: #a14d35;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(20px, 5.2vw, 104px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 "DM Sans", Arial, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; }
em { font-weight: inherit; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap, .bar { width: min(100%, 1760px); padding-inline: var(--gutter); margin-inline: auto; }
.skip { position: fixed; z-index: 5; left: 15px; top: 15px; transform: translateY(-160%); background: white; padding: 8px 12px; }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { width: fit-content; text-decoration: none; font: 400 2.45rem/.95 var(--serif); letter-spacing: -.045em; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: clamp(20px, 3.1vw, 50px); }
nav a, .selection { font-size: .875rem; font-weight: 600; text-decoration: none; }
nav a:hover, .selection:hover, .footer a:not(.wordmark):hover { color: var(--accent); }
.selection { justify-self: end; display: flex; align-items: center; gap: 9px; border: 0; padding: 8px 0 8px 8px; background: none; }
.count { min-width: 1.65rem; padding: .1em .45em; border-radius: 999px; background: #e5e6db; text-align: center; font-variant-numeric: tabular-nums; }
.bag-icon { width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 2px; position: relative; margin-top: 4px; }
.bag-icon::before { content: ""; position: absolute; left: 3px; top: -5px; width: 5px; height: 6px; border: 1px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }

.hero { display: grid; grid-template-columns: .91fr 1.09fr; min-height: clamp(430px, 45vw, 648px); background: #eceee3; border-bottom: 1px solid var(--line); }
.hero-copy { align-self: center; padding: clamp(45px, 7vw, 120px) clamp(20px, 3vw, 48px) clamp(45px, 7vw, 120px) max(var(--gutter), calc((100vw - 1760px) / 2 + var(--gutter))); animation: arrive .55s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.flag { width: 19px; flex: 0 0 19px; height: 13px; box-shadow: 0 0 0 1px #0002; background: linear-gradient(90deg, transparent 29%, #c63e39 29% 40%, transparent 40%), linear-gradient(transparent 43%, #c63e39 43% 57%, transparent 57%), linear-gradient(90deg, transparent 23%, #385e93 23% 47%, transparent 47%), linear-gradient(transparent 34%, #385e93 34% 66%, transparent 66%), #fff; }
h1 { margin-block: 23px 22px; font-size: clamp(4rem, 6.65vw, 8rem); letter-spacing: -.046em; }
h1 em { color: #52644b; }
.intro { color: var(--muted); max-width: 29ch; font-size: clamp(1rem, 1.24vw, 1.23rem); }
.button { display: inline-flex; gap: 22px; align-items: center; justify-content: space-between; width: fit-content; padding: .82rem 1.12rem; background: var(--ink); color: var(--paper); font-size: .88rem; font-weight: 700; text-decoration: none; transition: background .2s; }
.button:hover { background: #4d6047; }
.hero .button { margin-top: 31px; }
.hero-visual { position: relative; overflow: hidden; min-height: 100%; background: #9c9e88; }
.hero-visual img, .workshop-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
/* Frame the display above the printed strip at the bottom of the photo. */
.hero-visual { container-type: size; }
.hero-visual img {
  width: max(100cqw, calc(100cqh * 20 / 9));
  max-width: none;
  height: auto;
  left: 50%;
  top: min(0px, calc((100cqh - 45cqw) / 2));
  transform: translateX(-50%);
}
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.collection { padding-block: clamp(44px, 6vw, 90px) clamp(52px, 7vw, 100px); }
.collection-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 21px; margin-bottom: 28px; }
h2 { font-size: clamp(3rem, 5vw, 5.4rem); letter-spacing: -.035em; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button { border: 1px solid transparent; border-radius: 30px; background: transparent; padding: 6px 11px; font-size: .875rem; color: var(--muted); }
.filters button:hover { border-color: var(--line); }
.filters button[aria-pressed="true"] { color: var(--ink); background: #e5e6db; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 50px) clamp(12px, 2.3vw, 36px); }
.product-photo { display: grid; place-items: center; container-type: inline-size; aspect-ratio: 1.14; padding: 10% 15%; background: #e8e8dc; overflow: hidden; }
.product[data-category="sheep"] .product-photo { background: #eee7d9; }
.product[data-category="landscapes"] .product-photo { background: #e0e6e0; }
.product[data-category="illustrations"] .product-photo { background: #eee4d6; }
.crop { position: relative; overflow: hidden; aspect-ratio: var(--ratio); width: min(100%, calc(90cqw * (var(--ratio)))); box-shadow: 3px 7px 12px #242f273a; transition: transform .28s ease, box-shadow .28s ease; }
.crop img { position: absolute; width: var(--scale); max-width: none; height: auto; left: var(--x); top: var(--y); }
.product:hover .crop, .product:focus-within .crop { transform: translateY(-3px); box-shadow: 4px 11px 16px #242f2746; }
.product-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); min-height: 63px; padding-block: 7px; }
h3 { font-size: clamp(1.35rem, 2.35vw, 2.15rem); }
.add, .close, .quantity button { display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 50%; line-height: 1; flex-shrink: 0; width: 44px; height: 44px; font-size: 1.35rem; transition: background .2s, color .2s, border-color .2s; }
.add:hover, .add:focus-visible, .close:hover, .quantity button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.add[data-selected="true"] { border-color: #83927b; color: #44543d; }
.add[data-selected="true"]:hover, .add[data-selected="true"]:focus-visible { color: var(--paper); }

.workshop { display: grid; grid-template-columns: 1fr 1fr; color: var(--paper); background: #263329; }
.workshop-photo { min-height: clamp(310px, 34vw, 525px); position: relative; overflow: hidden; }
.workshop-photo img { object-position: 60% center; }
.workshop-copy { align-self: center; padding: clamp(36px, 7vw, 114px) var(--gutter); }
.workshop h2 { margin-block: 16px 20px; }
.workshop em { color: #c5d0bc; }
.workshop-copy > p:not(.eyebrow) { color: #e1e5d8; max-width: 36ch; }
.text-link { display: inline-flex; gap: 12px; margin-top: 24px; text-underline-offset: 5px; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 30px; padding-block: 34px; }
.footer p, .footer a:not(.wordmark) { color: var(--muted); font-size: .875rem; }

.status { position: fixed; z-index: 3; inset: auto var(--gutter) 18px auto; max-width: calc(100% - 2 * var(--gutter)); padding: 10px 16px; background: var(--ink); color: var(--paper); opacity: 0; pointer-events: none; transition: opacity .18s; }
.status.visible { opacity: 1; }
html:has(dialog[open]) { overflow: hidden; }
.basket { margin: 0 0 0 auto; inset: 0 0 0 auto; max-height: 100%; height: 100%; width: min(100%, 460px); max-width: 100%; padding: clamp(20px, 5vw, 36px); border: 0; background: var(--paper); color: var(--ink); }
.basket[open] { animation: arrive .22s ease-out; }
.basket::backdrop { background: #19231ab0; }
.basket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.basket h2 { font-size: 3.1rem; }
.basket-items { list-style: none; margin: 0; padding: 0; }
.basket-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 10px; }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button:disabled { opacity: .45; cursor: default; }
.quantity output { text-align: center; min-width: 2ch; font-variant-numeric: tabular-nums; }
#basket-action { margin-top: 24px; }
#basket-action p { color: var(--muted); margin-bottom: 14px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(3.3rem, 7.6vw, 5.2rem); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  html { scroll-padding-top: 72px; }
  .bar { min-height: 61px; grid-template-columns: 1fr auto; }
  nav { display: none; }
  .wordmark { font-size: 2.2rem; }
  .hero, .workshop { grid-template-columns: 1fr; }
  .hero-copy { padding: 35px var(--gutter) 30px; }
  h1 { margin-block: 15px; font-size: clamp(3.45rem, 10.7vw, 4.8rem); }
  .hero .button { margin-top: 20px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.53; }
  .collection-head { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; }
  .filters { gap: 2px; }
  .filters button { padding-inline: 8px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-photo { padding: 10% 13%; }
  .workshop-photo { min-height: 0; aspect-ratio: 1.58; }
  .footer { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
