* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 102, 204, 0.15);
  color: #0066cc;
}

::-moz-selection {
  background: rgba(0, 102, 204, 0.15);
  color: #0066cc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: #2c2c2c;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
article {
  font-family: Georgia, "Times New Roman", Times, serif;
}

h1,
h2 {
  font-weight: normal;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.8em;
  margin-top: 30px;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 15px;
}

ul {
  padding-left: 20px;
}

img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom: 1px solid #0066cc;
}

a:focus {
  outline: 2px solid rgba(0, 102, 204, 0.3);
  outline-offset: 2px;
  border-radius: 1px;
}

.date {
  color: #666;
  font-style: italic;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.nav a {
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #111111;
  border-bottom: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav a:hover {
  background-color: rgba(0, 0, 0, 0.06);
  border-bottom: 0;
}

.nav a[aria-current="page"] {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.08);
  border-bottom: 0;
}

.nav a:focus {
  outline: none;
}

.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: #222222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 1000;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.content {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dark body {
  background: #000000;
  color: #e6e6e6;
}

.dark a {
  color: #66b2ff;
}

.dark a:hover {
  border-bottom-color: #66b2ff;
}

.dark .nav a {
  color: #ffffff;
  border-bottom: 0;
}
.dark .nav a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: transparent;
}

.dark .nav a[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.18);
}

.dark img {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.dark ::selection {
  background: rgba(102, 178, 255, 0.2);
  color: #66b2ff;
}

.dark .theme-toggle {
  background: rgba(0, 0, 0, 0.35);
  color: #e6e6e6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.hl {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.hl::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 0.1em;
  bottom: 0.25em;
  background: rgba(255, 255, 0, 0.45);
  border-radius: 8px;
  transform: rotate(-2.5deg) skew(1.5deg) scaleY(0.83);
  filter: blur(1.4px) contrast(105%);
  z-index: -1;
  clip-path: polygon(
    0% 10%,
    3% 5%,
    7% 15%,
    12% 0%,
    18% 8%,
    25% 2%,
    33% 12%,
    40% 3%,
    50% 7%,
    60% 0%,
    70% 10%,
    80% 2%,
    88% 8%,
    94% 4%,
    100% 10%,
    100% 90%,
    96% 94%,
    90% 85%,
    83% 100%,
    74% 92%,
    64% 97%,
    55% 88%,
    47% 95%,
    35% 90%,
    25% 97%,
    15% 88%,
    5% 95%,
    0% 90%
  );
}
.hl::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -3px;
  top: 0.28em;
  bottom: 0.08em;
  background: repeating-linear-gradient(
    175deg,
    rgba(255, 255, 120, 0.3) 0px,
    rgba(255, 255, 120, 0.3) 2px,
    rgba(255, 255, 100, 0.15) 4px
  );
  border-radius: 12px;
  transform: rotate(1.5deg) skew(-1.2deg) scaleY(0.88);
  z-index: -2;
  filter: blur(2px);
  clip-path: polygon(
    0% 12%,
    4% 0%,
    9% 8%,
    14% 2%,
    22% 10%,
    30% 5%,
    38% 15%,
    45% 4%,
    55% 10%,
    63% 3%,
    72% 10%,
    80% 0%,
    88% 6%,
    94% 3%,
    100% 8%,
    100% 88%,
    95% 95%,
    88% 83%,
    80% 100%,
    70% 90%,
    60% 97%,
    52% 87%,
    45% 95%,
    35% 90%,
    27% 95%,
    18% 87%,
    8% 93%,
    0% 88%
  );
}
.dark .hl::before {
  background: rgba(255, 210, 0, 0.35);
  filter: blur(1.4px) contrast(110%);
}
.dark .hl::after {
  background: repeating-linear-gradient(
    175deg,
    rgba(255, 215, 64, 0.28) 0px,
    rgba(255, 215, 64, 0.28) 2px,
    rgba(255, 193, 7, 0.12) 4px
  );
}

.experience-list {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.experience-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eaeaea;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  row-gap: 4px;
}

.experience-list li:last-child {
  border-bottom: none;
}

.experience-list .role {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.experience-list .dates {
  color: #666;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.experience-list .summary {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #555;
  font-size: 0.96em;
}

.dark .experience-list li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.dark .experience-list .dates {
  color: rgba(255, 255, 255, 0.7);
}
.dark .experience-list .summary {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  .experience-list li {
    grid-template-columns: 1fr;
  }
  .experience-list .dates {
    margin-top: 2px;
  }
}

.watercolor body {
  background-color: #faf7f1;
  color: #2b2a28;
  background-image: radial-gradient(1200px 800px at 8% 12%, rgba(121, 167, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 85% 18%, rgba(255, 174, 188, 0.18), transparent 60%),
    radial-gradient(900px 620px at 25% 85%, rgba(168, 236, 195, 0.16), transparent 60%),
    radial-gradient(1400px 900px at 50% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
  background-attachment: fixed;
}

.watercolor a {
  color: #3b6ea9;
}

.watercolor a:hover {
  border-bottom-color: #3b6ea9;
}

.watercolor a:focus {
  outline: 2px solid rgba(59, 110, 169, 0.3);
  outline-offset: 2px;
}

.watercolor .nav a {
  color: #1f2428;
  border-bottom: 0;
}

.watercolor .nav a:hover {
  background-color: rgba(59, 110, 169, 0.08);
  border-bottom: 0;
}

.watercolor .nav a[aria-current="page"] {
  background-color: rgba(59, 110, 169, 0.12);
  border-bottom: 0;
}

.watercolor ::selection {
  background: rgba(59, 110, 169, 0.18);
  color: #2b2a28;
}

.watercolor .theme-toggle {
  background: rgba(255, 255, 255, 0.55);
  color: #2b2a28;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 22px rgba(61, 95, 128, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.watercolor img {
  box-shadow: 0 6px 24px rgba(59, 110, 169, 0.15);
  border-radius: 6px;
}

.watercolor .experience-list li {
  border-bottom-color: rgba(31, 36, 40, 0.08);
}

.watercolor .experience-list .dates {
  color: #6b6e72;
}

.watercolor .experience-list .summary {
  color: #4e5358;
}

.watercolor .hl::before {
  background: rgba(255, 194, 120, 0.45);
  filter: blur(1.2px) contrast(104%);
}

.watercolor .hl::after {
  background: repeating-linear-gradient(
    175deg,
    rgba(255, 210, 150, 0.28) 0px,
    rgba(255, 210, 150, 0.28) 2px,
    rgba(255, 185, 120, 0.12) 4px
  );
}

.watercolor {
  position: relative;
}

.watercolor body {
  position: relative;
  overflow-x: hidden;
  animation: wcFlow 28s ease-in-out infinite alternate;
}

.watercolor body::before,
.watercolor body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.watercolor body::before {
  background-image: radial-gradient(42% 28% at 12% 16%, rgba(121, 167, 255, 0.26), transparent 70%),
    radial-gradient(36% 26% at 84% 20%, rgba(255, 174, 188, 0.26), transparent 70%),
    radial-gradient(48% 32% at 28% 78%, rgba(168, 236, 195, 0.22), transparent 70%),
    radial-gradient(30% 22% at 76% 84%, rgba(255, 221, 128, 0.18), transparent 75%),
    radial-gradient(12px 12px at 18% 28%, rgba(59, 110, 169, 0.2), transparent 70%),
    radial-gradient(10px 10px at 72% 36%, rgba(255, 174, 188, 0.18), transparent 70%),
    radial-gradient(8px 8px at 42% 72%, rgba(168, 236, 195, 0.18), transparent 70%),
    radial-gradient(14px 14px at 64% 78%, rgba(255, 200, 140, 0.18), transparent 70%);
  mix-blend-mode: multiply;
  filter: blur(12px) saturate(112%);
  opacity: 0.9;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: wcFloat 24s ease-in-out infinite alternate;
}

.watercolor body::after {
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.015) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.012) 0 3px, transparent 3px 6px);
  mix-blend-mode: overlay;
  opacity: 0.6;
  filter: saturate(105%);
}

@keyframes wcFloat {
  0% {
    transform: translate3d(-1%, -0.5%, 0) rotate(-0.2deg) scale(1);
  }
  100% {
    transform: translate3d(1.2%, 0.8%, 0) rotate(0.25deg) scale(1.015);
  }
}

@keyframes wcFlow {
  0% {
    background-position: 0% 0%, 100% 0%, 20% 100%, 50% 50%;
  }
  100% {
    background-position: 4% 3%, 96% 4%, 26% 96%, 50% 50%;
  }
}

.watercolor a {
  text-decoration: none;
  border-bottom: 0;
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 0.4s ease, color 0.2s ease;
}

.watercolor a:hover {
  background-size: 100% 2px;
}

.watercolor h1,
.watercolor h2 {
  position: relative;
  text-shadow: 0 2px 12px rgba(59, 110, 169, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
}

.watercolor h1::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -12px;
  top: 58%;
  height: 0.65em;
  background: radial-gradient(70% 180% at 30% 50%, rgba(255, 200, 140, 0.38), transparent 60%),
    radial-gradient(80% 220% at 70% 50%, rgba(121, 167, 255, 0.28), transparent 60%);
  transform: rotate(-1.6deg);
  filter: blur(5px) saturate(110%);
  z-index: -1;
}

.watercolor h2::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -8px;
  top: 62%;
  height: 0.45em;
  background: radial-gradient(65% 180% at 35% 50%, rgba(168, 236, 195, 0.3), transparent 60%),
    radial-gradient(70% 200% at 72% 50%, rgba(255, 174, 188, 0.24), transparent 60%);
  transform: rotate(1.2deg);
  filter: blur(4px) saturate(108%);
  z-index: -1;
}

 

.watercolor .content {
  position: relative;
  z-index: 1;
}

.watercolor .content::before,
.watercolor .content::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: multiply;
}

.watercolor .content::before {
  left: -48px;
  top: -36px;
  width: 240px;
  height: 180px;
  background-image: radial-gradient(70% 60% at 40% 40%, rgba(121, 167, 255, 0.22), transparent 62%),
    radial-gradient(60% 50% at 70% 60%, rgba(255, 174, 188, 0.22), transparent 60%),
    radial-gradient(50% 40% at 30% 70%, rgba(255, 200, 140, 0.18), transparent 60%);
  filter: blur(10px) saturate(108%);
  transform: rotate(-6deg);
  opacity: 0.75;
}

.watercolor .content::after {
  right: -56px;
  bottom: -48px;
  width: 260px;
  height: 200px;
  background-image: radial-gradient(70% 60% at 55% 45%, rgba(168, 236, 195, 0.2), transparent 60%),
    radial-gradient(60% 50% at 30% 60%, rgba(121, 167, 255, 0.22), transparent 60%),
    radial-gradient(50% 40% at 70% 30%, rgba(255, 174, 188, 0.2), transparent 60%);
  filter: blur(10px) saturate(108%);
  transform: rotate(5deg);
  opacity: 0.7;
}

.watercolor .nav a {
  position: relative;
}

.watercolor .nav a::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4px;
  height: 6px;
  background: radial-gradient(60% 180% at 50% 60%, rgba(121, 167, 255, 0.22), transparent 70%),
    radial-gradient(40% 140% at 40% 40%, rgba(255, 200, 140, 0.18), transparent 70%);
  border-radius: 8px;
  opacity: 0;
  transform: rotate(-2deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.watercolor .nav a:hover::after,
.watercolor .nav a[aria-current="page"]::after {
  opacity: 1;
  transform: rotate(0deg);
}

.watercolor .experience-list .role::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 200, 140, 0.9), rgba(255, 200, 140, 0) 60%),
    radial-gradient(circle at 60% 60%, rgba(121, 167, 255, 0.5), rgba(121, 167, 255, 0) 65%);
  transform: rotate(-12deg);
  vertical-align: baseline;
  filter: blur(0.2px);
}

.watercolor .theme-toggle:hover {
  transform: rotate(-3deg) scale(1.05);
}

.watercolor .theme-toggle:active {
  transform: rotate(-6deg) scale(0.98);
}
