body {
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-block-size: 100dvh;
}

h1 {
  font-weight: 600;
  font-size: var(--font-headline-1);
}

h2 {
  font-weight: 600;
  font-size: var(--font-headline-2);
}

h3 {
  font-weight: 500;
  font-size: var(--font-headline-3);
}

p {
  font-weight: 400;
  font-size: var(--font-text);
}

label+input {
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
p {
  color: var(--color-text);
}

.max-widthcontainer {
  margin-inline: auto;
  padding-inline: var(--page-padding-x);
  max-inline-size: var(--maxwidth);
}

body:has(#dashboard-main) {
  display: flex;
  min-height: 100dvh;
}

#dashboard-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;

  header {
    padding: var(--spacing-xs);
    border-block-end: var(--dashboard-border-width) solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--color-background);
    z-index: 10;

    .logo-wrapper {
      height: 100%;
      padding: 0.5rem;
    }

    button {
      border: 0;
      padding: .5rem;
      background: none;
      cursor: pointer;
    }
  }
}

#dashboard-content {
  padding: var(--spacing-xl);
  max-width: 75rem;
  container-type: inline-size;
  container-name: dashboard-content;
  flex-grow: 1;
  overflow-y: auto;
}

.dashboard-subheading {
  max-width: 30rem;
  padding-top: var(--spacing-m);
  transition: margin-inline-start .2s ease-in-out;
}

svg {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  #dashboard-main {
    header {
      .logo-wrapper {
        display: none;
      }
    }
  }
}

.section-header {
  display: flex;
  justify-content: space-between;

  .btn {
    width: fit-content;
    text-decoration: none;
    padding-inline: var(--spacing-m);
    flex-shrink: 0;
  }
}

@container dashboard-content (max-width: 700px) {
  .section-header {
    flex-direction: column;

    .btn {
      margin-top: var(--spacing-l);
    }
  }
}