/* Warm porcelain, lacquer red and jade. Recipe and cook mode share the same type. */
@font-face {
  font-family:Hanken;
  src:url('/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap
}

:root {
  --paper:#f6f1e8;
  --white:#fffcf6;
  --ink:#183e34;
  --muted:#667168;
  --line:#d5d5c7;
  --jade:#234e40;
  --jade-dark:#183c32;
  --jade-pale:#e8ecdf;
  --red:#ad382a;
  --red-pale:#f5ddd2;
  --gold:#d9ad58;
  --gold-dark:#805d25;
  --gold-pale:#f1e5c9;
  --sans:Hanken,'Helvetica Neue',Arial,sans-serif
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:17px/1.55 var(--sans);
  -webkit-font-smoothing:antialiased
}

body.cm-open {
  overflow:hidden
}

h1,h2,h3,h4,p,figure,dl,dd {
  margin:0
}

h1,h2,h3,h4 {
  font-weight:800;
  letter-spacing:-.045em;
  text-wrap:balance
}

a {
  color:inherit
}

img {
  max-width:100%;
  display:block
}

button,input {
  font:inherit
}

button,summary {
  cursor:pointer
}

button,a,input,summary {
  -webkit-tap-highlight-color:transparent
}

:focus-visible {
  outline:3px solid var(--red);
  outline-offset:5px
}

::selection {
  background:var(--gold-pale);
  color:var(--ink)
}

[hidden] {
  display:none!important
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap
}

.wrap {
  width:min(1240px,calc(100% - 96px));
  margin-inline:auto
}

.section-space {
  padding-block:88px
}

.skip-link {
  position:fixed;
  z-index:60;
  left:16px;
  top:-80px;
  background:var(--jade);
  color:var(--white);
  padding:12px 18px
}

.skip-link:focus {
  top:16px
}

.site-header {
  height:92px;
  display:flex;
  align-items:center;
  gap:28px;
  border-bottom:1px solid var(--line)
}

.brand-wordmark {
  font-size:25px;
  font-weight:600;
  letter-spacing:-.05em;
  text-decoration:none;
  white-space:nowrap
}

.brand-wordmark .dot {
  color:var(--red)
}

.brand-wordmark .tld {
  color:var(--muted);
  font-weight:400
}

.header-note {
  font-size:10px;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--muted);
  margin-left:10px
}

.site-header nav {
  margin-left:auto;
  display:flex;
  gap:26px;
  font-size:13px;
  font-weight:600
}

.site-header nav a {
  text-decoration:none;
  padding-block:12px
}

.site-header nav a:hover {
  color:var(--red)
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  min-height:50px;
  padding:12px 22px;
  border-radius:4px;
  border:1px solid currentColor;
  background:none;
  color:inherit;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s,transform .18s
}

.btn-solid {
  background:var(--jade);
  border-color:var(--jade);
  color:var(--white)
}

.btn-solid:hover {
  background:var(--jade-dark);
  transform:translateY(-2px)
}

.link-btn {
  background:none;
  border:0;
  padding:0;
  font-size:13px;
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px
}

.resume {
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  background:var(--gold-pale);
  border:1px solid var(--gold);
  border-radius:4px;
  padding:14px 18px;
  font-size:15px
}

.hero {
  display:grid;
  grid-template-columns:.85fr 1.55fr;
  column-gap:60px;
  row-gap:36px;
  padding-block:48px 42px;
  align-items:center
}

.hero-heading {
  grid-column:1/-1
}

.kicker {
  font-size:10px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--red)
}

.title-line {
  display:flex;
  align-items:center;
  gap:36px;
  margin-top:10px
}

h1 {
  font-size:clamp(92px,12.6vw,178px);
  line-height:.94;
  letter-spacing:-.075em;
  white-space:nowrap;
  color:var(--jade)
}

.title-dot {
  color:var(--red)
}

.chinese-mark {
  display:inline-block;
  color:var(--red);
  border:2px solid var(--red);
  font-family:'Songti SC','Noto Serif CJK TC',serif;
  font-size:30px;
  line-height:1.2;
  padding:9px 8px;
  writing-mode:vertical-rl;
  transform:rotate(5deg);
  opacity:.9
}

.hero-copy {
  padding-bottom:22px
}

.hero-deck {
  font-size:clamp(26px,3.1vw,42px);
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.04em;
  margin-bottom:20px
}

.hero-description {
  font-size:16px;
  line-height:1.65;
  max-width:34ch;
  color:var(--muted)
}

.recipe-facts {
  display:flex;
  gap:28px;
  margin:24px 0;
  border-block:1px solid var(--line);
  padding:16px 0
}

.recipe-facts dt {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted)
}

.recipe-facts dd {
  font-size:21px;
  font-weight:700;
  letter-spacing:-.03em
}

.hero-cta {
  min-width:190px;
  justify-content:space-between
}

.heads-up {
  margin-top:20px;
  font-size:12px;
  color:var(--muted);
  line-height:1.5
}

.heads-up strong {
  color:var(--ink);
  font-weight:700
}

.hero-image {
  align-self:stretch;
  display:flex;
  flex-direction:column;
  min-width:0
}

.hero-image img {
  width:100%;
  height:100%;
  min-height:390px;
  max-height:540px;
  object-fit:cover;
  border-radius:6px
}

.hero-image figcaption {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:12px;
  font-size:9px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase
}

.parts {
  padding-bottom:64px
}

.part-tiles {
  list-style:none;
  margin:0 0 26px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-block:1px solid var(--line)
}

.part-tiles li+li {
  border-left:1px solid var(--line)
}

.part-tiles a {
  position:relative;
  display:grid;
  grid-template-columns:38px 1fr;
  gap:2px 12px;
  padding:26px 20px;
  text-decoration:none;
  transition:background .18s
}

.part-tiles a:hover {
  background:var(--jade-pale)
}

.part-num {
  grid-row:1/3;
  align-self:start;
  font-size:11px;
  letter-spacing:.06em;
  color:var(--red);
  padding-top:4px
}

.part-tiles strong {
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.04em;
  font-weight:700;
  padding-right:14px
}

.part-tiles small {
  font-size:12px;
  color:var(--muted);
  margin-top:6px
}

.part-arrow {
  position:absolute;
  right:16px;
  top:25px;
  color:var(--red)
}

.cheat {
  background:var(--jade-dark);
  color:var(--paper);
  border-radius:4px
}

.cheat summary {
  list-style:none;
  cursor:pointer;
  padding:19px 24px;
  display:flex;
  align-items:center;
  gap:22px;
  font-size:13px;
  color:#bdcbbd
}

.cheat summary::-webkit-details-marker {
  display:none
}

.cheat summary>span:first-child {
  color:var(--white);
  font-weight:700
}

.cheat .plus {
  margin-left:auto;
  font-size:24px;
  line-height:1;
  transition:transform .2s
}

.cheat[open] .plus {
  transform:rotate(45deg)
}

.cheat ol {
  margin:0;
  padding:4px 28px 26px 48px;
  display:grid;
  gap:9px;
  font-size:15px;
  line-height:1.6
}

.cheat li::marker {
  color:var(--gold);
  font-weight:800
}

.cheat b {
  color:var(--white)
}

.band-shop {
  background:var(--white);
  border-block:1px solid var(--line)
}

.band-marinate {
  background:var(--jade-pale);
  border-bottom:1px solid var(--line)
}

.band-help {
  background:var(--jade-dark);
  color:var(--paper)
}

.section-head {
  position:relative;
  display:flex;
  align-items:flex-end;
  gap:32px;
  flex-wrap:wrap;
  margin-bottom:44px
}

.section-num {
  flex-basis:100%;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--red);
  margin-bottom:-14px
}

.section-head>div {
  flex:1;
  min-width:0
}

.section-head h2 {
  font-size:clamp(38px,4.7vw,62px);
  line-height:1.04;
  letter-spacing:-.055em
}

.section-head p {
  margin-top:16px;
  color:var(--muted);
  font-size:15px;
  max-width:55ch
}

.section-head .section-note {
  font-size:12px;
  margin:0;
  line-height:1.6
}

.section-head .btn {
  margin-bottom:2px
}

.band-help .section-num {
  color:var(--gold)
}

.band-help .section-head p {
  color:#b9c9bd
}

.shop-layout {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:88px;
  align-items:start
}

.list-toolbar {
  display:flex;
  align-items:baseline;
  gap:14px;
  padding-bottom:14px;
  border-bottom:2px solid var(--ink)
}

.list-toolbar h3 {
  font-size:24px;
  margin-right:auto;
  font-weight:700
}

#grocery-progress {
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}

.check-list {
  list-style:none;
  margin:0;
  padding:0
}

.check-list li {
  border-bottom:1px solid var(--line)
}

.check-list label {
  display:grid;
  grid-template-columns:20px 1fr auto;
  gap:14px;
  align-items:start;
  padding:15px 0;
  cursor:pointer
}

.check-list input {
  appearance:none;
  width:19px;
  height:19px;
  margin:3px 0 0;
  border:1px solid #9ba89a;
  border-radius:3px;
  display:grid;
  place-content:center;
  background:transparent
}

.check-list input:checked {
  background:var(--jade);
  border-color:var(--jade)
}

.check-list input:checked:before {
  content:'✓';
  color:var(--white);
  font-size:13px;
  font-weight:800
}

.item {
  font-weight:500;
  line-height:1.4;
  padding-top:1px
}

.item small {
  display:block;
  font-weight:400;
  font-size:12px;
  color:var(--muted);
  margin-top:3px
}

.amt {
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  padding-top:3px
}

.check-list input:checked~.item,.check-list input:checked~.amt {
  color:var(--muted);
  text-decoration:line-through;
  text-decoration-color:#9aa7a1
}

.tag {
  display:inline-block;
  font-size:8px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid var(--line);
  color:var(--muted);
  border-radius:3px;
  padding:2px 5px;
  margin-left:4px;
  vertical-align:2px
}

.tag-glaze {
  background:var(--gold-pale);
  border-color:#daca9c;
  color:var(--gold-dark)
}

.gear-list label {
  grid-template-columns:20px 1fr
}

.glaze-row {
  background:linear-gradient(90deg,transparent,var(--gold-pale))
}

.steps {
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:step;
  display:grid;
  gap:0;
  border-top:1px solid var(--line)
}

.step {
  counter-increment:step;
  position:relative;
  border-bottom:1px solid var(--line);
  padding:28px 24px 28px 70px
}

.step:before {
  content:counter(step,decimal-leading-zero);
  position:absolute;
  left:2px;
  top:25px;
  color:var(--jade);
  font-weight:500;
  font-size:23px;
  line-height:1.2;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums
}

.step-key {
  background:var(--gold-pale);
  padding-left:70px
}

.step-key:before {
  left:16px;
  color:var(--gold-dark)
}

.step-do {
  font-size:22px;
  line-height:1.3;
  letter-spacing:-.025em;
  font-weight:650;
  max-width:60ch
}

.step-sub {
  margin-top:7px;
  color:var(--muted);
  font-size:15px
}

.step-list {
  margin:10px 0 0;
  padding-left:20px;
  display:grid;
  gap:4px;
  font-size:15px
}

.step-list li::marker {
  color:var(--jade)
}

.step-while,.step-warn {
  margin-top:16px;
  border-radius:4px;
  padding:14px 18px;
  font-size:14px;
  max-width:660px
}

.step-while {
  background:var(--gold-pale)
}

.step-while strong {
  display:block;
  color:var(--gold-dark);
  margin-bottom:4px
}

.step-warn {
  background:var(--red-pale);
  color:var(--red);
  font-weight:700
}

.step-help {
  margin-top:12px;
  font-size:13px
}

.step-help summary {
  cursor:pointer;
  color:var(--jade);
  font-weight:700;
  width:max-content
}

.step-help p {
  margin-top:8px;
  color:var(--muted);
  max-width:62ch
}

.step-figure {
  margin-top:20px;
  width:100%;
  max-width:560px;
  height:auto;
  border-radius:4px
}

.step[data-oven]:after {
  content:attr(data-oven);
  position:absolute;
  right:20px;
  top:28px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--red);
  border:1px solid #d4a79b;
  border-radius:3px;
  padding:4px 9px
}

.step[data-oven] .step-do {
  padding-right:88px
}

.roast-intro {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:60px;
  align-items:start;
  margin-bottom:56px
}

.pan-figure {
  background:#f1ede4;
  border:1px solid #e0ddd1;
  border-radius:6px;
  padding:26px 26px 12px
}

.pan-figure h3,.hour h3 {
  font-size:29px;
  line-height:1.12;
  letter-spacing:-.04em;
  margin-top:10px
}

.pan-figure figcaption>p:last-child {
  margin-top:10px;
  color:var(--muted);
  font-size:13px
}

.pan-body {
  display:grid;
  grid-template-columns:1.3fr .8fr;
  gap:12px;
  align-items:stretch;
  margin-top:12px
}

.pan-body img {
  width:100%;
  height:auto;
  border-radius:4px;
  align-self:center
}

.pan-legend {
  list-style:none;
  margin:0;
  padding:12px 0;
  display:grid;
  grid-template-rows:repeat(4,1fr);
  gap:8px
}

.pan-legend li {
  display:grid;
  grid-template-columns:18px 1fr;
  align-content:center;
  column-gap:7px;
  font-size:11px;
  color:var(--muted);
  line-height:1.5
}

.pan-legend span {
  grid-row:1/3;
  font-size:10px;
  color:var(--red);
  font-weight:700;
  padding-top:2px
}

.pan-legend b {
  color:var(--ink);
  font-size:12px;
  font-weight:700
}

.hour {
  padding-top:26px;
  min-width:0
}

.hour h3 {
  font-size:44px;
  margin-top:10px;
  max-width:13ch
}

.timeline {
  margin-top:30px;
  padding-bottom:30px
}

.tl-bar {
  display:flex;
  gap:3px;
  height:92px
}

.seg {
  border-radius:3px;
  background:#d9b96f;
  color:var(--ink);
  padding:14px 0 0 9px;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  transition:opacity .2s,box-shadow .2s
}

.seg b {
  font-size:27px;
  font-weight:650;
  line-height:1;
  letter-spacing:-.05em
}

.seg span {
  font-size:10px;
  font-weight:600;
  margin-top:10px;
  white-space:nowrap
}

.s10 {
  flex:10
}

.s15 {
  flex:15
}

.seg-hot {
  background:var(--red);
  color:var(--white)
}

.seg-glaze {
  background:var(--gold-dark);
  color:var(--white)
}

.seg-rest {
  background:var(--jade-pale);
  color:var(--jade);
  border:1px dashed var(--jade)
}

.tl-marks {
  position:relative;
  height:20px;
  margin-top:8px;
  font-size:9px;
  font-weight:600;
  color:var(--muted)
}

.tl-marks span {
  position:absolute;
  top:0;
  transform:translateX(-50%);
  white-space:nowrap;
  padding-top:8px
}

.tl-marks span:before {
  content:'';
  position:absolute;
  left:50%;
  top:0;
  height:5px;
  border-left:1px solid var(--muted)
}

.tl-marks span:first-child {
  transform:none
}

.tl-marks span:first-child:before {
  left:0
}

.tl-marks span:last-child {
  transform:translateX(-100%)
}

.tl-marks span:last-child:before {
  left:auto;
  right:0
}

.hour-note {
  font-size:12px;
  color:var(--muted);
  max-width:44ch
}

.glaze-note {
  margin-top:32px;
  border-top:1px solid var(--line);
  padding-top:24px
}

.glaze-note h4 {
  font-size:28px;
  margin:6px 0 14px
}

.glaze-note p {
  font-size:14px;
  line-height:2;
  max-width:300px
}

.glaze-note b {
  float:right;
  font-weight:600
}

.glaze-note small {
  display:block;
  max-width:37ch;
  margin-top:14px;
  color:var(--muted);
  font-size:12px
}

.fixes {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0 60px
}

.fixes>div {
  border-top:1px solid #49685a;
  padding:24px 0
}

.fixes dt {
  font-weight:650;
  font-size:20px;
  letter-spacing:-.025em;
  color:var(--white)
}

.fixes dd {
  margin-top:7px;
  color:#bdcdbf;
  font-size:15px
}

.credit {
  margin-top:40px;
  border-top:1px solid #49685a;
  padding-top:24px;
  font-size:12px;
  color:#bdcdbf;
  max-width:75ch
}

.credit a {
  color:var(--white);
  text-underline-offset:3px
}

.site-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-block:28px;
  font-size:11px;
  color:var(--muted)
}

.site-footer a {
  text-decoration:none
}

.footer-mark {
  font-size:29px;
  font-weight:800;
  letter-spacing:-.06em;
  color:var(--jade)
}

.art-note {
  font-size:10px
}

/* Timer bar, shown on the page while step-by-step mode is closed */
.timer-bar  {
  position:fixed;
  z-index:30;
  left:0;
  right:0;
  bottom:0;
  background:var(--jade-dark);
  color:var(--paper);
  padding:10px max(20px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));
}

.timer-in  {
  max-width:1120px;
  margin-inline:auto;
  display:flex;
  align-items:center;
  gap:16px;
}

.timer-clock  {
  font-size:36px;
  font-weight:800;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
  color:var(--gold);
}

.timer-what  {
  flex:1;
  min-width:0;
  font-size:14px;
}

.timer-bar.is-ringing  {
  background:var(--gold);
  color:var(--ink);
}

.timer-bar.is-ringing .timer-clock  {
  color:var(--ink);
}

body.has-timer  {
  padding-bottom:84px;
}

/* Step-by-step mode: the whole screen, one step, one obvious button */
.cm  {
  position:fixed;
  inset:0;
  z-index:50;
  background:var(--paper);
  display:flex;
  flex-direction:column;
}

.cm-top  {
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--jade-dark);
  color:var(--paper);
  padding:calc(10px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));
}

.cm-where  {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.25;
}

#cm-track  {
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#9fc1b4;
}

#cm-count  {
  font-size:17px;
  font-weight:800;
}

.cm-tool  {
  background:none;
  border:1.5px solid #5d8a7d;
  color:inherit;
  border-radius:8px;
  padding:8px 14px;
  min-height:42px;
  font-size:14px;
  font-weight:700;
}

.cm-tool[aria-pressed=true]  {
  background:var(--paper);
  color:var(--jade-dark);
  border-color:var(--paper);
}

.cm-progress  {
  display:flex;
  gap:4px;
  padding:10px max(16px,env(safe-area-inset-left,0px));
  background:var(--jade-dark);
}

.cm-progress span  {
  flex:1;
  height:6px;
  border-radius:3px;
  background:#2f5c50;
}

.cm-progress span.is-done  {
  background:var(--gold);
}

.cm-progress span.is-now  {
  background:var(--white);
}

.cm-scroll  {
  flex:1;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.cm-main,.cm-timer  {
  width:min(720px,calc(100% - 2 * max(20px,env(safe-area-inset-left,0px))));
  margin-inline:auto;
}

.cm-main  {
  padding-top:28px;
}

.cm-oven  {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--red-pale);
  color:var(--red);
  font-weight:800;
  font-size:15px;
  border-radius:6px;
  padding:5px 12px;
  margin-bottom:16px;
}

.cm-main .step-do  {
  font-size:clamp(28px,6vw,40px);
  line-height:1.15;
  letter-spacing:-.03em;
}

.cm-main .step-sub  {
  font-size:20px;
  margin-top:10px;
}

.cm-main .step-list  {
  font-size:21px;
  gap:8px;
  margin-top:14px;
  padding-left:24px;
}

.cm-main .step-while,.cm-main .step-warn  {
  font-size:18px;
  padding:14px 18px;
  margin-top:18px;
}

.cm-main .step-help  {
  font-size:17px;
  margin-top:16px;
}

.cm-main .step-figure  {
  max-width:560px;
  margin-top:20px;
}

.cm-next  {
  margin-top:28px;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:16px;
}

.cm-next span  {
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--jade);
}

.cm-done-note  {
  font-size:20px;
  color:var(--muted);
  margin-top:10px;
}

.cm-timer  {
  width:auto;
  margin-top:20px;
  background:var(--jade-dark);
  color:var(--paper);
  border-radius:20px;
  padding:20px 24px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:4px 16px;
}

.cm-clock  {
  font-size:clamp(64px,16vw,104px);
  line-height:1;
  font-weight:800;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
  color:var(--gold);
}

.cm-timer-note  {
  grid-column:1;
  font-size:15px;
  color:#c9dcd3;
}

.cm-timer-tools  {
  grid-column:2;
  grid-row:1/3;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.cm-timer.is-ringing  {
  background:var(--gold);
  color:var(--ink);
  animation:ring 1s ease-in-out infinite;
}

.cm-timer.is-ringing .cm-clock,.cm-timer.is-ringing .cm-timer-note  {
  color:var(--ink);
}

.cm-timer.is-ringing .cm-tool  {
  border-color:var(--ink);
}

@keyframes ring  {
  50%  {
    background:#e2b45a;
  }

}

.cm-actions  {
  display:flex;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--line);
  background:var(--white);
  padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
}

.cm-back  {
  background:none;
  border:0;
  color:var(--muted);
  font-size:16px;
  font-weight:700;
  padding:12px 8px;
  min-height:56px;
}

.cm-go  {
  flex:1;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.cm-primary,.cm-alt  {
  min-height:64px;
  border-radius:12px;
  font-size:19px;
  font-weight:800;
  padding:10px 22px;
}

.cm-primary  {
  flex:0 1 420px;
  background:var(--jade);
  color:var(--white);
  border:0;
}

.cm-primary:hover  {
  background:var(--jade-dark);
}

.cm-primary.is-quiet  {
  background:none;
  color:var(--jade);
  border:2px solid var(--jade);
}

.cm-primary.is-go  {
  background:var(--red);
}

.cm-alt  {
  flex:0 1 320px;
  background:var(--white);
  color:var(--jade);
  border:2px solid var(--jade);
}

/* Smaller screens keep the food prominent and the recipe easy to use. */
@media(min-width:1600px) {
  .hero-image img {
    max-height:550px
  }

  .hero {
    row-gap:44px
  }

}

@media(max-width:1100px) {
  .wrap {
    width:calc(100% - 64px)
  }

  .header-note {
    display:none
  }

  .hero {
    gap:30px;
    grid-template-columns:.9fr 1.3fr
  }

  .hero-image img {
    min-height:400px
  }

  .hero-deck {
    font-size:32px
  }

  .recipe-facts {
    gap:22px
  }

  .shop-layout {
    gap:48px
  }

  .part-tiles a {
    padding:24px 14px;
    grid-template-columns:28px 1fr;
    gap:2px 8px
  }

  .part-tiles strong {
    font-size:17px
  }

  .part-arrow {
    right:10px;
    top:23px
  }

  .roast-intro {
    gap:32px;
    grid-template-columns:1.1fr 1fr
  }

  .pan-figure {
    padding:20px 18px 10px
  }

  .pan-body {
    grid-template-columns:1fr
  }

  .pan-body img {
    max-width:330px;
    margin:auto
  }

  .pan-legend {
    grid-template-columns:repeat(2,1fr);
    grid-template-rows:auto;
    gap:16px;
    padding:10px 0 20px
  }

  .pan-legend li {
    min-height:48px
  }

  .hour h3 {
    font-size:38px
  }

  .section-head h2 {
    font-size:48px
  }

}

@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px)
  }

  .site-header {
    height:76px;
    gap:16px
  }

  .brand-wordmark {
    font-size:22px
  }

  .site-header nav {
    gap:17px;
    font-size:12px
  }

  .hero {
    grid-template-columns:1fr;
    row-gap:26px;
    padding-top:36px
  }

  .hero-heading {
    grid-column:auto
  }

  .title-line {
    gap:24px;
    margin-top:16px
  }

  h1 {
    font-size:clamp(86px,17.5vw,132px)
  }

  .chinese-mark {
    font-size:21px;
    padding:6px
  }

  .hero-image {
    grid-row:2
  }

  .hero-image img {
    aspect-ratio:3/2;
    min-height:0;
    max-height:none;
    height:auto
  }

  .hero-image figcaption {
    font-size:8px
  }

  .hero-copy {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 30px;
    padding-bottom:0
  }

  .hero-deck {
    grid-row:1/3;
    font-size:clamp(28px,5vw,38px);
    margin:0
  }

  .hero-description {
    font-size:14px;
    max-width:40ch
  }

  .recipe-facts {
    grid-column:2;
    margin:18px 0;
    justify-content:space-between;
    gap:12px
  }

  .recipe-facts dd {
    font-size:20px
  }

  .hero-cta {
    grid-column:1;
    grid-row:3;
    align-self:start;
    justify-self:start;
    min-width:175px
  }

  .heads-up {
    grid-column:2;
    margin:0;
    align-self:center;
    font-size:11px
  }

  .parts {
    padding-bottom:44px
  }

  .part-tiles {
    margin-bottom:20px
  }

  .part-tiles a {
    display:block;
    padding:20px 12px
  }

  .part-num {
    display:block;
    margin-bottom:8px;
    padding:0
  }

  .part-tiles strong {
    display:block;
    font-size:17px;
    max-width:15ch;
    padding:0
  }

  .part-tiles small {
    display:block;
    font-size:11px;
    max-width:18ch;
    line-height:1.5
  }

  .part-arrow {
    top:20px;
    right:10px;
    font-size:13px
  }

  .cheat summary {
    padding:17px 18px;
    gap:16px;
    font-size:12px
  }

  .cheat ol {
    font-size:14px;
    padding-left:38px
  }

  .section-space {
    padding-block:56px
  }

  .section-head {
    gap:28px;
    margin-bottom:32px;
    align-items:flex-start
  }

  .section-num {
    font-size:9px
  }

  .section-head>div {
    flex-basis:100%
  }

  .section-head h2 {
    font-size:clamp(36px,6.8vw,48px)
  }

  .section-head p {
    font-size:14px;
    max-width:50ch
  }

  .section-head .section-note {
    font-size:11px
  }

  .section-head .btn {
    margin-top:-8px
  }

  .shop-layout {
    grid-template-columns:1fr;
    gap:40px
  }

  .shop-col:last-child {
    max-width:100%
  }

  .list-toolbar h3 {
    font-size:22px
  }

  .check-list label {
    gap:12px;
    padding:14px 0
  }

  .item {
    font-size:16px
  }

  .amt {
    font-size:13px
  }

  .step {
    padding:24px 12px 24px 48px
  }

  .step:before {
    top:24px;
    font-size:21px
  }

  .step-key:before {
    left:10px
  }

  .step-do {
    font-size:20px
  }

  .step-sub {
    font-size:14px
  }

  .step[data-oven]:after {
    position:static;
    display:inline-block;
    margin-top:12px
  }

  .step[data-oven] .step-do {
    padding-right:0
  }

  .roast-intro {
    grid-template-columns:1fr;
    gap:30px;
    margin-bottom:36px
  }

  .pan-body {
    grid-template-columns:1.3fr .8fr;
    gap:20px
  }

  .pan-body img {
    max-width:none
  }

  .pan-legend {
    grid-template-columns:1fr;
    grid-template-rows:repeat(4,1fr);
    gap:8px;
    padding-block:10px
  }

  .pan-legend li {
    font-size:12px;
    min-height:0
  }

  .pan-legend b {
    font-size:13px
  }

  .hour {
    padding:0
  }

  .hour h3 {
    font-size:38px;
    max-width:none
  }

  .hour h3 br {
    display:none
  }

  .glaze-note {
    margin-top:26px
  }

  .glaze-note small {
    max-width:50ch
  }

  .timeline {
    margin-top:24px
  }

  .fixes {
    gap:0 28px
  }

  .fixes dt {
    font-size:18px
  }

  .fixes dd {
    font-size:14px
  }

  .site-footer {
    flex-wrap:wrap;
    gap:12px
  }

  .art-note {
    order:3;
    width:100%;
    font-size:9px
  }

  .cm-actions {
    flex-wrap:wrap
  }

  .cm-go {
    order:-1;
    flex-basis:100%;
    flex-direction:column-reverse
  }

  .cm-primary,.cm-alt {
    flex:none;
    width:100%;
    min-height:56px;
    font-size:17px
  }

  .cm-back {
    min-height:36px;
    padding:4px 0
  }

  .cm-timer {
    grid-template-columns:1fr;
    padding:18px 20px
  }

  .cm-timer-tools {
    grid-column:1;
    grid-row:auto;
    flex-direction:row;
    margin-top:10px
  }

  .cm-main {
    padding-top:20px
  }

  .cm-main .step-sub {
    font-size:18px
  }

  .cm-main .step-list {
    font-size:19px
  }

}

@media(max-width:450px) {
  .site-header nav {
    gap:14px;
    font-size:11px
  }

  .site-header nav a:last-child {
    display:none
  }

  .brand-wordmark {
    font-size:21px
  }

  .hero {
    padding-top:30px;
    row-gap:24px
  }

  .kicker {
    font-size:8px;
    letter-spacing:.14em
  }

  .title-line {
    gap:18px
  }

  h1 {
    font-size:18vw
  }

  .chinese-mark {
    font-size:18px
  }

  .hero-copy {
    gap:18px;
    grid-template-columns:1fr 1fr
  }

  .hero-deck {
    font-size:29px;
    grid-row:1
  }

  .hero-description {
    font-size:13px;
    line-height:1.6
  }

  .recipe-facts {
    grid-column:1/-1;
    grid-row:2;
    justify-content:flex-start;
    gap:48px;
    margin:0;
    padding:14px 0
  }

  .hero-cta {
    min-width:0;
    justify-self:stretch;
    padding:12px 14px;
    gap:16px;
    font-size:13px
  }

  .heads-up {
    font-size:10px
  }

  .hero-image figcaption {
    letter-spacing:.02em;
    font-size:7px
  }

  .part-tiles a {
    padding:16px 8px
  }

  .part-num {
    font-size:9px
  }

  .part-tiles strong {
    font-size:15px
  }

  .part-tiles small {
    font-size:10px
  }

  .part-arrow {
    right:7px;
    top:15px
  }

  .cheat summary {
    font-size:11px;
    gap:12px;
    padding:16px
  }

  .cheat summary>span:first-child {
    white-space:nowrap
  }

  .section-head h2 {
    font-size:37px
  }

  .item {
    font-size:15px
  }

  .item small {
    font-size:11px
  }

  .amt {
    font-size:12px
  }

  .tag {
    font-size:7px
  }

  .check-list label {
    gap:10px;
    grid-template-columns:18px 1fr auto
  }

  .gear-list label {
    grid-template-columns:18px 1fr
  }

  .step-do {
    font-size:19px
  }

  .pan-figure {
    padding:20px 14px 8px
  }

  .pan-figure h3 {
    font-size:25px
  }

  .pan-body {
    gap:10px;
    grid-template-columns:1.25fr .8fr
  }

  .pan-legend {
    gap:4px
  }

  .pan-legend li {
    font-size:10px;
    grid-template-columns:12px 1fr;
    column-gap:4px
  }

  .pan-legend b {
    font-size:11px
  }

  .hour h3 {
    font-size:33px
  }

  .tl-bar {
    height:80px
  }

  .seg {
    padding:12px 0 0 6px
  }

  .seg b {
    font-size:24px
  }

  .seg span {
    font-size:9px
  }

  .tl-marks {
    font-size:9px
  }

  .tl-marks span:nth-child(2) {
    visibility:hidden
  }

  .fixes {
    grid-template-columns:1fr
  }

  .timer-clock {
    font-size:28px
  }

  .timer-in {
    gap:10px
  }

  .timer-what {
    font-size:11px
  }

  .timer-in .btn {
    font-size:11px;
    white-space:normal;
    padding:8px;
    min-height:42px
  }

  .cm-tool {
    padding:8px 10px;
    font-size:12px
  }

  .cm-main .step-do {
    font-size:29px
  }

  .cm-clock {
    font-size:72px
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }

  *,*:before,*:after {
    transition:none!important;
    animation:none!important
  }

}

@media print {
  body {
    background:white;
    font-size:10.5pt;
    color:black
  }

  .wrap {
    width:100%
  }

  .site-header,.resume,.hero-image,.part-tiles,.start-cook,.timer-bar,.cm,.link-btn,#grocery-progress,.skip-link,.hero-cta,.chinese-mark,.art-note {
    display:none!important
  }

  .hero {
    display:block;
    padding:0 0 16px
  }

  .hero-copy {
    display:block
  }

  h1 {
    font-size:44pt;
    white-space:normal
  }

  .hero-deck {
    display:none
  }

  .hero-description {
    font-size:12pt;
    max-width:none
  }

  .recipe-facts {
    margin:10px 0;
    justify-content:flex-start
  }

  .heads-up {
    margin-top:10px
  }

  .parts {
    padding-bottom:12px
  }

  .cheat {
    background:none;
    color:black;
    border:1px solid #999
  }

  .cheat b,.cheat summary>span:first-child {
    color:black
  }

  .band,.band-help {
    background:none!important;
    color:black;
    border:0
  }

  .section-space {
    padding-block:20px
  }

  .section-head {
    gap:20px;
    margin-bottom:16px
  }

  .section-head h2 {
    font-size:24pt
  }

  .section-head .section-note {
    display:none
  }

  .shop-layout {
    grid-template-columns:1.4fr 1fr;
    gap:30px
  }

  .check-list label {
    padding:6px 0
  }

  .item,.amt {
    font-size:10pt
  }

  .step {
    padding:14px 10px 14px 36px
  }

  .step:before {
    top:12px;
    font-size:15pt
  }

  .step-do {
    font-size:12pt
  }

  .step-sub,.step-list {
    font-size:10pt
  }

  .step-figure {
    max-width:300px
  }

  .step,.fixes>div,.pan-figure,.hour {
    break-inside:avoid
  }

  .step-help summary {
    display:none
  }

  .step-help p {
    margin-top:4px
  }

  .roast-intro {
    grid-template-columns:1fr 1fr;
    gap:24px
  }

  .pan-body {
    grid-template-columns:1.2fr 1fr
  }

  .pan-figure {
    padding:12px
  }

  .pan-figure h3,.hour h3 {
    font-size:17pt
  }

  .pan-legend {
    grid-template-columns:1fr;
    grid-template-rows:repeat(4,1fr)
  }

  .band-help .section-head p,.fixes dd,.credit,.credit a,.fixes dt {
    color:black
  }

  .fixes {
    grid-template-columns:1fr 1fr
  }

  .fixes>div {
    padding:12px 0
  }

  .fixes dt {
    font-size:12pt
  }

  .fixes dd {
    font-size:10pt
  }

  .glaze-note {
    margin-top:16px
  }

  .site-footer {
    padding-block:12px
  }

}

@media(max-width:450px) {
  .hero-deck {
    font-size:25px;
    line-height:1.14;
    letter-spacing:-.05em
  }

}
