@font-face{font-family:"Courier Prime";src:url(/fonts/courier-prime-400.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Courier Prime";src:url(/fonts/courier-prime-700.woff) format("woff");font-weight:700;font-display:swap}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:"Courier Prime","Courier New",monospace;
  color:#111;
  background:#ecebe6 url(/img/paper.jpg) center top/cover fixed;
  line-height:1.45;
  min-height:100vh;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}

/* ---------- structure ---------- */
.ticket{max-width:560px;margin:0 auto;padding:clamp(28px,6vw,56px) clamp(18px,5vw,40px) 48px}
.page{max-width:920px;margin:0 auto;padding:clamp(48px,8vw,72px) clamp(16px,4vw,40px) 56px}
.back{
  position:absolute;top:14px;left:16px;
  font-size:clamp(.78rem,2.6vw,.95rem);text-decoration:underline;text-underline-offset:3px;
}
.back:hover{text-decoration-thickness:2px}

/* ---------- rules ---------- */
.rule-thick{border:0;height:clamp(6px,1.4vw,9px);background:#111;margin:clamp(18px,4vw,28px) 0}
.rule-dash{
  border:0;height:3px;margin:clamp(16px,3.5vw,26px) 0;
  background:repeating-linear-gradient(90deg,#111 0 12px,transparent 12px 16px);
}

/* ---------- typography ---------- */
.name{
  font-weight:700;text-align:center;text-transform:uppercase;
  font-size:clamp(2.6rem,12.5vw,4.4rem);line-height:1.02;letter-spacing:.02em;
}
.title{
  font-weight:400;text-align:center;text-transform:uppercase;
  font-size:clamp(1.9rem,9vw,3.6rem);letter-spacing:.08em;line-height:1.1;
}
.small{font-size:clamp(.72rem,2.7vw,.9rem);text-align:center}
.small p+p{margin-top:.9em}
.lead{font-size:clamp(.72rem,2.85vw,1.02rem);text-align:center}

/* ---------- receipt lines (menu / contact) ---------- */
.lines{list-style:none;font-size:clamp(1rem,4.7vw,1.55rem);padding:0 2px}
.lines li{display:flex;align-items:baseline;gap:.4em;margin:.75em 0;white-space:nowrap}
.lines .label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}
.lines a.label{text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
.lines a.label:hover{text-decoration-thickness:2px}
.lines .dots{flex:1 1 auto;min-width:1.2em;border-bottom:.16em dotted #111;transform:translateY(-.25em)}
.lines .num{flex:0 0 auto}
.lines.compact{font-size:clamp(.86rem,4vw,1.3rem)}
.total{display:flex;justify-content:space-between;font-size:clamp(1rem,4.7vw,1.55rem);padding:0 2px;white-space:nowrap}

.barcode{width:min(320px,62%);margin:clamp(28px,6vw,44px) auto 0}

/* ---------- about ---------- */
.about{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(18px,4vw,36px);align-items:center;max-width:760px;margin:0 auto}
.about .text{font-size:clamp(.84rem,2.4vw,1rem);text-align:center}
.about .text p+p{margin-top:1.1em}
.about img{width:100%;max-width:300px;margin:0 auto;filter:contrast(1.05)}

/* ---------- projects ---------- */
.project{margin-top:clamp(8px,2vw,16px)}
.project h2{font-weight:400;text-align:center;font-size:clamp(.88rem,3vw,1.05rem);letter-spacing:.03em}
.project .desc{max-width:660px;margin:0 auto;text-align:center;font-size:clamp(.82rem,2.7vw,.98rem)}
.grid{display:grid;gap:clamp(14px,3vw,36px);margin:clamp(22px,5vw,44px) auto 0}
.grid.two{grid-template-columns:repeat(2,1fr);max-width:820px}
.grid.three{grid-template-columns:repeat(3,1fr);max-width:820px}
.grid.wild{grid-template-columns:.62fr 1fr;max-width:820px;align-items:center}
.grid.wild .wide{grid-column:1/-1;max-width:640px;margin:0 auto}
.grid img{width:100%;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.board{max-width:460px;margin:clamp(22px,5vw,44px) auto 0}
.board img{width:100%}
.project + .project{margin-top:clamp(36px,7vw,64px)}

footer{text-align:center;font-size:.72rem;margin-top:48px;opacity:.7}

/* ---------- mobile ---------- */
@media (max-width:600px){
  .about{grid-template-columns:1fr}
  .about img{max-width:220px}
  .grid.two{grid-template-columns:1fr}
  .grid.three{grid-template-columns:repeat(2,1fr)}
  .grid.wild{grid-template-columns:1fr}
}
