/* Simple Calendar — mini-site styles. No external dependencies. */

:root {
  --accent: #1a73e8;
  --accent-strong: #1669d8;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5a6270;
  --border: #e3e8f0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 16px;
  --maxw: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --text: #e7eaf0;
    --muted: #9aa3b2;
    --border: #262b34;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.nav a { margin-left: 20px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 64px 20px 40px; }
.hero .icon { width: 96px; height: 96px; margin: 0 auto 22px; display: block; }
.hero h1 { font-size: 2.4rem; margin: 0 0 8px; letter-spacing: -.02em; }
.hero .sub { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.badge {
  font-size: .82rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; background: var(--surface);
}

/* ---------- Sections ---------- */
section { padding: 36px 0; }
h2 { font-size: 1.6rem; letter-spacing: -.01em; margin: 0 0 6px; }
.section-intro { color: var(--muted); margin: 0 0 26px; }

/* ---------- Feature grid ---------- */
.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card .emoji { font-size: 1.5rem; line-height: 1; }
.card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Privacy callout ---------- */
.callout {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius);
  padding: 22px 24px;
}
.callout h2 { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 11px 20px; border-radius: 10px; font-weight: 600;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }

/* ---------- Article (privacy) ---------- */
.article { padding: 40px 0 20px; }
.article h1 { font-size: 2rem; margin: 0 0 4px; }
.article .meta { color: var(--muted); margin: 0 0 28px; font-size: .92rem; }
.article h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.article h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.article p, .article li { color: var(--text); }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article .note {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px; margin: 16px 0; color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px; padding: 28px 0;
  color: var(--muted); font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .hero h1 { font-size: 2rem; }
  .nav a { margin-left: 14px; }
}

/* ---------- Projects (home / portfolio) ---------- */
.projects {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.project:hover {
  transform: translateY(-3px);
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.project .top { display: flex; align-items: center; gap: 14px; }
.project .logo { width: 50px; height: 50px; flex: 0 0 50px; }
.project h3 { margin: 0 0 4px; font-size: 1.15rem; }
.project .top p { margin: 0; color: var(--muted); font-size: .94rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag {
  font-size: .78rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.project .go { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ---------- Downloads ---------- */
.downloads {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.download {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.download:hover {
  transform: translateY(-3px);
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.download .dl-icon { font-size: 2rem; line-height: 1; flex: 0 0 auto; }
.download .dl-body { flex: 1 1 auto; }
.download h3 { margin: 0 0 2px; font-size: 1.05rem; }
.download p { margin: 0; color: var(--muted); font-size: .9rem; }
.download .dl-go { color: var(--accent); font-weight: 700; font-size: 1.5rem; flex: 0 0 auto; }
.download-note { color: var(--muted); font-size: .88rem; margin: 16px 0 0; }
