/* Cook mode — Editorial Mono */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #F3F3F1;
  --color-surface: #FFFFFF;
  --color-text: #0A0A0A;
  --color-text-muted: #5C5C5C;
  --color-border: #D8D8D4;
  --color-accent: #0A0A0A;
  --color-accent-hover: #000000;
  --color-accent-muted: rgba(10, 10, 10, 0.08);
  --font-ui: 'Syne', 'Avenir Next', sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --radius-md: 0;
  --radius-lg: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; }

body.cook-body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.cook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-text);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.cook-exit {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.cook-exit:hover { text-decoration: underline; text-underline-offset: 3px; }
.cook-header__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
  text-align: center;
}
.cook-header__progress {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cook-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 8rem;
}

.cook-step-panel.hidden,
.cook-step-panel[hidden] { display: none; }

.cook-step-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.cook-step-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.15rem);
  line-height: 1.4;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.cook-step-ingredients {
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}
.cook-step-ingredients__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.65rem;
}
.cook-step-ingredients ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cook-step-ingredients li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.cook-step-ingredients li:last-child { border-bottom: none; }

.cook-timers { margin-bottom: 1.5rem; }
.cook-timer {
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  padding: 1.25rem;
  text-align: center;
}
.cook-timer__display {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.cook-timer__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cook-timer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-text);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.cook-timer__btn--primary,
.cook-timer__btn.cook-timer__btn--primary {
  background: var(--color-text);
  color: #fff;
}
.cook-timer__btn--primary:hover {
  background: #fff;
  color: var(--color-text);
}
.cook-timer__btn[hidden] { display: none; }

.cook-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0;
  padding: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-text);
  z-index: 10;
}
.cook-nav__btn {
  flex: 1;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--color-border);
  padding: 1.15rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.cook-nav__btn:last-child,
.cook-nav form:last-child .cook-nav__btn { border-right: none; }
.cook-nav__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cook-nav__btn--primary {
  background: var(--color-text);
  color: #fff;
}
.cook-nav__btn--primary:hover:not(:disabled) {
  background: #333;
}
.cook-nav form { flex: 2; display: flex; margin: 0; }
.cook-nav form .cook-nav__btn { width: 100%; }

a { color: var(--color-text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
