/*
 * Sudoku 360 site: the app's notebook look (Phase 8 D-09).
 * Colours are a copy of src/theme/tokens.ts (LIGHT / DARK). Keep them in sync by hand.
 */

@font-face {
  font-family: 'Patrick Hand';
  src: url(fonts/PatrickHand-Regular.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* copy of src/theme/tokens.ts LIGHT */
  --paper: #F7F3E8;
  --paper-square: rgba(92, 128, 168, 0.20);
  --ink: #2B2A27;
  --muted: #6F6C66;
  --link: #1F4FB8;
  --marker: #FFD83A;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* copy of src/theme/tokens.ts DARK (chalkboard) */
    --paper: #22272B;
    --paper-square: rgba(236, 232, 223, 0.08);
    --ink: #E4E0D6;
    --muted: #9A9A94;
    --link: #8FB8FF;
    --marker: #FFB35C;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-square) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-square) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main,
header,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 1.5rem;
}

header a.home {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: 'Patrick Hand', cursive;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 2.6rem;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.8rem;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.25rem;
}

a {
  color: var(--link);
}

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

/* Landing page */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-size: 3.2rem;
}

.hero p {
  font-size: 1.25rem;
}

.store {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 90%, transparent 90%);
}

footer {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
}

footer a {
  margin: 0 0.6rem;
}
