/* one wall of black stone. layout: masonry. every block is a stone, every word is cut or chalked on it */
:root { --stone: #0b0b0c; --chalk: #ece9e1; --dust: #a9a59b; --pad: clamp(16px, 3.6vw, 60px); --cut: "Grenze Gotisch", "Grenze", "Times New Roman", serif; }
* { box-sizing: border-box; }
html { background: var(--stone); color: var(--chalk); font: 400 18px/1.35 "Grenze", Georgia, serif; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, p, ol, form { margin: 0; padding: 0; font-weight: inherit; }
ol { list-style: none; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--chalk); color: var(--stone); }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 4px; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.wall { position: relative; isolation: isolate; background: var(--stone); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; display: block; }
.cut { font-family: var(--cut); font-weight: 800; color: var(--chalk); }
.gl .cut { color: transparent; }
.ln { display: block; white-space: nowrap; line-height: .92; }
.note { color: var(--dust); font-size: 18px; }
.plain { color: var(--chalk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 18px; }
.plain:hover { text-decoration-thickness: 3px; }
.slab { min-height: 50px; padding: 0 24px 3px; background: var(--chalk); color: #0b0b0c; font: 700 24px/1 var(--cut); transition: transform .14s, background .14s; }
.slab:hover { background: #fff; } .slab:active { transform: translateY(2px); }
.slab[disabled] { background: none; color: var(--dust); box-shadow: inset 0 0 0 1.5px var(--dust); cursor: default; }
.acts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

/* hero */
.hero { min-height: max(100svh, 700px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(290px, 25vw, 400px); grid-template-rows: 76px minmax(0, 1.24fr) minmax(0, 1fr); }
.bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--chalk); text-decoration: none; }
.brand svg { width: 34px; height: 34px; } .brand b { font: 700 30px/1 var(--cut); }
.bar nav { display: flex; gap: 22px; align-items: center; }
.hook { grid-column: 1; grid-row: 2; padding-left: var(--pad); display: flex; flex-direction: column; justify-content: center; font-size: clamp(60px, min(12.5vw, 25svh), 250px); overflow: hidden; }
.rules { grid-column: 1; grid-row: 3; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.rule { display: grid; grid-template-columns: clamp(52px, 6.4vw, 104px) minmax(0, 1fr); align-items: center; padding: 0 var(--pad); cursor: text; }
.num { font-size: clamp(30px, 3.1vw, 52px); line-height: 1; font-weight: 700; }
.rule input { width: 100%; min-width: 0; height: 100%; min-height: 48px; padding: 0; border: 0; background: none; border-radius: 0; font: 700 clamp(24px, 3vw, 50px)/1.2 var(--cut); color: var(--chalk); text-shadow: 0 0 1px rgba(236, 233, 225, .4); }
.rule input:focus { outline: none; } .rule:focus-within { box-shadow: inset 0 -3px 0 var(--chalk); }
.rule input[readonly] { cursor: default; }
.press { grid-column: 2; grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; text-align: center; padding: 10px 22px 22px; }
.big { font-size: clamp(54px, 6.6vw, 116px); line-height: 1; }
#hold { width: min(62%, 210px); aspect-ratio: .78; border-radius: 50%; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#hold:focus-visible { outline-offset: 12px; }
html:not(.gl) #hold { box-shadow: inset 0 0 0 3px var(--chalk); } html:not(.gl) .rule, html:not(.gl) .wall + .wall { border-top: 1px solid #4a4842; }
.press .note { min-height: 2.7em; max-width: 280px; }
.after { display: flex; flex-direction: column; gap: 4px; align-items: center; }

/* the mark */
.mark { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.labr { aspect-ratio: 1; }
.mk { padding: var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.h2 { font-size: clamp(38px, 5vw, 84px); }
#alter { width: 100%; resize: vertical; background: rgba(0, 0, 0, .45); border: 0; box-shadow: inset 0 0 0 1px #4a4842, inset 0 4px 14px #000; border-radius: 0; padding: 14px 16px; font: 500 22px/1.4 var(--cut); color: var(--chalk); min-height: 150px; }
#diff { min-height: 1.4em; color: var(--chalk); }

/* wall */
.tally .h2, .check .h2 { padding: var(--pad) var(--pad) 0; }
.tally .ln { display: inline; } .scratch { height: clamp(300px, 24vw, 350px); margin-top: 26px; }
.ta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 30px; padding: 24px var(--pad) 34px; }

/* check */
.check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.check .h2 { grid-column: 1 / -1; padding-bottom: 26px; }
.drop { min-height: 300px; display: grid; place-items: center; text-align: center; cursor: pointer; position: relative; padding: 20px; }
.drop span { max-width: 240px; font-size: 22px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within, .drop.over { box-shadow: inset 0 0 0 3px var(--chalk); }
.res { display: flex; align-items: center; padding: var(--pad); }
.res li { font-size: 23px; line-height: 1.3; padding: 7px 0; color: var(--dust); overflow-wrap: anywhere; }
.res li.y { color: var(--chalk); } .res li.n { color: #0b0b0c; background: var(--chalk); padding: 7px 14px; margin: 4px 0; }

/* frieze */
.frieze { height: clamp(210px, 27vw, 400px); }
.how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 40px; text-align: center; font: 500 clamp(20px, 2vw, 28px)/1.2 var(--cut); }

.foot { padding: clamp(50px, 7vw, 110px) var(--pad) max(44px, env(safe-area-inset-bottom)); display: grid; gap: 26px; }
.sign { font-size: 27vw; line-height: .98; white-space: nowrap; overflow: hidden; margin-top: -.08em; }
.fo { display: grid; gap: 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px auto auto 1fr; min-height: 100svh; }
  .brand svg { width: 28px; height: 28px; } .brand b { font-size: 25px; } .bar nav { gap: 12px; } .bar .plain { font-size: 16px; }
  .hook { grid-row: 2; font-size: min(17.2vw, 11svh); padding-top: 8px; padding-bottom: 14px; }
  .rules { grid-row: 3; grid-template-rows: repeat(3, clamp(54px, 8svh, 66px)); } .rule { grid-template-columns: 50px minmax(0, 1fr); } .rule input { min-height: 0; }
  .press { grid-column: 1; grid-row: 4; padding: 10px 16px 14px; min-height: 350px; }
  .big { font-size: 46px; } #hold { width: 146px; margin: 26px 0 30px; } .press .note { min-height: 1.4em; } .after { flex-direction: row; gap: 16px; }
  .mark, .check { grid-template-columns: minmax(0, 1fr); } .mk { padding: 30px 16px 44px; } .h2 { font-size: clamp(36px, 11vw, 56px); }
  .acts .slab { flex: 1 1 auto; font-size: 22px; padding: 0 14px 3px; }
  .drop { min-height: 210px; } .res { padding: 26px 16px 40px; } .res li { font-size: 20px; }
  .scratch { height: 330px; } .tally .ln { display: block; } .how ol { grid-template-columns: 1fr; gap: 0; padding: 0; } .how { display: grid; grid-template-columns: 46% 1fr; } .frieze { height: 540px; } .how ol { grid-template-rows: repeat(3, 1fr); text-align: left; } .how li { display: flex; align-items: center; padding-right: 12px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
