:root {
  color-scheme: light;
  --paper: #faf9f8;
  --section-paper: #f0eef5;
  --ink: #181626;
  --brand: #1800ad;
  --on-brand: #fff;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --serif: Georgia, serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --page-width: 82rem;
  --anchor-offset: 6rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.55 var(--sans);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 5px;
}

::selection {
  color: var(--on-brand);
  background: var(--brand);
}

.page-width {
  inline-size: min(calc(100% - 2 * var(--gutter)), var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 0.5rem auto auto var(--gutter);
  padding: 0.75rem 1rem;
  background: var(--on-brand);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  background: var(--paper);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-block-size: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-block-size: 44px;
  color: var(--brand);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-block-size: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  inline-size: min(calc(100% - var(--gutter)), calc(var(--page-width) + var(--gutter)));
  margin-inline-start: max(var(--gutter), calc((100% - var(--page-width)) / 2));
  padding-block: clamp(1.5rem, 4vw, 4rem) clamp(3.5rem, 6vw, 6rem);
}

.hero-copy {
  padding-block: 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
}

.hero-slogan {
  margin: clamp(1.5rem, 3vw, 2.75rem) 0 0;
  font: italic 400 clamp(1.375rem, 2.15vw, 1.875rem) / 1.3 var(--serif);
}

.hero-summary {
  max-inline-size: 34ch;
  margin: 0.875rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
}

.hero-art {
  display: grid;
  place-items: center;
  min-block-size: clamp(28rem, 44vw, 41rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--brand);
  border-start-start-radius: clamp(3.5rem, 9vw, 8rem);
}

.logo-mark {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

/* The supplied PNG has a white canvas around the central mark. */
.logo-mark img {
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 470%;
  block-size: 470%;
  transform: translate(-50%, -50%);
}

.brand-mark {
  inline-size: 1.5rem;
  mix-blend-mode: multiply;
}

.hero-mark {
  inline-size: min(70%, 27rem);
  mix-blend-mode: screen;
}

.hero-mark img {
  filter: grayscale(1) invert(1) contrast(3);
}

#main-content,
.proposal-section {
  scroll-margin-block-start: var(--anchor-offset);
}

.proposal-sections {
  background: var(--section-paper);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  padding-inline: var(--gutter);
}

.proposal-sections .page-width {
  inline-size: min(100%, var(--page-width));
}

.proposal-section + .proposal-section {
  margin-block-start: clamp(2rem, 4vw, 4rem);
}

.proposal-section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.proposal-section:target h2 {
  color: var(--brand);
}

.proposal-section:focus-visible {
  outline: none;
}

.proposal-section:focus-visible > h2 {
  inline-size: fit-content;
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.proposal-questions {
  margin: clamp(1.75rem, 4vw, 3.5rem) 0 0;
  padding-inline-start: clamp(1.625rem, 3vw, 2.5rem);
}

.proposal-questions > li::marker {
  color: var(--brand);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 700;
}

.proposal-questions > li + li {
  margin-block-start: clamp(3rem, 6vw, 5.5rem);
}

.proposal-question {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  scroll-margin-block-start: var(--anchor-offset);
}

.question-copy {
  max-inline-size: 48ch;
}

.question-copy:only-child {
  grid-column: 1 / -1;
  max-inline-size: 64ch;
}

.question-copy h3 {
  margin: 0;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}

.question-copy p {
  margin: 0.875rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}

.question-copy .question-recommendation {
  margin-block-start: 1.5rem;
}

.question-recommendation strong {
  display: block;
  margin-block-end: 0.25rem;
  color: var(--brand);
}

.screen-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  inline-size: 100%;
  max-inline-size: 39rem;
}

.screen-comparison figure {
  margin: 0;
}

.screen-comparison figcaption {
  margin-block-end: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.screen-comparison a,
.screen-comparison img {
  display: block;
}

.screen-comparison img {
  inline-size: 100%;
  block-size: auto;
  border-radius: 0.75rem;
}

.quote-intro {
  max-inline-size: 66ch;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.plan-stack {
  max-inline-size: 54rem;
  margin-block-start: clamp(1.75rem, 4vw, 3.5rem);
  scroll-margin-block-start: var(--anchor-offset);
}

.plan-stack h3 {
  margin: 0;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.plan-stack table {
  inline-size: 100%;
  margin-block-start: 0.875rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.plan-stack th,
.plan-stack td {
  padding: 0.75rem 1rem;
  overflow-wrap: anywhere;
  text-align: start;
  vertical-align: top;
}

.plan-stack thead th:first-child {
  inline-size: 27%;
}

.plan-stack thead {
  background: #e7e3f1;
}

.plan-stack tbody tr:nth-child(odd) {
  background: var(--paper);
}

.plan-stack tbody tr:nth-child(even) {
  background: #f7f5fa;
}

.plan-stack tbody th {
  color: var(--brand);
}

.plan-stack p {
  margin: 1rem 0 0;
}

.site-footer {
  padding-block: clamp(1.25rem, 4vw, 3rem);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--brand);
  text-underline-offset: 0.2em;
}

@media (max-width: 62rem) {
  .proposal-question {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 38rem) {
  .plan-stack thead th:first-child {
    inline-size: 9rem;
  }
}

@media (max-width: 32rem) {
  .plan-stack thead th:first-child {
    inline-size: 37%;
  }

  .plan-stack th,
  .plan-stack td {
    padding: 0.625rem;
  }

  .plan-stack tr > :first-child {
    padding-inline-end: 0.25rem;
  }

  .plan-stack th {
    font-size: 0.875rem;
  }

  .screen-comparison {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-inline-size: 22rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

@media (max-width: 22rem) {
  .plan-stack thead th:first-child {
    inline-size: 7rem;
  }
}

@media (max-width: 44rem) {
  :root {
    --anchor-offset: 7.75rem;
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 0.375rem 0.5rem;
  }

  .brand {
    justify-self: start;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: minmax(min-content, 1fr) minmax(min-content, 1.1fr) minmax(min-content, 1fr);
    gap: clamp(0.5rem, 2.5vw, 1.25rem);
  }

  .site-nav a {
    font-size: clamp(0.8125rem, 3.5vw, 0.875rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-block: clamp(1.625rem, 6vw, 3rem) 2.75rem;
  }

  .hero-copy {
    padding: 0 var(--gutter) 0 0;
  }

  .hero-art {
    min-block-size: 0;
    block-size: clamp(14rem, 64vw, 24rem);
  }

  .hero-mark {
    inline-size: min(56%, 17.5rem);
    max-block-size: 78%;
  }
}

@media (orientation: landscape) and (min-width: 34rem) and (max-height: 30rem) {
  :root {
    --anchor-offset: 4.25rem;
  }

  .site-header-inner {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    min-block-size: 3.5rem;
    padding-block: 0.25rem;
  }

  .site-nav ul {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
  }

  .hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: 1.25rem 2rem;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }

  .hero-slogan {
    margin-block-start: 1rem;
  }

  .hero-art {
    min-block-size: 0;
    block-size: clamp(13rem, 70svh, 19rem);
  }

  .hero-mark {
    inline-size: min(66%, 16rem, 53svh);
    max-block-size: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-mark {
    animation: cover-mark-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes cover-mark-in {
    from {
      transform: translateY(0.75rem);
    }
  }
}
