:root { --p: #e4ece6; --i: #12262c; --m: #3b565c; --o: #ff6414; --pad: 44px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--p); color: var(--i); font: 500 17px/1.34 "Bodoni Moda", "Bodoni 72", Didot, serif; font-optical-sizing: auto; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }
button, input { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; } button { cursor: pointer; } a { color: inherit; }
:focus-visible { outline: 2px solid var(--i); outline-offset: 3px; }
canvas { display: block; width: 100%; } [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, .fname, .cn { font-style: italic; font-weight: 400; letter-spacing: -.02em; }

/* ---- the chart ---- */
.chart { position: relative; height: 100vh; height: 100svh; min-height: 700px; overflow: hidden; }
.chart > canvas { position: absolute; inset: 0; height: 100%; } #top { cursor: none; } #top:focus-visible { outline-offset: -32px; outline-style: dashed; }
/* graduated neat line */
.nl { position: absolute; z-index: 3; pointer-events: none; background-color: var(--p); }
.nl.t, .nl.b { left: 14px; right: 14px; height: 10px; border: 1px solid var(--i); background-image: repeating-linear-gradient(90deg, var(--i) 0 36px, transparent 36px 72px); } .nl.t { top: 14px; } .nl.b { bottom: 14px; }
.nl.l, .nl.r { top: 14px; bottom: 14px; width: 10px; border: 1px solid var(--i); background-image: repeating-linear-gradient(0deg, var(--i) 0 36px, transparent 36px 72px); } .nl.l { left: 14px; } .nl.r { right: 14px; }
.cart { position: absolute; left: 46px; top: 44px; width: min(520px, 46vw); z-index: 4; pointer-events: none; } .cart form, .cart .picks, .cart .note button { pointer-events: auto; }
.brand { font-size: 22px; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(64px, 8.1vw, 124px); line-height: .84; margin: 10px 0 22px -.03em; }
#ask { display: flex; border-bottom: 2px solid var(--i); max-width: 430px; background: var(--p); }
#ask input { flex: 1; min-width: 0; height: 44px; font-size: 18px; padding: 0 2px; } #ask input::placeholder { color: var(--m); opacity: 1; font-style: italic; } #ask input:focus { outline: none; } #ask:focus-within { box-shadow: 0 2px 0 var(--o); }
#ask button { font-style: italic; font-weight: 600; padding: 0 6px 0 16px; } #ask button:hover { text-decoration: underline; text-underline-offset: 4px; }
.note { margin-top: 10px; font-size: 17px; background: var(--p); display: inline-block; padding: 2px 4px; max-width: 430px; } .note:empty { display: none; } .note button { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; padding: 4px; }
.picks { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 2px 14px; } .picks button { font-style: italic; min-height: 36px; padding: 2px 0; background: var(--p); } .picks button:hover { text-decoration: underline; text-underline-offset: 4px; }
.card { position: absolute; right: 46px; bottom: 44px; width: 336px; min-height: 318px; background: var(--p); border: 1px solid var(--i); outline: 3px solid var(--i); outline-offset: 3px; padding: 16px 20px 14px; z-index: 4; }
.cn { font-size: 34px; line-height: 1; } .cp { font-size: 16px; color: var(--m); margin-top: 3px; min-height: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl { font-size: 50px; line-height: 1; letter-spacing: -.03em; margin: 12px 0 10px; font-variant-numeric: lining-nums; white-space: nowrap; }
.card dl { border-top: 1px solid var(--i); } .card dl div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(18,38,44,.3); padding: 4px 0; font-size: 16px; } .card dt { font-style: italic; color: var(--m); } .card dd { font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.cs { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; margin-top: 10px; min-height: 22px; }
.print { position: absolute; left: 46px; bottom: 40px; z-index: 4; border: 1px solid var(--i); background: var(--p); padding: 10px 18px; font-style: italic; min-height: 44px; } .print:hover { background: var(--i); color: var(--p); }

/* ---- drop, core ---- */
.drop, .core, .how { border-top: 1px solid var(--i); }
.dh { display: flex; align-items: baseline; gap: 12px 36px; flex-wrap: wrap; padding: 84px var(--pad) 18px; }
h2 { font-size: clamp(50px, 7.4vw, 118px); line-height: .9; }
.lead { font-size: 22px; max-width: 46ch; }
.bag { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 20px; padding: 12px var(--pad) 10px; } .bag label { font-style: italic; font-size: 22px; } .bag output { font-size: 54px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums; min-width: 4.6em; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 44px; width: 100%; background: linear-gradient(var(--i), var(--i)) 0 50% / 100% 2px no-repeat; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--o); border: 2px solid var(--i); } input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--o); border: 2px solid var(--i); }
.drop canvas { height: 520px; } .core canvas { height: 300px; margin-bottom: 70px; }
.fine { font-size: 15px; color: var(--m); max-width: 88ch; } .drop .fine { padding: 14px var(--pad) 70px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); } .how figure { border-right: 1px solid var(--i); min-width: 0; } .how figure:last-child { border-right: 0; } .how canvas { height: clamp(300px, 32vw, 470px); } .how figcaption { border-top: 1px solid var(--i); padding: 18px 24px 30px; font-size: 18px; } .how figcaption b { display: block; font-style: italic; font-weight: 400; font-size: clamp(26px, 2.7vw, 42px); line-height: 1.05; letter-spacing: -.02em; }
.foot { border-top: 1px solid var(--i); padding: 56px var(--pad) 56px; display: grid; gap: 14px; background: var(--i); color: var(--p); }
.fname { font-size: clamp(96px, 22vw, 360px); line-height: .8; letter-spacing: -.05em; margin-left: -.03em; overflow-wrap: anywhere; }
.fk { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; } .fk a, .fk button { border: 1px solid var(--p); padding: 11px 22px; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; font-style: italic; font-size: 19px; } .fk a:hover, .fk button:hover { background: var(--o); color: var(--i); border-color: var(--o); }
.foot .fine { color: #b9cbc6; } .foot :focus-visible { outline-color: var(--p); }

@media (max-width: 860px) {
  :root { --pad: 18px; }
  .chart { min-height: 640px; } .nl.t, .nl.b { left: 6px; right: 6px; height: 7px; background-image: repeating-linear-gradient(90deg, var(--i) 0 20px, transparent 20px 40px); } .nl.l, .nl.r { top: 6px; bottom: 6px; width: 7px; background-image: repeating-linear-gradient(0deg, var(--i) 0 20px, transparent 20px 40px); } .nl.t { top: 6px; } .nl.b { bottom: 6px; } .nl.l { left: 6px; } .nl.r { right: 6px; }
  .cart { left: 26px; right: 26px; top: 24px; width: auto; } .brand { font-size: 18px; } h1 { font-size: clamp(38px, 11.7vw, 56px); margin: 2px 0 6px -.03em; white-space: nowrap; } h1 br { display: none; } #ask { max-width: none; } #ask input { height: 42px; font-size: 17px; } .picks { margin-top: 2px; gap: 0 16px; flex-wrap: nowrap; overflow: hidden; } .picks button { font-size: 16px; }
  #top { cursor: default; }
  .card { left: 26px; right: 26px; bottom: 26px; width: auto; min-height: 0; padding: 10px 14px 8px; outline-offset: 2px; outline-width: 2px; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; align-items: baseline; } .cn { font-size: 22px; white-space: nowrap; } .cp { grid-column: 1; font-size: 14px; } .cl { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 32px; align-self: center; } .card dl { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-top: 7px; } .card dl div { font-size: 14px; padding: 3px 0; gap: 4px; } .cs { grid-column: 1 / -1; font-size: 14px; margin-top: 5px; min-height: 18px; }
  .print { display: none; }
  .dh { padding: 56px var(--pad) 12px; } h2 { font-size: 54px; } .lead { font-size: 19px; }
  .bag { grid-template-columns: auto minmax(0,1fr); gap: 4px 14px; } .bag output { font-size: 44px; min-width: 0; } .bag input { grid-column: 1 / -1; } .drop canvas { height: 470px; } .core canvas { height: 340px; margin-bottom: 48px; } .drop .fine { padding-bottom: 48px; }
  .how { grid-template-columns: minmax(0,1fr); } .how figure { border-right: 0; } .how canvas { height: 300px; } .how figure + figure { border-top: 1px solid var(--i); } .how figcaption { padding: 14px 18px 22px; }
  .foot { padding: 44px var(--pad) 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
