/* SynesisLab — minimalist. type, whitespace, hairlines. that's it. */

:root {
  --bg: #fafaf9;
  --text: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --text: #e4e4e7;
    --muted: #8f8f96;
    --line: #2a2a2e;
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
.link {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover { text-decoration-color: var(--text); }

::selection { background: var(--text); color: var(--bg); }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 80px;
}
.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}
.site-header nav a {
  color: var(--muted);
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--text); }

#lang-toggle {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s;
}
#lang-toggle:hover { color: var(--text); }

/* ---------- hero ---------- */

.greek {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.sub {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 22px;
}

.meta-line {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- sections ---------- */

section { padding: 64px 0 0; }

h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- projects ---------- */

.project { padding: 20px 0; }
.project + .project { border-top: 1px solid var(--line); }

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.project-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.project-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.active { background: #22c55e; }
.dot.archived { background: var(--line); }

.desc {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 58ch;
  margin-bottom: 10px;
}

.meta {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- philosophy ---------- */

.pillar {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 60ch;
  margin-bottom: 14px;
}
.pillar strong { color: var(--text); font-weight: 600; }

/* ---------- about ---------- */

.about p {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 16px;
}
.links-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- footer ---------- */

footer {
  margin-top: 72px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.tiny {
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-top: 6px;
}

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  .site-header { padding: 24px 0 56px; }
  .site-header nav { gap: 14px; }
  section { padding: 52px 0 0; }
}