@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
  color-scheme: light;
  --paper: #fffdf7;
  --ink: #34281d;
  --muted: #715f4c;
  --rule: #d6b660;
  --yellow: #f4c84f;
  --sans: "Lato", Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html { background: #efe9dc; }

body {
  margin: 0;
  color: var(--ink);
  background: #efe9dc;
  font: 17px/1.55 var(--sans);
}

.standalone-nav,
.standalone-recipe {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
}

.standalone-nav { padding: 22px 0 12px; }

.standalone-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.standalone-nav a,
.standalone-reset,
.standalone-test-alarm,
.standalone-wake-lock {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgb(98 73 31 / 30%);
  border-radius: 999px;
  background: rgb(255 253 247 / 92%);
  color: #62491f;
  font: 700 14px/1.3 var(--sans);
  text-decoration: none;
  touch-action: manipulation;
}

.standalone-nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.standalone-reset,
.standalone-test-alarm { cursor: pointer; }

.standalone-reset.is-reset-armed {
  border-color: #9b7218;
  background: #f7cf56;
  color: #34281d;
}

.standalone-test-alarm {
  gap: 7px;
}

.standalone-wake-lock {
  gap: 7px;
  cursor: pointer;
}

.standalone-wake-lock[aria-pressed="true"] {
  border-color: #876b2b;
  background: var(--yellow);
  color: #34281d;
}

.standalone-recipe {
  margin-bottom: 48px;
  padding: clamp(28px, 5vw, 62px);
  border-top: 8px solid var(--yellow);
  background: var(--paper);
  box-shadow: 0 10px 35px rgb(63 45 24 / 14%);
}

.standalone-kicker {
  margin: 0 0 8px;
  color: #876b2b;
  font: 700 12px/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; }
h1 { margin: 0; font-size: clamp(36px, 7vw, 60px); font-weight: 500; }
h2 { margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--rule); font-size: 25px; }
h3 { margin: 24px 0 6px; font-size: 17px; font-family: var(--sans); }

.standalone-description { max-width: 65ch; color: var(--muted); font-size: 19px; }
.standalone-yield { font-family: var(--sans); font-size: 15px; }
.standalone-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 18px 0 0;
  color: #62491f;
  font: 700 14px/1.35 var(--sans);
}

.standalone-columns {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(300px, 1.35fr);
  gap: clamp(32px, 7vw, 72px);
  margin-top: 42px;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
li { margin-bottom: 5px; }

.standalone-check-row,
.standalone-step-focus,
.standalone-step-check,
.standalone-step-controls button {
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

.standalone-check-row {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: start;
  width: 100%;
  min-height: 44px;
  padding: 8px 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.standalone-checkmark {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-top: .18em;
  border: 2px solid #9b7d3a;
  border-radius: 50%;
  background: var(--paper);
}

.standalone-check-row[data-check-kind="ingredient"] .standalone-checkmark { border-radius: 5px; }
.standalone-check-row[data-check-kind="variation"] .standalone-checkmark::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.standalone-check-row[data-check-kind="variation"][aria-pressed="true"] .standalone-checkmark::after {
  content: "";
  background: #876b2b;
}

[aria-pressed="true"] > .standalone-checkmark::after {
  content: "✔";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #4f3b19;
  font: 800 13px/1 Arial, sans-serif;
}

.standalone-check-row[aria-pressed="true"] > span:last-child,
.standalone-step.is-complete .standalone-step-focus {
  opacity: .68;
}

.standalone-check-row[aria-pressed="true"] > span:last-child {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.standalone-check-row[data-check-kind="variation"][aria-pressed="true"] > span:last-child {
  color: #5b431d;
  font-weight: 700;
  opacity: 1;
  text-decoration: none;
}

.standalone-step.is-complete {
  background: #f8f4e8;
}

.standalone-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.standalone-step-check {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.standalone-step-focus {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.standalone-step.is-focused {
  border-color: var(--rule);
  background: #fff3c8;
  font-size: 1.08em;
}

.standalone-steps.has-focused-step .standalone-step:not(.is-focused) { opacity: .58; }
.standalone-step:last-child { margin-bottom: 0; }
.standalone-steps strong { display: block; margin-bottom: 2px; font-family: var(--sans); font-size: 15px; }
.standalone-steps span { display: block; }

.standalone-step-controls {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: block;
  margin: -6px 0 14px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgb(255 253 247 / 96%);
  box-shadow: 0 4px 15px rgb(63 45 24 / 12%);
}

.standalone-step-controls[hidden] { display: none; }
.standalone-focus-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 8px;
  color: #62491f;
  font: 700 13px/1.3 var(--sans);
}
.standalone-focus-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.standalone-focus-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.standalone-step-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid rgb(98 73 31 / 35%);
  border-radius: 8px;
  background: #fff8e4;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.standalone-step-controls button:disabled { opacity: .42; cursor: default; }

.standalone-step-tools {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}

.standalone-timer {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #b89132;
  border-radius: 999px;
  background: #fff8e4;
  color: #4f3b19;
  font: 700 14px/1.2 var(--sans);
  cursor: pointer;
  touch-action: manipulation;
}
.standalone-timer.is-running { background: var(--yellow); }
.standalone-timer.is-finished { background: #7b263a; color: white; }

.standalone-measure {
  padding: 0 .12em;
  border-radius: .18em;
  background: #ffeb9b;
  color: inherit;
  font-weight: 700;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #7b263a;
  outline-offset: 3px;
}

.standalone-notes {
  margin-top: 34px;
  padding: 20px 24px;
  border-left: 5px solid var(--yellow);
  background: #faf3d9;
}
.standalone-notes h2 { border: 0; margin-bottom: 8px; padding: 0; font-size: 20px; }
.standalone-notes p { margin: 8px 0 0; }

@media (max-width: 680px) {
  .standalone-columns { grid-template-columns: 1fr; }
  .standalone-recipe { width: 100%; margin-bottom: 0; box-shadow: none; }
}

@media (min-width: 681px) and (max-width: 1100px) {
  body { font-size: 20px; line-height: 1.58; }

  .standalone-nav,
  .standalone-recipe { width: min(100% - 40px, 1040px); }

  .standalone-nav { padding-top: max(12px, env(safe-area-inset-top)); }
  .standalone-recipe { padding: clamp(28px, 4vw, 42px); }
  h1 { font-size: clamp(42px, 6.2vw, 56px); }
  .standalone-description { font-size: 21px; }
  .standalone-yield { font-size: 17px; }
  .standalone-progress { font-size: 16px; }
  .standalone-columns {
    grid-template-columns: minmax(245px, .72fr) minmax(360px, 1.28fr);
    gap: clamp(28px, 5vw, 52px);
    margin-top: 34px;
  }
  .standalone-steps strong { font-size: 17px; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .standalone-columns > section:first-child {
    position: sticky;
    top: max(16px, env(safe-area-inset-top));
    align-self: start;
  }
}

@media (min-width: 681px) and (max-width: 820px) {
  .standalone-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .standalone-nav { align-items: flex-start; }
  .standalone-nav > a { flex: none; }
  .standalone-nav-actions { flex-direction: column-reverse; }
  .standalone-focus-identity { grid-template-columns: 1fr auto; }
  .standalone-focus-identity [data-focused-wake] { grid-column: 1 / -1; }
  .standalone-step-controls button { min-height: 52px; font-size: 15px; padding-inline: 6px; }
}

@media print {
  html, body { background: #fff; }
  .standalone-nav { display: none; }
  .standalone-step-controls,
  .standalone-step-check,
  .standalone-checkmark,
  .standalone-step-tools,
  .standalone-progress { display: none !important; }
  .standalone-check-row,
  .standalone-step-focus { min-height: 0; padding: 0; }
  .standalone-step { display: block; margin-bottom: 18px; border: 0; }
  .standalone-steps.has-focused-step .standalone-step { opacity: 1; }
  .standalone-recipe { width: auto; margin: 0; padding: 0; border: 0; box-shadow: none; }
}
