/* Easy Does It: shared look for the recipe pages and the creator portal */
:root {
  --bg: #F5F6FB; --ink: #1D1A2E; --muted: #5A5670; --line: #DCDDEA; --card: #FFFFFF;
  --orange: #FF5A2E; --orange-soft: #FFE1DA; --yellow: #FFC93C; --yellow-soft: #FFF1C7; --teal: #2EC4A6; --teal-soft: #D9F5EE;
  --purple: #8E6CF0; --purple-soft: #ECE5FF; --blue-soft: #DDF1FF; --red: #D63A2F;
  --head: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif; --body: 'DM Sans', ui-sans-serif, system-ui, sans-serif; --hand: 'Caveat', 'Comic Sans MS', cursive;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 22px 22px }
a { color: inherit }
img { max-width: 100%; display: block }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0 }
h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800 }
h2 { font-size: 26px; font-weight: 800 }
h3 { font-size: 20px; font-weight: 800 }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px }
.hand { font-family: var(--hand); font-weight: 700 }
.muted { color: var(--muted) }

/* header */
.top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 24px/1 var(--head); letter-spacing: -0.02em }
.logo .mark { width: 46px; height: 46px; border-radius: 14px; border: 3px solid var(--ink); background: var(--orange); display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--ink) }
.top nav { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--card); color: var(--ink); font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink) }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink) }
.btn.primary { background: var(--orange); color: #fff }
.btn.yellow { background: var(--yellow) }
.btn.ghost { box-shadow: none; border-color: transparent; background: transparent }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 11px }
.btn.danger { color: var(--red) }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink) }
.btn.on { background: var(--ink); color: #fff }
input, textarea, select { font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; width: 100%; min-width: 0 }
textarea { resize: vertical; min-height: 80px }
input:focus, textarea:focus, select:focus, .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px }
label.f { display: grid; gap: 6px; font-weight: 700; font-size: 14px }
label.f small { font-weight: 400; color: var(--muted) }

/* cards */
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink) }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font: 700 13px/1.2 var(--body); white-space: nowrap }
.pill.soft { border-color: transparent; background: var(--yellow-soft) }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { padding: 7px 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff; font: 700 14px/1 var(--body); cursor: pointer; color: var(--ink) }
.chip.on { background: var(--ink); color: #fff }

/* recipe grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px }
.rc { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s }
.rc:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink) }
.rc .ph { aspect-ratio: 4 / 3; background: var(--orange-soft); border-bottom: 3px solid var(--ink); overflow: hidden }
.rc .ph img { width: 100%; height: 100%; object-fit: cover }
.rc .bd { padding: 16px 18px 18px; display: grid; gap: 10px; min-width: 0 }
.rc h3 { font-size: 21px }
.rc p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.by { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; min-width: 0 }
.av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: var(--purple-soft) center/cover; flex: none; display: grid; place-items: center; font: 800 13px var(--head) }
.meta { display: flex; gap: 8px; flex-wrap: wrap }

/* recipe page */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: center; padding-block: 10px 30px }
.hero .shot { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--orange-soft) }
.hero .shot img { width: 100%; height: 100%; object-fit: cover }
.hero .desc { font-size: 19px; color: var(--muted); margin: 14px 0 18px }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; margin-bottom: 34px }
.box { padding: 22px 24px }
.box h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 24px; margin-bottom: 12px }
.ing { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px }
.ing li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 2px dashed var(--line); cursor: pointer }
.ing li:last-child { border-bottom: 0 }
.ing li b { min-width: 74px; font-variant-numeric: tabular-nums }
.ing li.got { color: var(--muted); text-decoration: line-through }
.scale { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden }
.scale button { border: 0; background: #fff; font: 700 14px var(--body); padding: 6px 11px; cursor: pointer; color: var(--ink) }
.scale button + button { border-left: 2px solid var(--ink) }
.scale button.on { background: var(--yellow) }
.method { padding: 30px 32px; display: grid; gap: 22px; margin-bottom: 30px }
.method .steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px }
.method .steps li { counter-increment: s; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start }
.method .steps li::before { content: counter(s); width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; border: 3px solid var(--ink); display: grid; place-items: center; font: 800 18px var(--head); transform: rotate(-6deg) }
.method .steps li span { padding-top: 7px }
.method ul.bul { margin: 0; padding-left: 22px; display: grid; gap: 8px }
.method ul.bul li::marker { color: var(--orange); font-size: 1.2em }
.method p { margin: 0; white-space: pre-line }
.method .tip { background: var(--yellow-soft); border: 2.5px solid var(--ink); border-radius: 16px; padding: 14px 18px; white-space: pre-line }
.method .tip::before { content: 'tip: '; font: 700 24px/1 var(--hand); color: var(--orange) }
.method figure { margin: 0 }
.method figure img { border-radius: 18px; border: 3px solid var(--ink); width: 100%; max-height: 520px; object-fit: cover }
.method figcaption { font: 700 22px/1.2 var(--hand); color: var(--muted); margin-top: 6px }
.acts { display: flex; gap: 10px; flex-wrap: wrap }

.empty { text-align: center; padding: 50px 20px; color: var(--muted) }
.foot { padding-block: 40px; color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 50 }
dialog { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 24px; max-width: min(460px, calc(100% - 32px)) }
dialog::backdrop { background: rgba(29, 26, 46, .4) }

@media (max-width: 820px) {
  .hero, .two { grid-template-columns: minmax(0, 1fr) }
  .method { padding: 22px 18px }
  .card { box-shadow: 4px 4px 0 var(--ink) }
}
