/* Meow Translate - an Apple-like page: white and the palest grey, large type set in Sukhumvit Set,
   generous space, rounded tiles. Orange (the cat's) is the one accent: links, the download, numbers. */
@font-face { font-family: "Sukhumvit Set"; src: url("fonts/SukhumvitSet-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sukhumvit Set"; src: url("fonts/SukhumvitSet-Medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Sukhumvit Set"; src: url("fonts/SukhumvitSet-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sukhumvit Set"; src: url("fonts/SukhumvitSet-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --orange: #f28a16;
  --orange-ink: #d26a00;   /* orange for text on white: dark enough to read */
  --paper: #fffaf6;        /* the mascot sheet's own ground */
  --bar: #1d2130; --bar-pill: #2b3042; --bar-text: #f3f4f8; --bar-start: #4f8ff7;
  --font: "Sukhumvit Set", "Leelawadee UI", "Tahoma", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: 22px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
section { padding-block: 96px; scroll-margin-top: 48px; }
section.tiled { background: var(--tile); }
.head { text-align: center; max-width: 820px; margin-inline: auto; }
.head .label { color: var(--orange-ink); font-weight: 600; font-size: 1.05rem; }
.head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 700; line-height: 1.15; margin-top: 6px; }
.head p { color: var(--muted); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); margin-top: 16px; }
@media (max-width: 640px) { section { padding-block: 64px; } }

/* Top bar, thin like Apple's */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.brand img { width: 26px; height: 26px; border-radius: 50%; }
.top nav { margin-left: auto; display: flex; gap: 26px; align-items: center; font-size: .9rem; }
.top nav a { text-decoration: none; color: var(--ink); opacity: .8; }
.top nav a:hover { opacity: 1; }
.top nav a.pill { opacity: 1; }
@media (max-width: 700px) { .top nav a.link { display: none; } }

/* Buttons and links */
.pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; border-radius: 999px; background: var(--orange); color: #fff; padding: 4px 14px; font-size: .85rem; transition: background .2s; }
.pill:hover { background: var(--orange-ink); }
.pill.big { font-size: 1.1rem; padding: 12px 26px; }
.pill svg { width: 1.15em; height: 1.15em; flex: none; }
.more { color: var(--orange-ink); text-decoration: none; font-weight: 500; font-size: 1.1rem; }
.more:hover { text-decoration: underline; }
.more::after { content: " ›"; }

/* Keyboard keys */
.k { display: inline-grid; place-items: center; min-width: 2.3em; padding: 0 7px; font: 600 .78rem/1.7 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; white-space: nowrap; vertical-align: middle; }

/* Contact */
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; background: #fff; }
.social a:hover { color: var(--orange-ink); }
.social svg { width: 22px; height: 22px; flex: none; }

footer { background: var(--tile); border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .8rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pill { transition: none; } }
