/* OpenWorld Radio Twin project page. Layout follows the Nerfies template conventions. */

:root {
  --owrt-ink: #14213d;
  --owrt-muted: #5c677d;
  --owrt-accent: #1f6feb;
  --owrt-accent-2: #0e7c86;
  --owrt-surface: #ffffff;
  --owrt-alt: #f4f6fa;
  --owrt-code: #0f172a;
  --owrt-radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--owrt-ink);
  background: var(--owrt-surface);
}

code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.title, .subtitle { color: var(--owrt-ink); }
.owrt-muted { color: var(--owrt-muted); }
.owrt-mt { margin-top: 3rem; }

/* Navbar */
.owrt-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #e6e9f0;
}
.owrt-brand { margin-left: 0.55rem; font-weight: 600; letter-spacing: 0.01em; }
.owrt-navbar .navbar-item { font-weight: 500; }

/* Hero */
.owrt-hero {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(31, 111, 235, 0.16), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(14, 124, 134, 0.14), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.owrt-hero .hero-body { padding-top: 4rem; padding-bottom: 2.5rem; }
.owrt-hero-mark { margin-bottom: 0.75rem; }
.publication-title { font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.25rem !important; }
.publication-subtitle { font-weight: 500; color: var(--owrt-muted); margin-bottom: 1.5rem !important; }
.publication-authors { margin-bottom: 0.35rem; }
.publication-authors a { color: var(--owrt-accent); font-weight: 500; }
.publication-affiliations { color: var(--owrt-muted); margin-bottom: 0.75rem; }
.author-block { display: inline-block; margin: 0 0.25rem; }
.author-block sup { font-size: 0.7em; margin-left: 0.1em; }
.publication-venue { color: var(--owrt-muted); margin-bottom: 1.5rem; }
.owrt-placeholder {
  color: #b42318;
  background: #fff1f0;
  border: 1px dashed #f0a29b;
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
}
.publication-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.publication-links .button { font-weight: 500; }
.publication-links .button.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* Teaser and figures */
.teaser .hero-body { padding-top: 0; padding-bottom: 2rem; }
.owrt-figure { margin: 0; text-align: center; }
.owrt-figure img {
  width: 100%;
  border-radius: var(--owrt-radius);
  box-shadow: 0 18px 50px rgba(20, 33, 61, 0.16);
}
.owrt-figure figcaption {
  max-width: 62rem;
  margin: 1rem auto 0;
  color: var(--owrt-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Sections */
.owrt-alt { background: var(--owrt-alt); }
.section { padding: 3.5rem 1.5rem; }

/* Code blocks */
.owrt-code-strip { padding-top: 2rem; padding-bottom: 2rem; }
pre.owrt-code {
  background: var(--owrt-code);
  color: #e2e8f0;
  border-radius: var(--owrt-radius);
  padding: 1.1rem 1.3rem;
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
pre.owrt-code code { background: transparent; color: inherit; padding: 0; }
pre.owrt-code .c { color: #94a3b8; }
pre.owrt-code .k { color: #7dd3fc; }
pre.owrt-code .n { color: #fca5a5; }
pre.owrt-code .s { color: #bef264; }
.content code, p code { background: #eef2f7; color: #0b3d91; border-radius: 4px; padding: 0.1rem 0.35rem; }

/* Method steps */
.owrt-steps { margin-top: 2rem; }
.owrt-step {
  height: 100%;
  background: var(--owrt-surface);
  border: 1px solid #e6e9f0;
  border-radius: var(--owrt-radius);
  padding: 1.5rem;
}
.owrt-step p { color: var(--owrt-muted); font-size: 0.95rem; line-height: 1.6; }
.owrt-step-number {
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--owrt-accent); color: #fff; font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Carousel (scroll-snap, no library) */
.owrt-carousel { position: relative; margin-top: 2rem; }
.owrt-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
}
.owrt-carousel-track::-webkit-scrollbar { display: none; }
.owrt-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  text-align: center;
}
.owrt-slide img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  border-radius: var(--owrt-radius);
  box-shadow: 0 14px 40px rgba(20, 33, 61, 0.14);
  background: #fff;
}
.owrt-slide figcaption {
  max-width: 58rem;
  margin: 0.9rem auto 0;
  color: var(--owrt-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.owrt-carousel-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem; height: 2.6rem;
  border-radius: 999px;
  border: 1px solid #e6e9f0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--owrt-ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.14);
}
.owrt-carousel-nav.prev { left: -0.5rem; }
.owrt-carousel-nav.next { right: -0.5rem; }
.owrt-carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.25rem; }
.owrt-carousel-dots span {
  width: 0.55rem; height: 0.55rem; border-radius: 999px; background: #cbd2df;
  transition: background 150ms ease, transform 150ms ease;
}
.owrt-carousel-dots span.active { background: var(--owrt-accent); transform: scale(1.2); }

/* Products grid */
.owrt-products { margin-top: 1.5rem; }
.owrt-product { margin: 0; text-align: center; }
.owrt-product img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e6e9f0;
  background: #fff;
  image-rendering: auto;
}
.owrt-product figcaption { margin-top: 0.4rem; color: var(--owrt-muted); font-size: 0.9rem; }

/* Features */
.owrt-features { margin-top: 1.5rem; }
.owrt-feature {
  height: 100%;
  background: var(--owrt-surface);
  border: 1px solid #e6e9f0;
  border-radius: var(--owrt-radius);
  padding: 1.4rem;
}
.owrt-feature .icon { color: var(--owrt-accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.owrt-feature h3 { font-weight: 600; margin-bottom: 0.35rem; }
.owrt-feature p { color: var(--owrt-muted); font-size: 0.93rem; line-height: 1.55; }

/* Footer */
.footer { background: #fff; border-top: 1px solid #e6e9f0; padding: 2.5rem 1.5rem; }
.footer a { color: var(--owrt-accent); }

@media (max-width: 768px) {
  .owrt-hero .hero-body { padding-top: 2.5rem; }
  .publication-title { font-size: 2.2rem !important; }
  .publication-subtitle { font-size: 1.25rem !important; }
  .owrt-carousel-nav.prev { left: 0.25rem; }
  .owrt-carousel-nav.next { right: 0.25rem; }
  .owrt-slide img { max-height: none; }
}
