/* jiolatravel.com — one stylesheet for every page.
   Light values are the app's ink-and-paper tokens (v2/app/src/styles/inkpaper.js, `IP`).
   ⚠️ The DARK values are this website's own: the app has no night palette (by ruling, D19),
   so there is nothing to copy. They are an ink/paper inversion of the same tokens.
   Fonts are the app's own @fontsource files (v5.3.0, SIL OFL 1.1, licences in /fonts),
   self-hosted, latin subset only; CJK falls through to the system face (PingFang TC on iOS). */

@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/figtree-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/figtree-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/figtree-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --paper: #FFF9EE;      /* IP.paper */
  --card: #FFFFFF;       /* IP.card */
  --ink: #241F1B;        /* IP.ink */
  --ink-note: #241F1BD6; /* IP.inkNote: body text */
  --ink-label: #241F1BA6;/* IP.inkLabel: small labels */
  --hairline: #241F1B29; /* IP.spine */
  --rule: #241F1B33;     /* IP.chipRule */
  --link: #07726F;       /* IP.teal */
  --cta: #3FCFC9;        /* IP.tiffany */
  --cta-ink: #241F1B;
  --accent: #FFC24B;     /* IP.marigold */
  --tint: #D8EFE6;       /* IP.tintMint */
  --shadow: 0 1px 2px #241F1B1A, 0 3px 8px #241F1B14; /* IP.ctaShadow */
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1B1714;
    --card: #26211D;
    --ink: #FFF9EE;
    --ink-note: #FFF9EEDB;
    --ink-label: #FFF9EEA6;
    --hairline: #FFF9EE24;
    --rule: #FFF9EE33;
    --link: #3FCFC9;
    --cta: #3FCFC9;
    --cta-ink: #241F1B;
    --accent: #FFC24B;
    --tint: #23413A;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); font-weight: 700; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ── top bar ── */
.top { border-bottom: 1.5px solid var(--hairline); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--hairline); }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.8px; line-height: 1; }
.nav a { display: inline-block; padding: 10px 4px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

/* ── type ── */
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.15; letter-spacing: -0.8px; }
h2 { font-weight: 800; font-size: 21px; line-height: 1.3; margin: 36px 0 10px; }
h3 { font-weight: 700; font-size: 17px; line-height: 1.35; margin: 22px 0 6px; }
:lang(zh-Hant-TW) h1, :lang(zh-Hant-TW) .brand span { letter-spacing: 0; }
:lang(zh-Hant-TW) h1 { font-family: var(--font); }
p { margin: 0 0 12px; color: var(--ink-note); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-note); }
.note { font-size: 14px; color: var(--ink-label); margin-top: 14px; }
.doc h1 + .lead { margin-top: 10px; }

/* ── home ── */
.hero { padding: 36px 0 8px; }
.hero-icon { display: block; width: 120px; height: 120px; border-radius: 27px; border: 2px solid var(--ink); box-shadow: var(--shadow); margin: 0 0 22px; }
.kicker { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #241F1B; font-size: 13px; font-weight: 700; letter-spacing: 0.2px; }
.hero h1 { font-size: 36px; margin: 0 0 12px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px; margin-top: 8px;
  border: 2px solid #241F1B; border-radius: 16px;
  background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow);
  font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
}
.cta:hover { text-decoration: underline; }
.block { padding: 8px 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature { background: var(--card); border: 1.5px solid var(--hairline); border-radius: 16px; padding: 16px 18px; }
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; }

/* ── documents (privacy, terms, support) ── */
.doc { padding: 32px 0 8px; }
.doc .updated { font-size: 14px; color: var(--ink-label); margin: 8px 0 0; }
.doc section { scroll-margin-top: 16px; }
.party { margin: 0 0 14px; padding-left: 12px; border-left: 2px solid var(--rule); }
.party-name { font-weight: 700; color: var(--ink); }
.party-role { font-size: 14px; color: var(--ink-label); margin: 0 0 4px; }
.contact { font-weight: 600; }
.links { margin: 4px 0 12px; padding-left: 20px; }
.links li { margin: 0 0 8px; }
.steps, .items { margin: 0 0 14px; padding-left: 22px; color: var(--ink-note); }
.steps li, .items li { margin: 0 0 8px; padding-left: 2px; }
.mail-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--card); border: 1.5px solid var(--hairline); border-radius: 16px; padding: 14px 18px; margin: 18px 0 8px; }
.mail-label { font-size: 13px; font-weight: 700; color: var(--ink-label); text-transform: uppercase; letter-spacing: 0.6px; }
.nf { margin: 0 0 32px; }
.nf h1 { font-size: 28px; margin: 0 0 8px; }

/* ── footer ── */
.foot { margin-top: 48px; border-top: 1.5px solid var(--hairline); padding: 20px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-links, .langs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; }
.foot-links a, .langs a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.foot-links a:hover, .langs a:hover, .foot-links a[aria-current="page"] { text-decoration: underline; }
.langs span { display: inline-block; padding: 6px 0; color: var(--ink-label); font-weight: 700; }
.foot-mail { margin: 0; }

@media (min-width: 720px) {
  h1 { font-size: 40px; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
