:root {
  --c-text: #111827;
  --c-muted: #374151;
  --c-soft: #4b5563;
  --c-border: #e5e7eb;
  --c-bg: #ffffff;
  --c-bg-blur: rgba(255, 255, 255, 0.9);
  --max-prose: 48rem;
  --max-page: 72rem;
  --header-h: 4rem;
  --hero-mask: radial-gradient(ellipse at center, #000 80%, transparent 100%);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #000; color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--c-bg-blur);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}
.nav-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.25rem;
  font-weight: 500;
  padding: .25rem .5rem;
}
.nav-desktop { display: none; gap: 1.5rem; }
.nav-desktop a {
  font-size: .875rem;
  color: var(--c-muted);
  padding: .25rem .5rem;
  border-radius: .375rem;
  transition: color .15s, background-color .15s;
}
.nav-desktop a:hover { color: var(--c-text); background: #f9fafb; }
.nav-desktop a[aria-current="page"] { color: var(--c-text); font-weight: 500; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: transparent; border: 0; cursor: pointer;
  border-radius: .375rem;
  color: var(--c-text);
}
.menu-btn:hover { background: #f9fafb; }
.menu-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.menu-btn svg { width: 1.25rem; height: 1.25rem; }

/* Mobile menu panel */
.nav-mobile {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: .5rem 1rem 1rem;
  z-index: 40;
  display: none;
}
.nav-mobile[data-open="true"] { display: block; }
.nav-mobile a {
  display: block;
  padding: .75rem .5rem;
  font-size: 1rem;
  color: var(--c-muted);
  border-radius: .375rem;
}
.nav-mobile a:hover { background: #f9fafb; color: var(--c-text); }
.nav-mobile a[aria-current="page"] { color: var(--c-text); font-weight: 500; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .nav-mobile { display: none !important; }
}

/* Main */
main { flex: 1 1 auto; display: flex; flex-direction: column; }

.hero {
  padding: 0 1.5rem;
  position: relative;
  text-align: center;
}
@media (min-width: 768px) {
  .hero { padding: 0 3rem; }
}
.hero picture { display: inline-block; max-width: 100%; }
.hero img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  /* Cap by viewport height so the first line of text is always above the fold.
     Reserves room for header (4rem) + section padding + one line of text. */
  max-height: calc(100dvh - var(--header-h) - 7rem);
  -webkit-mask-image: var(--hero-mask);
          mask-image: var(--hero-mask);
}
@media (min-width: 768px) {
  .hero img { max-width: 56rem; }
}

.section { padding: 2rem 1.5rem; }
@media (min-width: 768px) { .section { padding: 2rem 2.5rem; } }
.prose { max-width: var(--max-prose); margin: 0 auto; }

.lead {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .lead { font-size: 1.875rem; line-height: 1.2; }
}

.h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #000;
}
@media (min-width: 768px) {
  .h2 { font-size: 1.875rem; line-height: 1.2; }
}

.body { font-size: .875rem; color: var(--c-muted); }
.body a { text-decoration: underline; transition: opacity .15s; }
.body a:hover { opacity: .8; }
@media (min-width: 768px) {
  .body { font-size: 1rem; }
}

.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.feature-grid { display: grid; gap: 1.5rem; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 768px) {
  .feature-row { grid-template-columns: 1fr 2fr; }
}
.feature-row h2 {
  font-size: .875rem;
  font-weight: 500;
  color: #111827;
}
.feature-row p { font-size: .875rem; color: var(--c-muted); }
@media (min-width: 768px) {
  .feature-row h2, .feature-row p { font-size: 1rem; }
}

.contact-img {
  margin-top: 1.5rem;
  width: 100%;
  height: auto;
  -webkit-mask-image: var(--hero-mask);
          mask-image: var(--hero-mask);
}
@media (min-width: 768px) {
  .contact-img { width: auto; max-width: 100%; margin-left: auto; margin-right: auto; }
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--c-border);
}
.footer-inner {
  max-width: var(--max-prose);
  margin: 0 auto;
  text-align: center;
  font-size: .875rem;
  color: var(--c-soft);
}
@media (min-width: 768px) {
  .site-footer { padding: 1.5rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
