/* kira.ws · one css to rule the whole site. 2026-07-03, domain day. */
:root {
  --bg: #12101c;
  --bg-soft: #1a1728;
  --panel: rgba(255, 255, 255, 0.035);
  --border: rgba(246, 198, 89, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #e8e4da;
  --muted: #9a94a8;
  --faint: #6a6478;
  --gold: #f6c659;
  --peach: #fda085;
  --grad: linear-gradient(92deg, #f6d365, #fda085);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 860px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }

/* ---- nav ---- */
nav.site {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  padding: 0.4rem 0 0.9rem; font-size: 0.9rem;
}
nav.site a { color: var(--muted); text-decoration: none; transition: color .15s; }
nav.site a:hover { color: var(--peach); }
nav.site a.here { color: var(--gold); font-weight: 600; }

/* ---- hero ---- */
.hero {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 5;
  max-height: 34vh;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }
.hero img, .hero canvas, .hero .veil { border-radius: inherit; }
.hero { isolation: isolate; transform: translateZ(0); }

.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,16,28,0.15) 0%, rgba(18,16,28,0.78) 82%, rgba(18,16,28,0.94) 100%);
}
.hero .title {
  position: absolute; left: 0; right: 0; bottom: 0.8rem; text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.05;
}
.hero .sub { color: var(--muted); font-size: 1rem; margin-top: 0.1rem; }
.hero .kao { color: var(--text); font-size: 1.2rem; margin-top: 0.35rem; }

/* ---- prose ---- */
.bio { color: var(--text); text-align: center; max-width: 620px; margin: 0 auto 0.6rem; font-size: 0.97rem; }
.story {
  color: var(--muted); font-size: 0.9rem; text-align: center; max-width: 620px; margin: 0 auto 1.25rem;
}
.story b { color: var(--gold); font-weight: 600; }
a { color: var(--peach); }

/* ---- link grid ---- */
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.5rem; }
.links a {
  color: var(--peach); text-decoration: none; font-size: 0.95rem;
  padding: 0.55rem 1.1rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--panel); transition: all .15s;
}
.links a:hover { background: rgba(246, 198, 89, 0.09); border-color: var(--gold); transform: translateY(-1px); }

/* ---- section cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.card {
  border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.85rem 1rem;
  background: var(--panel);
}
.card h3 { font-size: 0.95rem; color: var(--gold); margin-bottom: 0.3rem; font-weight: 600; }
.card p { font-size: 0.85rem; color: var(--muted); }
.card a { text-decoration: none; }

/* ---- footer ---- */
footer {
  text-align: center; color: var(--faint); font-size: 0.8rem; margin-top: 1.5rem;
  border-top: 1px solid var(--border-soft); padding-top: 1.25rem;
}
footer a { color: var(--muted); }

/* ---- likes page ---- */
.page-title { text-align: center; margin: 0.5rem 0 0.25rem; font-size: 1.8rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.page-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.post {
  border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 0.9rem 1rem; margin-bottom: 0.8rem; background: var(--panel);
}
.post .author { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.4rem; }
.post .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); }
.post .name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.post .handle { color: var(--faint); font-size: 0.82rem; }
.post .when { color: var(--faint); font-size: 0.78rem; margin-left: auto; }
.post .text { font-size: 0.95rem; white-space: pre-wrap; word-wrap: break-word; }
.post .text a { color: var(--peach); }
.post img.embed { max-width: 100%; border-radius: 8px; margin-top: 0.6rem; border: 1px solid var(--border-soft); }
.post .quote {
  border: 1px solid var(--border-soft); border-left: 2px solid var(--gold);
  border-radius: 8px; padding: 0.6rem 0.8rem; margin-top: 0.6rem; font-size: 0.88rem; color: var(--muted);
}
.post .ext {
  display: block; border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 0.6rem 0.8rem; margin-top: 0.6rem; text-decoration: none;
}
.post .ext .t { color: var(--text); font-size: 0.88rem; font-weight: 500; }
.post .ext .d { color: var(--muted); font-size: 0.8rem; }
.post .ext .u { color: var(--faint); font-size: 0.75rem; }
.post .open { font-size: 0.78rem; color: var(--faint); text-decoration: none; }
.post .open:hover { color: var(--peach); }

.loading, .end-note { text-align: center; color: var(--faint); padding: 1.5rem; font-size: 0.9rem; }
button.more {
  display: block; margin: 1rem auto 0; padding: 0.6rem 1.6rem;
  background: var(--panel); color: var(--peach); border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.92rem; cursor: pointer; transition: all .15s;
}
button.more:hover { background: rgba(246, 198, 89, 0.09); border-color: var(--gold); }

/* wide-but-short viewports (laptop fullscreen with browser chrome): tuck everything in */
@media (min-width: 1100px) and (max-height: 980px) {
  .hero { max-height: 26vh; margin-bottom: 0.9rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero .kao { font-size: 1rem; margin-top: 0.15rem; }
  .bio { font-size: 0.92rem; margin-bottom: 0.45rem; }
  .story { font-size: 0.85rem; margin-bottom: 0.9rem; }
  .links { margin-bottom: 1rem; }
  .links a { padding: 0.45rem 0.95rem; font-size: 0.9rem; }
  .card p { font-size: 0.82rem; }
  nav.site { padding: 0.25rem 0 0.6rem; }
  footer { margin-top: 1rem; padding-top: 0.8rem; }
  .container { padding-bottom: 1rem; }
}
