:root {
  --ink: #1d1e20;
  --muted: #5f6063;
  --paper: #fff;
  --surface: #f1f2f5;
  --wine: #733b3b;
  --wine-dark: #3d0b0c;
  --wine-copy: #e5c8c8;
  --line: #c9cbd0;
  --focus: #087f8c;
  --max-width: 1224px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
}

button,
input,
textarea {
  font-family: inherit;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: 60px;
  font-weight: 700;
}

h2 {
  margin-bottom: 58px;
  font-size: 48px;
  font-weight: 700;
}

h3 {
  margin-bottom: 14px;
  font-size: 32px;
  font-weight: 400;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  box-shadow: 0 5px 12px rgba(18, 25, 28, 0.1);
}

.site-header__inner,
.section-shell,
.site-footer__inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 100px;
  gap: 32px;
}

.brand {
  width: 180px;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.primary-nav a,
.site-footer a {
  text-decoration: none;
}

.primary-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.primary-nav a[aria-current="page"] {
  color: var(--wine);
  font-weight: 650;
  text-decoration: underline;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  padding: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wine);
  border-radius: 6px;
  padding: 12px 26px;
  color: var(--paper);
  background: var(--wine);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  border-color: #572526;
  background: #572526;
}

.button:focus-visible,
.menu-button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 127, 140, 0.35);
  outline-offset: 3px;
}

.button--compact {
  justify-self: end;
  min-width: 112px;
}

.hero__content {
  display: flex;
  min-height: 548px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 56px;
  text-align: center;
}

.hero__lead {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 20px;
  line-height: 1.35;
}

.hero__body {
  max-width: 660px;
  margin-bottom: 40px;
  color: #33383b;
  font-size: 18px;
  line-height: 1.35;
}

.hero__button {
  min-width: 194px;
}

.hero__media {
  width: 100%;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #dceef5;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 38%;
}

.process {
  min-height: 690px;
  padding: 54px 0 78px;
  color: var(--paper);
  background: var(--wine-dark);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.process-card {
  min-height: 340px;
  border: 2px solid #cda5a6;
  border-radius: 8px;
  padding: 32px 24px;
}

.process-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  object-fit: contain;
}

.process-card p {
  max-width: 360px;
  margin: 0;
  color: var(--wine-copy);
  font-size: 18px;
  line-height: 1.35;
}

.process-card h3 {
  color: #e7cacc;
}

.about {
  padding: 72px 0;
  background: var(--paper);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(540px, 1fr);
  gap: 78px;
}

.about-list {
  display: grid;
  gap: 28px;
}

.about-list article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  align-items: center;
}

.about-list__icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 6px;
  background: #f1f2f5;
}

.about-list__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.about-list p {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.early-access {
  min-height: 650px;
  padding: 70px 0 92px;
  background: var(--surface);
}

.early-access__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1fr);
  gap: 78px;
}

.early-access__copy {
  max-width: 450px;
}

.early-access__copy p {
  font-size: 18px;
  line-height: 1.35;
}

.early-access-form {
  align-self: start;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
}

.field label {
  font-size: 16px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #b9bdc4;
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.3;
}

.field input {
  min-height: 52px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: #b42318;
}

.privacy-note {
  margin: 56px 0 0;
  color: #34383b;
  font-size: 16px;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 15px;
}

.form-status[data-state="error"] {
  color: #9b1c16;
}

.form-status[data-state="success"] {
  color: #12623b;
}

.latest-news {
  border-bottom: 1px solid #dfe1e4;
  padding: 17px 0 18px;
  background: var(--surface);
}

.latest-news__inner {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.section-kicker,
.news-meta {
  color: var(--wine);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 10px;
}

.latest-news__label {
  margin: 0;
  color: var(--wine);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.latest-news__entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.news-meta time {
  color: var(--muted);
  font-weight: 600;
}

.latest-news__entry .news-meta {
  margin: 0;
  white-space: nowrap;
}

.latest-news__entry h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
}

.latest-news__entry h2 a,
.news-entry h2 a {
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms ease;
}

.latest-news__entry h2 a:hover,
.news-entry h2 a:hover {
  text-decoration-color: currentColor;
}

.news-main {
  min-height: 70vh;
}

.news-hero {
  border-bottom: 1px solid #e3e4e7;
  padding: 86px 0 70px;
  background: var(--surface);
}

.news-hero__inner {
  max-width: 820px;
}

.news-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 54px;
}

.news-hero p {
  max-width: 650px;
  margin: 0;
  color: #44484b;
  font-size: 20px;
}

.news-list {
  padding: 72px 0 100px;
}

.news-list__inner {
  max-width: 900px;
}

.news-entry {
  border-top: 1px solid var(--line);
  padding: 34px 0 38px;
}

.news-entry:last-child {
  border-bottom: 1px solid var(--line);
}

.news-entry h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 35px;
}

.news-entry p:last-child {
  max-width: 700px;
  margin: 0;
  color: #45494c;
  font-size: 18px;
}

.article-shell {
  width: min(calc(100% - 48px), 820px);
  margin-inline: auto;
}

.article-header {
  border-bottom: 1px solid #e3e4e7;
  padding: 58px 0 54px;
  background: var(--surface);
}

.back-link {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--wine);
  font-weight: 650;
}

.article-header h1 {
  max-width: 810px;
  margin-bottom: 24px;
  font-size: 52px;
}

.article-summary {
  max-width: 760px;
  margin-bottom: 24px;
  color: #34383b;
  font-size: 22px;
  line-height: 1.42;
}

.article-byline {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.article-body {
  padding: 64px 0 86px;
}

.article-body h2 {
  margin: 54px 0 18px;
  font-size: 31px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  font-size: 19px;
  line-height: 1.68;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body ul {
  margin: 0 0 28px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-cta {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.article-cta h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.article-cta p {
  max-width: 660px;
  margin-bottom: 14px;
}

.article-cta a {
  color: var(--wine);
  font-weight: 700;
}

.site-footer {
  padding: 84px 0 48px;
  color: #e7e9ea;
  background: #101518;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 80px;
  align-items: end;
}

.site-footer__logo {
  width: 194px;
  margin-bottom: 24px;
}

.site-footer p {
  margin-bottom: 12px;
}

.site-footer nav {
  display: flex;
  gap: 36px;
}

@media (max-width: 900px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .brand {
    width: 142px;
  }

  .menu-button {
    display: flex;
    justify-self: end;
  }

  .header-join {
    display: none;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e2e4e6;
    padding: 8px 24px 16px;
    background: var(--paper);
    box-shadow: 0 12px 18px rgba(18, 25, 28, 0.12);
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 0;
  }

  .hero__content {
    min-height: 660px;
    align-items: flex-start;
    padding: 42px 22px 56px;
    text-align: left;
  }

  .hero__lead,
  .hero__body {
    max-width: 100%;
  }

  .hero__button {
    align-self: center;
  }

  .hero__media {
    height: 360px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-card {
    min-height: 0;
  }

  .about__grid,
  .early-access__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .early-access__copy {
    max-width: 620px;
  }

  .privacy-note {
    margin-top: 36px;
  }

  .news-hero {
    padding: 64px 0 58px;
  }

  .news-hero h1,
  .article-header h1 {
    font-size: 44px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    margin-bottom: 38px;
    font-size: 36px;
  }

  h3 {
    font-size: 26px;
  }

  .site-header__inner,
  .section-shell,
  .site-footer__inner {
    width: min(calc(100% - 44px), var(--max-width));
  }

  .hero__content {
    min-height: 690px;
    padding: 38px 22px 58px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .hero__body {
    font-size: 17px;
  }

  .hero__media {
    height: 230px;
  }

  .hero__media img {
    object-position: 50% 35%;
  }

  .process {
    padding: 42px 0 64px;
  }

  .process-card {
    padding: 28px 18px;
  }

  .process-card p,
  .about-list p,
  .early-access__copy p {
    font-size: 16px;
  }

  .about {
    padding: 58px 0 72px;
  }

  .about-list article {
    grid-template-columns: 54px 1fr;
    gap: 16px;
  }

  .about-list__icon {
    width: 54px;
    height: 54px;
  }

  .about-list__icon img {
    width: 38px;
    height: 38px;
  }

  .early-access {
    padding: 58px 0 72px;
  }

  .latest-news {
    padding: 16px 0 18px;
  }

  .latest-news__inner,
  .latest-news__entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .latest-news__entry h2,
  .news-entry h2 {
    font-size: 21px;
  }

  .news-entry p:last-child {
    font-size: 16px;
  }

  .news-hero {
    padding: 50px 0 46px;
  }

  .news-hero h1,
  .article-header h1 {
    font-size: 36px;
  }

  .news-hero p,
  .article-summary {
    font-size: 18px;
  }

  .news-list {
    padding: 48px 0 72px;
  }

  .article-shell {
    width: min(calc(100% - 44px), 820px);
  }

  .article-header {
    padding: 40px 0 42px;
  }

  .back-link {
    margin-bottom: 34px;
  }

  .article-body {
    padding: 46px 0 68px;
  }

  .article-body h2 {
    margin-top: 42px;
    font-size: 27px;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
  }

  .site-footer {
    padding: 60px 0 44px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
