﻿/* Source: new_recipe.css */
:root {
  --paper: #f7f5ef;
  --surface: #fff;
  --soft: #ebe9e1;
  --ink: #20231e;
  --muted: #70736b;
  --accent: #b64230;
  --line: #deddd6;
}
body.dark_mode {
  --paper: #171915;
  --surface: #22251f;
  --soft: #292d26;
  --ink: #ecece6;
  --muted: #aaada4;
  --accent: #c55b48;
  --line: #383b35;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
header {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font:
    500 21px "Fraunces",
    serif;
}
.brand span {
  width: 30px;
  height: 30px;
  border: 2px solid #111;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #111 0 2px,
    transparent 3px 5px,
    #111 6px 7px,
    transparent 8px 10px
  );
  transition: 0.3s;
}
.brand:hover span {
  border-color: #c33b2c;
  background: repeating-radial-gradient(
    circle,
    #d64a37 0 2px,
    transparent 3px 5px,
    #c33b2c 6px 7px,
    transparent 8px 10px
  );
  box-shadow: 0 0 14px #d64a3766;
}
nav {
  display: flex;
  gap: 30px;
  margin-left: 9vw;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 60px clamp(20px, 5vw, 75px) 100px;
}
.page-intro > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.page-intro p,
.import p,
.list-head p {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 35px 0 10px;
}
.page-intro h1 {
  font:
    500 clamp(55px, 7vw, 88px) / 0.95 "Fraunces",
    serif;
  margin: 0 0 18px;
}
.page-intro > span {
  color: var(--muted);
}
.import {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6vw;
  margin: 60px 0;
  background: #252820;
  color: #fff;
  padding: 38px 45px;
}
.import h2,
.list-head h2 {
  font:
    500 30px "Fraunces",
    serif;
  margin: 0;
}
.import form {
  align-self: center;
}
.import label,
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.import form > div {
  display: flex;
}
.import input {
  flex: 1;
}
.import button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0 18px;
}
.import small {
  display: block;
  color: #aeb1a9;
  margin-top: 9px;
}
.editor {
  background: var(--surface);
  border: 1px solid var(--line);
}
.identity,
.notes {
  padding: 45px clamp(24px, 5vw, 70px);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  font: 14px inherit;
}
textarea {
  resize: vertical;
}
.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.identity > label {
  margin-top: 20px;
}
.identity > label:first-child input {
  font:
    500 32px "Fraunces",
    serif;
}
.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
}
.lists > div {
  padding: 42px clamp(24px, 4vw, 55px);
}
.lists > div:first-child {
  background: var(--soft);
  border-right: 1px solid var(--line);
}
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.list-head p {
  margin-top: 0;
}
.list-head button,
.remove {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
}
.repeat-list {
  display: grid;
  gap: 9px;
  margin-top: 25px;
}
.repeat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}
.numbered {
  counter-reset: item;
}
.numbered .repeat-row {
  grid-template-columns: 30px 1fr auto;
  counter-increment: item;
}
.numbered .repeat-row:before {
  content: counter(item, decimal-leading-zero);
  padding-top: 12px;
  color: var(--accent);
  font:
    500 13px "Fraunces",
    serif;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}
.actions span {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}
.actions button {
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
.actions button[type="submit"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 800px) {
  nav {
    display: none;
  }
  .import,
  .lists {
    grid-template-columns: 1fr;
  }
  .lists > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .import {
    margin-inline: -20px;
    padding: 30px 20px;
  }
  .import form > div {
    display: grid;
  }
  .import input,
  .import button {
    min-height: 45px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-wrap: wrap;
  }
}
button:not(:disabled),
a[href],
select:not(:disabled),
label[for],
[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;
}
.description-control {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.description-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
}
.description-heading label {
  display: block;
}
.description-pencil {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font:
    19px/1 Georgia,
    serif;
  opacity: 0.28;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
.description-pencil:hover {
  opacity: 0.9;
  background: var(--soft);
  transform: rotate(-5deg);
}
.description-pencil:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.description-pencil.working {
  opacity: 0.65;
  animation: pencil-pulse 0.8s ease-in-out infinite alternate;
}
.description-pencil:disabled {
  cursor: wait;
}
.description-ai-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
@keyframes pencil-pulse {
  to {
    opacity: 1;
    transform: translateY(-1px);
  }
}
.cover-url-preview {
  display: block;
  width: min(260px, 100%);
  aspect-ratio: 16/10;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: var(--soft);
  object-fit: cover;
}
.cover-url-preview[hidden] {
  display: none;
}
.add-list-row {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 1px solid var(--line) !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--ink) !important;
  font:
    600 13px "DM Sans",
    sans-serif !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.add-list-row:hover {
  background: var(--surface) !important;
  border-color: var(--muted) !important;
  color: var(--accent) !important;
}
.add-list-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.numbered textarea {
  overflow-y: hidden;
  resize: none;
  min-height: 46px;
  line-height: 1.5;
}
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;
}
