:root {
  color-scheme: light;
  --bg: #f3f7f5;
  --paper: #ffffff;
  --ink: #191917;
  --muted: #626b66;
  --line: #d1dbd7;
  --teal: #126b62;
  --red: #b84038;
  --yellow: #e0b742;
  --green: #687b3a;
  --shadow: 0 22px 70px rgba(31, 50, 43, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 107, 98, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(25, 25, 23, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    "PingFang TC",
    system-ui,
    sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(25, 25, 23, 0.1);
  background: rgba(243, 247, 245, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 92px) 0 clamp(30px, 4vw, 56px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

p {
  overflow-wrap: anywhere;
}

.hero-copy > p:not(.kicker) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #45413b;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  border: 2px solid var(--ink);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(56px, 9vw, 100px);
}

.overview-item {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.overview-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.overview-item strong {
  display: block;
  margin-top: 22px;
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  line-height: 1.15;
}

.section-block {
  padding: clamp(54px, 8vw, 92px) 0;
  border-top: 2px solid var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card,
.note-card,
.work-item,
.now-panel,
.about-block > p {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.project-card {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.status {
  padding: 3px 8px;
  border: 1px solid currentColor;
}

.status.active {
  color: var(--teal);
}

.status.parked {
  color: var(--green);
}

.project-card p,
.note-card p,
.work-item p {
  color: var(--muted);
}

.project-card p {
  margin: 12px 0 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  padding: 4px 8px;
  background: #e7efeb;
  color: #3e3a34;
  font-size: 0.78rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: start;
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.work-type {
  display: grid;
  width: 64px;
  min-height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 0.8rem;
  font-weight: 900;
}

.work-item p {
  margin: 6px 0 0;
}

.log-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.log-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.log-list time {
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 900;
}

.log-list p {
  margin: 5px 0 0;
  color: var(--muted);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  min-height: 210px;
  padding: 20px;
}

.note-label {
  margin: 0 0 28px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.note-card p:last-child {
  margin: 10px 0 0;
}

.now-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
}

.now-panel ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.about-block > p {
  max-width: 840px;
  margin: 0;
  padding: 24px;
  color: #45413b;
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .now-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .overview,
  .project-grid,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    width: 100%;
  }

  .nav a {
    padding-inline: 8px;
    font-size: 0.88rem;
  }

  .overview,
  .project-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy > p:not(.kicker) {
    font-size: 1rem;
  }

  .hero-visual img {
    aspect-ratio: 1 / 0.88;
  }

  .log-list li,
  .work-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
