:root {
  --bg: #f3f2ec;
  --surface: #ffffff;
  --border: #e3e1d6;
  --text-primary: #18181a;
  --text-secondary: #5c5b52;
  --text-muted: #93917f;
  --accent: #0f6e56;
  --accent-bg: #e1f5ee;
  --accent-text: #085041;
  --radius: 16px;
  --dot: rgba(15, 110, 86, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1f2225;
    --border: #2e3236;
    --text-primary: #f4f3ee;
    --text-secondary: #b6b4a8;
    --text-muted: #7c7b71;
    --accent: #5dcaa5;
    --accent-bg: #103029;
    --accent-text: #9fe1cb;
    --dot: rgba(93, 202, 165, 0.10);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--text-primary);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.sheet {
  width: 100%;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 5px 10px;
  border-radius: 999px;
}

.hero {
  margin-bottom: 22px;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.badge {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.badge-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.hero-text h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-text h1 .dot {
  color: var(--accent);
}

.hero-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 108px;
  box-shadow: 0 1px 2px rgba(20, 20, 18, 0.03);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 110, 86, 0.12);
}

.card:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}

.icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.icon-sm {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.icon-center {
  margin: 0 auto;
}

.arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.card h2 {
  margin: 14px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.card p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.card--blog .blog-title {
  color: var(--text-secondary);
}

.card--blog .blog-sub {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.card--resume {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.card--resume h2 {
  margin: 0;
}

.footer {
  margin-top: 14px;
  padding: 16px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.footer-copy {
  font-size: 11.5px;
  color: var(--text-muted);
}

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