@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/display.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/display-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/body.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f5e9;
  --card: #fcfcf3;
  --ink: #223b28;
  --muted: #455640;
  --forest: #2c4833;
  --line: #cdd4bb;
  --white: #fffff4;
  --tint: #e1e9cf;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
a { color: var(--forest); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #426a45; outline-offset: 4px; }
button, input, select { font: inherit; }
.shell { width: min(1240px, calc(100% - 2 * clamp(16px, 4vw, 54px))); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 3; transform: translateY(-180%); padding: 8px; background: var(--card); }
.skip:focus { transform: translateY(0); }
.store-header { border-bottom: 1px solid var(--line); background: var(--card); }
.store-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 65px; }
.store-bar nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.store-bar nav a, .portfolio { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.store-bar nav a:hover, .portfolio:hover { text-decoration: underline; }
.portfolio { gap: 7px; }
.wordmark { color: var(--ink); font: 600 26px/1 var(--serif); letter-spacing: .1em; text-decoration: none; }
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: clamp(265px, 30vw, 365px);
  margin-top: 22px;
  border: 1px solid #c8d2b3;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(at 7% 0%, #fafbf0, transparent 58%), linear-gradient(125deg, #eef3d6, #cad7a6);
}

.hero-copy { align-self: center; padding: clamp(24px, 4vw, 56px); }
.hero-copy p { color: var(--muted); max-width: 38ch; margin-top: 12px; }
.hero-visual { width: 100%; height: 100%; min-height: 0; aspect-ratio: 1.4; object-fit: cover; object-position: 50% 42%; }
h1, h2 { font: 500 1em/1.02 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.1vw, 82px); }
h1 em { color: #4b693b; }
h2 { font-size: clamp(34px, 4.4vw, 58px); }
h3 { font-size: 22px; letter-spacing: -.025em; line-height: 1.18; overflow-wrap: anywhere; }
.primary, .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.primary { margin-top: 20px; background: var(--forest); color: var(--white); }
.primary:hover { background: #3c6241; }
.offer-note { margin: 12px 0 20px; color: var(--muted); font-size: 13px; }
.offer-note span { display: block; margin-top: 3px; }
.bundle {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  scroll-margin-top: 18px;
}

.bundle-cover { position: relative; min-height: 230px; background: var(--forest); }
.bundle-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bundle-info { padding: clamp(22px, 3.4vw, 40px); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.bundle h2 { margin: 7px 0 12px; }
.bundle .status { margin-bottom: 8px; }
.bundle p:not(.eyebrow, .status) { color: var(--muted); }
.bundle .action { background: var(--forest); color: var(--white); margin-top: 14px; }
.bundle .action:hover { background: #3c6241; }
.bundle details { margin-top: 15px; border-top: 1px solid var(--line); }
.bundle summary { display: list-item; min-height: 44px; align-content: center; cursor: pointer; font-weight: 600; }
.bundle ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.bundle li { padding-block: 3px; }
.bundle small { color: var(--muted); }
#catalog { margin: 50px 0; scroll-margin-top: 18px; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
#catalog-count { color: var(--muted); font-size: 14px; }
.catalog-tools { display: flex; align-items: end; gap: 12px; }
.catalog-tools label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.catalog-tools .search { flex: 1; min-width: 125px; }
.catalog-tools :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #a8b498;
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.catalog-tools input::placeholder { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 18px; }
.filters button { padding: 6px 14px; min-height: 44px; color: var(--forest); border: 1px solid #a8b498; border-radius: 999px; background: var(--card); font-size: 14px; cursor: pointer; }
.filters button:hover { background: var(--tint); }
.filters button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.empty-state { border: 1px dashed #a8b498; border-radius: 14px; padding: 26px; text-align: center; }
.empty-state button { margin-top: 12px; cursor: pointer; background: var(--card); color: var(--forest); }
.collection { padding-top: 20px; margin-bottom: 36px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.collection h2 { font-size: clamp(27px, 3.2vw, 42px); margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 12px 24px -19px #263c2a67;
}

.offer-cover { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: var(--tint); }
.offer-cover img { width: 100%; height: 100%; object-fit: cover; }
.software-cover {
  background: radial-gradient(ellipse at 45% 38%, #eef2e2, #d9e3cd);
}
.software-cover img { display: block; object-fit: contain; padding: 8px; }
.offer-cover span { position: absolute; left: 10px; top: 10px; border-radius: 999px; padding: 4px 9px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 600; }
.offer-content { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 15px; }
.offer-content p { color: var(--muted); font-size: 14px; }
.offer-content .brand { font-size: 12px; }
.status, .offer-content .status { color: #365937; font-size: 13px; font-weight: 700; }
.offer-content .action { margin-top: auto; width: 100%; }
#software .offer { position: relative; }
#software .action::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
#software .offer:hover .action { background: var(--tint); }
.offer-content > p:nth-last-child(2) { padding-bottom: 6px; }
.action:hover { background: var(--tint); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 30px; border-top: 1px solid var(--line); }
.footer .wordmark { font-size: 22px; }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 570px) {
  .store-bar { min-height: 55px; }
  .store-bar nav { display: none; }
  .hero, .bundle { grid-template-columns: minmax(0, 1fr); }
  .hero { margin-top: 14px; }
  .hero-visual { max-height: 185px; object-position: 50% 37%; }
  .bundle-cover { min-height: 150px; }
  .catalog-tools { flex-wrap: wrap; }
  .grid { gap: 9px; }
  .offer-content { padding: 11px; }
  .offer-content h3 { font-size: 18px; }
  .offer-content .action { padding-inline: 7px; font-size: 13px; }
  .offer-cover span { padding-inline: 7px; line-height: 1.25; }
}

@media (max-width: 360px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.wordmark { display:inline-flex; align-items:center; gap:9px; letter-spacing:-.03em; }
.channel, .browse-link { display:inline-flex; align-items:center; min-height:44px; font-weight:600; text-decoration:none; }
.hero { background:linear-gradient(125deg,#fafbf0 0%,#e1e9bd 58%,#b2c696); grid-template-columns:1fr 1.2fr; align-items:center; }
.hero h1 { line-height:.98; }
.featured-picks { display:grid; padding:clamp(16px,3vw,42px); gap:12px; }
.pick { display:grid; grid-template-columns:36% 1fr; min-height:105px; overflow:hidden; border-radius:12px; background:var(--card); border:1px solid var(--line); text-decoration:none; }
.pick-art { position:relative; background:var(--tint); }
.pick-art img { position:absolute; width:100%; height:100%; object-fit:cover; }
.pick-daw img { object-fit:contain; background:#12141b; }
.pick-copy { display:grid; align-content:center; gap:6px; padding:12px; }
.pick-copy strong { font-size:clamp(18px,2vw,26px); line-height:1.13; }
.pick-copy small { color:var(--muted); }
.pack-card { position:relative; }
.pack-card .action::after { content:""; position:absolute; inset:0; }
.footer { margin-top:28px; }
@media(max-width:650px){ .hero { grid-template-columns:1fr; } .hero-copy { padding-bottom:0; } .featured-picks { padding-top:10px; } .wordmark { font-size:23px; } }
.pack-inventory { position:relative; z-index:1; margin-block:0 8px; font-size:14px; }
.pack-inventory summary { cursor:pointer; padding-block:10px; font-weight:600; color:var(--forest); }
.pack-inventory ul { margin:6px 0; padding-left:18px; }
@media (max-width: 570px) {
  .shell { width: calc(100% - 24px); }
  .store-bar { gap: 8px; }
  .hero-copy { padding: 20px 16px 0; }
  .featured-picks { padding: 8px 12px 12px; gap: 8px; }
  .pick { min-height: 85px; grid-template-columns: 31% minmax(0,1fr); }
  #catalog { margin: 28px 0; }
  .catalog-tools { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .filters { flex-wrap: wrap; gap: 6px; }
  .filters button { flex: 1 0 auto; min-height: 44px; padding-inline: 10px; }
  .grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .offer { display: grid; grid-template-columns: 28% minmax(0,1fr); }
  .offer-cover { height: 100%; aspect-ratio: auto; min-height: 100px; }
  .offer-cover img { position: absolute; inset: 0; }
  .offer-content { min-width: 0; padding: 12px; }
  .offer-content h3 { font-size: 20px; }
  .offer-content .action, .pack-inventory summary { min-height: 44px; }
  .pack-inventory { margin-bottom: 0; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .hero-copy { padding: 20px; }
  .featured-picks { padding: 14px; }
}
@media (min-width: 1600px) {
  .shell { width: min(1500px,92%); }
  .grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (pointer: coarse) {
  .store-bar nav a, .channel, .pack-inventory summary, .bundle summary, .footer a { min-height: 44px; align-content: center; }
}
.offer-content, .pick-copy { min-width: 0; overflow-wrap: anywhere; }

/* Keep an expanded inventory readable across the full phone card. */
@media (max-width: 570px) {
  .pack-card:has(.pack-inventory) { grid-template-columns: minmax(76px,28%) minmax(0,1fr); gap: 6px 12px; padding: 12px; align-content: start; }
  .pack-card:has(.pack-inventory) .offer-content { display: contents; }
  .pack-card:has(.pack-inventory) .offer-cover { grid-row: span 3; min-height: 76px; border-radius: 8px; }
  .pack-card:has(.pack-inventory) .pack-inventory,
  .pack-card:has(.pack-inventory) .action { grid-column: 1 / -1; }
  .pack-card:has(.pack-inventory) .action { margin: 0; }
}
@media (min-width: 571px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 340px) {
  .store-bar { flex-wrap: wrap; row-gap: 0; }
  .wordmark { font-size: 21px; }
}
.bundle-drawer { margin: 16px 0; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.bundle-drawer > summary { padding: 12px 0; cursor: pointer; font-weight: 600; }
.more-samples { margin: 12px 0 0; background: var(--card); color: var(--forest); cursor: pointer; }
#catalog { margin-block: 24px; }
.collection { margin-bottom: 18px; }
.offer-content .catalog-price { font-weight: 700; color: var(--forest); font-size: 16px; }
@media (max-width: 570px) {
  .pack-card:has(.pack-inventory) .offer-cover { grid-row: span 4; }
}
