/* The hosted pages: only what brand/tokens.css and brand/components.css do not already give. */

/* The three families, same files the app bundles (latin subset), served from here. Both Bodoni and
   Hanken are variable; the brand tokens name "… Variable". */
@font-face {
  font-family: "Bodoni Moda Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/hosted/fonts/bodoni-moda-latin-opsz-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Hanken Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/hosted/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/hosted/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations");
}

[hidden] {
  display: none !important;
}

.h-page {
  min-height: 100dvh;
  padding: var(--space-6) var(--space-4) var(--space-16);
}
.h-page--centered {
  display: grid;
  place-items: start center;
  padding-block-start: clamp(var(--space-8), 14vh, var(--space-24));
}

.h-logo {
  display: inline-block;
  line-height: 0;
  border-radius: var(--radius-xs);
}
.h-logo img {
  display: block;
  width: 6.4rem;
  height: auto;
}

/* ---- Sign-in ---- */
.h-door {
  width: 100%;
  max-width: 24rem;
  display: grid;
  gap: var(--space-6);
}
.h-door section {
  display: grid;
  gap: var(--space-5);
}
.h-door h1:focus {
  outline: none;
}
.h-lede {
  margin-block-start: calc(var(--space-2) * -1);
}
.h-invite {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
}
.h-stack {
  display: grid;
  gap: var(--space-4);
}
.h-or {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}
.h-or .b-btn {
  justify-self: stretch;
}
.h-code {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.h-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.h-linkbtn {
  padding: var(--space-2) 0;
  min-height: 2.75rem;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 0.2em;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.h-linkbtn:hover {
  text-decoration-color: var(--text);
}
.h-linkbtn:disabled {
  color: var(--text-faint);
  cursor: not-allowed;
}
.h-alert:not([hidden]) {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  background: var(--danger-soft);
}
.h-status:empty {
  display: none;
}
.h-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* ---- Account ---- */
.h-account {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}
.h-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: var(--space-10);
}
.h-account > h1 {
  margin-block-end: var(--space-6);
}
#content {
  display: grid;
  gap: var(--space-6);
}
.h-section {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
}
.h-section[hidden] {
  display: none;
}
.h-big {
  font-size: var(--fs-lg);
}
.h-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.h-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--border);
}
.h-list:empty {
  display: none;
}
.h-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-block-end: 1px solid var(--border);
}
.h-item__main {
  min-width: 0;
}
.h-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  overflow-wrap: anywhere;
}
.h-item__facts {
  margin-block-start: var(--space-0-5);
}
.h-item .b-btn {
  flex: none;
}
.h-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-3);
}
.h-reveal {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--text);
  border-radius: var(--radius-lg);
}
.h-copy {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.h-copy .b-input {
  flex: 1 1 14rem;
  font-size: var(--fs-sm);
}
.h-howto {
  line-height: 1.7;
  color: var(--text-muted);
}
.h-danger {
  margin-block-start: var(--space-8);
  border-color: var(--danger-border);
}
.h-danger .b-h3 {
  color: var(--danger);
}

@media (max-width: 30rem) {
  .h-section {
    padding: var(--space-4);
  }
  .h-item {
    flex-wrap: wrap;
  }
  .h-inline {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
