:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #666666;
  --quiet: #8a8a8a;
  --line: #d8d8d8;
  --surface: #ffffff;
  --focus: #000000;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface);
  font-family: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.site-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 72px);
  height: 64px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: lowercase;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active {
  font-weight: 600;
}

.page-shell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.content-page-shell {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 40px);
}

.content-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.content-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--ink);
}

.content-subtitle {
  margin: 0;
  color: var(--quiet);
  font-size: 0.95rem;
  line-height: 1.4;
}

.prose {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2.2rem 0 0.8rem;
  text-transform: lowercase;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1.8rem 0 0.6rem;
  text-transform: lowercase;
}

.prose p {
  margin: 0 0 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  border-left: 2px solid var(--ink);
  background: #f9f9f9;
  font-style: italic;
  color: var(--ink);
}

/* Author Profile */
.author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.author-avatar {
  width: 56px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.2rem;
}

.author-name {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: lowercase;
}

/* FAQ Accordion / Cards */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faq-card {
  border: 1px solid var(--line);
  padding: 1.4rem;
  background: var(--surface);
}

.faq-question {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: lowercase;
}

.faq-answer {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Release Notes Timeline */
.release-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.release-entry {
  padding-left: 1.2rem;
  border-left: 2px solid var(--line);
}

.release-version {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.release-date {
  font-size: 0.76rem;
  color: var(--quiet);
  margin-bottom: 0.8rem;
  text-transform: lowercase;
}

/* Blog List Cards */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.blog-card {
  display: block;
  padding: 1.4rem;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.blog-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.blog-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: lowercase;
}

.blog-card-meta {
  font-size: 0.76rem;
  color: var(--quiet);
  margin-bottom: 0.6rem;
}

.blog-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero {
  width: min(100%, 920px);
  text-align: center;
}

.brand {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
  text-decoration: none;
  letter-spacing: 0;
}

.brand:hover {
  color: var(--ink);
}

h1 {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

.headline-part {
  display: block;
}

.rotating-phrase {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.08s cubic-bezier(0.4, 0, 0.2, 1), transform 0.08s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  color: var(--ink); /* Give it a solid contrast boost against the muted body of the header */
}

.rotating-phrase.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.rotating-phrase.fade-in-start {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

.subheadline {
  margin: clamp(16px, 3vw, 24px) 0 0;
  color: var(--quiet);
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  line-height: 1.4;
  font-weight: 400;
}

.signup-form {
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: clamp(28px, 5vw, 52px) auto 0;
  text-align: left;
}

.field-row {
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  text-transform: lowercase;
}

input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #b0b0b0;
}

input:focus {
  border-color: var(--focus);
  box-shadow: 0 1px 0 var(--focus);
}

button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  text-transform: lowercase;
  transition: background-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

button:hover {
  background: #2b2b2b;
}

button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.launch-channels {
  margin-top: clamp(24px, 4vw, 36px);
  text-align: center;
}

.launch-channels[hidden] {
  display: none !important;
}

.launch-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.launch-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.launch-icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  padding: 5px 8px;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms ease, transform 100ms ease;
  z-index: 10;
}

.launch-icon-btn[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.launch-icon-btn:hover {
  border-color: var(--ink);
  background: #f7f7f7;
  transform: translateY(-1px);
}

.launch-icon-btn img {
  display: block;
  width: 40px;
  height: 40px;
  filter: grayscale(1) opacity(0.7);
  transition: filter 160ms ease;
}

.launch-icon-btn:hover img {
  filter: grayscale(0) opacity(1);
}

.launch-label {
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: lowercase;
}

@media (max-width: 760px) {
  .page-shell {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(1.7rem, 10vw, 3rem);
  }

  .signup-form {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  button {
    width: 100%;
  }
}

.site-footer {
  padding: 24px clamp(24px, 5vw, 72px);
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.site-footer-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 400;
  text-transform: lowercase;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 400;
  text-decoration: none;
  text-transform: lowercase;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: var(--ink);
}
