/* The studio palette: titanium greys, no colour but red. */
:root {
  --page: #fefdfc;
  --card: #ffffff;
  --chip: #f6f5f2;
  --primary: #191713;
  --ink: #0b0a08;
  --muted: #77736c;
  --hairline: #e7e5e1;
  --accent-soft: #efede9;
  color-scheme: light dark;
}

/* Dark: the phone's setting, unless the switch chose light; or the switch chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b0a08;
    --card: #191713;
    --chip: #292621;
    --primary: #e6e5e3;
    --ink: #fbfaf9;
    --muted: #a4a09a;
    --hairline: #2a2723;
    --accent-soft: #292621;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page: #0b0a08;
  --card: #191713;
  --chip: #292621;
  --primary: #e6e5e3;
  --ink: #fbfaf9;
  --muted: #a4a09a;
  --hairline: #2a2723;
  --accent-soft: #292621;
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

/* System fonts only: no request leaves for a font service. */
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/*
 * Myanmar text takes a Myanmar face first, per platform: Android, Windows, Apple, then the
 * government face and Linux. Its stacked marks need taller lines, and no tightened spacing.
 */
:lang(my) {
  font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar Sangam MN", "Myanmar MN", Pyidaungsu,
    Padauk, sans-serif;
  line-height: 1.85;
  letter-spacing: normal !important;
}

h1,
h2 {
  margin: 0 0 0.75rem;
  line-height: 1.35;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

a {
  color: inherit;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header: the mark and name, then the theme switch. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme switch: a moon in light, a sun in dark. Its top-left corner stays sharp, like the mark. */
.theme-switch {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0 10px 10px;
  background: var(--chip);
  color: var(--ink);
  cursor: pointer;
}

.theme-switch svg {
  width: 1.125rem;
  height: 1.125rem;
}

.theme-switch .sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switch .sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-switch .moon {
    display: none;
  }
}

:root[data-theme="dark"] .theme-switch .sun {
  display: block;
}

:root[data-theme="dark"] .theme-switch .moon {
  display: none;
}

/* Buttons: 40 tall with a 48 tap area, top-left corner sharp like the mark. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1.125rem;
  border: 0;
  border-radius: 0 10px 10px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -0.25rem 0;
}

.btn.primary {
  background: var(--primary);
  color: var(--page);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Text pages, such as the privacy policy. */
main.text {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

main.text h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

main.text h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}

main.text a {
  text-decoration-color: var(--muted);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.note {
  padding: 1rem 1.25rem;
  border-radius: 0 14px 14px;
  background: var(--accent-soft);
}

.updated {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

footer a {
  text-decoration: none;
}

/* Home: one business card, centred on the page. */
.biz-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.biz-page .theme-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.biz {
  width: min(100%, 40rem);
  aspect-ratio: 1.75;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 0 20px 20px 20px;
}

.biz-face {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.biz-face svg {
  width: 8.75rem;
  height: 8.75rem;
  flex: none;
}

/* Display heading, so it takes the titanium gradient. */
.biz h1,
.join h1,
.lost h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(120deg, var(--ink), var(--muted) 45%, var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.biz strong {
  color: var(--ink);
  font-weight: 600;
}

.biz p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.biz-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1rem 2rem;
  background: var(--chip);
  border-radius: 0 0 19px 19px;
  font-size: 1rem;
  line-height: 1.5rem;
}

.biz-strip .m {
  color: var(--muted);
}

.biz-strip span {
  display: flex;
  gap: 1rem;
}

/* Join: three numbered steps and one button. */
.join {
  width: min(100%, 40rem);
}

.join .back {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.join h1 {
  margin: 1rem 0 1.5rem;
}

/* Room for descenders, which background-clip would cut. */
.biz h1,
.join h1,
.lost h1 {
  padding-bottom: 0.08em;
}

.steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  width: 1.75rem;
  flex: none;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Not found: the mark with its right half missing, centred. */
.lost {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.lost svg {
  width: 6rem;
  height: 6rem;
}

.lost h1 {
  margin: 0;
}

@media (max-width: 30rem) {
  .biz-face {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }

  .biz-face svg {
    width: 4rem;
    height: 4rem;
  }

  .biz-strip {
    padding: 0.75rem 1.25rem;
  }
}
