/* Kreyer Labs
   Dark theme. Brand charcoal #111827 and orange #F97316,
   with deeper charcoal for the page and lighter orange tints
   where small text needs them. The contact address is not stored here. */

:root {
  --charcoal: #111827;
  --deep: #070b14;
  --orange: #f97316;
  --orange-hot: #fb923c;
  --orange-tint: #fdba74;
  --ink: #f8fafc;
  --soft: #d1d5db;
  --muted: #9ca3af;
  --line: rgba(249, 115, 22, 0.35);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--deep);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background-image:
    radial-gradient(rgba(249, 115, 22, 0.45) 1px, transparent 1.2px),
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 22px 22px, 88px 88px, 88px 88px;
  background-position: 0 0, 0 0, 0 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(249, 115, 22, 0.22), transparent 58%),
    radial-gradient(ellipse 36% 28% at 100% 8%, rgba(249, 115, 22, 0.1), transparent 70%);
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange-tint);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
  text-underline-offset: 0.16em;
}

a:visited {
  color: var(--orange-tint);
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--orange);
}

::selection {
  background: var(--orange);
  color: var(--charcoal);
}

.skip-link {
  position: absolute;
  left: max(0.75rem, env(safe-area-inset-left));
  top: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--orange);
  color: var(--charcoal);
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(68rem, 100%);
  margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.measure {
  max-width: 42rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 750;
  overflow-wrap: break-word;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 1.2rem + 3vw, 3.5rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.45rem;
}

p {
  margin: 0.75rem 0;
}

.lede {
  font-size: 1.28rem;
  line-height: 1.4;
  max-width: 40rem;
  color: var(--ink);
}

.eyebrow,
.crumbs,
.facts dt,
.address-label,
.updated,
.site-nav a,
.footer-nav a {
  font-family: var(--mono);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.updated,
.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, 0.92);
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: 4.5rem;
}

.site-nav {
  min-width: 0;
  max-width: 100%;
}

.logo img,
.footer-logo img {
  display: block;
  width: auto;
  max-width: none;
  height: 48px;
}

.site-nav ul,
.footer-nav,
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.75rem;
  color: var(--soft);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 0.6rem;
}

.site-nav a:hover {
  color: var(--orange-tint);
  background: rgba(249, 115, 22, 0.1);
}

.site-nav a[aria-current="page"] {
  color: var(--orange);
  font-weight: 700;
  border-radius: 0;
  box-shadow: inset 0 -3px 0 var(--orange);
  background: transparent;
}

.hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(2.25rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: min(42rem, 80vw);
  height: min(42rem, 80vw);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 62%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.05rem + 2.4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 750;
  max-width: 16em;
  margin: 0.15rem 0 0.85rem;
  text-shadow: none;
}

.hero .lede,
.hero p {
  max-width: 38rem;
}

.hero p {
  color: var(--soft);
}

.hero .eyebrow {
  color: var(--orange);
}

.hero .lede {
  color: var(--ink);
}

.section {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 0.25rem;
}

.split {
  display: grid;
  gap: 2rem 3rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: var(--charcoal);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.35);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.35), 0 0 18px rgba(249, 115, 22, 0.12);
}

main a.button,
main a.button:visited,
main a.button:hover {
  color: var(--charcoal);
  text-decoration: none;
}

main a.button-secondary,
main a.button-secondary:visited {
  color: var(--ink);
}

main a.button-secondary:hover {
  color: var(--ink);
  background: rgba(249, 115, 22, 0.14);
}

.button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  background: var(--orange-hot);
  border-color: var(--orange-hot);
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.55);
}

.button-secondary:hover {
  background: rgba(249, 115, 22, 0.14);
  border-color: var(--orange-tint);
}

.card,
.address-block {
  background:
    linear-gradient(180deg, rgba(249, 115, 22, 0.08), rgba(17, 24, 39, 0.2)),
    var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.08), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.card h2,
.card h3 {
  margin-top: 0.25rem;
}

.showcase {
  position: relative;
  overflow: hidden;
  border-color: rgba(249, 115, 22, 0.75);
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(249, 115, 22, 0.32), transparent 62%),
    linear-gradient(165deg, #1c2433 0%, #111827 48%, #0c1220 100%);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.25),
    0 0 48px rgba(249, 115, 22, 0.16),
    0 22px 50px rgba(0, 0, 0, 0.4);
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), rgba(249, 115, 22, 0));
}

.card.showcase {
  padding: 1.5rem 1.35rem 1.35rem;
}

.card.showcase h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.55rem, 1.1rem + 1.4vw, 2.2rem);
  letter-spacing: -0.035em;
}

article.showcase {
  margin-top: 0.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 1.5rem;
  border: 0;
  border-top: 1px solid rgba(249, 115, 22, 0.55);
  border-bottom: 1px solid rgba(249, 115, 22, 0.55);
  border-radius: 0;
  box-shadow: inset 0 0 90px rgba(249, 115, 22, 0.07);
}

article.showcase h2 {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem);
  letter-spacing: -0.045em;
  margin-top: 0.4rem;
}

.note {
  background: rgba(249, 115, 22, 0.1);
  color: var(--ink);
  padding: 1rem 1.15rem;
  border: 1px solid rgba(249, 115, 22, 0.65);
  border-radius: 0.85rem;
  margin: 1.25rem 0;
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.14);
}

.note strong {
  color: var(--orange);
}

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

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

.note a,
.note a:visited {
  color: var(--orange-tint);
}

.facts {
  margin: 0.5rem 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.22);
}

.facts div:first-child {
  border-top: 1px solid rgba(249, 115, 22, 0.22);
}

.facts dt,
.facts dd {
  margin: 0;
}

.facts dt {
  font-weight: 700;
  color: var(--orange);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.crumbs li {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.crumbs a {
  color: var(--orange-tint);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.page-intro {
  padding-top: clamp(1.6rem, 4vw, 2.6rem);
}

.page-intro h1 {
  margin-bottom: 0.75rem;
}

.email-display {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
}

.email-display a,
.footer-email a {
  color: var(--orange);
}

.email-display a:hover,
.footer-email a:hover {
  color: var(--orange-tint);
}

.email-display a {
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

.address-block {
  font-size: 1.125rem;
  line-height: 1.5;
}

main li::marker {
  color: var(--orange);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background: #05080f;
  color: var(--ink);
  border-top: 3px solid var(--orange);
  box-shadow: 0 -20px 50px rgba(249, 115, 22, 0.05);
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.copyright,
.address-label,
.footer-email,
.site-footer address {
  margin: 0;
}

.address-label {
  margin-bottom: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.site-footer address,
.address-label {
  color: var(--soft);
  line-height: 1.5;
}

.footer-email {
  margin-top: 0.85rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-nav a,
.site-footer a,
.site-footer a:visited {
  color: var(--ink);
  text-decoration-color: var(--orange);
}

.site-footer .footer-email a,
.site-footer .footer-email a:visited {
  color: var(--orange);
}

.site-footer .footer-email a:hover {
  color: var(--orange-tint);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-nav a:hover {
  color: var(--orange-tint);
}

:target {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 52rem) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem 0.75rem;
    padding-top: 0.4rem;
    padding-bottom: 0.15rem;
  }

  .site-nav,
  .site-nav > ul {
    width: 100%;
  }

  .site-nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.1rem;
  }

  .site-nav a {
    padding-inline: 0.35rem;
  }

  :target {
    scroll-margin-top: 8rem;
  }
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 2rem;
    align-items: start;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0;
  }
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: start;
  }
}

@media (max-width: 23rem) {
  .site-nav > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (max-width: 28rem) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .card,
  .site-nav a,
  .footer-nav a {
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }

  .button:hover,
  .card:hover {
    transform: translateY(-2px);
  }

  body {
    animation: grid-drift 32s linear infinite;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 22px 22px, 88px 88px, 88px 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

.nav-apps {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-apps > a {
  padding-right: 0.2rem;
}

.nav-apps details {
  display: flex;
}

.nav-apps summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: -0.45rem;
  padding: 0;
  list-style: none;
  cursor: pointer;
  color: var(--soft);
  border-radius: 0.6rem;
}

.nav-apps summary::-webkit-details-marker {
  display: none;
}

.nav-apps summary::marker {
  content: "";
}

.nav-apps summary:hover {
  color: var(--orange-tint);
  background: rgba(249, 115, 22, 0.1);
}

.nav-apps .chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.nav-apps details[open] .chevron {
  transform: translateY(0.15rem) rotate(225deg);
}

.nav-apps > .nav-menu {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 13.75rem;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--charcoal);
  border: 1px solid rgba(249, 115, 22, 0.55);
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.nav-apps:hover > .nav-menu,
.nav-apps:focus-within > .nav-menu,
.nav-apps details[open] ~ .nav-menu {
  display: flex;
}

.nav-menu a {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border-radius: 0.5rem;
}

.nav-menu a:hover {
  color: var(--ink);
  background: rgba(249, 115, 22, 0.14);
}

.nav-apps:has(a[aria-current="page"]) > a {
  color: var(--orange);
  font-weight: 700;
  border-radius: 0;
  box-shadow: inset 0 -3px 0 var(--orange);
  background: transparent;
}

.nav-menu a[aria-current="page"] {
  color: var(--orange);
  box-shadow: none;
  background: rgba(249, 115, 22, 0.12);
}

.app-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.app-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.75rem;
  min-height: 44px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.app-strip a:hover {
  color: var(--orange-tint);
}

.app-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.app-card .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 0.35rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.badge-soon {
  background: var(--orange);
  color: var(--charcoal);
}

.badge-testing {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--orange);
}

.page-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

@media (min-width: 42rem) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .site-nav {
    position: relative;
  }

  .nav-apps {
    position: static;
  }

  .nav-menu {
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    min-width: 0;
  }
}

@media print {
  .nav-apps summary,
  .nav-menu,
  .app-strip {
    display: none;
  }
}

@media print {
  .skip-link,
  .site-nav,
  .crumbs,
  .actions {
    display: none;
  }

  body,
  body::before {
    display: block;
    background: #fff;
    background-image: none;
    color: #000;
    animation: none;
  }

  body::before {
    content: none;
  }

  .site-header,
  .hero,
  .note,
  .site-footer,
  .card,
  .showcase,
  .address-block {
    background: #fff;
    color: #000;
    border-color: #000;
    box-shadow: none;
  }

  .hero {
    padding: 0;
  }

  .hero::after,
  .showcase::before {
    content: none;
  }

  .hero h1,
  .hero p,
  .hero .lede,
  h1,
  h2,
  h3,
  .note,
  .note strong,
  .eyebrow,
  .facts dt,
  .site-footer,
  .site-footer address,
  .site-footer a,
  .address-label,
  a,
  a:visited {
    color: #000;
    text-shadow: none;
  }

  a {
    text-decoration: underline;
  }
}
