/* The tidu.dev brand-home palette (apps/landing/src/styles/brand-home.css), without its effects. */
:root {
  --background: #0c0e12;
  --surface: #13171d;
  --tint: #1a2028;
  --text: #eef1f5;
  --muted: #a6afbc;
  --border: #303844;
  --accent: #9bbeff;
  --accent-hover: #c3d7ff;
  --accent-contrast: #0c0e12;
  --line: rgba(238, 241, 245, 0.12);
  --radius: 8px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.brand img {
  width: 40px;
  height: auto;
}

.header-link {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

main {
  flex: 1;
  padding-bottom: 72px;
}

.intro {
  padding: 64px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.lede {
  max-width: 36rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.catalog__status {
  margin: 0;
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.catalog__status:empty {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card__poster {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--tint);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.card__body h2 {
  font-size: 1.25rem;
}

.card__body p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-contrast);
}

.card .button {
  align-self: flex-start;
  margin-top: 8px;
}

.button--quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button--quiet:hover {
  background: var(--tint);
  border-color: var(--muted);
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.viewer {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.viewer::backdrop {
  background: rgba(7, 9, 13, 0.8);
}

.viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.viewer__head h2 {
  font-size: 1.25rem;
}

.viewer__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 200px);
  width: 100%;
  background: var(--tint);
}

.viewer__poster,
.viewer__stage model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewer__poster {
  object-fit: contain;
}

.viewer__stage model-viewer {
  --poster-color: transparent;
  background: var(--tint);
}

.viewer__stage.is-ready .viewer__poster {
  visibility: hidden;
}

.viewer__status {
  margin: 0;
  padding: 12px 20px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .intro {
    padding: 40px 0 28px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .viewer__stage {
    aspect-ratio: 1;
  }
}
