@charset "UTF-8";
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #448961;
  --green-dark: rgb(30, 94, 57);
  --green-mid: rgb(59, 199, 117);
  --bg: #eef1f5;
  --text-dark: #1a1a2e;
  --text-mid: #555;
  --line-color: rgba(0, 0, 0, 0.06);
}

body {
  font-family: "Space Mono", monospace;
  background-color: #e1d3bc;
  color: var(--text-dark);
  min-height: 100dvh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow-x: hidden;
  position: relative;
}
@media (max-width: 600px) {
  body {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    -ms-scroll-chaining: none;
        overscroll-behavior: none;
    -ms-touch-action: none;
        touch-action: none;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 28px, var(--line-color) 28px, var(--line-color) 29px);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 600px) {
  html {
    height: 100dvh;
    overflow: hidden;
  }
}
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  max-width: 700px;
  width: 100%;
  -webkit-animation: fadeUp 0.8s ease both;
          animation: fadeUp 0.8s ease both;
}

.photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 36px;
}
.photo-wrap::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  background: var(--green);
  z-index: -1;
}
.photo-wrap video,
.photo-wrap img {
  display: block;
  width: 200px;
  height: 250px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  border: 4px solid var(--green);
}

.loading-bar {
  position: absolute;
  bottom: -14px;
  left: 0;
  height: 3px;
  background: var(--green);
  width: 0%;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.name {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 14px;
}

.title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green-dark);
  margin-bottom: 28px;
}
.title span {
  color: var(--green);
  margin: 0 8px;
}

.bio {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  line-height: 1.9;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 48px;
}

.buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.btn {
  position: relative;
}
.btn span {
  font-family: "Space Mono", monospace;
  border: 3px solid var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -webkit-transform: translate(0px, 0px);
          transform: translate(0px, 0px);
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}
@media (max-width: 600px) {
  .btn span {
    padding: 16px;
  }
}
.btn::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 100%;
  height: 100%;
  background: var(--text-dark);
  z-index: -1;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}
.btn:hover span {
  -webkit-transform: translate(3px, 3px);
          transform: translate(3px, 3px);
}
.btn:hover::after {
  bottom: -3px;
  right: -3px;
}
.btn:active {
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
}
.btn:active::after {
  bottom: -3px;
  right: -3px;
}
.btn-primary span {
  background: var(--green);
  color: #fff;
  border-color: var(--text-dark);
}
.btn-primary::after {
  border-color: var(--green-dark);
}
.btn-secondary span {
  background: #d1d1d1;
  color: var(--text-dark);
}

.hint {
  margin-top: 48px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  opacity: 0.7;
  -webkit-animation: pulse 2.5s ease-in-out infinite;
          animation: pulse 2.5s ease-in-out infinite;
}
@media (max-width: 600px) {
  .hint {
    display: none;
  }
}

@-webkit-keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}
@-webkit-keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@media (pointer: coarse) {
  .hint::before {
    content: "← 左右滑動滑鼠 →";
  }
}
@media (pointer: fine) {
  .hint::before {
    content: "← 移動滑鼠看看 →";
  }
}