/* Hand-written port of the Next.js site's Tailwind styles. */

:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #737373;
  --body-text: #525252;
  --border: #e5e5e5;
  --button-bg: #171717;
  --button-fg: #ffffff;
  --button-hover: #262626;
  --dialog-bg: #ffffff;
  --dialog-fg: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
    --body-text: #a3a3a3;
    --border: #262626;
    --button-bg: #ffffff;
    --button-fg: #171717;
    --button-hover: #e5e5e5;
    --dialog-bg: #171717;
    --dialog-fg: #f5f5f5;
  }
}

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

html {
  height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, sans-serif;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

main {
  flex: 1;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Hero */

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

.eyebrow {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--muted);
}

.lede {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--body-text);
}

.actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  background: var(--button-bg);
  color: var(--button-fg);
}

.button:hover {
  background: var(--button-hover);
}

.button-small {
  padding: 0.5rem 1.25rem;
}

/* Services */

.services {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--border);
}

.services h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

.grid h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.grid p {
  margin-top: 0.5rem;
  color: var(--body-text);
}

footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted);
}

/* "Start a project" dialog */

.dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 90vw;
  max-width: 28rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 2rem;
  background: var(--dialog-bg);
  color: var(--dialog-fg);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.dialog::backdrop {
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
}

.dialog h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  text-align: center;
}

.dialog p {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--body-text);
}

.dialog-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Wider screens (Tailwind's sm breakpoint) */

@media (min-width: 40rem) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }

  .hero h1 {
    font-size: 3.75rem;
    line-height: 1;
  }

  .services h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
