/* Skipper's site. Same palette as the apps ("Mint"): a near-white ground with
   a hint of green, one calm green for actions, warm yellow for money. */
:root {
  --ground: #f4faf7;
  --surface: #ffffff;
  --tint: #e6f9f0;
  --line: #ddebe4;
  --ink: #1f2d2a;
  --muted: #566b64;
  --primary: #087f5b;
  --primary-press: #066649;
  --on-primary: #ffffff;
  --bubble-out: #cdf3df;
  --money: #fff6da;
  --money-ink: #6b4e00;
  --warn: #c2362b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1714;
    --surface: #15211d;
    --tint: #17332a;
    --line: #25372f;
    --ink: #e6f2ec;
    --muted: #93a9a0;
    --primary: #4fd1a1;
    --primary-press: #6fdcb3;
    --on-primary: #06281c;
    --bubble-out: #1f5c45;
    --money: #3a3110;
    --money-ink: #f2d98a;
    --warn: #ff8a7a;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--primary);
}
.mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
nav a {
  padding: 8px 12px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover {
  background: var(--tint);
  color: var(--ink);
}
nav .lang {
  border: 1.5px solid var(--line);
}
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 72px;
}
.kicker {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -1.2px;
}
.lead {
  max-width: 34em;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 19px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: var(--primary-press);
}
.hero-art {
  position: relative;
  min-height: 320px;
  border-radius: 36px;
  background: var(--tint);
}
.flag {
  position: absolute;
  left: 14%;
  top: 16%;
  width: 46%;
  aspect-ratio: 4 / 3;
  display: flex;
  border-radius: 18px;
  overflow: hidden;
}
.flag span {
  flex: 1;
  background: #ffd34d;
}
.flag span + span {
  background: #087f5b;
}
.bubble {
  position: absolute;
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 600;
}
.bubble.in {
  left: 12%;
  bottom: 30%;
  background: var(--surface);
}
.bubble.out {
  right: 10%;
  bottom: 12%;
  background: var(--money);
  color: var(--money-ink);
}
.band {
  padding: 56px 0;
}
.band.tinted {
  margin: 0 -24px;
  padding: 56px 24px;
  border-radius: 36px;
  background: var(--tint);
}
h2 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
article {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
}
h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
article p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.start p {
  max-width: 36em;
  color: var(--muted);
}
.start .actions {
  margin-top: 24px;
}
footer {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}
.notice {
  max-width: 560px;
  padding: 56px 24px 80px;
}
.notice .mark {
  width: 44px;
  height: 44px;
}
.notice h1 {
  margin: 18px 0 14px;
  font-size: 30px;
  letter-spacing: -0.5px;
}
.notice p {
  color: var(--muted);
}
.notice .warn {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--money);
  color: var(--money-ink);
  font-weight: 600;
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0 48px;
  }
  .hero-art {
    min-height: 220px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .top {
    padding: 14px 16px;
  }
  main {
    padding: 0 16px;
  }
  .band.tinted {
    margin: 0 -16px;
    padding: 40px 16px;
    border-radius: 28px;
  }
}

/* A button that waits for a script to say where it leads. */
.button[hidden] {
  display: none;
}

.notice a.link {
  color: inherit;
  opacity: 0.75;
}

/* The list of languages, each under its own name. */
.languages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.25rem 1rem;
  width: 100%;
  max-width: 52rem;
  margin: 1.5rem auto 0;
  text-align: start;
}

.languages a {
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.languages a:hover,
.languages a:focus-visible {
  background: var(--bubble-out);
}

footer .lang {
  margin-inline-start: auto;
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
}

/* The download page: what the file is, and the number to check it against. */
.notice .facts {
  margin-top: -0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice .hash code {
  display: inline-block;
  max-width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--bubble-out);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.actions a.link {
  color: inherit;
}

/* On a phone the header keeps what is needed to act: getting the app, and the language. */
@media (max-width: 600px) {
  .top nav a[href*="#"] {
    display: none;
  }
  .top {
    padding: 14px 16px;
  }
  main {
    padding: 0 16px;
  }
}
