/* Pseudo Technology Corporation: shared styles for every page. No external fonts or requests. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0eb;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --line: #e4e1da;
  --brand: #33507a;
  --brand-ink: #ffffff;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
  --radius: 18px;
  --wrap: 1080px;
  --gutter: 20px;
  --app: var(--brand);
  --offtide: #2f7a6d;
  --scullery: #a9552f;
  --skeinwise: #b5476b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #1a1b1e;
    --surface-2: #222327;
    --text: #f1f1f3;
    --muted: #a3a3ab;
    --line: #2f3034;
    --brand: #9db6e0;
    --brand-ink: #111214;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
    --offtide: #6cc3ae;
    --scullery: #e58a60;
    --skeinwise: #e07a9b;
  }
}

.app-offtide { --app: var(--offtide); }
.app-scullery { --app: var(--scullery); }
.app-skeinwise { --app: var(--skeinwise); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
picture { flex: none; }

a { color: var(--app); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px; min-height: 64px; padding-block: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.logo-bg { fill: var(--brand); }
.logo-p { stroke: var(--brand-ink); }
.site-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 400px) {
  .site-header .wrap { gap: 4px 14px; }
  .site-nav { gap: 4px 14px; }
}

/* Buttons and pills */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; font-size: 16px;
}
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button:hover { filter: brightness(1.08); text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface-2); color: var(--muted);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--app); }

/* Home: hero */

.hero { padding-block: 64px 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}
.eyebrow { color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 18px; letter-spacing: -.025em; }
.lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { display: flex; justify-content: center; align-items: center; padding-block: 8px; }
.hero-art img {
  width: 31%; border-radius: 14px; box-shadow: var(--shadow); background: var(--surface-2);
}
.hero-art img:nth-child(1) { transform: rotate(-5deg) translateY(10px); margin-right: -4%; }
.hero-art img:nth-child(2) { width: 36%; position: relative; z-index: 1; }
.hero-art img:nth-child(3) { transform: rotate(5deg) translateY(10px); margin-left: -4%; }

/* Sections */

.section { padding-block: 56px; border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4vw, 36px); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

/* App cards */

.app-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }

.app-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.app-card-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; flex: none; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.app-card h3 { font-size: 22px; margin: 0; }
.app-card h3 a { color: var(--text); text-decoration: none; }
.app-card h3 a:hover { text-decoration: underline; }
.app-kind { margin: 2px 0 0; color: var(--app); font-weight: 600; font-size: 15px; }
.app-card p { margin: 0; }
.app-card .desc { color: var(--muted); }
.app-card .pill { align-self: flex-start; margin-top: auto; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 6px; font-size: 15px; font-weight: 600; }

/* Principles */

.principles { display: grid; gap: 28px 40px; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
.principle svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--surface-2); stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.principle h3 { font-size: 19px; margin: 8px 0 6px; }
.principle p { margin: 0; color: var(--muted); grid-column: 2; }

/* About */

.about { display: grid; gap: 32px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.about p { margin: 0 0 16px; }
.facts {
  margin: 0; padding: 8px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Call to action band */

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface-2); border-radius: var(--radius); padding: 32px;
}
.cta h2 { font-size: 26px; margin: 0 0 6px; }
.cta p { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .cta { padding: 24px 20px; } }

/* App pages */

.crumbs { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--muted); }

.app-hero { padding-block: 48px 40px; }
.app-hero-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.app-hero-head .app-icon { width: 96px; height: 96px; }
.app-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0; }
.app-hero .app-kind { font-size: 18px; margin-top: 4px; }
.app-hero .lede { margin-bottom: 20px; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; }
.shots img { border-radius: 14px; box-shadow: var(--shadow); background: var(--surface-2); }
@media (max-width: 639px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 12px; gap: 14px;
  }
  .shots img { scroll-snap-align: start; }
}

.features { display: grid; gap: 8px 48px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features h3 { font-size: 19px; margin: 16px 0 8px; color: var(--app); }
.features ul { margin: 0 0 8px; padding-left: 20px; }
.features li { margin: 4px 0; }
.features p { margin: 0 0 8px; }

.help-links { display: flex; flex-wrap: wrap; gap: 12px; }
.other-langs { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* Document pages: support, privacy, contact */

.doc { max-width: 760px; padding-block: 40px 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 38px); margin: 0 0 8px; }
.doc h2 { font-size: 20px; margin: 32px 0 6px; color: var(--app); }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc .muted, .muted { color: var(--muted); }
.doc .muted { font-size: 15px; }
.langs { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }

.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 24px; margin: 28px 0;
}
.contact-card .row { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
@media (min-width: 560px) { .contact-card .row { grid-template-columns: 170px 1fr; } }
.contact-card .label { color: var(--muted); }
.contact-card .value { font-weight: 600; }
.contact-card .value a { font-weight: 600; }

.link-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
.link-table th, .link-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.link-table th { font-weight: 600; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 40px 32px; color: var(--muted); font-size: 15px; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 15px; color: var(--text); margin: 0 0 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0 0 8px; }
.fine { margin-top: 28px !important; font-size: 13px; }
