:root {
  color-scheme: light;
  --bg: #f6faf7;
  --surface: #ffffff;
  --text: #17231b;
  --muted: #5b685f;
  --line: #dce7df;
  --accent: #177a4f;
  --accent-strong: #0e5c3a;
  --accent-soft: #e3f5e9;
  --warning: #8b5a00;
  --warning-bg: #fff8df;
  --shadow: 0 16px 40px rgba(27, 72, 46, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(23, 122, 79, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
  flex: 0 0 32px;
  background: #fff url("assets/pickwho-logo.png") center / contain no-repeat;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 16px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--accent-strong);
}

.page-shell {
  padding: 56px 0 72px;
}

.hero {
  padding: 54px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -65px;
  top: -85px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.status-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid #ecd99c;
  border-radius: 12px;
  background: var(--warning-bg);
  color: #624100;
  font-size: 0.94rem;
}

.status-note strong {
  color: var(--warning);
}

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

.link-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(27, 72, 46, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: #9bc7ac;
  box-shadow: var(--shadow);
  color: var(--text);
}

.card-kicker {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.link-card h2 {
  margin: 8px 0;
  font-size: 1.3rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.card-action {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-strong);
  font-weight: 750;
}

.info-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-panel h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.doc-header {
  max-width: 850px;
  margin: 0 auto 26px;
}

.doc-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.doc-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.document {
  max-width: 850px;
  margin: 0 auto;
  padding: 42px clamp(22px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document h2 {
  margin: 2.4rem 0 0.7rem;
  padding-top: 0.4rem;
  font-size: 1.42rem;
}

.document h2:first-child {
  margin-top: 0;
}

.document h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
}

.document p,
.document ul,
.document ol {
  color: #334139;
}

.document ul,
.document ol {
  padding-left: 1.4rem;
}

.document li + li {
  margin-top: 0.45rem;
}

.document code {
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: #eef3ef;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.summary-box {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
}

.summary-box p {
  margin: 0;
  color: #244331;
}

.contact-box {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #b6d8c3;
  border-radius: 14px;
  background: #f3fbf6;
}

.contact-box h2,
.contact-box h3 {
  margin-top: 0;
}

.email {
  overflow-wrap: anywhere;
  font-weight: 750;
}

details {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfb;
}

summary {
  cursor: pointer;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  padding: 30px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .header-inner {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .page-shell {
    padding: 32px 0 52px;
  }

  .hero {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .hero::after {
    width: 150px;
    height: 150px;
    opacity: 0.65;
  }

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

  .link-card {
    min-height: 168px;
  }

  .document {
    border-radius: 16px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card {
    transition: none;
  }
}
