summaryrefslogtreecommitdiff
path: root/style.css
blob: 9dee0b5285176ecc3245a5571c777d7694add123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  /* ── Reset & base ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg:      #ffffff;
    --fg:      #111111;
    --muted:   #666666;
    --accent:  #0057ff;
    --max-w:   640px;
    --gap:     1.5rem;
  }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 3rem 1.25rem;
  }

  /* ── Layout ── */
  #app {
    max-width: var(--max-w);
    margin: 0 auto;
  }

  /* ── Nav ── */
  nav {
    margin-bottom: 3rem;
    display: flex;
    gap: 1.25rem;
  }

  nav a {
    color: var(--muted);
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: color 0.15s;
  }

  nav a:hover,
  nav a.active { color: var(--fg); }

  /* ── Page sections ── */
  .page { display: none; }
  .page.active { display: block; }

  h1 {
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 1rem;
  }

  p { margin-bottom: var(--gap); }

  a { color: var(--accent); }

  /* ── Blog list ── */
  .post-list { list-style: none; }

  .post-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
  }

  .post-list a {
    text-decoration: none;
    color: var(--fg);
  }

  .post-list a:hover { text-decoration: underline; }

  .post-date {
    color: var(--muted);
    font-family: system-ui, sans-serif;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* ── Mobile ── */
  @media (max-width: 480px) {
    body { padding: 2rem 1rem; }
    .post-list li { flex-direction: column; gap: 0.15rem; }
  }