/* Landing page styles. System fonts only: the page makes no requests to other sites. */
:root {
  --bg: #f6f1e7;
  --surface: #fffcf6;
  --ink: #1d2621;
  --muted: #5b625d;
  --line: #ddd3c1;
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --square: #1f5f4a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131816;
    --surface: #1b211e;
    --ink: #ece6da;
    --muted: #a6aca4;
    --line: #2e3632;
    --accent: #7cc4a4;
    --accent-ink: #0f1a15;
    --square: #7cc4a4;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

.bar,
main,
.foot {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 0.3rem;
  background: repeating-conic-gradient(var(--square) 0 25%, var(--bg) 0 50%) 0 0 / 50% 50%;
  border: 2px solid var(--square);
}

.button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

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

.button-large {
  padding: 0.8rem 1.5rem;
  font-size: 1.05rem;
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0 0 2rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.3rem;
}

.board {
  aspect-ratio: 1;
  width: 100%;
  max-width: 22rem;
  justify-self: end;
  border-radius: 0.75rem;
  border: 6px solid var(--square);
  background: repeating-conic-gradient(var(--square) 0 25%, var(--surface) 0 50%) 0 0 / 25% 25%;
  opacity: 0.9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.card {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.card p {
  margin: 0;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  /* Decoration only: on a phone the content comes first. */
  .board {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .brand span:last-child {
    font-size: 1rem;
  }
}
