body {
  margin: auto;
  min-height: 100vh;
  min-width: 100%;
  background: var(--ory-theme-background-canvas);
  display: flex;
  flex-direction: column;
  /* @ory/elements-markup sets the family on its own components but never on the
     document, so body was left on the browser default — Times. The value comes
     from src/pkg/theme.ts via the generated theme.css. */
  font-family: var(--ory-theme-font-family);
  /* The styles package's shell is font-light; markup's typography components
     name their own weight, so this only reaches what they don't. */
  font-weight: 300;
}

/* Headings in the serif face, as the styles package's base layer has them.
   Matched on markup's size variants rather than on h1-h6, because most of what
   these pages size like a heading is body copy: the real headings now come from
   the `heading` helper (src/pkg/index.ts), which retags markup's Typography div,
   so they carry the same class and are covered here either way. The class names
   are hashed at build time, hence the substring match; public/accessibility-focus.css
   already depends on the same class names, and both go away when that page
   is ported to @ory/elements-react.

   Only the family is taken. Markup's own scale sets the sizes, and the package's
   (h1 is text-6xl) is not the same thing. There is no theme slot for a serif
   stack — Theme has fontFamily and fontFamilyMono only — so it is spelled out
   here; keep it in step with --font-serif in web/theme.css. */
[class*="typography_size_headline"],
[class*="typography_size_display"],
[class*="typography_size_hero"],
[class*="typography_size_uber"],
[class*="typography_size_colossus"] {
  font-family: "Bitter Variable", ui-serif, Georgia, serif;
}

/* Ory's CardGradient carries its elevation as `filter: drop-shadow()`, and hangs
   the gradient wash off a `:before` at `z-index: -1` on the same element. The
   filter makes that element a stacking context, so Chrome rasterises the card
   into its own layer and paints the unfiltered content underneath it — the
   quick actions come out with a ghost copy of their own text offset behind the
   card. Firefox composites it correctly, which is why this only shows up in
   Chrome. Same shadow as a box-shadow, which needs no layer. The class name is
   hashed at build time, hence the substring match; the anchor qualifier keeps
   it off the arrow `<i>`, which shares the stem and has no box to cast one. */
a[class*="card_gradient"] {
  filter: none;
  box-shadow: 0 0 1px rgba(48, 49, 51, 0.05), 0 8px 16px rgba(48, 49, 51, 0.1);
}

/* the browser adds margins to these elements by default */
ul,
ol,
p,
h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0;
}

/* main contains all of our page elements - excluding the footer */
main {
  /* fill the page */
  flex: 1;
}

.divider {
  width: 4rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.spacing-32 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.spacing-32-horizontal {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.spacing-16 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spacing-16-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.spacing-8 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* The left-aligned divider under the welcome headline. The rule
   markup ships for the class on that element is `margin: auto !important`, so a
   plain `margin: 0` never applied and the 4rem rule sat centred in the content
   column, under a left-aligned heading. Important beats important on order, and
   main.css loads after style.css. Its vertical spacing comes from the parent's
   `spacing-32` gap, as it already did while `auto` was winning — the 2rem in
   `.divider` above has never reached it either. */
.divider-left {
  margin: 0 !important;
}

.ory-branding {
  display: flex;
  flex-direction: row;
  gap: 0.375rem;
  align-items: center;
  padding-bottom: 2rem;
}

.site-header img {
  display: block;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 2;
}

/* pushes the menu links to either side of the footer bar */
.footer-container {
  padding: 1rem 1.5rem;
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75rem;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ory-theme-foreground-muted);
  background-color: var(--ory-theme-background-surface);
}

.footer-divider {
  height: 0;
  border-top: 1px !important;
}

@media screen and (max-width: 24.375em) {
  .footer-container > div:last-child {
    display: none;
  }
}

@media screen and (max-width: 40em) {
  body {
    background: var(--ory-theme-background-surface);
  }
}
