:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --panel: #fffdf7;
  --ink: #193e32;
  --muted: #566259;
  --rust: #914528;
  --leaf: #28543f;
  --line: #d9d4c4;
  --sage: #e8ebdc;
  --serif: Georgia,"Times New Roman",serif;
  --sans: "Segoe UI",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 18px;
}

html[data-market-reader] {
  font-size: 100%;
}

body.pj-market-almanac {
  letter-spacing: normal;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}

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

button,select,summary,a {
  touch-action: manipulation;
}

button,a,summary,select {
  cursor: pointer;
}

button {
  background: none;
  border: 0;
}

a {
  color: var(--leaf);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 3px solid #b45b22;
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
}

button[hidden],[hidden] {
  display: none!important;
}

.symbols {
  display: none;
}

.ico {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  pointer-events: none;
}

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

.skip:focus {
  position: fixed;
  top: 5px;
  left: 8px;
  padding: 10px;
  z-index: 5;
  background: white;
}

.wrap {
  width: min(1180px,calc(100% - 96px));
  margin-inline: auto;
}

.mast {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.mast-inner,.mast nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mast-inner {
  min-height: 71px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 46px;
}

.brand img {
  width: 160px;
  height: auto;
  max-height: 53px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mast nav {
  gap: 27px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.basket-button,.outline,.surprise,.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #97a191;
  border-radius: 6px;
  min-height: 44px;
  padding: 9px 16px;
  font-weight: 650;
  font-size: 14px;
}

.basket-button {
  text-decoration: none;
  margin-left: 5px;
}

.basket-button span {
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #dde5d7;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.basket-button:hover,.outline:hover {
  background: var(--sage);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 25px;
  min-height: 310px;
  padding-block: 22px;
}

.hero-copy {
  min-width: 0;
  padding: 10px 0;
}

.eyebrow {
  margin: 0;
  color: var(--rust);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash {
  width: 25px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.hero h1 {
  overflow-wrap: anywhere;
  max-width: 780px;
  font: 500 clamp(60px,6.1vw,94px)/.94 var(--serif);
  letter-spacing: -.057em;
  margin: 16px 0 18px;
}

.hero h1 em {
  display: block;
  font-weight: normal;
  color: var(--leaf);
  letter-spacing: -.045em;
}

.deck {
  font-size: clamp(16px,1.25vw,19px);
  line-height: 1.5;
  color: #404d44;
  max-width: 480px;
  margin: 0;
}

.hero-art {
  background: var(--paper);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-art img {
  width: 100%;
  height: clamp(235px,22vw,318px);
  object-fit: contain;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent),linear-gradient(0deg,transparent,#000 5%,#000 97%,transparent);
  mask-composite: intersect;
}

.edition-band {
  color: #fffdf2;
  background: var(--ink);
  border-block: 1px solid #1c3c30;
}

.edition {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
}

.edition-title {
  font: italic 23px/1.1 var(--serif);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.edition-title .ico {
  width: 23px;
  height: 23px;
  color: #dfbf68;
}

.field {
  flex: 1;
  max-width: 252px;
  min-width: 0;
}

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e3e6d5;
  margin-bottom: 4px;
}

.select-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.select-wrap>.ico:first-child {
  position: absolute;
  left: 13px;
  color: #48644d;
}

.select-wrap .chevron {
  position: absolute;
  right: 12px;
  width: 16px;
}

select {
  appearance: none;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 44px;
  padding: 9px 34px 9px 39px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.select-wrap .chevron {
  color: var(--ink);
}

.locate {
  color: #fffdf2;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-end;
}

.locate:hover {
  color: #eed38d;
}

#location-note {
  margin: 0;
}

#location-note:not(:empty) {
  padding: 0 0 13px;
  color: #f9ebc8;
  font-size: 14px;
}

.section {
  padding-block: 37px 33px;
}

.section-top,.filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-top h2 {
  margin: 4px 0 0;
  font: 500 clamp(36px,3.2vw,50px)/1.1 var(--serif);
  letter-spacing: -.045em;
}

.surprise {
  border-color: #c9b68c;
  color: #5f4927;
  background: #f7efd9;
}

.surprise:hover {
  background: #f1e3bc;
}

.filter-line {
  margin: 17px 0 17px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.edition-intro {
  max-width: 73ch;
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
}
.section-top .surprise { flex-shrink: 0; }

.filters {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid transparent;
  padding: 7px 14px;
  min-height: 44px;
  line-height: 1.15;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 24px;
}

.filter[aria-pressed=true] {
  background: var(--ink);
  color: white;
}

.filter:hover:not([aria-pressed=true]) {
  background: var(--sage);
}

.count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

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

.produce-card {
  border: 1px solid #d0c9b6;
  border-radius: 7px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 2px #37260806;
}

.produce-card:focus-within {
  outline: 2px solid #a88d59;
  outline-offset: 2px;
}

.produce-card:hover {
  border-color: #948a70;
}

.specimen,.dialog-art {
  background: var(--wash,#f0eadb);
  mix-blend-mode: multiply;
}

.specimen {
  height: clamp(144px,13.1vw,188px);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid #d6cebb;
}

.specimen img,.dialog-art img {
  height: 94%;
  width: 90%;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.card-open {
  background: transparent;
  padding: 0;
  display: block;
  text-align: left;
  width: 100%;
  color: var(--ink);
}

.card-text {
  position: relative;
  display: block;
  padding: 14px 47px 18px 19px;
}

.type {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--rust);
  display: block;
  margin-bottom: 4px;
}

.card-name {
  display: block;
  font: 500 clamp(23px,2vw,30px)/1.14 var(--serif);
  letter-spacing: -.035em;
}

.card-text>.ico {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  color: #5f695b;
}

.save-small,.round {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: #fffcf1;
  border: 1px solid #c2bcaa;
}

.save-small {
  position: absolute;
  right: 9px;
  top: 9px;
}

.save-small.on-list,.primary {
  background: var(--ink);
  color: white;
}

.save-small:hover,.round:hover {
  border-color: var(--ink);
}

.calendar-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 17px 0 0;
  max-width: 950px;
}

.calendar-note a {
  font-weight: 600;
}

.empty {
  padding: 18px;
  border: 1px dashed #aaa991;
  color: var(--muted);
  border-radius: 4px;
  grid-column: 1/-1;
  margin: 0;
}

.kitchen-section {
  background: #efefe4;
  border-block: 1px solid var(--line);
}

.kitchen-section .filters {
  margin: 17px 0;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.recipe-card:hover .recipe-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.recipe-card img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  display: block;
}

.recipe-copy {
  padding: 16px 18px;
  display: block;
}

.recipe-title {
  font: 500 24px/1.15 var(--serif);
  display: block;
  letter-spacing: -.035em;
}

.recipe-detail {
  display: block;
  font: 14px/1.5 var(--sans);
  color: var(--muted);
  margin-top: 7px;
}

.more {
  margin-top: 16px;
}

.bottom-area {
  padding-top: 17px;
}

.sources {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 55px;
  font-weight: 600;
  font-size: 15px;
}

summary::-webkit-details-marker {
  display: none;
}

summary .chevron {
  margin-left: auto;
}

details[open] summary .chevron {
  transform: rotate(180deg);
}

#research-body {
  padding: 0 0 18px;
  max-width: 850px;
}

#research-body p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0;
}

#research-body a,.dialog-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 600;
}

.bottom-area footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 25px;
  font-size: 13px;
  color: var(--muted);
}

footer span span {
  padding: 0 6px;
}

.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button .ico {
  width: 16px;
}

dialog {
  border: 1px solid #9c9a86;
  border-radius: 12px;
  padding: 18px 26px 27px;
  width: min(590px,calc(100% - 28px));
  max-height: 88vh;
  max-height: 88dvh;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 100px #0d251b50;
  overflow-y: auto;
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: #142a21a6;
}

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

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.dialog-top .eyebrow {
  font-size: 10px;
}

.dialog-top .round {
  border-color: transparent;
  background: var(--sage);
}

dialog h2 {
  font: 500 40px/1.05 var(--serif);
  letter-spacing: -.045em;
  margin: 7px 0 17px;
}

dialog h3 {
  font: 600 21px/1.22 var(--serif);
  margin: 18px 0 7px;
}

dialog p {
  overflow-wrap: anywhere;
  margin: 0 0 12px;
  color: #435046;
}

.dialog-art {
  float: right;
  width: 104px;
  height: 92px;
  margin: 0 0 10px 16px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}

.primary {
  border-color: var(--ink);
}

.primary:hover {
  background: #2a5944;
}

.dialog-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px;
}

.dialog-list li {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  min-height: 52px;
}

.dialog-list a {
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  flex: 1;
}

.dialog-list a:hover {
  text-decoration: underline;
}

.dialog-list .type {
  margin: 0;
}

.dialog-list button {
  min-height: 44px;
  font-size: 13px;
  text-decoration: underline;
}

.dialog-form {
  display: grid;
  gap: 11px;
}

.dialog-form label {
  font-size: 13px;
  font-weight: 650;
}

.dialog-form input,.dialog-form textarea,.dialog-form select {
  width: 100%;
  border: 1px solid #a7ac9b;
  border-radius: 5px;
  padding: 9px 11px;
  background: white;
  font-size: 15px;
  font-weight: 400;
  display: block;
  margin-top: 4px;
  min-height: 44px;
}

.dialog-form select {
  appearance: auto;
}

.dialog-form textarea {
  min-height: 72px;
  resize: vertical;
}

.dialog-form .primary {
  justify-self: start;
}

.small-note {
  font-size: 13px;
  color: var(--muted);
}

.dialog-links {
  clear: both;
}

.round:focus-visible,.save-small:focus-visible {
  outline-offset: -4px;
}

.sprig {
  width: 58px;
  height: 58px;
  stroke-width: .9;
  color: #6f7959;
}

@media(min-width:1500px) {
  .hero {
    padding-block: 26px;
  }
  .section {
    padding-top: 42px;
  }
}

@media(max-width:950px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .edition {
    gap: 14px;
  }
  .edition-title {
    font-size: 18px;
  }
  .edition-title .ico {
    display: none;
  }
  .hero {
    min-height: 275px;
  }
  .hero h1 {
    font-size: 66px;
  }
  .hero-art img {
    height: 240px;
  }
  .produce-grid,.recipe-grid {
    gap: 13px;
  }
  .card-text {
    padding-left: 14px;
  }
  .card-name {
    font-size: 24px;
  }
}

@media(max-width:700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .mast-inner {
    min-height: 59px;
  }
  .mast nav {
    gap: 8px;
  }
  .nav-link {
    display: none;
  }
  .brand img {
    width: 134px;
  }
  .basket-button {
    padding: 7px 10px;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 20px 12px;
    text-align: center;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy .eyebrow {
    justify-content: center;
    font-size: 10px;
  }
  .hero h1 {
    font-size: clamp(47px,9vw,63px);
    margin: 9px 0 10px;
    line-height: 1.06;
  }
  .hero h1 em {
    display: inline;
  }
  .deck {
    font-size: 15px;
    max-width: 420px;
    margin: auto;
  }
  .hero-art img {
    height: 145px;
    margin-top: 7px;
  }
  .edition {
    display: grid;
    grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
    gap: 8px 10px;
    padding-block: 10px 12px;
  }
  .edition-title {
    font-size: 19px;
    align-self: center;
  }
  .edition-title .ico {
    display: block;
    width: 17px;
  }
  .field {
    grid-row: 2;
    max-width: none;
  }
  .select-wrap select { padding-inline: 30px 23px; }
  .select-wrap>.ico:first-child { left: 8px; width: 15px; }
  .select-wrap .chevron { right: 6px; width: 13px; }
  .locate {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 12px;
  }
  .section {
    padding-block: 26px;
  }
  .section-top {
    gap: 8px;
  }
  .section-top h2 {
    font-size: 37px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .surprise {
    padding: 8px 10px;
    font-size: 13px;
    gap: 6px;
  }
  .surprise .ico {
    width: 16px;
  }
  .filter-line {
    margin: 12px 0;
    padding-bottom: 9px;
    gap: 4px;
  }
  .filter {
    font-size: 13px;
    padding: 7px 10px;
  }
  .count {
    font-size: 12px;
  }
  .produce-grid,.recipe-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
  }
  .specimen {
    height: 128px;
  }
  .save-small {
    right: 4px;
    top: 4px;
    background: #fffcf1e8;
  }
  .card-text {
    padding: 10px 23px 13px 10px;
  }
  .card-text>.ico {
    right: 6px;
    width: 14px;
  }
  .card-name {
    font-size: 22px;
  }
  .card-text .type {
    font-size: 8px;
    letter-spacing: .1em;
  }
  .calendar-note {
    font-size: 13px;
  }
  .recipe-card img {
    height: 110px;
  }
  .recipe-copy {
    padding: 10px;
  }
  .recipe-title {
    font-size: 20px;
  }
  .recipe-detail {
    font-size: 13px;
  }
  .bottom-area {
    padding-top: 7px;
  }
  dialog {
    padding: 14px 17px 21px;
  }
  dialog h2 {
    font-size: 34px;
  }
}

@media(max-width:410px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .edition-title {
    font-size: 17px;
  }
  .specimen {
    height: 113px;
  }
  .card-name {
    font-size: 20px;
  }
  .filter {
    padding: 7px 8px;
  }
  .filters {
    gap: 2px;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .recipe-card {
    flex-direction: row;
    align-items: center;
  }
  .recipe-card img {
    width: 32%;
    height: 112px;
  }
  .recipe-copy {
    flex: 1;
  }
  .recipe-detail {
    font-size: 12px;
  }
  .hero-art img {
    height: 137px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .card-open .ico,.recipe-title {
    transition: color .15s;
  }
  .save-small,.filter,.outline {
    transition: background-color .15s;
  }
}

.specimen {
  overflow: hidden;
}

.specimen img {
  position: absolute;
  inset: 7px 5%;
  width: 90%;
  height: calc(100% - 14px);
  filter: brightness(1.075);
}

.hero-art img,.dialog-art img {
  filter: brightness(1.055);
}

.recipe-row {
  flex: 1;
  min-width: 0;
}

.recipe-row small {
  display: block;
  margin: -3px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.unmatched {
  margin-top: 14px;
}

#draft-state:not(:empty) {
  margin: 0 0 18px;
}

.produce-link-note {
  margin: 14px 0 0;
  padding: 3px 12px;
  border-left: 3px solid var(--leaf);
  background: var(--sage);
  font-size: 14px;
}
.produce-link-note button {
  min-height: 44px;
  padding: 4px 2px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.produce-card.linked-produce {
  border: 2px solid var(--leaf);
}
[data-market-reader] .almanac-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
[data-market-reader] footer { flex-wrap: wrap; gap: 4px 16px; }

@media(max-width:700px) {
  .mast nav a[href="#kitchen"] {
    display: flex;
    font-size: 13px;
  }
  .mast nav {
    gap: 12px;
  }
}

@media(max-width:370px) {
  .brand img {
    width: 108px;
  }
  .mast nav {
    gap: 6px;
  }
  .basket-button {
    gap: 5px;
    margin-left: 0;
  }
}

@media(max-width:700px) {
  [data-market-reader] .mast-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    padding-top: 5px;
  }
  [data-market-reader] .mast .brand { grid-area: 1/1; justify-self: start; }
  [data-market-reader] .mast nav { display: contents; }
  [data-market-reader] .mast .basket-button { grid-area: 1/2; justify-self: end; }
  [data-market-reader] .almanac-nav-links { grid-column: 1/-1; gap: 14px; flex-wrap: wrap; }
  [data-market-reader] .mast .nav-link { display: flex; font-size: 13px; }
}
