:root {
  --bg: #120d09;
  --card-hi: #241a13;
  --card-lo: #18110c;
  --ink: #f6ead9;
  --soft: #a8957e;
  --accent: #e89a4c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(65% 50% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 14px;
}

.cof {
  position: relative;
  width: min(330px, 100%);
  padding: 13px 13px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card-hi), var(--card-lo));
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 190, 0.14),
    inset 0 0 0 1px rgba(255, 228, 190, 0.07),
    0 30px 60px -28px rgba(0, 0, 0, 0.9),
    0 0 100px -40px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cof__head { display: flex; align-items: center; gap: 10px; }
.bean { flex: none; width: 36px; height: 36px; overflow: visible; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.bean ellipse { fill: #8a5a34; }
.bean__cut { fill: none; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1.6; stroke-linecap: round; }
.bean__shine { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.4; stroke-linecap: round; }
.cof__title { flex: 1; min-width: 0; }
.cof__title span { display: block; font-size: 10.5px; line-height: 14px; font-weight: 640; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.cof__title h1 { font-size: 17px; line-height: 21px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cof__temp { flex: none; align-self: flex-end; font-size: 11.5px; font-weight: 600; color: var(--soft); }
.roll { display: block; height: 17px; line-height: 17px; overflow: hidden; }
.roll span { display: block; white-space: nowrap; }

.roasts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 11px; padding: 3px; border-radius: 12px; background: rgba(255, 228, 190, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 228, 190, 0.05); }
.roasts__thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 9px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #ffffff), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px -4px color-mix(in srgb, var(--accent) 80%, transparent); }
.roast { position: relative; height: min(30px, 7.2vh); border: 0; border-radius: 9px; background: none; color: var(--soft); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s ease; }
.roast:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.roast[aria-checked="true"] { color: #2a1707; }

.radar { margin: 6px auto 0; width: min(100%, 52vh); }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.radar__grid polygon { fill: none; stroke: rgba(255, 228, 190, 0.1); stroke-width: 1; }
.radar__grid line { stroke: rgba(255, 228, 190, 0.08); stroke-width: 1; }
.radar__shape { stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
.radar__labels text { font-size: 9.5px; font-weight: 600; fill: var(--soft); }
.radar__labels tspan { fill: var(--ink); font-weight: 700; }

.notes { margin-top: 4px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 228, 190, 0.06); font-size: 12.5px; font-weight: 580; text-align: center; }
.notes .roll span { overflow: hidden; text-overflow: ellipsis; }

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

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .cof { zoom: 1.2; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .cof { zoom: 1.6; }
}
