/* Thermjul site: wine glass, red mercury, sun-yellow readings. Palette: #4A102A #85193C #C5172E #FCF259 */
:root{
  --wine:#4A102A; --berry:#85193C; --ember:#C5172E; --sun:#FCF259;
  --cellar:#290917; --sunsoft:rgba(252,242,89,.82);
  --slab:Rockwell,"Rockwell Nova","Roboto Slab","Courier New",Georgia,serif;
  --pill:30px;
}
*{box-sizing:border-box}
html{background:var(--wine);color:var(--sun);font:17px/1.6 var(--slab)}
body{margin:0;min-height:100vh}
a{color:var(--sun);text-decoration-thickness:2px;text-underline-offset:3px}
a:focus-visible,summary:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:8px}
.thj-skip{position:absolute;left:-999px}
.thj-skip:focus{left:12px;top:12px;background:var(--sun);color:var(--wine);padding:6px 14px;border-radius:var(--pill)}

/* Layout: a glass tube on the left of wide screens, a mercury strip on top of narrow ones */
.thj-frame{display:grid;grid-template-columns:1fr;max-width:1060px;margin:0 auto;padding:0 16px 48px}
.thj-tube{position:sticky;top:0;z-index:2;background:var(--wine);padding:14px 0 10px}
.thj-tube nav ol{list-style:none;margin:0;padding:0;display:flex;gap:6px;overflow-x:auto}
.thj-tube nav a{display:block;white-space:nowrap;padding:6px 14px;border-radius:var(--pill);background:var(--berry);text-decoration:none;font-size:.85rem}
.thj-tube nav a[aria-current]{background:var(--sun);color:var(--wine);font-weight:700}
.thj-strip{height:10px;margin-top:10px;border-radius:var(--pill);background:var(--cellar);overflow:hidden}
.thj-strip span{display:block;height:100%;width:var(--level,60%);background:linear-gradient(90deg,var(--ember),#e8432f)}
.thj-glass{display:none}

@media (min-width:820px){
  .thj-frame{grid-template-columns:180px 1fr;gap:40px}
  .thj-tube{height:100vh;padding:32px 0;display:flex;flex-direction:column;align-items:center}
  .thj-strip{display:none}
  .thj-glass{display:block;width:70px;flex:1;margin:18px 0}
  .thj-tube nav ol{flex-direction:column;gap:8px}
  .thj-tube nav a{text-align:center}
}

header.thj-mast{padding:28px 0 8px}
.thj-kicker{margin:0;color:var(--sunsoft);font-size:.85rem;letter-spacing:.14em;text-transform:uppercase}
h1{font-size:clamp(2.2rem,8vw,3.6rem);line-height:1.05;margin:.2em 0 .3em;text-shadow:0 0 18px rgba(252,242,89,.35)}
h2{font-size:1.45rem;margin:0 0 .5em}
h3{font-size:1.08rem;margin:0 0 .3em}
p{margin:0 0 .9em}

.thj-pill{background:var(--berry);border-radius:var(--pill);padding:22px 24px;margin:18px 0;box-shadow:inset 0 -6px 0 rgba(0,0,0,.18)}
.thj-pill.is-cellar{background:var(--cellar)}
.thj-pill.is-ember{background:var(--ember)}
.thj-reading{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.thj-reading strong{font-size:2.6rem;line-height:1}
.thj-reading em{font-style:normal;color:var(--sunsoft)}

.thj-scale{list-style:none;margin:0;padding:0;border-left:4px solid var(--ember)}
.thj-scale li{position:relative;padding:4px 0 14px 22px}
.thj-scale li::before{content:"";position:absolute;left:-4px;top:16px;width:14px;height:3px;background:var(--sun)}
.thj-scale b{display:block}

details{background:var(--cellar);border-radius:var(--pill);margin:10px 0;padding:0 22px}
summary{cursor:pointer;padding:16px 0;font-weight:700;list-style:none}
summary::before{content:"° ";color:var(--ember)}
details[open] summary::before{color:var(--sun)}
details p{padding-bottom:12px}

.thj-mail{display:inline-block;background:var(--sun);color:var(--wine);font-weight:700;padding:12px 24px;border-radius:var(--pill);text-decoration:none;word-break:break-all}
.thj-mail:hover{background:#fff7a6}

.thj-ledger{width:100%;border-collapse:separate;border-spacing:0 8px}
.thj-ledger th,.thj-ledger td{text-align:left;padding:10px 14px;vertical-align:top}
.thj-ledger th{color:var(--sunsoft);font-weight:400;font-size:.85rem}
.thj-ledger td{background:var(--cellar)}
.thj-ledger td:first-child{border-radius:var(--pill) 0 0 var(--pill)}
.thj-ledger td:last-child{border-radius:0 var(--pill) var(--pill) 0}

footer{max-width:1060px;margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;padding-bottom:24px;border-top:2px dashed var(--berry);margin-top:36px;padding-top:16px;color:var(--sunsoft);font-size:.85rem}
@media (prefers-reduced-motion:no-preference){.thj-strip span{animation:thj-rise 1.4s cubic-bezier(.3,1.6,.5,1) both}}
@keyframes thj-rise{from{width:4%}}
