:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --ink: #141414;
  --muted: #6b625a;
  --line: rgba(20, 20, 20, 0.13);
  --paper: #fffaf2;
  --paper-2: #ebe5dc;
  --forest: #1f4c40;
  --wine: #6e2736;
  --blue: #15395f;
  --gold: #b58a45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

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

main {
  min-height: 100vh;
}

.hero {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.68fr);
  gap: 24px;
  align-items: stretch;
  padding: 48px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.hero-copy,
.status-panel,
.project-card,
.ops {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.9);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
}

h2 {
  margin-top: 8px;
  font-size: 30px;
}

.lead {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions,
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.primary,
.secondary,
.link-grid a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
}

.primary {
  background: var(--ink);
  color: white;
}

.secondary,
.link-grid a {
  background: rgba(255, 255, 255, 0.58);
}

.status-panel {
  display: grid;
  gap: 1px;
  align-content: end;
  padding: 12px;
}

.status-panel > div {
  background: rgba(255, 255, 255, 0.58);
  padding: 20px;
}

.status-panel strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.status-panel p,
.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
}

.dot.ready,
.badge.ready {
  background: #1f7a54;
}

.dot.pending,
.badge.risk {
  background: #c4932c;
}

.dot.blocked {
  background: #a33b3b;
}

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

.project-card {
  overflow: hidden;
}

.project-visual {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: end start;
  overflow: hidden;
  padding: 22px;
  color: white;
  isolation: isolate;
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
}

.project-visual::after {
  border: 1px solid rgba(255, 255, 255, 0.22);
  inset: 18px;
}

.project-visual span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 0.95;
}

.project-visual.fashion::before {
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.16), rgba(20, 20, 20, 0.56)),
    linear-gradient(118deg, #2d2b28 0%, #7b3140 44%, #d8c7a3 100%);
}

.project-visual.auto::before {
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.58)),
    linear-gradient(118deg, #172533 0%, #24505a 48%, #c37b36 100%);
}

.project-visual.optical::before {
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.58)),
    linear-gradient(118deg, #10251f 0%, #1f4c40 50%, #b58a45 100%);
}

.project-body {
  padding: 22px;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  color: white;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
}

.badge.stable {
  background: var(--blue);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.ops {
  margin: 0 48px 48px;
  padding: 28px;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero,
  .project-grid {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .ops {
    margin: 0 22px 32px;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    padding: 24px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}
