/* Same warm-neutral palette as the app (app.99daysof.com) — see that
   repo's assets/css/app.css for the source of truth. Light theme only. */
:root {
  --color-base-100: hsl(30, 8%, 97%);
  --color-base-200: hsl(30, 8%, 93%);
  --color-base-300: hsl(30, 8%, 88%);
  --color-base-content: hsl(30, 8%, 40%);
  --color-heading: hsl(30, 10%, 20%);
  --color-primary: hsl(28, 88%, 52%);
  --color-primary-content: hsl(30, 20%, 98%);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-base-100);
  color: var(--color-base-content);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-base-100);
  color: var(--color-heading);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--narrow {
  max-width: 680px;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgb(from var(--color-base-300) r g b / 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  opacity: 0.85;
}

.brand-mark {
  height: 28px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.header-nav a {
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}
.header-nav a:hover {
  opacity: 1;
}

.btn {
  display: inline-block;
  border: 1px solid var(--color-base-300);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  color: var(--color-heading);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  background: transparent;
}
.btn:hover {
  border-color: var(--color-heading);
}

.btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-content);
}
.btn--primary:hover {
  opacity: 0.92;
  border-color: var(--color-primary);
}

.btn--large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  text-align: center;
  padding-block: 5rem 3rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--color-primary);
}

.hero .lede {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Grid art */
.grid-art {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 3.5rem auto;
}

.grid-art span {
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--dot-color, var(--color-base-300));
  opacity: var(--dot-opacity, 1);
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--color-base-300);
  margin: 0 auto 3.5rem;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 0 0 5rem;
  text-align: center;
}

.features h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.features p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

.cta {
  text-align: center;
  padding-bottom: 5rem;
}

.cta .fine-print {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid rgb(from var(--color-base-300) r g b / 0.5);
}

.section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-heading);
  margin: 0 0 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  text-align: center;
}

.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Simple content pages (privacy, terms, blog post) */
.page-header {
  padding-block: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
}

.page-header .meta {
  font-size: 0.9rem;
  opacity: 0.6;
}

.prose {
  padding-bottom: 4rem;
}

/* Support page */
.support-sections {
  padding-bottom: 4rem;
}

.support-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgb(from var(--color-base-300) r g b / 0.5);
}

.support-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 0.4rem;
}

.support-section p {
  margin: 0 0 1.1rem;
  opacity: 0.85;
}

.support-cta {
  padding-top: 2rem;
  text-align: center;
}

.prose h2 {
  font-size: 1.25rem;
  color: var(--color-heading);
  margin: 2.5rem 0 0.75rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  opacity: 0.9;
}

.prose ul {
  padding-left: 1.25rem;
}

/* Blog index */
.post-list {
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  border-bottom: 1px solid rgb(from var(--color-base-300) r g b / 0.5);
  padding-bottom: 2rem;
  text-decoration: none;
  display: block;
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-heading);
  margin: 0 0 0.4rem;
}

.post-card .post-date {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-bottom: 0.5rem;
}

.post-card p {
  margin: 0;
  opacity: 0.85;
}

.empty-state {
  text-align: center;
  padding-block: 3rem 5rem;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgb(from var(--color-base-300) r g b / 0.5);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  text-decoration: underline;
}
