/* This stylesheet was created with assistance from AI tools. */

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

/* ---- Theme variables ---- */

:root {
  --bg: #f4f1ec;
  --text: #2a2521;
  --muted: #7d746b;
  --accent: #2e7d68;
  --accent-hover: #1b5c4b;
  --border: #d9d0c7;
  --card-bg: #faf8f5;
  --tag-bg: #e8e2da;
  --tag-text: #4a4340;
  --dot: #3cbf8e;
  --warm: #b8803a;
  --warm-hover: #9a6a2e;
  --warm-light: #f5ede2;
  --project-hover: #faf5ee;
  --section-accent: #b8803a;

  --font-body: "SF Mono", "Cascadia Code", "Fira Code", "JetBrains Mono",
    Consolas, "Courier New", monospace;
  --font-heading: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #161311;
    --text: #ddd6ce;
    --muted: #8a8078;
    --accent: #5bb89e;
    --accent-hover: #78ccb4;
    --border: #2e2924;
    --card-bg: #1e1b18;
    --tag-bg: #2c2722;
    --tag-text: #bfb5a9;
    --dot: #3cbf8e;
    --warm: #d4a05c;
    --warm-hover: #e0b574;
    --warm-light: #2a2218;
    --project-hover: #28211a;
    --section-accent: #d4a05c;
  }
}

:root.dark {
  --bg: #161311;
  --text: #ddd6ce;
  --muted: #8a8078;
  --accent: #5bb89e;
  --accent-hover: #78ccb4;
  --border: #2e2924;
  --card-bg: #1e1b18;
  --tag-bg: #2c2722;
  --tag-text: #bfb5a9;
  --dot: #3cbf8e;
  --warm: #d4a05c;
  --warm-hover: #e0b574;
  --warm-light: #2a2218;
  --project-hover: #28211a;
  --section-accent: #d4a05c;
}

:root.light {
  --bg: #f4f1ec;
  --text: #2a2521;
  --muted: #7d746b;
  --accent: #2e7d68;
  --accent-hover: #1b5c4b;
  --border: #d9d0c7;
  --card-bg: #faf8f5;
  --tag-bg: #e8e2da;
  --tag-text: #4a4340;
  --dot: #3cbf8e;
  --warm: #b8803a;
  --warm-hover: #9a6a2e;
  --warm-light: #f5ede2;
  --project-hover: #faf5ee;
  --section-accent: #b8803a;
}

/* ---- Base ---- */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.75;
  font-size: 0.925rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1200px) {
  .container {
    max-width: 800px;
  }
}

/* ---- Theme toggle ---- */

.theme-toggle {
  position: absolute;
  top: 3rem;
  right: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.icon-sun { display: block; }
.icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not(.light) .icon-sun { display: none; }
  :root:not(.light) .icon-moon { display: block; }
}
:root.dark .icon-sun { display: none; }
:root.dark .icon-moon { display: block; }
:root.light .icon-sun { display: block; }
:root.light .icon-moon { display: none; }

/* ---- Header ---- */

.header {
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.name {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.status-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.status a {
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 6px var(--dot);
  flex-shrink: 0;
}

/* ---- Bio line ---- */

.status.bio {
  margin-top: 1.25rem;
}

/* ---- Cards ---- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card p {
  line-height: 1.75;
}

.card p + p {
  margin-top: 0.75rem;
}

/* ---- Tags ---- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---- Section blocks (Projects, Ongoing) ---- */

.section-block {
  margin-top: 2rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--section-accent);
}

/* ---- Project cards ---- */

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
  background: var(--project-hover);
  text-decoration: none;
  color: var(--text);
}

.project-card:hover .project-arrow {
  transform: translateX(3px);
}

.project-card:hover .project-title {
}

.project-card-static {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.project-info {
  flex: 1;
}

.project-title {
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.project-arrow {
  font-size: 1.25rem;
  color: var(--warm);
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

/* ---- Utility ---- */

.muted {
  color: var(--muted);
}

/* ---- Links ---- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

/* ---- Footer ---- */

.footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

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

/* ---- Coming soon page ---- */

.coming-soon-page {
  padding-top: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--accent);
}

.coming-soon-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.coming-soon-page .muted {
  font-size: 1rem;
}

