/* The café's reading pages: the landing section under the game on `/`, the drinks list at
 * `/drinks/`, and one page per drink. Same paper, ink and pixel type as the game itself. The drink
 * pages load only this file, so they carry the game's day palette themselves; under the game, the
 * landing section takes whatever the game's own stylesheet (and its night theme) says. */

@font-face {
  font-family: 'Pixelify Sans';
  src: url('/fonts/pixelify-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

body.page {
  --wall: #f3dfb8;
  --wall-stripe: #ecd3a5;
  --panel: #fff6e2;
  --ink: #4a2e1f;
  --shadow: #4a2e1f55;
  --accent: #e0664f;
  --accent-ink: #fff6e2;
  --soft: #b5603f;
  margin: 0;
  font-family: 'Pixelify Sans', ui-monospace, 'SF Mono', Menlo, monospace;
  font-variant-ligatures: none;
  color: var(--ink);
  background: repeating-linear-gradient(90deg, var(--wall) 0 28px, var(--wall-stripe) 28px 56px);
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  body.page {
    --wall: #2f4a4e;
    --wall-stripe: #2a4246;
    --panel: #1d2f31;
    --ink: #f4e3c1;
    --shadow: #000a;
    --accent: #f2b35e;
    --accent-ink: #1d2f31;
    --soft: #f2b35e;
    color-scheme: dark;
  }
}

.page *,
.landing * {
  box-sizing: border-box;
}

.page-wrap,
.landing {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.5;
}

.paper {
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 18px 20px;
}

.page h1,
.landing h2.lead {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 6px;
}

.page h2,
.landing h2,
.landing h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.page h2,
.landing h2 {
  font-size: 1.3rem;
}

.landing h3 {
  font-size: 1.05rem;
}

.page p,
.landing p {
  margin: 0 0 10px;
}

.page p:last-child,
.landing p:last-child {
  margin-bottom: 0;
}

.page a,
.landing a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page a:hover,
.page a:focus-visible,
.landing a:hover,
.landing a:focus-visible {
  color: var(--accent);
}

.kicker {
  color: var(--soft, var(--accent));
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.play {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink) !important;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 10px 18px;
  font-size: 1.1rem;
  text-decoration: none;
}

.play:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.features,
.steps,
.rules {
  margin: 0;
  padding-left: 1.3em;
}

.features li,
.steps li,
.rules li {
  margin-bottom: 6px;
}

.kinds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.kinds ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kinds li {
  margin-bottom: 3px;
}

.faq dt {
  font-weight: 700;
  margin-top: 10px;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 2px 0 0;
}

.crumbs {
  font-size: 0.9rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}

.page-foot {
  font-size: 0.9rem;
  text-align: center;
}
