:root {
  color-scheme: light;
  --accent: #52613e;
  --paper: #fffdf9;
  --canvas: #f2f0e9;
  --ink: #252820;
  --line: #d7d3c8;
  --headings: Georgia, serif;
  --body: system-ui, sans-serif;
  --radius: 4px;
}
:root[data-style="heirloom"] {
  --paper: #fffaeb;
  --canvas: #efe2c9;
  --ink: #493429;
  --line: #c7af8e;
  --body: Georgia, serif;
  --radius: 12px;
}
:root[data-style="playful"] {
  --paper: #fffdf1;
  --canvas: #f9efd1;
  --ink: #263654;
  --line: #dfba60;
  --headings: "Avenir Next", system-ui, sans-serif;
  --radius: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.6 var(--body); }
main { width: min(70rem, calc(100% - 2rem)); margin: auto; padding-block: clamp(1.5rem, 5vw, 4rem); }
header { border-top: .4rem solid var(--accent); padding-block: 1.25rem; }
p, figure { margin: 0; }
.brand { display: flex; align-items: center; gap: .28em; font: 1.8rem/1 Georgia, serif; letter-spacing: -.065em; }
.package { margin-top: 1.5rem; font: 650 .875rem/1.5 system-ui, sans-serif; }
h1, h2 { margin: 0; font-family: var(--headings); line-height: 1.12; }
h1 { margin-block: .35rem .75rem; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.design { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.25rem; padding: 1rem; margin-bottom: 1.25rem; }
.design, .recipe { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
label { display: grid; gap: .25rem; font: 650 .9rem/1.4 system-ui, sans-serif; }
select, button, input { max-width: 100%; color: var(--ink); font: inherit; }
select, button, input[type="color"] { min-height: 2.75rem; border: 1px solid var(--line); border-radius: 5px; background-color: var(--paper); cursor: pointer; }
select { padding: .4rem 2rem .4rem .65rem; }
button { padding: .4rem .75rem; font-size: .9rem; }
input[type="color"] { width: 100%; min-width: 5rem; padding: .2rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.recipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; align-items: start; }
.recipe { overflow: hidden; border-bottom: .3rem solid var(--accent); }
.artwork { aspect-ratio: 16 / 10; background: var(--canvas); }
.artwork > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.personal { object-fit: contain; }
.recipe-body { display: grid; gap: .7rem; padding: clamp(1rem, 3vw, 1.65rem); }
details p { margin-block: .5rem; }
summary { font-weight: 650; cursor: pointer; }
.upload { margin-top: .35rem; }
.status, footer { font-size: .875rem; }
.status:empty { display: none; }
footer { margin-top: 1.25rem; }
.illustration { display: flex; justify-content: center; align-items: center; background: #f5dfad; }
.illustration span { position: relative; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: rotate(-20deg); }
.illustration span + span { margin-left: -6%; transform: translateY(16%) rotate(18deg); }
.citrus span { background: radial-gradient(circle at 28% 30%, #ffac4d, #d8551c 80%); }
.citrus span::before {
  position: absolute; content: ""; width: 53%; height: 24%; left: 44%; top: -8%;
  border-radius: 100% 0; background: #52613e; transform: rotate(-15deg);
}
.cookies { background: #f3d4be; }
.cookies span {
  border: .24rem solid #9e602a;
  background: radial-gradient(circle at 25% 28%, #673c2e 6%, transparent 7%),
    radial-gradient(circle at 66% 21%, #673c2e 5%, transparent 6%),
    radial-gradient(circle at 52% 49%, #673c2e 7%, transparent 8%),
    radial-gradient(circle at 26% 67%, #673c2e 5%, transparent 6%),
    radial-gradient(circle at 75% 73%, #673c2e 6%, transparent 7%), #d49a58;
}
[data-style="heirloom"] header { border-top-style: double; }
[data-style="heirloom"] .recipe { box-shadow: 0 4px 0 #c7af8e55; }
[data-style="playful"] .recipe { box-shadow: 0 5px 0 var(--line); }
