/* Ganhe Studio — 單一樣式表，無外部相依（字型除外） */

:root {
  /* 冷調墨綠：河水與墨。中性色帶綠偏移，不是純灰。 */
  --bg:     #f7f8f7;
  --surface:#eef1ef;
  --fg:     #101614;
  --muted:  #5e6a66;
  --rule:   #dde3e0;
  --accent: #1d6b5a;

  --display: "Instrument Serif", "Songti TC", "Noto Serif TC", Georgia, serif;
  --body:    "Public Sans", ui-sans-serif, system-ui, "Noto Sans TC",
             "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:     #0d1210;
    --surface:#141b18;
    --fg:     #e8eeeb;
    --muted:  #8b9994;
    --rule:   #232d2a;
    --accent: #5fbfa4;
  }
}

:root[data-theme="dark"] {
  --bg:     #0d1210;
  --surface:#141b18;
  --fg:     #e8eeeb;
  --muted:  #8b9994;
  --rule:   #232d2a;
  --accent: #5fbfa4;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 10;
  background: var(--fg); color: var(--bg);
  padding: .6rem 1rem; border-radius: .3rem;
}

/* 小型大寫標籤：eyebrow、區塊標題、tags */
.label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- header / footer ---------- */

header.site,
footer.site {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.mark {
  font-family: var(--display);
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: -.01em;
}
.mark span { color: var(--muted); margin-left: .3em; }

header.site nav {
  display: flex;
  gap: 1.5rem;
  font-size: .93rem;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
header.site nav a:hover { color: var(--fg); }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .8rem;
}
footer.site p { margin: 0; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

/* ---------- sections ---------- */

main { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }

.hero { padding: 5rem 0 5.5rem; }

.hero .label { display: block; margin-bottom: 1.5rem; }

h1 {
  font-family: var(--display);
  margin: 0 0 1.75rem;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 400;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 33rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: .68rem 1.4rem;
  border-radius: 2rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  transition: opacity .15s, border-color .15s;
}
.btn:hover { opacity: .85; }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn.ghost:hover { border-color: var(--fg); opacity: 1; }

.band {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}
.band > h2 { margin: 0 0 2rem; }

/* ---------- 作品：年份是真的資料，所以用等寬對齊 ---------- */

ul.work { list-style: none; margin: 0; padding: 0; }

ul.work li {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: .15rem 1.75rem;
}
ul.work li:first-child { border-top: 0; padding-top: 0; }

.year {
  grid-row: 1 / span 3;
  font-family: var(--mono);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-top: .45rem;
}

ul.work h3 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -.01em;
}
ul.work p { margin: .3rem 0 0; color: var(--muted); }
ul.work .label { display: block; margin-top: .5rem; }

/* ---------- 服務 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
}
.grid h3 {
  font-family: var(--display);
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  font-weight: 400;
}
.grid p { margin: 0; color: var(--muted); }

/* ---------- 聯絡 ---------- */

.contact .big {
  font-family: var(--display);
  margin: 1.75rem 0 0;
  font-size: clamp(1.7rem, 5.5vw, 3rem);
  letter-spacing: -.015em;
  line-height: 1.15;
}
.contact .big a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.contact .big a:hover { border-bottom-color: var(--accent); }

@media (max-width: 34rem) {
  ul.work li { grid-template-columns: 1fr; }
  .year { grid-row: auto; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
