/* The landing page: the application's colour tokens (frontend/src/index.css), both themes
   by the visitor's setting. The font is the application's Inter, copied next to this file by
   the site's build; opened from the file system the system font stands in. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;
  --background: #f3f5f4;
  --foreground: #0f1a14;
  --card: #ffffff;
  --primary: #15803d;
  --primary-foreground: #ffffff;
  --secondary: #eaefec;
  --muted-foreground: #5f6f66;
  --border: #d9e1dc;
  --ring: #15803d;
  --glow: rgba(22, 163, 74, 0.12);
  --shadow: 0 1px 2px rgba(15, 26, 20, 0.06), 0 8px 24px rgba(15, 26, 20, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #07090a;
    --foreground: #e7efe9;
    --card: #0f1412;
    --primary: #4ade80;
    --primary-foreground: #052e16;
    --secondary: #141a17;
    --muted-foreground: #9aa8a0;
    --border: rgb(255 255 255 / 10%);
    --ring: #4ade80;
    --glow: rgba(74, 222, 128, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, var(--glow), transparent 70%),
    var(--background);
  color: var(--foreground);
  font-family: 'Inter Variable', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.skip:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.top {
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.button.secondary {
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.button.large {
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.hero h1 {
  max-width: 22ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.2rem + 3.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 65ch;
  margin: 0 0 2rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

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

/* Screenshots */

.shots {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 60rem) {
  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

figure {
  margin: 0;
}

figure img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 0.75rem;
  font-weight: 600;
}

/* About and footer */

.about {
  padding-bottom: 3rem;
}

.about h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.about p {
  max-width: 65ch;
  margin: 0;
}

.foot {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.foot p {
  margin: 0 0 0.35rem;
}

.foot .thesis {
  color: var(--foreground);
  font-style: italic;
}
