/* ==========================================================================
   yugal.one — Minimalist Editorial Design System
   Inspiration: shedsgns.me • officecommun.com/about • shivanimatlapudi.com
   Typography: Collab Sans (18 Styles, SIL OFL 1.1)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Collab Sans Font Family — 18 Styles (WOFF2)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-Thin.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-ThinItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-ExtraLight.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-ExtraLightItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-LightItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-MediumItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-SemiBoldItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-BoldItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-ExtraBoldItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-Black.woff2') format('woff2');
}
@font-face {
  font-family: 'Collab Sans';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/woff2/CollabSans-BlackItalic.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --text-main: #111111;
  --text-body: #2e2e2e;
  --text-muted: #6e6e73;
  --text-faint: #999999;
  --line: rgba(0, 0, 0, 0.08);
  --line-faint: rgba(0, 0, 0, 0.04);
  --selection-bg: rgba(0, 0, 0, 0.07);

  --font-sans: 'Collab Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --content-w: 620px;
}

/* --------------------------------------------------------------------------
   Reset & Document Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--selection-bg);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Lenis Smooth Scrolling
   -------------------------------------------------------------------------- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html {
  font-size: 15px;
  background-color: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-title {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* --------------------------------------------------------------------------
   Page Container
   -------------------------------------------------------------------------- */
.page-wrap {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 64px 24px 80px;
  flex: 1;
}

/* Headings */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 52px 0 20px;
}

/* Prose */
p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 20px;
}

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

strong {
  font-weight: 500;
  color: var(--text-main);
}

/* Hyperlinks */
a.inline-link {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3.5px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s ease;
}

a.inline-link:hover {
  text-decoration-color: var(--text-main);
}

/* Action Links */
.action-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
  font-size: 13.5px;
}

.action-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.action-link:hover {
  border-color: var(--text-main);
}

.arrow {
  font-size: 11.5px;
  transition: transform 0.15s ease;
  display: inline-block;
}

.action-link:hover .arrow,
.footer-link:hover .arrow {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Work / Project Entries (Editorial List)
   -------------------------------------------------------------------------- */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-entry {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.work-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.work-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.work-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-meta {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

.work-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Spec / Capabilities List
   -------------------------------------------------------------------------- */
.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-faint);
  font-size: 13.5px;
  line-height: 1.65;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-name {
  font-weight: 500;
  color: var(--text-main);
}

.spec-desc {
  color: var(--text-muted);
}

@media (max-width: 580px) {
  .spec-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
}

/* --------------------------------------------------------------------------
   Collab for AppSheet Asset Flow (No Background Colors)
   -------------------------------------------------------------------------- */
.asset-figure {
  width: 100%;
  margin: 16px 0 28px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.asset-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-block {
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--line-faint);
}

.feature-block:last-child {
  border-bottom: none;
}

.feature-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 4px;
}

.feature-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Minimalist Podcast Player (Collab — Transparent, No Background Colors)
   -------------------------------------------------------------------------- */
.podcast-player {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.podcast-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-main);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.play-btn:hover {
  opacity: 0.85;
}

.play-btn svg {
  width: 13px;
  height: 13px;
}

.player-scrubber {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seek-slider {
  width: 100%;
  height: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-main);
  cursor: pointer;
}

.seek-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-main);
  border: none;
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.speed-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speed-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Code Snippet Box & Copy Button
   -------------------------------------------------------------------------- */
.code-wrap {
  position: relative;
  margin: 16px 0 24px;
}

.code-box {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  background: transparent;
  border: 1px solid var(--line);
  padding: 16px 48px 16px 16px;
  border-radius: 2px;
  overflow-x: auto;
  color: var(--text-body);
  white-space: pre;
  margin: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.code-box::-webkit-scrollbar {
  display: none; /* WebKit (Chrome, Safari) */
}

.code-box code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--text-main);
}

.copy-btn:active {
  transform: scale(0.92);
}

.copy-btn.copied {
  color: var(--text-main);
  border-color: var(--text-main);
}

.copy-btn.copied .copy-icon {
  display: none !important;
}

.copy-btn.copied .check-icon {
  display: block !important;
}

/* --------------------------------------------------------------------------
   Universal Common Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.footer-link:hover {
  text-decoration-color: var(--text-main);
}

/* Floating Back to Top Button */
.floating-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

.floating-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-top:hover {
  background: #ffffff;
  border-color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Typography Specimen & Comparison Components (Collab Sans)
   -------------------------------------------------------------------------- */
.specimen-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 24px;
}

.glyph-specimen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 14px;
}

.glyph-line {
  line-height: 1.3;
  word-break: break-all;
}

.glyph-line.caps {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.glyph-line.lower {
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-body);
}

.glyph-line.symbols {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.specimen-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: -0.01em;
  margin-top: 10px;
  margin-bottom: 8px;
}

/* Terminal Geometry Comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 20px 0 16px;
}

.comparison-col {
  display: flex;
  flex-direction: column;
}

.col-header {
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.col-header.active {
  color: var(--text-main);
}

.col-sample {
  font-size: clamp(3.5rem, 7.5vw, 5.25rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.col-sample.inter-sample {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-muted);
}

.col-sample.collab-sample {
  font-family: 'Collab Sans', sans-serif;
  color: var(--text-main);
}

.col-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Interface Typographic Hierarchy */
.ui-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  margin: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}

.metric-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.metric-val {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.ui-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 12px;
}
.ui-table-wrap::-webkit-scrollbar {
  display: none;
}

.ui-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 480px;
}

.ui-table-head, .ui-table-row {
  display: grid;
  grid-template-columns: 110px 1fr 140px 100px;
  align-items: baseline;
  gap: 16px;
}

.ui-table-head {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-faint);
}

.ui-table-row {
  font-size: 13.5px;
  padding: 4px 0;
  color: var(--text-body);
}

.row-id {
  font-weight: 500;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.row-desc {
  color: var(--text-body);
}

.row-date {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.row-val {
  font-weight: 600;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.num-col {
  text-align: right;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-body);
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 4px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Mobile Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ui-metrics-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .site-header {
    padding-top: 36px;
  }
  .page-wrap {
    padding-top: 36px;
    padding-bottom: 56px;
  }
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav-links {
    gap: 14px;
    font-size: 13px;
  }
  .work-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .site-footer {
    padding-bottom: 48px;
  }
  .footer-links {
    gap: 16px;
  }
}
