:root {
  --entry-title-size: 17px;
  --entry-action-size: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #332c28;
  background: #f7f3eb;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  border-top: 3px solid #c5a36a;
  background:
    radial-gradient(ellipse at 0 65%, #c5a36a0c, transparent 55%),
    radial-gradient(ellipse at 100% 85%, #c5a36a10, transparent 50%),
    linear-gradient(180deg, #f5efe4, #fcfaf6 60%, #f7f2e8);
}
.masthead {
  position: relative;
  flex-shrink: 0;
  padding: 32px 20px 63px;
  overflow: hidden;
  border-bottom: 1px solid #c5a36a;
  background: linear-gradient(110deg, #85292c, #ad3432 50%, #902a2d);
  pointer-events: none;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/masthead-landscape.svg") center bottom / max(960px, 100%) 100% no-repeat;
}
.masthead::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, #d8b67c18, #e8c99385 50%, #d8b67c18); }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-heading, .footer-content { visibility: hidden; }
body.site-ready .site-heading, body.site-ready .footer-content { visibility: visible; }
.landing { position: relative; z-index: 1; width: min(100% - 36px, 380px); margin: -41px auto 20px; text-align: center; }
.site-heading { position: relative; max-width: 460px; margin: 0 auto; text-align: center; }
.site-brand { display: flex; align-items: center; justify-content: center; }
.theme-preview-notice { position: relative; z-index: 5; padding: 9px 16px; color: #5e4a37; background: #fff1d7; border-bottom: 1px solid #e6cfa9; font-size: 12px; line-height: 1.8; text-align: center; }
.theme-preview-notice a { margin-left: 10px; color: #9c3838; }
.header-caption { margin: 0 0 7px; color: #f2ddba; font-size: 12px; line-height: 18px; letter-spacing: 3px; overflow-wrap: anywhere; }
h1 { margin: 0; color: #fff9ed; font-size: 28px; line-height: 37px; font-weight: 600; letter-spacing: 3px; overflow-wrap: anywhere; }
.header-tagline { margin: 7px 0 0; color: #f4e4cb; font-size: 12px; line-height: 19px; letter-spacing: 2px; overflow-wrap: anywhere; }
.entries { display: flex; flex-direction: column; gap: 14px; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; column-gap: 12px; min-height: 96px; padding: 22px 18px; border: 1px solid #e5dccf; border-radius: 6px; background: #fffefc; box-shadow: 0 4px 16px #6b462205; }
.entry-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); min-width: 0; align-items: center; gap: 8px; margin: 0; text-align: left; }
.entry h2 { min-width: 0; margin: 0; font-size: var(--entry-title-size); font-weight: 500; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.entry-logo-slot { display: flex; width: 36px; align-items: center; justify-content: center; height: 36px; }
.entry-logo { display: block; width: 36px; height: 36px; object-fit: contain; }
.entry-button { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; min-height: 44px; padding: 10px 8px; border: 1px solid #ab2e32; border-radius: 4px; background: #ab2e32; color: #fff; font: inherit; font-size: var(--entry-action-size); line-height: 1.6; text-decoration: none; white-space: pre-line; overflow-wrap: anywhere; }
a.entry-button:hover { background: #94252a; border-color: #94252a; }
.entry-button:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible { outline: 3px solid #d5a768; outline-offset: 4px; }
.page-message { margin: 18px 0; color: #797476; font-size: 14px; }
.retry { border: 0; background: none; color: #ab2e32; font: inherit; cursor: pointer; }
.site-footer { position: relative; z-index: 0; margin-top: auto; padding: 12px 20px; border-top: 1px solid #dfd1bb; border-bottom: 3px solid #972a2c; background: linear-gradient(180deg, #f4eee4, #eee5d6); color: #75644f; text-align: center; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
/* Decorative artwork stays behind the entry cards and never receives clicks. */
.site-footer::before { content: ""; position: absolute; inset: -88px 0 0; background: url("/assets/footer-landscape.svg") center bottom / max(960px, 100%) 148px no-repeat; pointer-events: none; }
.footer-content { position: relative; max-width: 960px; margin: 0 auto; }
.site-footer p { position: relative; margin: 0; }
.site-footer .footer-title { color: #8e3937; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 2px; }
.site-footer .footer-description { margin-top: 4px; line-height: 18px; white-space: pre-line; }
.footer-information { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 20px; margin: 7px 0 0; }
.footer-information p { max-width: 100%; }
.site-footer .copyright { margin-top: 6px; color: #82705d; line-height: 18px; }
@media (max-width: 520px) {
  .masthead { padding: 26px 18px 38px; }
  .masthead::before { background-size: 660px 100%; opacity: .85; }
  .landing { margin-top: -22px; }
  .header-caption { font-size: 11px; line-height: 16px; margin-bottom: 6px; }
  h1 { font-size: 25px; line-height: 33px; }
  .header-tagline { margin-top: 5px; font-size: 11px; line-height: 18px; letter-spacing: 1px; }
  .entry { column-gap: 10px; padding: 20px 16px; }
  .site-footer { padding-inline: 24px; }
  .site-footer .footer-title { font-size: 13px; }
  .site-footer .footer-description { max-width: 36em; margin-inline: auto; }
  .footer-information { flex-direction: column; gap: 3px; }
  .site-footer::before { inset-block-start: -62px; background-size: 760px 122px; }
}
@media (max-width: 480px) {
  :root { --entry-title-size: 16px; --entry-action-size: 15px; }
}
@media (max-width: 360px) {
  .entry { grid-template-columns: minmax(0, 1fr) 132px; }
}
