@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/fraunces-latin-italic.woff2") format("woff2");
}

:root {
  --teal-900: #0a3e42;
  --teal-800: #08363a;
  --teal-700: #0d5a5e;
  --teal-500: #1b7a7e;
  --teal-300: #5da0a3;
  --teal-100: #d9ecec;
  --peach-700: #b66e42;
  --peach-600: #d4895b;
  --peach-500: #e8a87c;
  --peach-300: #f1c5a4;
  --peach-100: #fbe9d7;
  --ink-900: #1a1a1a;
  --ink-700: #2d2f32;
  --ink-500: #5a6068;
  --ink-300: #9aa0a8;
  --paper: #fefcf8;
  --paper-tint: #f5f1e8;
  --paper-warm: #fbf3e6;
  --border: #e6e1d4;
  --border-strong: #cfc8b6;
  --success: #1f7a4d;
  --danger: #b54545;
  --ink-on-dark: #d9e2e0;
  --ink-on-dark-soft: #a9b7b5;
  --display: Fraunces, "Iowan Old Style", Georgia, serif;
  --ink-on-peach: #3a2113;
  --teal-deep: #0c4549;
  --radius: 7px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 62, 66, 0.05), 0 1px 3px rgba(10, 62, 66, 0.07);
  --shadow-md: 0 4px 6px rgba(10, 62, 66, 0.06), 0 10px 15px rgba(10, 62, 66, 0.08);
  --width: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 560;
  color: var(--teal-900);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 0.4em; }

p {
  margin: 0 0 1em;
  max-width: 70ch;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3rem;
}
li {
  margin: 0 0 0.5em;
  max-width: 68ch;
}
li::marker {
  color: var(--peach-600);
}

a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { color: var(--peach-600); }

.container {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s,
    box-shadow 0.16s, border-color 0.16s;
}

.btn-primary {
  background: var(--peach-500);
  color: var(--ink-on-peach);
  border-color: var(--peach-500);
  box-shadow: 0 8px 20px -10px rgba(232, 168, 124, 0.6);
}
.btn-primary:hover {
  background: var(--peach-300);
  color: var(--ink-on-peach);
  border-color: var(--peach-300);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(232, 168, 124, 0.72);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-outline:hover {
  background: var(--paper);
  color: var(--teal-900);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--teal-100);
  color: var(--teal-900);
}

/* Header */
.site-header {
  border-top: 3px solid #b8323a; /* the flag's first stripe */
  background: #e9e1ce; /* warm stone — a coloured frame for the warm body */
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 8px 22px -18px rgba(10, 62, 66, 0.45);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* brand lockup — a flag-field mark beside a Fraunces wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
}
.brand-mark {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900));
  box-shadow:
    0 4px 11px -5px rgba(10, 62, 66, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: box-shadow 0.18s, transform 0.18s;
}
.brand-mark svg { width: 38px; height: 38px; display: block; }
.brand-mark .bm-star { fill: var(--peach-300); }
.brand-mark .bm-stripe { fill: rgba(217, 236, 236, 0.5); }
.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow:
    0 7px 15px -5px rgba(10, 62, 66, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.brand-word {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 560;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--teal-900);
}
.brand-word .brand-accent {
  color: var(--peach-700);
  font-style: italic;
  /* italic Fraunces ships weights 400-500; keep "Asia" in range so the
     560 inherited from .brand-word never triggers faux-bold synthesis */
  font-weight: 500;
}

/* nav — uppercase tracked labels as pill-shaped, engineered items */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-700);
  text-decoration: none;
  padding: 0.56rem 0.88rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.nav-link:hover {
  background: rgba(10, 62, 66, 0.07);
  border-color: rgba(10, 62, 66, 0.12);
  color: var(--teal-900);
}
.nav-link.is-active {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--paper);
}
.nav-cta {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-on-peach);
  background: var(--peach-500);
  text-decoration: none;
  padding: 0.62rem 1.15rem;
  border-radius: 8px;
  margin-left: 0.4rem;
  box-shadow: 0 7px 17px -9px rgba(232, 168, 124, 0.7);
  transition: background 0.16s, transform 0.16s, box-shadow 0.16s;
}
.nav-cta:hover {
  background: var(--peach-300);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(232, 168, 124, 0.85);
}
.brand:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 5px;
}

/* Hero */
.hero {
  --hero-motif: url("/motifs/stars.svg");
  background-color: var(--teal-900);
  background-image:
    var(--hero-motif),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E"),
    linear-gradient(165deg, var(--teal-deep) 0%, var(--teal-900) 55%, var(--teal-800) 100%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: right max(1.25rem, 4vw) center, 0 0, center;
  background-size: auto clamp(150px, 24vh, 230px), 160px 160px, cover;
  color: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
/* Hero links read light — the global teal link colour vanishes on
   the dark hero (the green-on-green bug). */
.hero a:not(.btn) {
  color: var(--peach-300);
}
.hero a:not(.btn):hover {
  color: var(--paper);
}
/* Per-page hero motif — faint imagery, top-right. The default is the
   star field; country pages set their own via a modifier class. */
.hero-japan { --hero-motif: url("/motifs/japan.svg"); }
.hero-china { --hero-motif: url("/motifs/china.svg"); }
.hero-thailand { --hero-motif: url("/motifs/thailand.svg"); }
.hero-singapore { --hero-motif: url("/motifs/singapore.svg"); }
.hero-korea { --hero-motif: url("/motifs/south-korea.svg"); }
.hero-hongkong { --hero-motif: url("/motifs/hong-kong.svg"); }
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(232, 168, 124, 0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(27, 122, 126, 0.5), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peach-300);
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: rgba(232, 168, 124, 0.12);
  border: 1px solid rgba(232, 168, 124, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-family: system-ui, sans-serif;
}
.hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach-300);
}
.hero h1 {
  color: var(--paper);
  max-width: 22ch;
  position: relative;
}
.hero h1 .accent {
  color: var(--peach-500);
  font-style: italic;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-on-dark);
  max-width: 56ch;
  margin-bottom: 2rem;
  position: relative;
}
.hero .post-meta {
  font-size: 0.95rem;
  color: var(--ink-on-dark-soft);
  margin: 0.85rem 0 0;
  font-family: system-ui, sans-serif;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  color: var(--ink-on-dark-soft);
  font-family: system-ui, sans-serif;
}
.hero-meta > div { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta strong { color: var(--paper); font-weight: 600; }
.checkmark {
  color: var(--peach-300);
  font-weight: 700;
  display: inline-block;
}
.hero .cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}

/* Sections */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--paper-tint); }
.section-warm { background: var(--paper-warm); }
.section h2 + p,
.section-intro {
  font-size: 1.08rem;
  color: var(--ink-700);
  max-width: 60ch;
}

/* Editorial section heading — a hairline rule above every section h2,
   the same marker the homepage uses, so content pages read as designed
   sections rather than a flat stack of headings. */
.section h2 {
  position: relative;
  padding-top: 1.15rem;
}
.section h2:first-child {
  margin-top: 0;
}
.section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--peach-500);
}

/* Motion — staggered hero reveal on load, gentle section reveal on
   scroll. The scroll reveal is wrapped in @supports so browsers without
   animation-timeline simply show the content. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .container > * {
    animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero .container > *:nth-child(2) { animation-delay: 0.08s; }
  .hero .container > *:nth-child(3) { animation-delay: 0.16s; }
  .hero .container > *:nth-child(4) { animation-delay: 0.24s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section h2 {
      animation: rise-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 14%;
    }
  }
}

/* Spacing utilities */
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }

/* Sticky CTA — bottom-right floating button */
.sticky-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  background: var(--peach-500);
  color: var(--teal-900);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s, background 0.15s;
}
.sticky-cta:hover {
  transform: translateY(-2px);
  background: var(--peach-600);
  color: var(--paper);
}
.sticky-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.2);
  display: inline-block;
  flex-shrink: 0;
}
.sticky-cta-icon {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sticky-cta-label-mobile { display: none; }

/* Country list */
.country-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  font-family: system-ui, sans-serif;
}
.country-item {
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.country-item .name {
  font-weight: 600;
  color: var(--teal-900);
  font-size: 1.05rem;
}
.country-item .status {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 0.2rem;
}
.country-item.live .name::before {
  content: "●";
  color: var(--peach-600);
  margin-right: 0.4rem;
}

/* Services */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-item {
  padding: 1.5rem;
  border-left: 3px solid var(--peach-500);
  background: var(--paper);
}
.service-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.service-item p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--teal-900);
  color: #a9b7b5;
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
  font-family: system-ui, sans-serif;
}
.site-footer a { color: #d9e2e0; text-decoration: none; }
.site-footer a:hover { color: var(--peach-500); }
.site-footer .disclaimer {
  font-size: 0.85rem;
  color: #8a9694;
  border-top: 1px solid #1f4e52;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero { padding: 2.75rem 0 2.5rem; }
  .section { padding: 2rem 0; }
  .site-header .container { flex-wrap: wrap; gap: 0.55rem 1rem; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 0; }
  .nav-link { padding: 0.45rem 0.55rem; }
  .nav-cta { margin-left: auto; }
  .sticky-cta { padding: 0.7rem 0.95rem; font-size: 0.88rem; }
  .sticky-cta-label, .sticky-cta-dot { display: none; }
  .sticky-cta-icon { display: inline-block; }
  .sticky-cta-label-mobile { display: inline; font-weight: 600; }
}
