:root {
  color-scheme: light;
  --forest: #083e35;
  --deep: #052b25;
  --orange: #ef6a36;
  --canvas: #f5f7ef;
  --ink: #09231f;
  --muted: #5b6e67;
  --line: rgba(8, 62, 53, 0.12);
  --soft: #e8f1eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(239, 106, 54, 0.12), transparent 24rem),
    var(--canvas);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
    "PingFang HK", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

header {
  background: linear-gradient(135deg, var(--forest), var(--deep));
  color: white;
  padding: max(22px, env(safe-area-inset-top)) 22px 22px;
}

header a {
  color: inherit;
  text-decoration: none;
}

.brand {
  width: min(760px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--orange);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32);
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 34px auto 54px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(5, 43, 37, 0.08);
}

.lead {
  max-width: 62ch;
  color: #27453f;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin-top: 0;
  font-size: clamp(2rem, 7vw, 3.2rem);
}

h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

p,
li {
  max-width: 68ch;
}

.updated,
footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: #fff5ed;
  color: var(--ink);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.link-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-card:hover {
  border-color: rgba(8, 62, 53, 0.3);
  box-shadow: 0 12px 30px rgba(5, 43, 37, 0.08);
  transform: translateY(-2px);
}

.link-card:focus-visible,
.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(239, 106, 54, 0.48);
  outline-offset: 3px;
}

.link-card strong {
  font-size: 1.15rem;
}

.link-card > span:last-child,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.link-label {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.contact-panel {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  background: var(--soft);
}

.contact-panel h2,
.contact-panel p {
  margin-top: 0;
}

.email-link {
  font-weight: 750;
  overflow-wrap: anywhere;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
  background: #e8eee9;
  overflow-wrap: anywhere;
}

.contact-value {
  font-weight: 650;
  overflow-wrap: anywhere;
}

a {
  color: var(--forest);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

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

details p {
  margin-bottom: 0;
}

.button.secondary {
  background: #e3efe8;
  color: var(--forest);
}

footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 0 20px 36px;
}

@media (max-width: 700px) {
  main {
    margin-top: 20px;
    border-radius: 22px;
  }

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

  .link-card {
    min-height: auto;
  }

  footer {
    flex-direction: column;
    gap: 0;
  }

  footer span[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
