:root {
  --ink: #2c3021;
  --green: #304720;
  --lime: #dceba7;
  --edge: #c7d39b;
  --muted: #545d42;
  --cream: #f9f8ed;
  --white: #fffef7;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; line-height: 1.62; }
a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.06; letter-spacing: -.044em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
h2 { font-size: clamp(1.95rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.58rem; }
:focus-visible { outline: 3px solid #943a24; outline-offset: 4px; }

.wrap { width: min(100% - 3.6rem, 73rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: .75rem; top: .75rem; padding: .6rem; background: white; }
.skip:not(:focus) { transform: translateY(-200%); }
.mast { background: var(--cream); border-bottom: 1px solid var(--edge); }
.bar, .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem 1.5rem; }
.bar { min-height: 4.45rem; }
.brand { font-family: Georgia, serif; font-size: 1.62rem; font-weight: 700; text-decoration: none; letter-spacing: -.045em; }
.bar nav, .foot nav { display: flex; flex-wrap: wrap; gap: .45rem 1.55rem; font-size: .94rem; }
.bar nav a, .foot nav a { text-decoration: none; }
.bar nav a:hover, .foot nav a:hover, .text-link { text-decoration: underline; text-underline-offset: .26em; }

.plate { background: var(--lime); }
.plate-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 1.5rem 4rem; align-items: center; padding-block: 2.8rem; }
.plate figure { margin: 0; }
.plate img { aspect-ratio: 1.49; object-fit: cover; border-radius: 12rem 12rem 2.15rem 2.15rem / 6rem 6rem 2.15rem 2.15rem; }
.plate h1 { font-size: clamp(3.2rem, 7.4vw, 6.55rem); line-height: .93; margin-bottom: 1.35rem; letter-spacing: -.067em; }
.plate p { max-width: 22rem; color: #3e4b2a; font-size: 1.07rem; margin-bottom: 1.4rem; }
.button {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: .68rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 1.8rem;
  font-weight: 650;
  font-size: .96rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #426030; }
.button:disabled { opacity: .63; cursor: default; }

.section { padding-block: 2.8rem 3.25rem; }
.lead { color: var(--muted); max-width: 44rem; font-size: 1.08rem; margin-bottom: 1.4rem; }
.portion-grid { display: grid; grid-template-columns: minmax(11rem, .68fr) minmax(0, 1.32fr); align-items: start; gap: 1.35rem; }
#taste-form, .result { border: 1px solid var(--edge); border-radius: 1rem; padding: 1.1rem 1.25rem; }
#taste-form { background: #e9efcb; }
.result { background: var(--white); }
#taste-form label { display: block; margin: .2rem 0 .3rem; font-size: .92rem; font-weight: 680; }
#taste-form input, #taste-form select {
  display: block;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #858e6d;
  border-radius: .35rem;
  padding: .55rem;
  margin-bottom: .9rem;
  width: 100%;
}
#taste-form input { width: 6rem; }
.select { position: relative; }
.select select { appearance: none; padding-right: 1.85rem !important; }
.select::after { content: ''; pointer-events: none; position: absolute; top: .88rem; right: .85rem; width: .44rem; height: .44rem; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
.result h3 { margin-bottom: .35rem; }
#dish-status { color: var(--muted); font-size: .93rem; margin-bottom: .75rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { padding: 0 0 .3rem; text-align: left; font-weight: 670; }
td, th { padding: .35rem .1rem; border-bottom: 1px solid var(--edge); }
td:last-child, th:last-child { padding-left: .4rem; text-align: right; }
.result .text-link { display: inline-block; margin-top: .8rem; }
.text-link { color: var(--green); font-weight: 620; }
.notes { border-top: 1px solid var(--edge); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.card { border-radius: 1rem; background: #e9efcb; }
.card a { display: block; padding: 1.05rem 1.15rem .65rem; text-decoration: none; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: .25em; }
.card p, .prose p { color: var(--muted); }
.prose { max-width: 47rem; }
.prose h1 { margin-top: .55rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.5rem; }
.footer { border-top: 1px solid var(--edge); }
.foot { padding-block: 1.15rem; }
.foot p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 43rem) {
  .wrap { width: min(100% - 2rem, 73rem); }
  .bar { min-height: 3.85rem; padding-block: .6rem; }
  .bar nav, .foot nav { column-gap: .85rem; }
  .plate-grid, .portion-grid, .cards { grid-template-columns: 1fr; }
  .plate-grid { padding-block: 1.7rem 2.1rem; }
  .plate-copy { grid-row: 1; }
  .plate h1 { font-size: clamp(3.15rem, 12.5vw, 4.65rem); }
  .plate img { border-radius: 5rem 5rem 1.15rem 1.15rem; }
  .section { padding-block: 2rem 2.45rem; }
}
