@font-face {
  font-family: "Latin Modern Roman"; src: url("type/lmroman17-regular.otf") format("opentype");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Latin Modern Roman"; src: url("type/lmroman12-italic.otf") format("opentype");
  font-style: italic; font-weight: 400; font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f2ea; --porcelain: #fffdf7; --ink: #1f3027; --muted: #556257;
  --rule: #d7d7c8; --jade: #316c55; --brass: #8b5929;
  --mint: #b5dbac; --sand: #eab982; --slate: #9dbde0;
  --serif: "Latin Modern Roman", "Baskervville", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1,h2,p { margin: 0; }
button,input { font: inherit; }
button,input,label { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1096px, 90%); margin-inline: auto; }
.masthead { border-bottom: 1px solid #d7d8ca; background: #f9f7f0; }
.bar,.brand,.byline,.control-heading,.note-heading,footer { display: flex; align-items: center; }
.bar { justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { gap: .65rem; white-space: nowrap; }
.brand span { font: 400 1.72rem/1 var(--serif); letter-spacing: -.048em; }
.byline { gap: .68rem; line-height: 1.35; }
.byline strong,.byline div span { display: block; }
.byline strong { font-size: .91rem; font-weight: 640; }
.byline div span { color: var(--muted); font-size: .76rem; }
.monogram { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #c3cbb9; border-radius: 50%; background: #e8ecdf; color: #425840; font: 400 .85rem/1 var(--serif); letter-spacing: -.06em; }
.intro { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); align-items: center; gap: 2%; min-height: 255px; }
.intro-copy { padding: 1.85rem 0; }
.folio-label,.live-label { display: flex; align-items: center; gap: .62rem; font: 650 .68rem/1.3 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.folio-label { color: #52634d; margin-bottom: .8rem; }
.folio-label::before { content: ""; width: 25px; height: 1px; background: #9b784b; }
h1 { font: 400 clamp(3.15rem,5.9vw,5.15rem)/1.02 var(--serif); letter-spacing: -.066em; }
h1 em { display: inline-block; color: #35694f; font-weight: inherit; margin-left: .025em; }
.instruction { margin-top: .75rem; max-width: 40ch; font-size: 1.01rem; color: var(--muted); }
.still-life { height: clamp(222px,22vw,268px); display: grid; align-items: center; justify-items: center; }
.still-life img { object-fit: contain; display: block; max-width: 100%; width: auto; height: 100%; max-height: inherit; mask-image: radial-gradient(ellipse 78% 80% at 51% 52%,black 49%,#000e 69%,transparent 99%); }
.metric-switch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; padding: 0; border: 0; margin: .6rem 0 1rem; gap: .7rem; }
.metric-switch label { position: relative; cursor: pointer; min-width: 0; }
.metric-switch input,.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tile { min-height: 72px; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: #fcfaf3; border: 1px solid #cecfbf; border-radius: 10px; transition: background-color .15s, border-color .15s; }
.tile-name { display: grid; line-height: 1.35; min-width: 0; }
.tile-name strong { font-size: 1rem; font-weight: 700; letter-spacing: .035em; }
.tile-name small { font-size: .8rem; color: #566356; }
.tile-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; background: #edf0e4; color: #4d684c; border: 1px solid #dce1d1; border-radius: 9px; }
.metric-switch label:nth-of-type(2) .tile-icon { background: #f4ebda; color: #895f32; border-color: #e9ddc8; }
.metric-switch label:nth-of-type(3) .tile-icon { background: #e7eeeb; color: #416c68; border-color: #d8e1df; }
.tile-icon svg,.book-icon svg,footer svg,#reset svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.tile-icon svg { width: 21px; height: 21px; }
.selection { margin-left: auto; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #bcc4b4; flex-shrink: 0; }
.metric-switch input:checked + .tile { border-color: #7c9d80; box-shadow: inset 0 0 0 .6px #7c9d80; background: #e6eddd; }
.metric-switch input:checked + .tile .tile-icon { background: #28583f; color: #e2eedb; border-color: #28583f; }
.metric-switch input:checked + .tile .selection { border-color: #53795a; background: radial-gradient(circle,#3f7450 0 38%,transparent 46%); }
.metric-switch label:hover input:not(:checked) + .tile { border-color: #9aa78d; background: #f5f4e9; }
.metric-switch input:focus-visible + .tile,button:focus-visible,input[type="range"]:focus-visible { outline: 3px solid #966b3d; outline-offset: 3px; }
.simulator { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); overflow: hidden; border-radius: 15px; border: 1px solid #c8cdbe; background: var(--porcelain); box-shadow: 0 10px 26px -19px #30402d5c; }
.controls { min-width: 0; padding: clamp(1.4rem,3.3vw,2.45rem); }
.control-heading { justify-content: space-between; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid #dedfd0; }
.control-heading h2 { font: 400 clamp(1.63rem,2.35vw,2.1rem)/1.15 var(--serif); letter-spacing: -.045em; }
#reset { display: inline-flex; align-items: center; gap: .38rem; min-height: 34px; cursor: pointer; border: 1px solid #d6d9c9; border-radius: 6px; padding: .35rem .64rem; background: #fafaf1; color: #485e48; font-size: .78rem; font-weight: 620; }
#reset svg { width: 14px; height: 14px; transition: transform .2s; }
#reset:hover { border-color: #94a68b; background: #eff3e6; }
#reset:active svg { transform: rotate(-55deg); }
#sliders { margin-top: 1.35rem; }
.slider { --tone: var(--jade); --track: #acbf99; --tag: #eaf0df; --value: #29583c; }
.slider + .slider { margin-top: 1.4rem; --tone: var(--brass); --track: #d4ad78; --tag: #f5ecdb; --value: #754d23; }
.slider-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.slider label { font-size: .98rem; font-weight: 650; }
.slider output { display: inline-block; min-width: 3.1rem; text-align: center; padding: .2rem .58rem; border: 1px solid color-mix(in srgb,var(--tone) 15%, transparent); border-radius: 6px; background: var(--tag); color: var(--value); font-size: .96rem; font-weight: 650; line-height: 1.35; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: .84rem; margin: .16rem 0 .35rem; }
input[type="range"] { display: block; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--tone); }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--tone) 0, var(--track) var(--fill), #e1e4d6 var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: #e1e4d6; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg,var(--tone),var(--track)); }
input[type="range"]::-webkit-slider-thumb { box-sizing: border-box; appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 1.5px solid var(--tone); border-radius: 50%; background: radial-gradient(circle,var(--tone) 0 3px,#fdfcf5 3.6px 7.6px,#e5e7da 8.3px, #f9faf3 9.6px); box-shadow: 0 2px 4px #25312629; }
input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 24px; border: 1.5px solid var(--tone); border-radius: 50%; background: radial-gradient(circle,var(--tone) 0 3px,#fdfcf5 3.6px 7.6px,#e5e7da 8.3px,#f9faf3 9.6px); box-shadow: 0 2px 4px #25312629; }
.ends { display: flex; justify-content: space-between; color: #586454; font-size: .74rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.reading { color: #f9faef; position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; row-gap: .85rem; text-align: center; padding: 1.3rem 1.3rem 1.45rem; background: radial-gradient(ellipse at 42% 10%,#2f5141,transparent 75%),linear-gradient(120deg,#173a32,#122e29); }
.reading::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .45; background-image: linear-gradient(90deg,#bfd4b51b 1px,transparent 1px),linear-gradient(#bfd4b51a 1px,transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(130deg,#000b,transparent 75%); }
.result-title { width: 100%; }
.live-label { justify-content: center; color: #c9d9c1; font-size: .62rem; }
.live-label i { background: #b9dba3; box-shadow: 0 0 0 3px #acc99814; width: 5px; height: 5px; border-radius: 50%; }
.result-title h2 { font: 400 clamp(1.39rem,1.9vw,1.8rem)/1.1 var(--serif); letter-spacing: -.025em; margin-top: .4rem; }
.dial { position: relative; display: grid; place-items: center; width: 171px; aspect-ratio: 1; isolation: isolate; }
.dial::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -.3deg,#b9c5a5aa 0 .7deg,transparent .7deg 6deg); mask-image: radial-gradient(closest-side,transparent 94%,#000 94.6%); }
.dial::after { content: ""; position: absolute; inset: 10px; z-index: -1; border: 1px solid #9dae8f5c; border-radius: 50%; }
.ring { --donut: conic-gradient(from -90deg,var(--mint) 0% 82%,var(--sand) 82% 100%); display: grid; width: calc(100% - 27px); aspect-ratio: 1; border-radius: 50%; background: var(--donut); padding: 8px; box-shadow: 0 2px 7px #061b173f; }
.ring-fg { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #16352a; border-radius: 50%; background: radial-gradient(ellipse at 30% 20%,#34523f,#1a382f 82%); box-shadow: inset 0 0 0 3px #234333,inset 0 0 0 4px #a8b28c3c; }
.ring-fg span { color: #d5e0c6; font-size: .62rem; letter-spacing: .16em; font-weight: 650; }
.ring-fg strong { color: #ffffee; font: 400 2.72rem/1.08 var(--serif); letter-spacing: -.065em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.ring[data-duration="true"] .ring-fg strong { font-size: 1.8rem; letter-spacing: -.06em; }
.score-copy { width: 100%; max-width: 39ch; }
#fraction { font-size: .87rem; color: #e1ebdc; }
#formula { width: fit-content; max-width: 100%; margin: .47rem auto 0; border: 1px solid #a8c29e4a; border-radius: 5px; padding: .22rem .57rem; color: #d8e5ce; background: #18372d88; font: .76rem/1.35 "Courier New", monospace; }
.time-key:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .75rem; margin-top: .45rem; color: #e4eddb; font-size: .73rem; }
.time-key span { display: inline-flex; align-items: center; gap: .3rem; }
.time-key i { width: 7px; height: 7px; border-radius: 50%; }
.perspective { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: clamp(1.2rem,3vw,2.8rem); padding: 1.05rem 1.3rem; margin-top: 1.15rem; border: 1px solid #d9d7c6; border-radius: 10px; background: #eeeddf; }
.note-heading { gap: .6rem; }
.book-icon { display: grid; place-items: center; color: #627254; }
.book-icon svg { width: 21px; height: 21px; }
.note-heading h2 { font: italic 400 1.35rem/1.2 var(--serif); letter-spacing: -.035em; white-space: nowrap; }
.perspective p { font-size: .9rem; line-height: 1.55; color: #445448; }
footer { gap: .48rem; padding: 1.15rem 0 1.65rem; font-size: .78rem; color: var(--muted); }
footer svg { flex: none; width: 15px; height: 15px; }
footer strong { color: #3f523e; }
@media(min-width:1250px) { .intro { min-height: 267px; } }
@media(max-width:890px) {
  .intro { min-height: 215px; }
  .still-life { height: 214px; }
  .tile { padding: .7rem .77rem; gap: .55rem; }
  .tile-icon { width: 33px; height: 33px; }
  .tile-name small { font-size: .75rem; }
  .selection { display: none; }
  .controls { padding: 1.5rem; }
  .dial { width: 153px; }
}
@media(max-width:700px) {
  .wrap { width: min(92%,575px); }
  .bar { min-height: 60px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 1.35rem; }
  .byline { gap: .4rem; }
  .byline .monogram { display: none; }
  .byline div { text-align: right; }
  .byline div span { font-size: .68rem; }
  .byline strong { font-size: .8rem; }
  .intro { grid-template-columns: minmax(0,1.36fr) minmax(0,.9fr); min-height: 0; gap: .1rem; }
  .intro-copy { padding: 1.35rem 0 1.05rem; }
  .folio-label { font-size: .56rem; letter-spacing: .12em; gap: .38rem; margin-bottom: .5rem; }
  .folio-label::before { width: 15px; }
  h1 { font-size: clamp(2.55rem,7.5vw,3.8rem); }
  .instruction { font-size: .85rem; line-height: 1.45; margin-top: .45rem; }
  .still-life { height: auto; aspect-ratio: 1.35; }
  .still-life img { width: 100%; height: auto; }
  .metric-switch { gap: .33rem; margin: .2rem 0 .6rem; }
  .tile { min-height: 44px; padding: .42rem .4rem; gap: .35rem; justify-content: center; border-radius: 7px; }
  .tile-name strong { font-size: .82rem; }
  .tile-name small { display: none; }
  .tile-icon { width: 24px; height: 24px; border-radius: 6px; }
  .tile-icon svg { width: 16px; height: 16px; }
  .simulator { grid-template-columns: minmax(0,1fr); border-radius: 12px; }
  .reading { grid-row: 1; grid-template-columns: auto minmax(0,1fr); align-content: center; align-items: center; justify-items: start; column-gap: 1.15rem; row-gap: .32rem; text-align: left; padding: 1rem 1.15rem; }
  .dial { grid-row: 1 / span 2; grid-column: 1; width: 113px; }
  .ring { width: calc(100% - 18px); padding: 5px; }
  .dial::after { inset: 6px; }
  .ring-fg strong { font-size: 1.8rem; }
  .ring-fg span { font-size: .54rem; }
  .ring[data-duration="true"] .ring-fg strong { font-size: 1.18rem; }
  .result-title,.score-copy { grid-column: 2; }
  .result-title { align-self: end; }
  .live-label { justify-content: start; font-size: .55rem; }
  .result-title h2 { font-size: 1.38rem; margin-top: .28rem; }
  .score-copy { align-self: start; }
  #fraction { font-size: .79rem; line-height: 1.4; }
  #formula { margin: .37rem 0 0; font-size: .69rem; }
  .time-key:not([hidden]) { justify-content: start; }
  .controls { padding: 1.12rem 1.22rem 1.25rem; }
  .control-heading { padding-bottom: .62rem; }
  .control-heading h2 { font-size: 1.55rem; }
  #sliders { margin-top: .9rem; }
  .slider + .slider { margin-top: 1rem; }
  .hint { font-size: .8rem; margin-bottom: .12rem; }
  .perspective { grid-template-columns: 1fr; gap: .4rem; margin-top: .75rem; padding: .8rem 1rem; }
  .note-heading h2 { font-size: 1.15rem; }
  .book-icon svg { width: 17px; height: 17px; }
  .perspective p { font-size: .84rem; }
  footer { align-items: start; padding-top: .8rem; }
  footer svg { margin-top: .12rem; }
}
@media(max-width:380px) {
  .bar { gap: .4rem; }
  .brand { gap: .38rem; }
  .brand span { font-size: 1.16rem; }
  .byline div { max-width: 133px; }
  .dial { width: 97px; }
  .ring-fg strong { font-size: 1.55rem; }
  .ring[data-duration="true"] .ring-fg strong { font-size: .99rem; }
  .reading { gap: .25rem .65rem; padding: .87rem; }
  .controls { padding-inline: .95rem; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; } }
@media(forced-colors:active) {
  input[type="range"] { appearance: auto; }
  .metric-switch input:checked + .tile,.ring { outline: 2px solid Highlight; outline-offset: -3px; }
}
