@font-face {
  font-family: Fredoka;
  src: url("/fonts/fredoka-550.ttf") format("truetype");
  font-style: normal;
  font-weight: 550;
  font-display: swap;
}

:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--color-base-content);
  background: var(--color-base-100);
}

:where(button, input, select, textarea) {
  font-family: inherit;
}

* {
  box-sizing: border-box;
}

/*
 * Keep meaningful text available to assistive technologies while removing it
 * from the visual layout. Based on the W3C WAI form-label guidance:
 * https://www.w3.org/WAI/tutorials/forms/labels/#note-on-hiding-elements
 */
.visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  position: absolute;
  border: 0;
}

body {
  margin: 0;
}

.account-child-name-feedback:has(.text-error),
.account-child-name-feedback:has(input[type="submit"]:not([hidden])) {
  grid-column: 1 / -1;
  justify-content: space-between;
}

.app-shell {
  --app-header-height: calc(4rem + env(safe-area-inset-top));
  --app-top-offset: var(--app-header-height);
  --app-dock-height: 0px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: var(--app-top-offset);
  padding-bottom: var(--app-dock-height);
}

@media (width < 48rem) {
  .app-shell:has(.app-navigation) {
    --app-dock-height: calc(4rem + env(safe-area-inset-bottom));
  }
}

.app-shell main {
  scroll-margin-top: calc(var(--app-top-offset) + 1rem);
}

.app-viewport {
  display: flow-root;
  flex: 1;
}

.component-preview-document,
.component-preview {
  height: 100%;
}

.shell {
  width: min(48rem, calc(100% - 2rem));
  margin: 12vh auto;
}

.eyebrow {
  color: #52525b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1:not(.card-title) {
  margin-block: 0.25rem;
}

.shell h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.lede {
  max-width: 40rem;
  color: #3f3f46;
  font-size: 1.15rem;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.home-actions form {
  margin: 0;
}

.home-actions a,
.home-actions button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  background: #18181b;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.field,
.child-field {
  display: grid;
  gap: 0.5rem;
}

.child-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.child-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.child-list span {
  color: #52525b;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.secondary-action {
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid #a1a1aa;
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
