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

:root {
  --bg: #ffffff;
  --surface: #BFD1E5;
  --border: #CEDAE8;
  --text: #3D5A80;
  --text-muted: #6B8DB5;
  --accent: #3D5A80;
  --accent-hover: #8FB8DE;
  --kofi: #3D5A80;
  --kofi-hover: #8FB8DE;
}

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

#wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

nav, main, .support-btn {
  position: relative;
  z-index: 1;
}

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

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

/* ---- NAV ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

/* ---- MAIN CONTENT ---- */

main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
}

/* ---- HERO SECTION ---- */

.hero {
  position: relative;
  margin-bottom: 3rem;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ditto-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  filter: hue-rotate(200deg) saturate(0.5) brightness(1.1);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero h1 a {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

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

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.seal-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.5rem;
  transition: transform 0.3s;
}

.seal-icon {
  font-size: 1.5rem;
  border-bottom: 2px dashed var(--accent-hover);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.seal-toggle:hover .seal-icon {
  border-bottom-color: var(--accent);
}

.seal-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: inherit;
  letter-spacing: 0.03em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.seal-toggle:hover .seal-label {
  opacity: 1;
}

.seal-toggle:hover {
  transform: scale(1.1);
}

.seal-toggle[aria-expanded="true"] {
  transform: scale(1.1) rotate(-10deg);
}

.about-list {
  list-style: none;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease, margin-bottom 0.3s ease;
}

.about-list.open {
  max-height: 10rem;
  opacity: 1;
  margin-top: 1rem;
  margin-bottom: -1.5rem;
}

.about-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-list li::before {
  content: "(:3 っ)っ";
  margin-right: 0.5rem;
}

/* ---- SOCIALS ---- */

.socials {
  margin-bottom: 3rem;
}

.socials h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  overflow: visible;
}

.social-link:hover {
  border-color: var(--accent);
  background: rgba(61, 90, 128, 0.08);
  color: var(--text);
  transform: translateY(-2px);
}

.social-link .pop {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  color: var(--accent-hover);
  opacity: 0;
}

.business-email {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.business-email a {
  color: var(--text);
  font-weight: 500;
}

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

/* ---- TABS ---- */

.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ---- PROJECTS ---- */

.project-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---- BLOG ---- */

.blog-entry {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.blog-entry:last-child {
  border-bottom: none;
}

.blog-entry h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.blog-entry time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.blog-entry p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ---- EMPTY STATE ---- */

.empty {
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 0;
}

/* ---- SUPPORT BUTTON ---- */

.support-btn {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--kofi);
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 3rem;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(61, 90, 128, 0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.support-ascii {
  font-size: 0.875rem;
  opacity: 0.7;
  letter-spacing: 0.15em;
}

.support-btn:hover {
  background: #ffffff;
  color: var(--text);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 28px rgba(61, 90, 128, 0.25);
}

.support-btn:hover .support-ascii {
  opacity: 1;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  main {
    padding: 2rem 1.25rem 8rem;
  }

  nav ul {
    gap: 1.25rem;
    padding: 0.75rem 0;
  }

  nav {
    padding: 0 1.25rem;
  }
}
