:root {
  --char: #1c2a1c;
  --bronze: #c47a3a;
  --leaf: #4a7a3a;
  --paper: #f3ead8;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --serif: "Noto Serif SC", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
body { margin: 0; background: var(--paper); color: var(--char); font-family: var(--serif); line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.leaf-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  background-image: url("images/texture.webp");
  background-size: 300px auto;
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--bronze); color: #fff; padding: 8px; }
.shake-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: var(--char);
  color: var(--paper);
  border-bottom: 3px solid var(--bronze);
}
.brand { font-family: var(--display); font-size: 28px; white-space: nowrap; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bronze);
  letter-spacing: 0.14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
.nav-toggle { display: none; background: var(--bronze); color: #fff; border: 0; padding: 7px 12px; }
.rim-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; align-items: center; }
.rim-links a { color: #c8d4c0; }
.rim-links a.is-active, .rim-links a:hover { color: var(--bronze); }
.rim-links .live { background: var(--bronze); color: #fff; padding: 6px 12px; }
main { position: relative; z-index: 1; }
.wither { position: relative; padding: 0 0 28px; }
.wither .bg {
  width: 100%;
  max-height: 40vh;
  min-height: 180px;
  object-fit: cover;
  object-position: 50% 70%;
}
.rim {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 40px));
  margin: -48px 0 0 7vw;
  padding: 20px 22px 18px;
  background: rgba(243, 234, 216, 0.96);
  border-top: 8px solid var(--leaf);
}
.kicker { font-family: var(--mono); letter-spacing: 0.14em; font-size: 11px; color: var(--leaf); margin: 0 0 8px; }
h1, h2 { font-family: var(--display); margin: 0 0 10px; line-height: 1.2; }
h1 { font-size: clamp(26px, 3.6vw, 38px); }
.lead { color: #4a5540; margin: 0 0 10px; }
.toss { margin: 12px 0; padding: 12px 14px; background: #fff; border-left: 6px solid var(--bronze); }
.n { font-family: var(--display); font-size: 26px; margin: 0 0 6px; color: var(--bronze); }
#shake-s { margin: 0; font-size: 14px; }
.toss button { margin-top: 8px; background: var(--char); color: var(--paper); border: 0; padding: 8px 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn { display: inline-block; padding: 10px 16px; border: 1px solid var(--char); }
.btn.fill { background: var(--char); color: var(--paper); }
.w { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0; }
.bronze { background: var(--char); color: var(--paper); }
.bronze .kicker, .bronze .app-link { color: var(--bronze); }
.bronze figure { margin: 24px 0 0; }
.bronze figure img { width: 100%; height: 240px; object-fit: cover; }
.bronze figcaption { font-size: 13px; color: #c8d4c0; margin-top: 8px; }
figure { margin: 24px 0 0; }
figure img { width: 100%; }
figcaption { font-size: 13px; color: #6a7360; margin-top: 8px; }
footer { padding: 20px 24px 48px; color: #6a7360; font-size: 13px; position: relative; z-index: 1; }
@media (max-width: 900px) {
  .shake-bar { padding: 8px 12px; position: relative; }
  .nav-toggle { display: inline-block; }
  .rim-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #121c12;
    padding: 12px;
  }
  .rim-links.open { display: flex; }
  .wither .bg { min-height: 140px; max-height: 24vh; }
  .rim { width: calc(100% - 20px); margin: -28px auto 0; padding: 14px; }
  h1 { font-size: 24px; }
  .lead {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .toss { padding: 10px; }
  .n { font-size: 22px; }
  .w { width: calc(100% - 24px); padding: 36px 0; }
}
