/* Angus Che — Project Hub */

:root {
  --bg: #e9e7e2;
  --ink: #1a1816;
  --muted: #5c574f;
  --faint: #8a847a;
  --accent: #1f5c57;
  --warm: #a67c52;
  --surface: #f3f1ec;
  --line: rgba(26, 24, 22, 0.12);
  --font-display: "Fraunces", "Noto Serif TC", serif;
  --font-body: "Noto Sans TC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(31, 92, 87, 0.12), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(166, 124, 82, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top,
.shell,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.15rem;
}

.top-note {
  font-size: 0.78rem;
  color: var(--faint);
}

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.intro {
  margin-bottom: 2.75rem;
  max-width: 34rem;
  animation: rise 0.7s ease both;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 1.35rem 1.3rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s ease, border-color 0.25s ease, background 0.25s ease;
  animation: rise 0.75s ease both;
}

.project:nth-child(1) { animation-delay: 0.05s; }
.project:nth-child(2) { animation-delay: 0.12s; }
.project:nth-child(3) { animation-delay: 0.19s; }
.project:nth-child(4) { animation-delay: 0.26s; }
.project:nth-child(5) { animation-delay: 0.33s; }
.project:nth-child(6) { animation-delay: 0.4s; }

.project:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 92, 87, 0.45);
  background: #f7f5f0;
}

.project.is-soon {
  opacity: 0.72;
  cursor: default;
}

.project.is-soon:hover {
  transform: none;
  border-color: var(--line);
  background: var(--surface);
}

.project-path {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--warm);
  margin-bottom: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.project-desc {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.1rem;
}

.project-status {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

.project-status.is-live {
  color: var(--accent);
}

.project-status.is-local,
.project-status.is-soon-badge {
  color: var(--faint);
}

.howto {
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  animation: rise 0.8s ease both;
  animation-delay: 0.3s;
}

.howto-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  margin-bottom: 0.85rem;
}

.howto-list {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.howto-list code {
  font-size: 0.85em;
  color: var(--ink);
}

.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  font-size: 0.78rem;
  color: var(--faint);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .shell {
    padding-top: 2.5rem;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
  }
}
