/* 站务与琐事 · the blog as it looked in 2005.
   A grey window on a teal desktop: it opens like an old window, a marquee counts the days since the first post,
   and internal links preview their target in the target room's own clothes. */

.w-site {
  --bg: #008080; --paper: #FFFFFF; --ink: #000000; --muted: #404040; --line: #808080;
  --acc: #000080; --acc-ink: #FFFFFF; --link: #0000EE; --visited: #551A8B; --face: #C0C0C0; --f-body: var(--f-serif);
  background: #008080;
}
.w-site .bevel, .w-site .art, .w-site .bar__btn, .w-site .ah__cat, .w-site .rail__btn, .w-site .cut a, .w-site .cmt__form button, .w-site .sub button { border: 2px solid; border-color: #FFFFFF #404040 #404040 #FFFFFF; box-shadow: 1px 1px 0 #000000; }
.w-site .sunk { border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }

.w-site .bar { background: var(--face); border-bottom: 2px solid #808080; box-shadow: inset 0 -1px 0 #FFFFFF; backdrop-filter: none; }
.w-site .bar__logo { padding: 2px; background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .bar__logo img { width: 32px; height: 32px; }
.w-site .bar__nav .nav__a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; border-bottom: 0; font-family: var(--f-serif); }
.w-site .bar__nav .nav__a:hover { color: #FF0000; }
.w-site .bar__nav .nav__a[aria-current="page"] { color: var(--visited); }
.w-site .bar__btn { height: 34px; border-radius: 0; background: var(--face); font-family: var(--f-pixel); font-size: 12px; }
.w-site .bar__btn:active, .w-site .bar__btn[aria-pressed="true"] { border-color: #404040 #FFFFFF #FFFFFF #404040; box-shadow: none; background: #B5B5B5; color: #000000; }
.w-site .bar__btn kbd { border-color: #808080; border-radius: 0; }
.w-site .prog i { background: #000080; }

/* ---------- the window ---------- */
.w-site .art { width: min(1200px, calc(100% - 64px)); margin: 44px auto 0; padding: 3px; background: var(--face); transform-origin: 50% 0; animation: site-open .42s steps(6) both; }
@keyframes site-open { from { opacity: 0; transform: scale(.25); outline: 2px dotted #000000; } 99% { outline: 2px dotted #000000; } to { opacity: 1; transform: none; outline: 0; } }
.w-site .win__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 28px; padding: 0 4px 0 10px; background: linear-gradient(90deg, #000080, #1084D0); color: #FFFFFF; font: 12px/28px var(--f-pixel); }
.w-site .win__bar span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-site .win__btns { display: flex; gap: 2px; }
.w-site .win__btns i { width: 20px; height: 18px; display: grid; place-items: center; background: var(--face); color: #000000; font: 700 12px/1 var(--f-mono); font-style: normal; border: 2px solid; border-color: #FFFFFF #404040 #404040 #FFFFFF; }
.w-site .win__btns i:last-child { margin-left: 4px; }

/* ---------- banner, marquee, title ---------- */
.w-site .ah { margin: 3px; background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .ah__ban { position: relative; overflow: hidden; background: #000000; }
.w-site .ah__ban img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 60%; image-rendering: pixelated; }
.w-site .ah__ban-t { position: absolute; left: 36px; bottom: 30px; color: #FFFFFF; text-shadow: 2px 2px 0 #000000; }
.w-site .ah__ban-t b { display: block; font-family: var(--f-pixel); font-weight: 400; font-size: 72px; line-height: 1; color: #FFFF00; }
.w-site .ah__ban-t span { display: block; margin-top: 12px; font-family: var(--f-pixel); font-size: 24px; }
.w-site .marq { overflow: hidden; height: 30px; background: #000080; color: #FFFF00; font: 12px/30px var(--f-pixel); white-space: nowrap; }
.w-site .marq span { display: inline-block; padding-left: 16px; animation: site-marq 9s linear .5s both; }
.w-site .marq b { font-weight: 400; color: #00FF00; }
@keyframes site-marq { from { margin-left: 100%; } to { margin-left: 0; } }
.w-site .ah__m { padding: 30px 40px 34px; }
.w-site .ah__cat { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; background: var(--face); font: 12px/1 var(--f-pixel); text-decoration: none; }
.w-site .ah__cat:hover { color: #000080; }
.w-site .ah__t { margin-top: 18px; font-family: var(--f-serif); font-weight: 900; font-size: 44px; line-height: 1.2; color: #000080; }
.w-site .ah__meta { margin-top: 14px; font-family: var(--f-serif); font-size: 14px; }
.w-site .ah__meta dt { color: #808080; }

/* ---------- three columns, like a 2005 template ---------- */
.w-site .ag { width: auto; margin: 3px; padding: 26px 22px 40px; grid-template-columns: 200px minmax(0, 720px) 210px; gap: 30px; background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .grp { position: relative; padding: 16px 12px 12px; border: 2px groove #FFFFFF; }
.w-site .grp > h2, .w-site .grp > b { position: absolute; top: -10px; left: 10px; padding: 0 5px; background: #FFFFFF; font: 400 12px/18px var(--f-pixel); color: #000000; margin: 0; letter-spacing: 0; }
.w-site .toc.grp { position: sticky; top: 90px; }
.w-site .toc a { padding: 3px 4px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; border-radius: 0; font-family: var(--f-serif); }
.w-site .toc a:hover { color: #FF0000; }
.w-site .toc a[aria-current="true"] { background: #000080; color: #FFFFFF; text-decoration: none; }
.w-site .prose { font-size: 17px; line-height: 1.95; }
.w-site .prose > :first-child { padding: 10px 14px; background: #FFFFE1; border: 1px solid #000000; font-size: 14.5px; line-height: 1.8; }
.w-site .prose a { color: var(--link); }
.w-site .prose a:hover { color: #FF0000; }
.w-site.deco .prose h2 { margin-top: 2.1em; padding-bottom: 6px; font-family: var(--f-pixel); font-weight: 400; font-size: 24px; line-height: 1.4; color: #000080; border-bottom: 2px dotted #000080; }
.w-site .cut::before { background: linear-gradient(rgba(255, 255, 255, 0), #FFFFFF); }
.w-site .cut a { background: var(--face); color: #000000; font: 12px/1 var(--f-pixel); }

.w-site .rail { top: 90px; }
.w-site .lcd { display: block; margin-top: 4px; padding: 6px 8px; background: #000000; color: #00FF00; font: 24px/1 var(--f-pixel); text-align: right; letter-spacing: 1px; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .rail .grp p { font-size: 13px; line-height: 1.7; color: #000000; }
.w-site .rail__btn { background: var(--face); font: 12px/1 var(--f-pixel); }

/* link preview inside the 2005 room: the target still dresses like its own room */
.w-site .lp { width: 290px; }

/* ---------- end matter ---------- */
.w-site .ae { width: auto; margin: 3px; padding: 40px 48px 48px; background: var(--face); gap: 44px; }
.w-site .ae h2 { font: 400 13px/1 var(--f-pixel); color: #000000; letter-spacing: 0; }
.w-site .tags a { color: var(--link); text-decoration: underline; border: 0; padding: 0 8px 0 0; font-family: var(--f-serif); }
.w-site .author { background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .author img { image-rendering: auto; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .author nav a { color: var(--link); }
.w-site .cmt__list { gap: 0; background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .cmt__one { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; }
.w-site .cmt__one + .cmt__one { border-top: 1px dashed #808080; }
.w-site .cmt__one i { border-radius: 0; background: #000080; color: #FFFFFF; font-family: var(--f-pixel); font-size: 13px; }
.w-site .cmt__one b { color: var(--link); text-decoration: underline; }
.w-site .cmt__form textarea { background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; font-family: var(--f-serif); }
.w-site .cmt__form button { background: var(--face); color: #000000; font: 12px/1 var(--f-pixel); }
.w-site .cmt__form label { color: #000000; }

.w-site .ft { margin-top: 44px; color: #FFFFFF; border-top: 0; }
.w-site .ft h4, .w-site .ft__brand b { color: #FFFFFF; font-family: var(--f-pixel); font-weight: 400; }
.w-site .ft__brand img { padding: 2px; background: #FFFFFF; mix-blend-mode: normal; }
.w-site .ft a:hover { color: #FFFF00; }
.w-site .sub input[type="email"] { border-radius: 0; background: #FFFFFF; color: #000000; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.w-site .sub button { border-radius: 0; background: var(--face); color: #000000; font: 12px/1 var(--f-pixel); }

@container yh (max-width: 760px) {
  .w-site .art { width: calc(100% - 12px); margin-top: 14px; }
  .w-site .ah__ban img { height: 170px; }
  .w-site .ah__ban-t { left: 16px; bottom: 16px; }
  .w-site .ah__ban-t b { font-size: 48px; }
  .w-site .ah__ban-t span { font-size: 16px; margin-top: 6px; }
  .w-site .ah__m { padding: 22px 16px 24px; }
  .w-site .ah__t { font-size: 30px; }
  .w-site .ag { width: auto; padding: 22px 14px 30px; grid-template-columns: minmax(0, 1fr); }
  .w-site .rail { display: grid; position: static; margin-top: 28px; }
  .w-site .rail__note { display: none; }
  .w-site .ae { width: auto; padding: 28px 14px 32px; }
  .w-site .lp { width: 260px; }
}
