/* ==========================================================================
   Jannik | Roll Out Labs — Grav CMS Theme Stylesheet
   German Tech Craft · Minimal · Fast · Responsive
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--rol-bg);
  color: var(--rol-text);
  font-family: var(--rol-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 180ms ease, color 180ms ease;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--rol-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--rol-radius-sm);
  background: var(--rol-accent);
  color: var(--rol-accent-fg);
  font-family: var(--rol-font-mono);
  font-size: 0.8125rem;
}

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

/* Containers & Layout */
.rol-container {
  width: 100%;
  max-width: var(--rol-container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .rol-container {
    padding-inline: 2rem;
  }
}

.rol-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.rol-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rol-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rol-border);
}

.rol-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

/* Logo Signature: Jannik | Roll Out Labs — exact same baseline */
.rol-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--rol-text);
  white-space: nowrap;
}

.rol-brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.rol-brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--rol-font-display);
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

.rol-brand-prefix {
  font-weight: 500;
}

.rol-brand-pipe {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  border-radius: 999px;
  background-color: var(--rol-accent);
  flex-shrink: 0;
}

.rol-brand-name {
  font-weight: 700;
}

.rol-brand-labs {
  font-weight: 500;
  color: var(--rol-text-muted);
}

.rol-studio-badge {
  margin-left: 0.15rem;
  padding: 0.22rem 0.48rem;
  border-radius: 6px;
  background-color: var(--rol-accent);
  color: var(--rol-accent-fg);
  font-family: var(--rol-font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.rol-nav-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rol-nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

@media (min-width: 820px) {
  .rol-nav {
    display: flex;
  }
}

.rol-nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rol-text-muted);
  transition: color 150ms ease;
}

.rol-nav-link:hover,
.rol-nav-link.is-active {
  color: var(--rol-text);
}

.rol-nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 99px;
  background: var(--rol-accent);
}

.rol-status-pill {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--rol-border);
  background: var(--rol-pill-bg);
  font-family: var(--rol-font-mono);
  font-size: 0.75rem;
  color: var(--rol-text-muted);
  transition: border-color 150ms ease, color 150ms ease;
}

.rol-status-pill:hover {
  border-color: var(--rol-border-strong);
  color: var(--rol-text);
}

@media (min-width: 980px) {
  .rol-status-pill {
    display: inline-flex;
  }
}

.rol-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--rol-live);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

.rol-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  color: var(--rol-text-muted);
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.rol-icon-btn:hover {
  border-color: var(--rol-border-strong);
  color: var(--rol-text);
}

.rol-menu-btn {
  display: inline-flex;
}

@media (min-width: 820px) {
  .rol-menu-btn {
    display: none;
  }
}

/* Theme Icon visibility */
.rol-icon-sun { display: none; }
.rol-icon-moon { display: block; }
html[data-theme="dark"] .rol-icon-sun { display: block; }
html[data-theme="dark"] .rol-icon-moon { display: none; }

/* Mobile Drawer */
.rol-mobile-nav {
  display: none;
  border-top: 1px solid var(--rol-border);
  background: var(--rol-bg);
  padding: 1rem 1.25rem 1.25rem;
}

.rol-mobile-nav.is-open {
  display: block;
}

.rol-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rol-mobile-nav-link {
  padding: 0.65rem 0.75rem;
  border-radius: var(--rol-radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rol-text-muted);
}

.rol-mobile-nav-link.is-active,
.rol-mobile-nav-link:hover {
  background: var(--rol-surface);
  color: var(--rol-text);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.rol-hero {
  position: relative;
  padding: 4rem 0 3.25rem;
  background-image: radial-gradient(var(--rol-grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--rol-border);
}

@media (min-width: 768px) {
  .rol-hero {
    padding: 5.5rem 0 4.5rem;
  }
}

.rol-hero-inner {
  max-width: 780px;
}

.rol-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  font-family: var(--rol-font-mono);
  font-size: 0.75rem;
  color: var(--rol-text-muted);
  margin-bottom: 1.5rem;
}

.rol-overline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rol-accent);
  flex-shrink: 0;
}

.rol-hero-title {
  margin: 0;
  font-family: var(--rol-font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rol-accent-text {
  color: var(--rol-accent);
}

.rol-hero-lead {
  margin: 1.35rem 0 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--rol-text-muted);
  line-height: 1.65;
}

.rol-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Buttons */
.rol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 11px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 160ms var(--rol-ease), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.rol-btn:active {
  transform: translateY(1px);
}

.rol-btn-primary {
  background: var(--rol-accent);
  color: var(--rol-accent-fg);
}

.rol-btn-primary:hover {
  background: var(--rol-accent-hover);
}

.rol-btn-secondary {
  background: var(--rol-surface);
  color: var(--rol-text);
  border: 1px solid var(--rol-border);
}

.rol-btn-secondary:hover {
  border-color: var(--rol-border-strong);
  background: var(--rol-surface-hover);
}

/* ==========================================================================
   Showcases Section & Bento Grid
   ========================================================================== */
.rol-section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .rol-section {
    padding: 4.5rem 0;
  }
}

.rol-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.rol-section-kicker {
  font-family: var(--rol-font-mono);
  font-size: 0.75rem;
  color: var(--rol-accent);
  margin-bottom: 0.35rem;
}

.rol-section-title {
  margin: 0;
  font-family: var(--rol-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.rol-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rol-filter-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  color: var(--rol-text-muted);
  font-family: var(--rol-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.rol-filter-btn:hover {
  border-color: var(--rol-border-strong);
  color: var(--rol-text);
}

.rol-filter-btn.is-active {
  background: var(--rol-accent);
  border-color: var(--rol-accent);
  color: var(--rol-accent-fg);
}

.rol-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rol-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Showcase Release Card */
.rol-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 1.4rem;
  border-radius: var(--rol-radius-lg);
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  box-shadow: var(--rol-shadow-sm);
  transition: transform 220ms var(--rol-ease), border-color 180ms ease, box-shadow 220ms var(--rol-ease);
}

.rol-card:hover {
  transform: translateY(-2px);
  border-color: var(--rol-border-strong);
  box-shadow: var(--rol-shadow-md);
}

.rol-card.is-hidden {
  display: none;
}

.rol-card--featured {
  padding: 1.65rem;
}

@media (min-width: 768px) {
  .rol-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }
}

.rol-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rol-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--rol-font-mono);
  font-size: 0.75rem;
  color: var(--rol-text-muted);
}

.rol-card-meta-left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.rol-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-family: var(--rol-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.rol-badge--accent {
  background: var(--rol-accent);
  color: var(--rol-accent-fg);
}

.rol-badge--soft {
  background: var(--rol-accent-soft);
  color: var(--rol-accent);
}

.rol-badge--neutral {
  border: 1px solid var(--rol-border);
  background: var(--rol-pill-bg);
  color: var(--rol-text-muted);
}

.rol-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--rol-font-mono);
  font-size: 0.75rem;
  color: var(--rol-text);
}

.rol-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.rol-dot--live { background: var(--rol-live); }
.rol-dot--beta { background: var(--rol-beta); }
.rol-dot--concept { background: var(--rol-concept); }

.rol-card-title {
  margin: 0;
  font-family: var(--rol-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.rol-card--featured .rol-card-title {
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
}

.rol-card-title a:hover {
  color: var(--rol-accent);
}

.rol-card-summary {
  margin: 0;
  font-size: 0.925rem;
  color: var(--rol-text-muted);
  line-height: 1.6;
}

.rol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rol-tag {
  padding: 0.24rem 0.55rem;
  border-radius: 7px;
  border: 1px solid var(--rol-border);
  background: var(--rol-pill-bg);
  font-family: var(--rol-font-mono);
  font-size: 0.72rem;
  color: var(--rol-text-muted);
}

.rol-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rol-border);
}

.rol-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--rol-font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--rol-text);
  transition: color 150ms ease, gap 150ms ease;
}

.rol-card-link:hover {
  color: var(--rol-accent);
  gap: 0.55rem;
}

/* ==========================================================================
   Device Preview Frames (iPhone & Browser)
   ========================================================================== */
.rol-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rol-radius-md);
  border: 1px solid var(--rol-border);
  background: var(--rol-bg-elevated);
  overflow: hidden;
  min-height: 185px;
  padding: 1.15rem;
}

.rol-stage--flush {
  padding: 0;
}

.rol-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stylized iOS Phone Shell */
.rol-phone-frame {
  width: 196px;
  border-radius: 30px;
  padding: 10px;
  background: #0B0D10;
  border: 2px solid #2A3140;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  color: #F6F5F0;
}

.rol-phone-notch {
  width: 58px;
  height: 11px;
  border-radius: 999px;
  background: #1B202C;
  margin: 0 auto 10px;
}

.rol-phone-screen {
  border-radius: 20px;
  overflow: hidden;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rol-phone-screen img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
}

.rol-phone-placeholder {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rol-phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--rol-font-mono);
  font-size: 0.65rem;
  color: #8E99AD;
}

/* Browser Frame for Web Showcases */
.rol-browser-frame {
  width: 100%;
  border-radius: var(--rol-radius-sm);
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  overflow: hidden;
}

.rol-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rol-border);
  background: var(--rol-bg-elevated);
}

.rol-browser-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rol-border-strong);
}

.rol-browser-url {
  margin-left: 0.45rem;
  font-family: var(--rol-font-mono);
  font-size: 0.68rem;
  color: var(--rol-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rol-browser-body {
  aspect-ratio: 16 / 9;
  background: var(--rol-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rol-browser-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rol-browser-wireframe {
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: radial-gradient(var(--rol-grid-dot) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ==========================================================================
   Contact CTA Band
   ========================================================================== */
.rol-contact-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--rol-radius-lg);
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  background-image: radial-gradient(var(--rol-grid-dot) 1px, transparent 1px);
  background-size: 20px 20px;
}

@media (min-width: 768px) {
  .rol-contact-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }
}

.rol-contact-copy {
  max-width: 560px;
}

.rol-contact-copy h2 {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--rol-font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rol-contact-copy p {
  margin: 0;
  color: var(--rol-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Case Study Detail & Prose Pages
   ========================================================================== */
.rol-page-header {
  padding: 3rem 0 2.25rem;
  border-bottom: 1px solid var(--rol-border);
}

.rol-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-family: var(--rol-font-mono);
  font-size: 0.78rem;
  color: var(--rol-text-muted);
}

.rol-back-link:hover {
  color: var(--rol-accent);
}

.rol-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--rol-radius-md);
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
}

@media (min-width: 768px) {
  .rol-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rol-meta-label {
  font-family: var(--rol-font-mono);
  font-size: 0.7rem;
  color: var(--rol-text-muted);
  margin-bottom: 0.25rem;
}

.rol-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.rol-prose {
  max-width: var(--rol-prose);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--rol-text);
}

.rol-prose h2,
.rol-prose h3,
.rol-prose h4 {
  font-family: var(--rol-font-display);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 2.25rem 0 0.75rem;
}

.rol-prose h2 { font-size: 1.5rem; }
.rol-prose h3 { font-size: 1.2rem; }

.rol-prose p {
  margin: 0 0 1.15rem;
  color: var(--rol-text-muted);
}

.rol-prose strong {
  color: var(--rol-text);
}

.rol-prose a {
  color: var(--rol-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rol-prose ul,
.rol-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--rol-text-muted);
}

.rol-prose li {
  margin-bottom: 0.4rem;
}

.rol-prose code {
  padding: 0.14rem 0.38rem;
  border-radius: 5px;
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  font-family: var(--rol-font-mono);
  font-size: 0.85em;
  color: var(--rol-text);
}

.rol-prose pre {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--rol-radius-md);
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  overflow-x: auto;
}

.rol-prose pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

.rol-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.15rem;
  border-left: 3px solid var(--rol-accent);
  background: var(--rol-surface);
  border-radius: 0 var(--rol-radius-sm) var(--rol-radius-sm) 0;
}

.rol-prose img {
  border-radius: var(--rol-radius-md);
  border: 1px solid var(--rol-border);
  margin: 1.5rem 0;
}

.rol-sibling-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rol-border);
}

@media (min-width: 640px) {
  .rol-sibling-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rol-sibling-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--rol-radius-md);
  border: 1px solid var(--rol-border);
  background: var(--rol-surface);
  transition: border-color 150ms ease;
}

.rol-sibling-card:hover {
  border-color: var(--rol-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.rol-footer {
  border-top: 1px solid var(--rol-border);
  padding: 2rem 0;
  margin-top: auto;
}

.rol-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--rol-font-mono);
  font-size: 0.78rem;
  color: var(--rol-text-muted);
}

.rol-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.rol-footer-links a:hover {
  color: var(--rol-text);
}

/* Error Page */
.rol-error-box {
  padding: 5.5rem 0;
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
