:root {
  --bg:        #111410;
  --bg2:       #171a13;
  --bg3:       #1e2218;
  --border:    #2e3328;
  --border2:   #3d4434;
  --text:      #d4cfbc;
  --text-dim:  #7a7866;
  --text-mute: #4a4a3a;
  --accent:    #8fbc5a;
  --accent-dim:#4a6a28;
  --accent-bg: #1a2212;
  --amber:     #c8952a;
  --amber-bg:  #1e1a0e;
  --red:       #c04040;
  --glow:      rgba(143,188,90,0.12);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.75;
  min-height: 100vh;
  /* paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ── LAYOUT ── */
.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER ── */
header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: relative;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  font-family: 'Fira Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px var(--glow);
  text-decoration: none;
}

.site-name::before { content: '> '; color: var(--accent-dim); }

.header-status {
  font-family: 'Fira Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-mute);
  text-align: right;
  line-height: 2;
  letter-spacing: 0.03em;
}

.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  margin-right: 5px;
  vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
  50%       { opacity: 0.5; box-shadow: 0 0 2px var(--accent); }
}

/* ── BLINKING CURSOR ── */
.cursor {
  display: inline-block;
  width: 0.55em; height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── SECTION LABELS ── */
.section-label {
  font-family: 'Fira Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ABOUT ── */
.about-section {
  margin-bottom: 3.5rem;
}

.about-name {
  font-family: 'Bitter', serif;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.about-handle {
  font-family: 'Fira Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-dim);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.about-body p { margin-bottom: 0.9rem; }
.about-body p:last-child { margin-bottom: 0; }

.about-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border2);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.about-body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent-dim);
}

/* highlighted inline bits */
.about-body em {
  font-style: italic;
  color: var(--text);
}

/* ── TAGS / CHIPS ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.chip {
  font-family: 'Fira Mono', monospace;
  font-size: 0.65rem;
  padding: 0.25em 0.65em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ── ELSEWHERE ── */
.elsewhere {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.elsewhere-link {
  font-family: 'Fira Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.3em 0.8em;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg2);
  letter-spacing: 0.03em;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.elsewhere-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-bg);
}

/* ── DIVIDER ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 3rem;
}

/* ── LINKS SECTION ── */
.links-section { margin-bottom: 3.5rem; }

/* ═══ HOW TO ADD A LINK ═══════════════════════════════════════
   Copy one .link-entry block and fill in:
     href          → the URL
     .link-title   → display name
     .link-host    → short domain/source (shown dimmed)
     .link-desc    → one-line description (optional, can remove)
     .link-tag     → category label
     data-tag      → same tag, lowercase, used for filtering
   Tag colors: add class  tag-green / tag-amber / tag-red / tag-blue
   ════════════════════════════════════════════════════════════ */

.links-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.link-entry {
  background: var(--bg2);
  padding: 0.85rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  align-items: start;
  transition: background 0.12s;
  text-decoration: none;
  position: relative;
}

.link-entry:hover { background: var(--bg3); }

.link-entry::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.15s;
}
.link-entry:hover::before { background: var(--accent-dim); }

.link-main { min-width: 0; }

.link-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.link-title {
  font-family: 'Bitter', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.12s;
}
.link-entry:hover .link-title { color: var(--accent); }

.link-host {
  font-family: 'Fira Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.link-desc {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.link-tag {
  font-family: 'Fira Mono', monospace;
  font-size: 0.58rem;
  padding: 0.2em 0.55em;
  border-radius: 2px;
  white-space: nowrap;
  align-self: start;
  letter-spacing: 0.03em;
}

.tag-green { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-dim); }
.tag-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid #4a3a10; }
.tag-red   { background: #1e1010; color: var(--red); border: 1px solid #5a2020; }
.tag-blue  { background: #0e1520; color: #5a90c8; border: 1px solid #1e3050; }
.tag-dim   { background: var(--bg3); color: var(--text-mute); border: 1px solid var(--border); }

/* ── KISSA LINK ── */
.kissa-box {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg2);
  flex-wrap: wrap;
}

.kissa-left {
  font-size: 0.82rem;
  color: var(--text-mute);
  line-height: 1.55;
}

.kissa-left strong {
  font-family: 'Fira Mono', monospace;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.15rem;
}

.kissa-link {
  font-family: 'Fira Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.35em 0.9em;
  border: 1px solid var(--border);
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.kissa-link:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-bg); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-mono {
  font-family: 'Fira Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

.footer-caveat {
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  color: var(--text-mute);
}

/* ── FADE IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

header       { animation: fadeUp 0.45s ease both; }
.about-section { animation: fadeUp 0.45s ease 0.07s both; }
.links-section { animation: fadeUp 0.45s ease 0.14s both; }

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
  .link-entry { grid-template-columns: 1fr; }
  .link-tag { display: none; }
}
