﻿/* Source: interactions.css */
/* Shared cursor semantics for controls across Cooktop. */
body.dark_mode {
  color-scheme: dark;
}
body.dark_mode :where(button, select, input, textarea) {
  color: var(--ink, var(--text_color, #ecece6));
}
body.dark_mode :where(option, optgroup) {
  background: #22251f;
  color: #ecece6;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2370736b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 10px 6px !important;
}

body.dark_mode select,
body.dork_mode select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23aaada4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
body {
  cursor: default;
}

input:not([type]),
input[type="text"],
input[type="search"],
input[type="url"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
[contenteditable="true"] {
  cursor: text;
}
button:not(:disabled),
a[href],
select:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
label[for],
summary,
[role="button"]:not([aria-disabled="true"]),
[role="link"]:not([aria-disabled="true"]),
[data-action],
[data-url] {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

/* Source: burner_logo.css */
.brand-mark,
.brand > span:first-child,
.brand-burner {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 2px solid #111 !important;
  border-radius: 50%;
  background: none !important;
  font-size: 0;
  color: transparent;
  transition:
    border-color 1.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 1.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 1.25s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}
.brand-mark::after,
.brand > span:first-child::after,
.brand-burner::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  background: #111;
  transform: rotate(-135deg);
  -webkit-mask: url("/images/burner-spiral.svg") center/contain no-repeat;
  mask: url("/images/burner-spiral.svg") center/contain no-repeat;
  transition:
    background-color 1.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 1.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
body.dark_mode .brand-mark::after,
body.dark_mode .brand > span:first-child::after,
body.dark_mode .brand-burner::after {
  background: #d2d6ce;
}
.brand:hover .brand-mark,
.brand:hover > span:first-child,
#home_btn:hover .brand-burner {
  border-color: #d44732 !important;
  box-shadow:
    0 0 7px rgba(212, 71, 50, 0.72),
    0 0 17px rgba(212, 71, 50, 0.4),
    0 0 28px rgba(212, 71, 50, 0.18) !important;
}
.brand:hover .brand-mark::after,
.brand:hover > span:first-child::after,
#home_btn:hover .brand-burner::after {
  background: #e85a43;
  filter: drop-shadow(0 0 1px rgba(255, 155, 125, 0.72))
    drop-shadow(0 0 4px rgba(174, 34, 22, 0.78))
    drop-shadow(0 0 9px rgba(96, 8, 5, 0.48));
}
body.dark_mode .brand-mark,
body.dark_mode .brand > span:first-child,
body.dark_mode .brand-burner {
  background: transparent !important;
  border-color: #d2d6ce !important;
}
body.dork_mode .brand-mark,
body.dork_mode .brand > span:first-child,
body.dork_mode .brand-burner {
  background: transparent !important;
  border-color: #a2e7ae !important;
}
body.dork_mode .brand-mark::after,
body.dork_mode .brand > span:first-child::after,
body.dork_mode .brand-burner::after {
  background: #a2e7ae;
}
body.dark_mode .brand:hover .brand-mark,
body.dark_mode .brand:hover > span:first-child,
body.dark_mode #home_btn:hover .brand-burner {
  border-color: #d44732 !important;
  box-shadow:
    0 0 7px rgba(212, 71, 50, 0.72),
    0 0 17px rgba(154, 31, 20, 0.44),
    0 0 30px rgba(74, 5, 4, 0.3) !important;
}
body.dark_mode .brand:hover .brand-mark::after,
body.dark_mode .brand:hover > span:first-child::after,
body.dark_mode #home_btn:hover .brand-burner::after {
  background: #e85a43;
  filter: drop-shadow(0 0 1px rgba(255, 155, 125, 0.72))
    drop-shadow(0 0 4px rgba(174, 34, 22, 0.82))
    drop-shadow(0 0 10px rgba(74, 5, 4, 0.58));
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand > span:first-child,
  .brand-burner,
  .brand-mark::after,
  .brand > span:first-child::after,
  .brand-burner::after {
    transition-duration: 0.01ms !important;
  }
}

/* Source: dork_mode.css */
html:has(body.dork_mode) {
  background: #030704;
}
body.dork_mode {
  --paper: #050a06;
  --white: rgba(8, 18, 10, 0.9);
  --surface: rgba(8, 18, 10, 0.9);
  --soft: #0d1a10;
  --ink: #9ae6a8;
  --muted: #5fa96e;
  --accent: #57cf70;
  --line: rgba(87, 207, 112, 0.25);
  --sage: #102516;
  background: transparent !important;
  color: var(--ink);
  font-family: "Courier New", monospace;
  text-shadow: 0 0 5px rgba(71, 217, 101, 0.16);
}
body.dork_mode .topbar,
body.dork_mode > header,
body.dork_mode .profile-menu,
body.dork_mode .editor,
body.dork_mode .recommendation,
body.dork_mode .pantry-card,
body.dork_mode .details,
body.dork_mode dialog,
body.dork_mode .recipe-body > aside,
body.dork_mode .notes {
  background: rgba(5, 13, 7, 0.9) !important;
  border-color: var(--line) !important;
}
body.dork_mode h1,
body.dork_mode h2,
body.dork_mode h3,
body.dork_mode .brand {
  color: #a9efb5;
  text-shadow: 0 0 8px rgba(71, 217, 101, 0.28);
}
body.dork_mode input,
body.dork_mode textarea,
body.dork_mode select,
body.dork_mode button {
  border-color: var(--line);
  color: var(--ink);
  background-color: rgba(5, 15, 8, 0.88);
}
body.dork_mode .tags span,
body.dork_mode .status {
  background: #102516;
  color: #86dc96;
}
body.dork_mode img {
  filter: grayscale(1) sepia(1) hue-rotate(72deg) saturate(6) contrast(1.65)
    brightness(0.62) !important;
}
body.dork_mode .cover img,
body.dork_mode .thumb img,
body.dork_mode .treadmill img,
body.dork_mode .rec-image img,
body.dork_mode .hero > img {
  mix-blend-mode: screen;
  opacity: 0.7;
}
body.dork_mode .hero-copy,
body.dork_mode .recipe-card,
body.dork_mode .recipe_card,
body.dork_mode .title_bar {
  background: rgba(3, 10, 5, 0.64) !important;
}
body.dork_mode .recipe-card {
  border-color: var(--line);
  box-shadow: 0 0 15px rgba(71, 217, 101, 0.06);
}
.digital-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
}
body.dork_mode > header,
body.dork_mode > main,
body.dork_mode > footer,
body.dork_mode > .recipe_card,
body.dork_mode > form,
body.dork_mode > .details,
body.dork_mode > dialog {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .digital-rain {
    display: none;
  }
}

/* Source: mobile.css */
/* Shared phone treatment for every active Cooktop surface. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
svg,
video,
canvas {
  max-width: 100%;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
input,
select,
textarea {
  font-size: 16px;
}
@media (max-width: 700px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  button,
  a[href],
  [role="button"],
  input,
  select {
    min-height: 44px;
  }
  .site-header,
  .topbar,
  body > header {
    height: 64px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .site-header .brand,
  .topbar .brand,
  body > header .brand {
    font-size: 19px;
    white-space: nowrap;
  }
  .site-header nav,
  .topbar nav,
  body > header nav {
    display: none !important;
  }
  /* Home */
  .hero {
    height: auto;
    min-height: 100svh;
  }
  .hero-copy {
    left: 20px;
    right: 20px;
    top: 48%;
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(45px, 14vw, 62px);
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .intro {
    padding: 70px 20px;
  }
  .intro h2 {
    font-size: 40px;
  }
  .intro-copy {
    font-size: 19px;
  }
  .features {
    margin: 0 20px;
  }
  .features article {
    padding: 34px 4px 40px;
  }
  .features p {
    min-height: 0;
  }
  .site-header + .hero {
    padding-top: 0;
  }

  /* Recipe library */
  main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .page-head {
    margin-bottom: 36px;
  }
  .page-head h1 {
    font-size: 52px;
  }
  .head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }
  .head-actions > * {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .head-actions .new-library-recipe {
    grid-column: 1/-1;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    padding: 0 14px;
  }
  .recommendation {
    margin-left: -16px;
    margin-right: -16px;
  }
  .rec-image {
    min-height: 230px;
  }
  .rec-copy {
    padding: 30px 22px;
    min-height: 300px;
  }
  .rec-meta {
    flex-wrap: wrap;
  }
  .section-head {
    height: auto;
    min-height: 84px;
  }
  .recipe-card {
    padding: 20px 4px;
  }
  .recipe-card:hover {
    padding-left: 4px;
  }
  .filters {
    width: 100vw;
    padding: 26px 20px calc(28px + env(safe-area-inset-bottom));
  }
  .filter-actions {
    position: sticky;
    bottom: 0;
    background: inherit;
    padding-top: 12px;
  }

  /* Recipe detail */
  .hero-copy {
    padding-left: 22px;
    padding-right: 22px;
  }
  .recipe-body > aside,
  .recipe-body > article {
    padding: 48px 22px;
  }
  .cover {
    min-height: 340px;
  }
  .meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 16px;
  }
  .recipe-actions {
    display: grid;
    width: 100%;
    gap: 9px;
  }
  .recipe-actions a,
  .recipe-actions button {
    margin: 0 !important;
    text-align: center;
  }
  .source {
    padding: 32px 22px;
    margin-left: -16px !important;
    margin-right: -16px !important;
  }
  .gallery {
    padding: 55px 6px !important;
  }
  #gallery {
    grid-template-columns: 1fr;
  }
  .history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .iteration-body {
    grid-template-columns: 1fr !important;
  }

  /* Pantry */
  .summary {
    grid-template-columns: 1fr 1fr !important;
  }
  .summary > div {
    padding: 18px 12px;
  }
  .summary .value {
    grid-column: 1/-1 !important;
  }
  .toolbar {
    gap: 10px;
  }
  .search {
    height: 48px;
  }
  .filters select {
    flex: 1;
    min-width: 130px;
  }
  .inventory {
    margin-top: 38px;
  }
  .pantry-card {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 76px;
  }
  .thumb {
    height: 100%;
    min-height: 76px;
  }
  .card-copy {
    display: block !important;
    padding: 10px 12px !important;
  }
  .card-copy h3 {
    font-size: 17px !important;
  }
  .card-copy > strong {
    margin: 7px 0 0 !important;
    font-size: 13px !important;
  }
  .details {
    width: 100vw;
    padding: 20px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }
  .details .detail-hero {
    margin-left: -20px;
    margin-right: -20px;
  }
  .detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick button {
    height: 44px;
  }
  .quick-form {
    grid-template-columns: 1fr 1fr;
  }
  .quick-form input:first-child {
    grid-column: 1/-1;
  }
  .ledger article {
    grid-template-columns: 65px minmax(0, 1fr);
  }
  .ledger article > :last-child {
    grid-column: 2;
  }

  /* Recipe create/edit */
  .import {
    margin: 42px -16px;
    padding: 30px 20px;
  }
  .import form > div {
    display: grid;
    gap: 8px;
  }
  .import button {
    min-height: 46px;
  }
  .identity,
  .notes {
    padding: 32px 18px;
  }
  .lists > div {
    padding: 32px 18px;
  }
  .row {
    grid-template-columns: 1fr !important;
  }
  .repeat-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .numbered .repeat-row {
    grid-template-columns: 24px minmax(0, 1fr) 44px;
  }
  .remove {
    min-width: 44px;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .actions span {
    grid-column: 1/-1;
    margin: 0;
  }
  .actions button {
    width: 100%;
  }

  /* Floating recipe workspace */
  #header {
    height: 64px !important;
    padding: 0 14px !important;
  }
  .header_buttons {
    gap: 5px !important;
  }
  .header_buttons button,
  #header button {
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
  }
  .header_buttons button span {
    display: none;
  }
  .recipe_card {
    max-width: calc(100vw - 24px) !important;
    min-width: 280px !important;
  }
  .recipe_card .title_bar {
    min-height: 48px;
  }
  .dropdown-menu {
    max-width: calc(100vw - 24px);
  }
  .context-menu {
    max-width: calc(100vw - 20px);
    min-width: 190px;
  }
  .make-recipe-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    border: 0;
  }
  .make-dialog-body {
    padding: 20px;
    max-height: calc(100dvh - 145px);
  }
  .make-recipe-dialog form > header,
  .make-recipe-dialog footer {
    padding: 16px;
  }
  .make-recipe-dialog footer {
    position: sticky;
    bottom: 0;
    background: inherit;
    flex-wrap: wrap;
  }
  .make-status {
    width: 100%;
    margin: 0;
  }
  .make-recipe-dialog footer button {
    flex: 1;
  }
  .make-deductions li {
    grid-template-columns: 1fr;
  }
  .make-deductions li small {
    grid-column: auto;
  }

  dialog:not(.make-recipe-dialog) {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  dialog form > header,
  dialog > section,
  .form-grid {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  dialog form > footer {
    padding: 14px;
    position: sticky;
    bottom: 0;
    background: var(--surface, #fff);
  }
}
@media (max-width: 380px) {
  .profile-link {
    display: none;
  }
  .head-actions {
    grid-template-columns: 1fr;
  }
  .head-actions .new-library-recipe {
    grid-column: auto;
  }
  .summary {
    grid-template-columns: 1fr !important;
  }
  .summary .value {
    grid-column: auto !important;
  }
  .detail-stats {
    grid-template-columns: 1fr;
  }
  .detail-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero h1 {
    font-size: 43px;
  }
}
@media (hover: none) {
  .recipe-card:hover,
  .pantry-card:hover {
    transform: none;
  }
  .pantry-card:hover {
    box-shadow: none;
  }
}

/* Source: make_recipe_dialog.css */
.make-recipe-dialog {
  width: min(680px, 94vw);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line, #d8d8d0);
  background: var(--surface, var(--section_dark, #fff));
  color: var(--ink, var(--text_color, #20231e));
  box-shadow: 0 25px 90px #1117;
}
.make-recipe-dialog::backdrop {
  background: #10120eaa;
}
.make-recipe-dialog form > header,
.make-recipe-dialog footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line, #d8d8d0);
}
.make-recipe-dialog header div {
  flex: 1;
}
.make-recipe-dialog header small {
  color: var(--accent, #b64230);
  letter-spacing: 0.14em;
}
.make-recipe-dialog h2 {
  margin: 4px 0 0;
  font:
    500 34px "Fraunces",
    Georgia,
    serif;
}
.make-recipe-dialog button {
  cursor: pointer;
  border: 1px solid var(--line, #d8d8d0);
  background: transparent;
  color: inherit;
  padding: 9px 13px;
}
.make-recipe-dialog header button {
  border: 0;
  font-size: 24px;
}
.make-dialog-body {
  padding: 24px 26px;
  overflow: auto;
  max-height: 62vh;
}
.make-explanation {
  margin-top: 0;
  color: var(--muted, var(--text_color_secondary, #6c7068));
  line-height: 1.5;
}
.make-recipe-list article {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line, #d8d8d0);
}
.make-recipe-list article div {
  display: grid;
  gap: 3px;
  flex: 1;
}
.make-recipe-list small,
.make-plan small {
  color: var(--muted, var(--text_color_secondary, #6c7068));
}
.make-plan {
  margin-top: 22px;
}
.make-plan h3 {
  font:
    500 21px "Fraunces",
    Georgia,
    serif;
}
.make-plan ul {
  list-style: none;
  padding: 0;
}
.make-deductions li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 15px;
  padding: 10px 0;
  border-top: 1px solid var(--line, #d8d8d0);
}
.make-deductions li small {
  grid-column: 1/-1;
}
.make-warning {
  padding: 14px 17px;
  background: #b6423014;
  border-left: 3px solid #b64230;
}
.make-warning li {
  padding: 5px 0;
}
.make-plan details {
  margin-top: 16px;
}
.make-plan summary {
  cursor: pointer;
  color: var(--muted, var(--text_color_secondary, #6c7068));
}
.make-recipe-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line, #d8d8d0);
  border-bottom: 0;
}
.make-status {
  margin-right: auto;
  font-size: 12px;
}
.make-confirm {
  background: var(--accent, #b64230) !important;
  color: #fff !important;
  border-color: var(--accent, #b64230) !important;
}
.make-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
