:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --muted: #5f5f5f;
  --accent: #c4ef17;
  --accent-text: #1c1c1c; /* Text on accent color */
  --line: #e3e6dd;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 20px 60px rgba(29, 26, 23, 0.08);
}

body.dark-mode {
  color-scheme: dark;
  --bg: #1c1c1c;
  --surface: #252525;
  --ink: #ffffff;
  --muted: #a0a0a0;
  --accent: #C4EF17;
  --accent-text: #1c1c1c;
  --line: #333333;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(196, 239, 23, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(28, 28, 28, 0.05), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(196, 239, 23, 0.06), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

body.dark-mode::before {
  background:
    radial-gradient(circle at 20% 10%, rgba(196, 239, 23, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(196, 239, 23, 0.05), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(196, 239, 23, 0.08), transparent 55%);
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  margin: 0;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  width: min(800px, 100% - 48px);
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  justify-content: flex-end;
  padding: 32px 0;
}

.theme-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.bio {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.primary-links {
  display: flex;
  gap: 24px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}

.primary-links a {
  border-bottom: 1px solid transparent;
}

.primary-links a:hover {
  border-bottom-color: var(--accent);
}

/* Featured Tool */
.featured-section {
  margin: 60px 0;
}

.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}

.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none; /* Reset link style */
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.tool-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tool-info p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.tool-card:hover .arrow-icon {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Utility */
.hidden {
  display: none;
}
