/* The coming-soon site for aakt.io. The tokens are the website's own
   (web/app/globals.css): the page, the card, the red brick, the yellow
   ring. Fonts are a system stack, so nothing is fetched from anyone. */

:root {
  color-scheme: light dark;
  --background: #eaeae4;
  --foreground: #1b1b1f;
  --card: #ffffff;
  --primary: #d01012;
  --primary-deep: #9e0c0e;
  --muted-foreground: #5c5c64;
  --border: rgba(27, 27, 31, 0.11);
  --fill: rgba(27, 27, 31, 0.06);
  --ring: #ffd500;
  --brick-yellow: #ffd500;
  --brick-yellow-deep: #c9a800;
  --link: #0055bf;
  --shadow-rest: 0 3px 0 rgba(27, 27, 31, 0.08), 0 12px 26px rgba(27, 27, 31, 0.1);
  --font-display: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Segoe UI', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #16171b;
    --foreground: #f2f2ee;
    --card: #23252c;
    --primary: #e02a22;
    --primary-deep: #a50d0f;
    --muted-foreground: #a8a8b0;
    --border: rgba(242, 242, 238, 0.14);
    --fill: rgba(242, 242, 238, 0.08);
    --link: #7fb3ff;
    --shadow-rest: 0 3px 0 rgba(0, 0, 0, 0.4), 0 14px 30px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
.brand,
.pill {
  font-family: var(--font-display);
}

/* the header: the wordmark with its stud, and a crumb on the legal pages */
.head {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--foreground);
  text-decoration: none;
}

.brand .crumb {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted-foreground);
}

.stud {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--primary);
  box-shadow: 0 2px 0 var(--primary-deep);
}

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* the brick: a card that sits on the page with a hard edge under it */
.brick {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-rest);
  padding: 2rem 1.5rem;
}

/* the front page */
.home main {
  display: grid;
  align-content: center;
}

.home .brick {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
}

.wordmark .stud {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--primary-deep);
}

.lead {
  margin: 0;
  font-size: 1.125rem;
  text-wrap: pretty;
}

.pill {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: var(--brick-yellow);
  color: #1b1b1f;
  font-weight: 600;
  box-shadow: 0 3px 0 var(--brick-yellow-deep);
}

.quiet {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* the legal pages */
.doc h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  line-height: 1.2;
}

.doc h2 {
  margin: 2rem 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.doc p {
  margin: 0.5rem 0 0;
}

.doc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.doc .draft {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--fill);
}

/* the foot */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  padding: 1.25rem 1rem 1.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.foot a {
  color: inherit;
}

@media (min-width: 40rem) {
  .brick {
    padding: 2.75rem 2.5rem;
  }

  .wordmark {
    font-size: 4rem;
  }

  .wordmark .stud {
    width: 2rem;
    height: 2rem;
  }
}
