/*
 * [INPUT]: 首页的一句英文署名与原创记号笔字体。
 * [OUTPUT]: 煤灰色背景、居中的两行手写字和可辨认的文字链接。
 * [POS]: 个人博客首页的排版层，浏览器原生处理选择、缩放和导航。
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */
@font-face {
  font-family: "Koiwest Marker";
  src: url("./marker-mono-1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #111;
  color: #d9d9d9;
  font-family: "Koiwest Marker", system-ui, sans-serif;
  font-synthesis: none;
}

body { margin: 0; }

main {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: max(1.5rem, env(safe-area-inset-top), env(safe-area-inset-bottom));
  padding-inline: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
  background: radial-gradient(ellipse at center, #191919, #141414 56%, #111 100%);
}

h1 {
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem);
  line-height: 1.25;
  word-spacing: .1em;
}

.name, .byline { display: block; }

.byline {
  margin-top: .35em;
  color: #c4c4c4;
  font-size: clamp(.9375rem, .89rem + .15vw, 1rem);
  line-height: 1.5;
  letter-spacing: .025em;
  text-wrap: balance;
}

a {
  color: inherit;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: #717171;
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}

a:hover, a:focus-visible { text-decoration-color: currentColor; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: .25em; }
::selection { color: #161616; background: #d4d4d4; }
