:root {
  --color-primary: #c9472f;
  --color-primary-contrast: #fffaf4;
  --color-bg: #f7f1e8;
  --color-surface: #fffdf9;
  --color-text: #211916;
  --color-muted: #806f63;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Trebuchet MS', Arial, sans-serif;
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

::selection {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.recipe-art {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: var(--color-text);
  color: var(--color-primary-contrast);
}

.recipe-photo {
  isolation: isolate;
  background-image:
    linear-gradient(135deg, color-mix(in srgb, var(--color-text) 18%, transparent), transparent 45%),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--color-primary-contrast) 12%, transparent), transparent 32%),
    linear-gradient(115deg, transparent 0 35%, color-mix(in srgb, var(--color-primary-contrast) 8%, transparent) 36% 38%, transparent 39% 100%);
  box-shadow: inset 0 -38px 55px color-mix(in srgb, #000 34%, transparent);
}

.recipe-photo::before {
  z-index: 2;
  width: 160%;
  height: 75%;
  left: -30%;
  bottom: -44%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, #000 45%, transparent), transparent 68%);
  opacity: 0.72;
  transform: rotate(-5deg);
}

.recipe-photo::after {
  z-index: 3;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--color-primary-contrast) 22%, transparent) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  opacity: 0.16;
  pointer-events: none;
}

.recipe-photo svg {
  z-index: 1;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.025);
  transition: transform 500ms ease, filter 500ms ease;
}

article:hover .recipe-photo svg {
  filter: saturate(1.2) contrast(1.08);
  transform: scale(1.06);
}

.recipe-photo .recipe-art-label {
  z-index: 4;
  text-shadow: 0 2px 12px color-mix(in srgb, #000 65%, transparent);
}

.recipe-finished-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  border: 1px solid color-mix(in srgb, var(--color-primary-contrast) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #000 34%, transparent);
  color: var(--color-primary-contrast);
  padding: 0.42rem 0.68rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.recipe-photo-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 4;
  color: color-mix(in srgb, var(--color-primary-contrast) 78%, transparent);
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px color-mix(in srgb, #000 70%, transparent);
}


.recipe-art::before,
.recipe-art::after {
  position: absolute;
  content: '';
  border: 1px solid color-mix(in srgb, var(--color-primary-contrast) 18%, transparent);
  border-radius: 999px;
}

.recipe-art::before {
  width: 280px;
  height: 280px;
  right: -60px;
  top: -100px;
}

.recipe-art::after {
  width: 180px;
  height: 180px;
  left: -55px;
  bottom: -100px;
}

.recipe-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.recipe-art-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  z-index: 1;
  max-width: 70%;
  color: var(--color-primary-contrast);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

input:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  outline-offset: 1px;
  border-color: var(--color-primary) !important;
}
