/* Shared look aligned with Cursor Log Viewer */
:root {
  --ink: #2c3e50;
  --muted: #666;
  --line: #e0e0e0;
  --page: #f5f5f5;
  --card: #ffffff;
  --accent: #4a90e2;
  --accent-dark: #357abd;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--page);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.site-header {
  background: var(--gradient);
  color: #fff;
  padding: 28px 20px 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.site-header-inner {
  max-width: 840px;
  margin: 0 auto;
}

.site-brand {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.95;
}

.site-brand:hover {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

.site-header h1 {
  margin-top: 18px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.site-header .lede {
  margin-top: 10px;
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 36em;
}

.site-nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.95rem;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

.site-main {
  flex: 1;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
}

.card p + p {
  margin-top: 0.85em;
}

.card ul {
  margin: 0.85em 0 0 1.25em;
}

.card li + li {
  margin-top: 0.4em;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.app-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.app-list a {
  display: block;
  padding: 16px 18px;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.app-list a:hover {
  background: #eef3fb;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateX(4px);
}

.app-list .app-meta {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  background: #f8f9fa;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: #e9ecef;
  color: var(--ink);
}

.policy h2 {
  margin-top: 1.5em;
}

.policy h2:first-of-type {
  margin-top: 0;
}

.policy h3 {
  margin-top: 1.15em;
  font-size: 1.05rem;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  background: #fff;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}
