:root {
  --ink: #202020;
  --ink-deep: #101010;
  --muted: #4c4c4c;
  --sky: #77b7e8;
  --sky-light: #bde4ff;
  --grass: #5f9f35;
  --grass-light: #7cbc43;
  --grass-dark: #315d22;
  --dirt: #815630;
  --dirt-light: #a77445;
  --wood: #b9854e;
  --wood-light: #d4a667;
  --wood-dark: #6f4928;
  --stone: #a4a4a4;
  --stone-light: #d8d8d8;
  --stone-dark: #5f5f5f;
  --paper: #f5f0dc;
  --paper-light: #fffdf1;
  --focus: #ffdf33;
  --max: 1180px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Noto Sans Mono CJK TC", "PingFang TC", "Microsoft JhengHei", monospace;
  color: var(--ink);
  background: var(--sky);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  line-height: 1.7;
  background-color: var(--sky);
  background-image:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.78) 8% 16%, rgba(255,255,255,.78) 16% 24%, transparent 24% 100%),
    linear-gradient(90deg, transparent 0 65%, rgba(255,255,255,.7) 65% 73%, rgba(255,255,255,.7) 73% 81%, transparent 81% 100%),
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 38%),
    linear-gradient(180deg, var(--sky-light), var(--sky));
  background-size: 520px 140px, 680px 170px, 100% 100%, 100% 100%;
  background-position: 0 60px, 100px 210px, 0 0, 0 0;
  background-repeat: repeat-x, repeat-x, no-repeat, no-repeat;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--grass-light) 0 16px, var(--grass) 16px 30px, transparent 30px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(66,38,20,.25) 28px 32px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 24px, rgba(66,38,20,.16) 24px 28px),
    var(--dirt);
  border-top: 4px solid var(--grass-dark);
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  right: 5vw;
  top: 18vh;
  width: 54px;
  height: 54px;
  pointer-events: none;
  background: #fff4aa;
  box-shadow: 8px 8px 0 rgba(255,198,48,.35);
}

a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--grass-dark); }
a:focus-visible, .button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 40;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 3px solid #000;
  background: var(--paper-light);
  color: #000;
  transform: translateY(-180%);
  box-shadow: 4px 4px 0 #000;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 12px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 4px solid var(--ink-deep);
  border-top-color: var(--wood-light);
  border-left-color: var(--wood-light);
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(80,45,20,.25) 30px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 94px, rgba(66,37,18,.18) 94px 98px),
    var(--wood);
  box-shadow: 7px 7px 0 rgba(31,31,31,.72), inset 0 0 0 3px rgba(255,255,255,.16);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #17110b;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(255,255,255,.35);
}
.brand:hover { color: #17110b; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid #1e3715;
  color: white;
  background:
    linear-gradient(180deg, var(--grass-light) 0 11px, transparent 11px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 8px, transparent 8px 16px),
    var(--dirt);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.2), inset -3px -3px 0 rgba(45,27,15,.35), 3px 3px 0 rgba(0,0,0,.28);
  font-size: 16px;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0,0,0,.55);
}
.site-header nav, .site-footer div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-header nav a {
  min-height: 40px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border: 3px solid transparent;
  color: #2f2115;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .08s linear, background .08s linear, box-shadow .08s linear;
}
.site-header nav a:hover {
  color: #17110b;
  background: rgba(255,242,203,.45);
  transform: translate(-1px,-1px);
}
.site-header nav a[aria-current="page"] {
  border-color: #244a19;
  color: white;
  background: var(--grass);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.2), inset -3px -3px 0 rgba(38,74,25,.5), 3px 3px 0 rgba(0,0,0,.3);
  text-shadow: 2px 2px 0 rgba(0,0,0,.45);
}

main {
  width: min(calc(100% - 32px), var(--max));
  margin: 28px auto 0;
}
.hero,
.section,
.legal-aside,
.legal-content,
.site-footer {
  border: 4px solid var(--ink-deep);
  border-top-color: #fffdf1;
  border-left-color: #fffdf1;
  background-color: var(--paper);
  box-shadow: 8px 8px 0 rgba(30,30,30,.58), inset -4px -4px 0 rgba(111,93,62,.18), inset 4px 4px 0 rgba(255,255,255,.65);
}
.hero,
.section,
.legal-aside,
.legal-content { position: relative; overflow: hidden; }
.hero::before,
.section::before,
.legal-aside::before,
.legal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  background:
    linear-gradient(90deg, transparent 31px, rgba(76,57,30,.15) 32px, transparent 33px),
    linear-gradient(0deg, transparent 31px, rgba(76,57,30,.12) 32px, transparent 33px);
  background-size: 32px 32px;
}
.hero > *, .section > *, .legal-aside > *, .legal-content > * { position: relative; z-index: 1; }

.hero {
  min-height: min(700px, calc(100vh - 140px));
  padding: clamp(76px, 10vw, 128px) clamp(28px, 7vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--paper-light);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 7%;
  bottom: 0;
  width: 210px;
  height: 150px;
  opacity: .65;
  background:
    linear-gradient(180deg, var(--grass-light) 0 18px, var(--grass) 18px 32px, transparent 32px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(65,37,20,.22) 34px 38px),
    var(--dirt-light);
  box-shadow: 38px -38px 0 -1px var(--grass), 76px -76px 0 -1px rgba(94,159,53,.75);
}
.eyebrow {
  margin: 0 0 22px;
  color: #48617a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 {
  color: var(--ink-deep);
  line-height: 1.16;
  text-wrap: balance;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 6.8vw, 78px);
  font-weight: 900;
  letter-spacing: -.055em;
  text-shadow: 4px 4px 0 rgba(91,91,91,.22);
}
.lead {
  max-width: 790px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.75;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 540;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.button {
  min-height: 50px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ink-deep);
  color: var(--ink-deep);
  background: var(--stone-light);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.75), inset -3px -3px 0 rgba(74,74,74,.4), 5px 5px 0 rgba(0,0,0,.62);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .08s linear, box-shadow .08s linear;
}
.button:hover {
  color: inherit;
  transform: translate(2px,2px);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.75), inset -3px -3px 0 rgba(74,74,74,.4), 3px 3px 0 rgba(0,0,0,.62);
}
.button:active { transform: translate(5px,5px); box-shadow: inset 2px 2px 0 rgba(0,0,0,.3); }
.button.primary {
  border-color: #1e4314;
  color: white;
  background: var(--grass);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.22), inset -3px -3px 0 rgba(31,77,21,.62), 5px 5px 0 rgba(0,0,0,.62);
  text-shadow: 2px 2px 0 rgba(0,0,0,.52);
}
.button.secondary { background: var(--stone-light); }

.section {
  margin-top: 28px;
  padding: clamp(60px, 8vw, 92px) clamp(26px, 6vw, 70px);
}
.section.compact { margin-bottom: 28px; padding-bottom: clamp(72px, 9vw, 110px); }
.section-intro {
  display: grid;
  grid-template-columns: 74px minmax(0, 700px);
  gap: 22px;
  align-items: start;
  margin-bottom: 48px;
}
.section-number {
  margin: 7px 0 0;
  color: var(--grass-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 1px 1px 0 rgba(255,255,255,.6);
}
.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 900;
  letter-spacing: -.045em;
  text-shadow: 3px 3px 0 rgba(91,91,91,.18);
}
.section-intro p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.steps {
  margin: 0 0 0 96px;
  padding: 12px;
  list-style: none;
  border: 4px solid var(--stone-dark);
  border-top-color: var(--stone-light);
  border-left-color: var(--stone-light);
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 50%, transparent 50%),
    linear-gradient(0deg, rgba(0,0,0,.05) 50%, transparent 50%),
    var(--stone);
  background-size: 64px 64px;
  box-shadow: inset -4px -4px 0 rgba(45,45,45,.28), inset 4px 4px 0 rgba(255,255,255,.24);
}
.steps li {
  display: grid;
  grid-template-columns: 122px minmax(0,1fr);
  gap: 26px;
  padding: 20px;
  border: 3px solid #686868;
  background: rgba(247,247,247,.9);
  box-shadow: inset 2px 2px 0 white, inset -2px -2px 0 rgba(77,77,77,.22);
}
.steps li + li { margin-top: 8px; }
.steps li:hover { background: #fff; }
.steps span { color: var(--ink-deep); font-weight: 900; }
.steps p {
  margin: 0;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.permission-list { margin-left: 96px; display: grid; gap: 14px; }
.permission-list article {
  padding: 25px 27px;
  display: grid;
  grid-template-columns: minmax(250px,.85fr) minmax(280px,1fr);
  gap: 44px;
  border: 4px solid var(--stone-dark);
  border-top-color: #e5e5e5;
  border-left-color: #e5e5e5;
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), transparent 44%),
    var(--stone-light);
  box-shadow: inset -3px -3px 0 rgba(55,55,55,.2), 5px 5px 0 rgba(0,0,0,.3);
  transition: transform .08s linear, box-shadow .08s linear;
}
.permission-list article:hover { transform: translate(-2px,-2px); box-shadow: inset -3px -3px 0 rgba(55,55,55,.2), 7px 7px 0 rgba(0,0,0,.32); }
.permission-list h3 { margin: 7px 0 0; font-size: 21px; font-weight: 900; letter-spacing: -.025em; }
.permission-list article > p {
  margin: 0;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.permission-scope { margin: 0; color: #374a58; font-size: 12px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }

.data-note {
  color: white;
  border-color: #151515;
  border-top-color: #606060;
  border-left-color: #606060;
  background:
    linear-gradient(90deg, transparent 31px, rgba(255,255,255,.035) 32px, transparent 33px),
    linear-gradient(0deg, transparent 31px, rgba(255,255,255,.035) 32px, transparent 33px),
    #2d3138;
  background-size: 32px 32px;
  display: grid;
  grid-template-columns: minmax(280px,.9fr) minmax(320px,1fr);
  gap: clamp(42px,8vw,100px);
  box-shadow: 8px 8px 0 rgba(20,20,20,.7), inset -4px -4px 0 rgba(0,0,0,.32), inset 4px 4px 0 rgba(255,255,255,.12);
}
.data-note h2 { margin-top: 20px; color: white; text-shadow: 4px 4px 0 rgba(0,0,0,.72); }
.section-number.inverse { color: #aee178; text-shadow: 2px 2px 0 #111; }
.data-copy p {
  margin: 0;
  color: #e2e2e2;
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.data-copy a {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 15px;
  border: 3px solid #9acb68;
  color: white;
  background: #426d2c;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.2), 4px 4px 0 #111;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.data-copy a:hover { color: white; background: #518637; transform: translate(1px,1px); box-shadow: inset 2px 2px 0 rgba(255,255,255,.2), 3px 3px 0 #111; }

.site-footer {
  width: min(calc(100% - 32px),var(--max));
  min-height: 96px;
  margin: 28px auto;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #332516;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(80,45,20,.22) 30px 34px),
    var(--wood-light);
  border-top-color: #edc789;
  border-left-color: #edc789;
}
.site-footer p { font-size: 13px; font-weight: 700; }
.site-footer a { padding: 8px 10px; color: #332516; font-size: 14px; font-weight: 750; text-decoration: none; }
.site-footer a:hover { color: #102609; background: rgba(255,244,201,.42); }

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0,760px);
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 28px;
}
.legal-aside {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 32px;
  background-color: var(--wood-light);
  background-image: repeating-linear-gradient(0deg, transparent 0 44px, rgba(89,54,25,.16) 44px 48px);
}
.legal-aside h1 { font-size: clamp(40px,5vw,58px); font-weight: 900; text-shadow: 3px 3px 0 rgba(255,255,255,.3); }
.legal-aside > p:not(.eyebrow) { margin: 20px 0 30px; color: #4d3420; font-size: 14px; font-weight: 700; }
.legal-aside nav { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.legal-aside nav a { padding: 9px 11px; border: 2px solid transparent; color: #3f2b19; font-size: 14px; font-weight: 750; text-decoration: none; }
.legal-aside nav a:hover { border-color: #5f3f22; color: #15240c; background: rgba(255,244,201,.48); }
.legal-content { padding: clamp(36px,5vw,60px); }
.legal-content section { padding: 0 0 46px; margin: 0 0 46px; border-bottom: 4px dashed rgba(90,73,42,.32); scroll-margin-top: 128px; }
.legal-content section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 24px; font-size: 27px; font-weight: 900; letter-spacing: -.035em; text-shadow: 2px 2px 0 rgba(90,90,90,.16); }
.legal-content h3 { margin: 30px 0 12px; font-size: 18px; font-weight: 900; }
.legal-content p, .legal-content li { color: #45423b; font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.legal-content p { margin: 0 0 18px; }
.legal-content ul { margin: 0 0 20px; padding-left: 1.3em; }
.legal-content li { margin: 9px 0; padding-left: .35em; }
.legal-content li::marker { color: var(--grass-dark); }
.legal-content strong { color: var(--ink-deep); }
.inline-action { display: inline-flex; padding: 9px 13px; border: 3px solid #29491d; color: white; background: var(--grass); box-shadow: 4px 4px 0 rgba(0,0,0,.5); font-weight: 900; text-decoration: none; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
[data-local-contact] { color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .site-header { position: relative; top: 0; align-items: flex-start; flex-direction: column; padding: 14px; }
  .site-header nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .hero { min-height: auto; padding-top: 70px; padding-bottom: 84px; }
  .hero::after { opacity: .35; right: -60px; }
  .section-intro { grid-template-columns: 1fr; gap: 10px; }
  .steps, .permission-list { margin-left: 0; }
  .permission-list article { grid-template-columns: 1fr; gap: 18px; }
  .data-note { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: relative; top: 0; }
  .legal-aside nav { display: none; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 26px; }
}

@media (max-width: 540px) {
  .site-header, main, .site-footer { width: min(calc(100% - 20px),var(--max)); }
  .site-header { margin-top: 10px; }
  main { margin-top: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { padding: 58px 20px 76px; }
  h1 { font-size: 40px; text-shadow: 3px 3px 0 rgba(91,91,91,.22); }
  .lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .section { margin-top: 18px; padding: 48px 18px; }
  .steps { padding: 8px; }
  .steps li { grid-template-columns: 1fr; gap: 8px; padding: 17px 14px; }
  .permission-list article { padding: 21px 17px; }
  .legal-aside, .legal-content { padding: 28px 20px; }
  .site-footer { margin-top: 18px; }
  .site-footer div { align-items: flex-start; flex-direction: column; gap: 4px; }
}

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