html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Yu Gothic", Meiryo, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus, #ef573b);
  outline-offset: 4px;
}
button:hover {
  filter: brightness(1.08);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button {
  border: 1px solid currentColor;
  background: transparent;
  padding: 9px 18px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4vw;
  border-bottom: 1px solid currentColor;
}
header .brand {
  font:
    900 25px Arial,
    sans-serif;
  letter-spacing: -1px;
}
header nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  background: white;
  color: #111;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.micro {
  font-size: 11px;
  letter-spacing: 1px;
}
.button-fill {
  background: var(--ink);
  color: var(--bg);
}
.status {
  font-size: 12px;
  line-height: 1.75;
}
footer {
  padding: 30px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid currentColor;
}
footer p {
  font-size: 12px;
  max-width: 650px;
  margin: 0;
}
footer strong {
  font:
    900 20px Arial,
    sans-serif;
}
dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid currentColor;
  padding: 25px;
}
dialog::backdrop {
  background: #141821c9;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head button {
  font-size: 28px;
  border: 0;
  width: 44px;
  padding: 0;
}
dialog h2 {
  font:
    32px Georgia,
    "Yu Mincho",
    serif;
}
dialog p {
  font-size: 14px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
input[type="range"] {
  accent-color: var(--ink);
  min-height: 44px;
  max-width: 100%;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 700px) {
  header {
    padding: 17px 20px;
    gap: 10px;
  }
  header .brand {
    font-size: 20px;
  }
  header nav {
    gap: 14px;
    font-size: 11px;
  }
  footer {
    padding: 25px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  footer p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
:root {
  --bg: #49281d;
  --ink: #f1d3a3;
  --focus: #f5a25c;
}
header {
  border-color: #95704d;
}
.roaster-stage {
  height: 790px;
  position: relative;
  overflow: hidden;
  padding: 24px 4vw;
  background: radial-gradient(ellipse at 52% 52%, #74452b, transparent 65%);
}
.stage-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.roaster-stage h1 {
  font:
    900 clamp(100px, 18vw, 265px)/0.9 "Arial Black",
    Arial,
    sans-serif;
  letter-spacing: -0.08em;
  text-align: center;
  margin: 40px 0 0;
  color: #f5a25c;
}
.roast-dial {
  position: absolute;
  width: 450px;
  height: 450px;
  top: 265px;
  left: calc(50% - 225px);
  border-radius: 50%;
  background:
    radial-gradient(circle, #49281d 0 52%, transparent 52.5%),
    repeating-conic-gradient(
      from -120deg,
      #c59560 0deg 0.5deg,
      transparent 1deg 5deg
    );
  border: 1px solid #b78350;
  z-index: 2;
  box-shadow:
    0 0 0 12px #49281d,
    0 0 0 13px #9e7348;
}
.dial-ring {
  position: absolute;
  inset: 30px;
  border: 1px solid #ac7b4d;
  border-radius: 50%;
  background: radial-gradient(circle, #5c3422 0 60%, #3f241b 72%);
}
.dial-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 43%;
  height: 3px;
  background: #f5a25c;
  transform-origin: left center;
  transform: rotate(-90deg);
  z-index: 3;
}
.dial-pointer:after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f5a25c;
}
.dial-label {
  position: absolute;
  font-size: 11px;
  z-index: 3;
  background: #49281d;
  padding: 2px 8px;
}
.dial-label.top {
  left: calc(50% - 48px);
  top: -9px;
}
.dial-label.right {
  right: -28px;
  top: 50%;
  transform: rotate(90deg);
}
.dial-label.bottom {
  left: calc(50% - 48px);
  bottom: -12px;
}
.dial-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}
.dial-value > span {
  font-size: 11px;
}
.dial-value strong {
  font:
    54px "Yu Mincho",
    serif;
  margin: 15px 0 10px;
}
.dial-value small {
  font: italic 18px Georgia;
}
.beans {
  position: absolute;
  width: 490px;
  right: -20px;
  bottom: -35px;
  transform: rotate(-18deg);
  z-index: 3;
  filter: drop-shadow(15px 25px 15px #25150d80);
}
.temperature {
  position: absolute;
  left: 5vw;
  bottom: 115px;
  display: flex;
  flex-direction: column;
  z-index: 4;
}
.temperature > span {
  font-size: 11px;
}
.temperature strong {
  font:
    125px/0.95 Impact,
    "Arial Narrow",
    sans-serif;
  letter-spacing: -5px;
  margin: 15px 0;
}
.temperature small {
  font: 30px Arial;
  letter-spacing: 0;
}
.roast-phrase {
  position: absolute;
  right: 7vw;
  top: 320px;
  font:
    25px/1.7 "Yu Mincho",
    serif;
  letter-spacing: 2px;
  z-index: 4;
}
.stage-bottom {
  position: absolute;
  bottom: 25px;
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  z-index: 4;
}
.roast-controls {
  background: #f5a25c;
  color: #49281d;
  padding: 35px 5vw;
  display: grid;
  grid-template-columns: 1fr 2fr 1.5fr 180px;
  gap: 30px;
  align-items: center;
}
.roast-controls h2 {
  font:
    28px "Yu Mincho",
    serif;
  margin: 8px 0 0;
}
.slider-wrap label {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.slider-wrap input {
  width: 100%;
}
.roast-presets {
  gap: 5px;
}
.roast-presets button {
  font-size: 12px;
  padding: 10px 12px;
}
.roast-presets button[aria-pressed="true"] {
  background: #49281d;
  color: #f5a25c;
}
.roast-controls .button-fill {
  color: #f5a25c;
  background: #49281d;
  border-color: #49281d;
}
.profile {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 55px;
  padding: 60px 5vw;
}
.curve-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid #95704d;
  padding-bottom: 20px;
}
.curve-head strong {
  font: 18px Georgia;
}
.curve canvas {
  display: block;
  width: 100%;
  height: 280px;
}
.curve-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  border-top: 1px solid #95704d;
  padding-top: 15px;
}
.taste h2 {
  font:
    30px/1.4 "Yu Mincho",
    serif;
  margin: 20px 0 30px;
}
.taste-row {
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  gap: 15px;
  align-items: center;
  margin: 20px 0;
  font-size: 12px;
}
.taste-row > div {
  height: 5px;
  background: #90603c;
}
.taste-row i {
  display: block;
  width: 100%;
  height: 100%;
  background: #f5a25c;
  transform-origin: left center;
  transform: scaleX(0.5);
}
.taste-row output {
  text-align: right;
}
.taste > .status {
  font-size: 12px;
  margin-top: 25px;
}
.roastery-note {
  border-top: 1px solid #95704d;
  padding: 60px 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 60px;
  align-items: center;
}
.roastery-note h2 {
  font:
    40px/1.5 "Yu Mincho",
    serif;
}
.roastery-note p {
  font:
    15px/2 "Yu Mincho",
    serif;
  max-width: 400px;
}
.roastery-note > span {
  font: italic 25px/1.4 Georgia;
}
@media (max-width: 1050px) {
  .roast-dial {
    width: 380px;
    height: 380px;
    left: calc(50% - 190px);
  }
  .temperature strong {
    font-size: 90px;
  }
  .beans {
    width: 380px;
    right: -45px;
  }
  .roast-phrase {
    font-size: 20px;
    right: 4vw;
  }
  .roast-controls {
    grid-template-columns: 1fr 2fr;
    gap: 25px;
  }
  .profile {
    gap: 30px;
  }
  .roastery-note {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .roastery-note > span {
    grid-column: 2;
  }
  .roaster-stage {
    height: 750px;
  }
}
@media (max-width: 600px) {
  header .brand {
    font-size: 18px;
  }
  header nav {
    font-size: 11px;
    gap: 12px;
  }
  .roaster-stage {
    height: 820px;
    padding: 20px;
  }
  .stage-top {
    gap: 25px;
  }
  .stage-top > span:last-child {
    text-align: right;
    max-width: 120px;
  }
  .roaster-stage h1 {
    font-size: 21vw;
    letter-spacing: -0.075em;
    margin: 40px 0 0;
  }
  .roast-dial {
    width: 285px;
    height: 285px;
    left: calc(50% - 142px);
    top: 260px;
  }
  .dial-value strong {
    font-size: 40px;
  }
  .dial-value small {
    font-size: 15px;
  }
  .dial-label {
    font-size: 11px;
  }
  .dial-label.right {
    right: -35px;
  }
  .roast-phrase {
    right: 22px;
    top: 570px;
    font-size: 17px;
    letter-spacing: 0;
  }
  .temperature {
    left: 25px;
    bottom: 145px;
  }
  .temperature strong {
    font-size: 80px;
    letter-spacing: -3px;
  }
  .temperature small {
    font-size: 24px;
  }
  .beans {
    width: 280px;
    right: -32px;
    bottom: -15px;
  }
  .stage-bottom {
    left: 25px;
    right: 25px;
    bottom: 20px;
    gap: 35px;
  }
  .stage-bottom > span {
    max-width: 150px;
    font-size: 11px;
  }
  .stage-bottom > span:last-child {
    text-align: right;
  }
  .roast-controls {
    grid-template-columns: 1fr;
    padding: 35px 25px;
    gap: 22px;
  }
  .roast-presets {
    justify-content: space-between;
  }
  .roast-presets button {
    flex: 1;
  }
  .profile {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    gap: 40px;
  }
  .curve canvas {
    height: 220px;
  }
  .taste h2 {
    font-size: 29px;
  }
  .roastery-note {
    grid-template-columns: 1fr;
    padding: 45px 25px;
    gap: 15px;
  }
  .roastery-note h2 {
    font-size: 35px;
  }
  .roastery-note > span {
    grid-column: 1;
    font-size: 25px;
  }
}
