:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --text: #f1f1f1;
  --muted: #a6a6a6;
  --line: #343434;
}

body.light {
  --bg: #efefef;
  --surface: #ffffff;
  --text: #121212;
  --muted: #4a4a4a;
  --line: #b9b9b9;
}

.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", var(--font-awesome, sans-serif) !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  padding: 1.2rem 0;
}

a,
button {
  color: inherit;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.stack {
  display: grid;
  gap: 1rem;
}

.row {
  display: flex;
  align-items: center;
}

.between {
  justify-content: space-between;
}

.gap {
  gap: 1rem;
}

.pad {
  padding: 1rem;
}

.bordered {
  border: 1px solid var(--line);
  background: var(--surface);
}

.site-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.intro p:last-child {
  color: var(--muted);
}

main {
  padding: 1rem 0 2rem;
}

.section-block {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
}

h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.grid {
  display: grid;
  gap: 0.8rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) {
  .grid-2, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-1, .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.9rem;
}

.card h3 {
  font-size: 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 0.55rem;
}

.card ul {
  margin-left: 1rem;
}

.contact-card a {
  text-decoration: underline;
}

.contact-card .meta i {
  margin-right: 0.4rem;
  width: 1.2em;
  text-align: center;
}

.mono,
.toggle {
  font-family: "IBM Plex Mono", monospace;
}

.toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

footer {
  margin-bottom: 1rem;
}

.bordered-bottom {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
  margin-bottom: 1rem;
}

.bordered-bottom h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.5rem;
}

.month-header h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.goals-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.nav-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover:not(:disabled) {
  background: var(--line);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.current-month-display {
  flex: 1;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.current-month-display .label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.slider-container {
  min-height: 200px;
  position: relative;
  transition: opacity 0.3s ease;
}

.slider-container.transitioning {
  opacity: 0;
}

.toggle:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}
