/* Base styles of the standalone demo. They provide the handful of theme classes the
   section relies on (page width, headings, buttons, hidden labels), so the demo can be
   published without the theme's own stylesheet. */

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media screen and (min-width: 750px) {
  .page-width {
    padding: 0 5rem;
  }
}

.gradient {
  background: rgb(var(--color-background));
}

h1,
h2,
.h0,
.h1,
.h2 {
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  font-weight: var(--font-heading-weight);
  letter-spacing: calc(var(--font-heading-scale) * 0.06rem);
  color: rgb(var(--color-foreground));
  line-height: calc(1 + 0.3 / max(1, var(--font-heading-scale)));
  word-break: break-word;
}

.h0 {
  font-size: calc(var(--font-heading-scale) * 4rem);
}

h1,
.h1 {
  font-size: calc(var(--font-heading-scale) * 3rem);
}

h2,
.h2 {
  font-size: calc(var(--font-heading-scale) * 2rem);
}

@media only screen and (min-width: 750px) {
  .h0 {
    font-size: calc(var(--font-heading-scale) * 5.2rem);
  }

  h1,
  .h1 {
    font-size: calc(var(--font-heading-scale) * 4rem);
  }

  h2,
  .h2 {
    font-size: calc(var(--font-heading-scale) * 2.4rem);
  }
}

.caption-with-letter-spacing {
  font-size: 1rem;
  letter-spacing: 0.13rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

.rte > p:first-child {
  margin-top: 0;
}

.rte > p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 12rem;
  min-height: 4.5rem;
  padding: 0 3rem;
  border: var(--buttons-border-width) solid rgb(var(--color-button));
  border-radius: var(--buttons-radius);
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.1s ease;
  appearance: none;
}

.button:not([disabled]):hover {
  box-shadow: 0 0 0 0.1rem rgb(var(--color-button));
}

.button--secondary {
  border-color: rgb(var(--color-secondary-button-text));
  background-color: rgb(var(--color-secondary-button));
  color: rgb(var(--color-secondary-button-text));
}

.button--secondary:not([disabled]):hover {
  box-shadow: 0 0 0 0.1rem rgb(var(--color-secondary-button-text));
}

.button--full-width {
  display: flex;
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button:focus-visible,
.link:focus-visible {
  outline: 0.2rem solid rgba(var(--color-foreground), 0.5);
  outline-offset: 0.3rem;
}

.link {
  display: inline-block;
  border: none;
  padding: 0;
  background-color: transparent;
  color: rgb(var(--color-link));
  font: inherit;
  font-size: 1.4rem;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  cursor: pointer;
}

a {
  color: rgb(var(--color-link));
}
