/* Scroll the Chess — site styles.
   Layout follows the Bloomeratech (Mom Mentor) landing: fixed top bar,
   centred icon / name / description / store badge, simple centred footer.
   No web fonts: Iowan Old Style and SF Pro are system fonts on iPhone and Mac;
   other devices fall back to Palatino/Georgia and their own system sans.
   Nothing is loaded from third parties. */

:root {
  --white: #FFFFFF;
  --ink: #14161A;
  --gray-900: #111827;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --px: 16px;
  color-scheme: light;
}

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

html {
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ---------- Top bar ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  margin-left: -12px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.home-link:hover { color: var(--gray-900); background: var(--gray-100); }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover { color: var(--gray-900); }
.site-nav a[aria-current="page"] { color: var(--gray-900); font-weight: 500; }

/* ---------- Landing ---------- */

.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 0;
}

.hero {
  width: 100%;
  max-width: 42rem;
  padding: 48px 0;
  text-align: center;
}
.hero > * + * { margin-top: 32px; }

.icon-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}
/* Shadow sits on a box tucked inside the icon's rounded square, so it never
   peeks out at the corners and the image itself is drawn without filters. */
.icon-wrap::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 40px;
  box-shadow: 0 20px 25px -1px rgba(0, 0, 0, 0.1), 0 8px 10px -2px rgba(0, 0, 0, 0.1);
}
.app-icon {
  position: relative;
  display: block;
  width: 200px;
  height: 200px;
}

.hero h1 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero .lede {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding: 0 16px;
  color: var(--gray-500);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.625;
  text-wrap: balance;
}

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
}

/* Official Apple artwork, unmodified, at least 40 px tall, clear space of at
   least a quarter of its height around it. Not animated. */
.store-badge {
  display: block;
  width: 180px;
  height: 54px;
  object-fit: contain;
}

/* ---------- Legal / text pages ---------- */

.doc {
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px 16px;
}

.doc article {
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

.doc h1 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.01em;
}

.doc h2 {
  margin: 32px 0 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
}

.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; }
.doc ul { list-style: disc; }
.doc li { margin: 0 0 8px; }
.doc strong { font-weight: 600; }
.doc a { word-break: break-word; text-underline-offset: 0.15em; }

/* Effective date line under the title */
.doc.privacy h1 + p { margin-bottom: 32px; color: var(--gray-600); font-size: 14px; }

.doc.support p { margin-bottom: 20px; }
.doc.support p:last-of-type {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 14px;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px 16px;
}
.notfound article { max-width: 48rem; margin: 0 auto; }
.notfound h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
}
.notfound p { margin: 0; color: var(--gray-600); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 64px;
  padding: 48px 0;
  background: var(--white);
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer .copyright { color: var(--gray-600); font-size: 14px; line-height: 20px; }
.site-footer .links {
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 12px;
  line-height: 16px;
}
.site-footer .links a { color: var(--gray-500); text-decoration: none; }
.site-footer .links a:hover { color: var(--gray-900); text-decoration: underline; }
.site-footer .sep { margin: 0 6px; }

/* ---------- Wider screens (Tailwind sm / lg) ---------- */

@media (min-width: 640px) {
  :root { --px: 24px; }
  .hero h1 { font-size: 48px; line-height: 1; }
  .hero .lede { font-size: 20px; }
  .doc { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  :root { --px: 32px; }
  .doc { padding-left: 32px; padding-right: 32px; }
}
