/* The Accent of Nowhere. Paper, ink and one red, after a rubricated manuscript; each tongue's sample in
   its own face, after the 1917 printing of Karawane. */
@font-face { font-family: 'Crimson Pro'; src: url('/fonts/crimson-pro-normal-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F; }
@font-face { font-family: 'Crimson Pro'; src: url('/fonts/crimson-pro-normal-400-latin-ext.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+0300-036F; }
@font-face { font-family: 'Crimson Pro'; src: url('/fonts/crimson-pro-italic-400-latin.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Crimson Pro'; src: url('/fonts/crimson-pro-normal-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url('/fonts/bebas-neue-normal-400-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-var-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat-normal-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/dm-mono-normal-400-latin.woff2') format('woff2'); font-display: swap; }

:root {
  --paper: #f4eedf; --card: #fbf8ef; --ink: #1b1611; --dim: #5a5143; --rule: #cdc2aa;
  --red: #a2241a; --teal: #125a60; --ochre: #7a5a08; --violet: #5a3a78;
  --serif: 'Crimson Pro', 'Fraunces', Georgia, serif; --display: 'Fraunces', Georgia, serif;
  --mono: 'Martian Mono', 'DM Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; overflow-x: hidden; }
main { max-width: 47rem; margin: 0 auto; padding: 4.5rem 1.25rem 4rem; }
.wide { width: min(74rem, calc(100vw - 2rem)); margin-left: 50%; transform: translateX(-50%); }
a { color: var(--red); text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: .95; letter-spacing: -.02em; margin: 0 0 1rem; }
h1 em { font-style: italic; color: var(--red); }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4.4vw, 2.3rem); line-height: 1.1; margin: 4.2rem 0 1rem; }
h2::before { content: attr(data-n); display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .7rem; }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 2rem 0 .3rem; }
.kicker { font: 500 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 1.2rem; }
.dek { font-size: 1.3rem; line-height: 1.45; margin: 0 0 2rem; }
small, .quiet { color: var(--dim); }
small { font-size: .82em; }
[data-v] { font-family: var(--mono); font-size: .86em; white-space: nowrap; }
.note { border-left: 3px solid var(--red); padding: .1rem 0 .1rem 1rem; color: var(--ink); font-size: 1.05rem; }
.aside { font-size: 1rem; color: var(--dim); }
code, .mono { font-family: var(--mono); font-size: .8em; }
pre { font-family: var(--mono); font-size: .78rem; line-height: 1.5; background: var(--card); border: 1px solid var(--rule); padding: .9rem 1rem; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

/* the wall of tongues */
.wall { margin: 2.2rem 0 2.6rem; padding: 0; list-style: none; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.wall li { display: grid; grid-template-columns: 1fr; padding: .55rem 0 .5rem; border-bottom: 1px solid var(--rule); }
.wall li:last-child { border-bottom: 0; }
.wall q { quotes: none; display: block; overflow-wrap: anywhere; line-height: 1.12; }
.wall cite { font: 400 .68rem/1.5 var(--mono); letter-spacing: .04em; color: var(--dim); font-style: normal; margin-top: .25rem; }
.f-serif { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 5vw, 2.3rem); }
.f-bebas { font-family: 'Bebas Neue', var(--display); font-size: clamp(1.9rem, 6.4vw, 3.1rem); letter-spacing: .03em; }
.f-mono { font-family: var(--mono); font-size: clamp(1rem, 3.3vw, 1.45rem); }
.f-hand { font-family: 'Caveat', var(--display); font-size: clamp(1.8rem, 6vw, 2.9rem); }
.f-grot { font-family: 'Bricolage Grotesque', var(--display); font-weight: 750; font-size: clamp(1.5rem, 5vw, 2.4rem); letter-spacing: -.02em; }
.f-crimson { font-family: var(--serif); font-size: clamp(1.4rem, 4.6vw, 2.1rem); }
.f-red { color: var(--red); }

/* the instrument */
.instrument { background: var(--card); border: 2px solid var(--ink); padding: 1.2rem 1.2rem 1rem; margin: 2rem 0; box-shadow: 6px 6px 0 var(--ink); }
.instrument label { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: .4rem; }
.instrument textarea { width: 100%; min-height: 7.5rem; font: 400 1.25rem/1.4 var(--serif); color: var(--ink); background: #fffdf6; border: 1px solid var(--ink); padding: .7rem .8rem; resize: vertical; }
.instrument select { font: 400 1rem var(--serif); padding: .3rem .4rem; border: 1px solid var(--ink); background: #fffdf6; color: var(--ink); max-width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: end; margin: .8rem 0; }
#presets { display: flex; flex-wrap: wrap; gap: .4rem; }
#presets button { font: 400 .7rem/1.2 var(--mono); padding: .45rem .6rem; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
#presets button:hover { background: var(--ink); color: var(--paper); }
#loaded { font-size: .95rem; color: var(--dim); min-height: 1.4em; margin: .3rem 0 0; }
#readout p { margin: .45rem 0; font-size: 1.08rem; }
#readout .big { font-size: 1.3rem; }
.letter { font-family: var(--mono); font-weight: 600; color: var(--red); padding: 0 .1em; }
#ruler { width: 100%; height: auto; display: block; margin: .6rem 0; }
#ruler .axis { stroke: var(--ink); stroke-width: 1.5; } #ruler .tick { stroke: var(--ink); stroke-width: 1; opacity: .16; }
#ruler .mark { stroke: var(--ink); stroke-width: 2; } #ruler .lead { stroke: var(--dim); stroke-width: 1; }
#ruler text { font-family: var(--mono); font-size: 15px; fill: var(--dim); } #ruler .near { font-size: 14px; }
#ruler .ghost { fill: var(--paper); stroke: var(--teal); stroke-width: 2; }
#ruler .whisker { stroke: var(--red); stroke-width: 5; opacity: .35; } #ruler .you { fill: var(--red); }
#ruler .youlab { fill: var(--red); font-size: 17px; font-weight: 600; }
#nearest table { margin-top: .6rem; }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
caption { text-align: left; font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-bottom: .4rem; }
th, td { text-align: left; vertical-align: top; padding: .35rem .6rem .35rem 0; border-bottom: 1px solid var(--rule); }
thead th { font: 500 .66rem/1.35 var(--mono); letter-spacing: .04em; color: var(--dim); vertical-align: bottom; border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; } tbody th small { display: block; font-weight: 400; }
.num { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rulers { min-width: 60rem; } .rulers .grp th { font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); padding-top: 1.3rem; border-bottom: 2px solid var(--ink); }
.rulers tr.small th, .rulers tr.small td { color: var(--dim); }
.rulers .viz { width: 19rem; } .bar { width: 18rem; height: 1.35rem; display: block; }
.b-axis { stroke: var(--rule); stroke-width: 2; } .b-one { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.b-ci { stroke: var(--red); stroke-width: 6; opacity: .3; } .b-dot { fill: var(--red); } .b-off { fill: var(--red); }
.lt { font-family: var(--mono); font-size: .9rem; letter-spacing: .12em; color: var(--red); white-space: nowrap; }
.letters { min-width: 46rem; } .letters td { padding: 0; width: 1.35rem; height: 1.25rem; border: 1px solid var(--paper); }
.letters thead th { text-align: center; padding: 0 0 .2rem; font-size: .72rem; } .letters tbody th { font-weight: 400; font-size: .86rem; white-space: nowrap; padding-right: .7rem; }
.l0 { background: #e9e1cf; } .lp1 { background: #e6b9a6; } .lp2 { background: #d0694f; } .lp3 { background: #a2241a; }
.lm1 { background: #c3d3d0; } .lm2 { background: #8fb0ae; } .lm3 { background: #4f8286; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font: 400 .7rem/1.5 var(--mono); color: var(--dim); margin: .6rem 0 0; padding: 0; list-style: none; }
.legend.key i { border-radius: 50%; border: 0; } .k-control { background: var(--ochre); } .k-revealed { background: var(--red); } .k-ecstatic { background: #d0694f; } .k-artistic { background: var(--violet); } .k-literary { background: #7d6a55; } .k-designed { background: var(--ink); } .k-model { background: var(--teal); }
.legend i { display: inline-block; width: .9rem; height: .9rem; vertical-align: -.12rem; margin-right: .35rem; border: 1px solid var(--rule); }
.study th, .study td { color: var(--dim); }
.score td:nth-child(3) { font-family: var(--mono); font-size: .76rem; white-space: nowrap; }
.held { color: var(--teal); font-weight: 600; } .failed { color: var(--red); font-weight: 600; } .part { color: var(--ochre); font-weight: 600; }

/* the map and the strips */
.map { width: 100%; min-width: 46rem; height: auto; display: block; background: var(--card); border: 1px solid var(--rule); }
.swipe { display: none; } @media (max-width: 48rem) { .swipe { display: block; margin-top: .3rem; } }
.m-grid { stroke: var(--rule); stroke-width: 1; } .m-band { fill: #e7dcc0; opacity: .7; }
.map text { font-family: var(--mono); font-size: 13px; fill: var(--ink); } .m-tick, .m-note, .m-reflab { fill: var(--dim) !important; font-size: 12px !important; }
.m-axis { font-size: 13px; } .m-ref { stroke: var(--ink); stroke-width: 1.5; }
.m-pt circle { stroke: var(--card); stroke-width: 1.5; } .m-pt text { font-size: 12.5px; }
.c-control circle { fill: var(--ochre); } .c-revealed circle { fill: var(--red); } .c-ecstatic circle { fill: #d0694f; } .c-artistic circle { fill: var(--violet); }
.c-literary circle { fill: #7d6a55; } .c-designed circle { fill: var(--ink); } .c-modelA circle, .c-modelB circle, .c-modelC circle { fill: var(--teal); }
.c-modelA text, .c-modelB text, .c-modelC text { fill: var(--teal); }
.strips { display: grid; gap: 1.1rem; }
.strip { margin: 0; } .strip figcaption { font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.strip svg { width: 100%; max-width: 34rem; height: auto; display: block; } .s-lab, .s-tick, .s-none { font-family: var(--mono); font-size: 12.5px; fill: var(--dim); } .s-lab { fill: var(--ink); } .s-none { font-style: italic; }
.s-dot { stroke: var(--card); stroke-width: 1; } .s-A { fill: var(--teal); } .s-B { fill: var(--ink); } .s-C { fill: var(--red); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.4rem 2rem; }
.card { border-top: 2px solid var(--ink); padding-top: .6rem; } .card h3 { margin: 0; }
.card .who { font: 400 .72rem/1.5 var(--mono); color: var(--dim); margin: .1rem 0 .6rem; }
.card p { font-size: 1.02rem; margin: .5rem 0; }
.sample { margin: .6rem 0; padding: 0; border: 0; overflow-wrap: anywhere; line-height: 1.2; color: var(--ink); }
.card .f-serif, .card .f-crimson { font-size: 1.35rem; } .card .f-bebas { font-size: 1.7rem; } .card .f-mono { font-size: .95rem; line-height: 1.5; } .card .f-hand { font-size: 1.7rem; } .card .f-grot { font-size: 1.35rem; }
blockquote.said { margin: .6rem 0; padding: 0 0 0 .9rem; border-left: 3px solid var(--red); font-style: italic; font-size: 1.02rem; }
blockquote.said footer, blockquote.said cite { display: block; font-style: normal; font-size: .82rem; color: var(--dim); margin-top: .25rem; }
.check { border: 2px solid var(--teal); background: #eef3ee; padding: 1rem 1.2rem; margin: 2rem 0; font-size: 1.02rem; }
.check h3 { margin-top: 0; color: var(--teal); }
.fine { font-size: .98rem; color: var(--dim); }
@media (max-width: 34rem) { body { font-size: 1.1rem; } main { padding-top: 4rem; } .instrument { box-shadow: 3px 3px 0 var(--ink); padding: .9rem; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.gloss p { margin: .5rem 0; line-height: 1.25; } .gloss .f-hand { font-size: 1.7rem; } .gloss .fr { font-style: italic; color: var(--dim); }
