/*
 * utils.css — Utility class definitions for the Aura static site.
 *
 * All four HTML pages use Tailwind-style utility classes.
 * Tailwind is NOT loaded (no CDN, no build step). This file defines
 * every utility class actually used in the HTML, keeping the stack
 * pure vanilla CSS — no new dependencies, no build tooling.
 *
 * Convention for font-weight:
 *   .font-bold, .font-semibold, .font-medium all map to 600.
 *   Reason: DESIGN.md specifies weight 600 for all Apple-style
 *   headlines. Browser default for font-bold is 700, which is wrong
 *   for this design system.
 */

/* ── Display ─────────────────────────────────────────────────────── */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}

/* ── Flexbox ─────────────────────────────────────────────────────── */
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1 1 0%;
}
.shrink-0 {
  flex-shrink: 0;
}

.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.self-start {
  align-self: flex-start;
}
.self-center {
  align-self: center;
}
.self-end {
  align-self: flex-end;
}

.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}

/* ── Grid ────────────────────────────────────────────────────────── */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Custom column template used by footer */
.grid-cols-footer {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
}

.col-span-1 {
  grid-column: span 1 / span 1;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}

/* ── Gap ─────────────────────────────────────────────────────────── */
.gap-1 {
  gap: 4px;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-5 {
  gap: 20px;
}
.gap-6 {
  gap: 24px;
}
.gap-8 {
  gap: 32px;
}
.gap-12 {
  gap: 48px;
}
.gap-16 {
  gap: 64px;
}
.gap-y-2 {
  row-gap: 8px;
}

/* ── Position ────────────────────────────────────────────────────── */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0;
}
.top-0 {
  top: 0;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}
.bottom-0 {
  bottom: 0;
}

.top-\[52px\] {
  top: 52px;
}
.bottom-6 {
  bottom: 24px;
}
.right-6 {
  right: 24px;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}

/* ── Sizing ──────────────────────────────────────────────────────── */
.w-full {
  width: 100%;
}
.w-3\.5 {
  width: 14px;
}
.w-4 {
  width: 16px;
}
.w-5 {
  width: 20px;
}
.w-7 {
  width: 28px;
}
.w-8 {
  width: 32px;
}
.w-14 {
  width: 56px;
}
.w-\[240px\] {
  width: 240px;
}

.h-full {
  height: 100%;
}
.h-3\.5 {
  height: 14px;
}
.h-4 {
  height: 16px;
}
.h-5 {
  height: 20px;
}
.h-7 {
  height: 28px;
}
.h-8 {
  height: 32px;
}
.h-14 {
  height: 56px;
}
.h-\[calc\(100vh-52px\)\] {
  height: calc(100vh - 52px);
}

.min-h-screen {
  min-height: 100vh;
}
.min-h-\[100dvh\] {
  min-height: 100dvh;
}
.min-h-\[calc\(100vh-52px\)\] {
  min-height: calc(100vh - 52px);
}
.min-w-0 {
  min-width: 0;
}

.max-w-\[var\(--content-max\)\] {
  max-width: var(--content-max);
}
.max-w-\[450px\] {
  max-width: 450px;
}
.max-w-\[480px\] {
  max-width: 480px;
}
.max-w-\[500px\] {
  max-width: 500px;
}
.max-w-\[600px\] {
  max-width: 600px;
}
.max-w-\[680px\] {
  max-width: 680px;
}
.max-w-\[720px\] {
  max-width: 720px;
}
.max-w-\[800px\] {
  max-width: 800px;
}
.max-w-\[1200px\] {
  max-width: 1200px;
}

/* ── Margin ──────────────────────────────────────────────────────── */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mx-2 {
  margin-left: 8px;
  margin-right: 8px;
}

.mb-1 {
  margin-bottom: 4px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mb-8 {
  margin-bottom: 32px;
}
.mb-10 {
  margin-bottom: 40px;
}
.mb-12 {
  margin-bottom: 48px;
}
.mb-16 {
  margin-bottom: 64px;
}
.mb-20 {
  margin-bottom: 80px;
}

.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-8 {
  margin-top: 32px;
}
.mt-16 {
  margin-top: 64px;
}

/* ── Padding ─────────────────────────────────────────────────────── */
.p-4 {
  padding: 16px;
}
.p-8 {
  padding: 32px;
}

.px-3 {
  padding-left: 12px;
  padding-right: 12px;
}
.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}
.px-5 {
  padding-left: 20px;
  padding-right: 20px;
}
.px-6 {
  padding-left: 24px;
  padding-right: 24px;
}

.py-1\.5 {
  padding-top: 6px;
  padding-bottom: 6px;
}
.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}
.py-3 {
  padding-top: 12px;
  padding-bottom: 12px;
}
.py-5 {
  padding-top: 20px;
  padding-bottom: 20px;
}
.py-8 {
  padding-top: 32px;
  padding-bottom: 32px;
}
.py-20 {
  padding-top: 80px;
  padding-bottom: 80px;
}
.py-\[80px\] {
  padding-top: 80px;
  padding-bottom: 80px;
}

.pt-6 {
  padding-top: 24px;
}
.pt-12 {
  padding-top: 48px;
}
.pt-\[52px\] {
  padding-top: 52px;
}
.pt-\[120px\] {
  padding-top: 120px;
}

.pb-3 {
  padding-bottom: 12px;
}
.pb-4 {
  padding-bottom: 16px;
}
.pb-20 {
  padding-bottom: 80px;
}
.pb-\[60px\] {
  padding-bottom: 60px;
}
.pb-\[120px\] {
  padding-bottom: 120px;
}

.pl-6 {
  padding-left: 24px;
}
.pr-4 {
  padding-right: 16px;
}

/* ── Typography ──────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.uppercase {
  text-transform: uppercase;
}

/* Weight — all mapped to 600 per DESIGN.md (not 700) */
.font-bold {
  font-weight: 600;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 600;
}

.text-white {
  color: var(--color-canvas-white);
}
.text-white\/40 {
  color: rgba(255, 255, 255, 0.4);
}
.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}
.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}
.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}

/* Arbitrary text colours used in docs/footer */
.text-\[\#86868b\] {
  color: var(--color-ink-muted-53);
}
.text-\[\#1d1d1f\] {
  color: var(--color-ink);
}
.text-\[\#0066cc\] {
  color: var(--color-action-blue);
}
.text-\[\#1d1d1f\]\/60 {
  color: rgba(29, 29, 31, 0.6);
}

.leading-\[1\] {
  line-height: 1;
}
.leading-\[1\.05\] {
  line-height: 1.05;
}
.leading-relaxed {
  line-height: 1.47;
}

.tracking-tight {
  letter-spacing: -0.02em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-\[-0\.003em\] {
  letter-spacing: -0.003em;
}
.tracking-\[-0\.005em\] {
  letter-spacing: -0.005em;
}

/* ── Backgrounds ─────────────────────────────────────────────────── */
.bg-white {
  background-color: var(--color-canvas-white);
}
.bg-black {
  background-color: var(--color-canvas-black);
}
.bg-black\/5 {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ── Border ──────────────────────────────────────────────────────── */
.border-collapse {
  border-collapse: collapse;
}
.border-b {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.border-t {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.border-b-black\/10 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.border-b-black\/20 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.border-b-black\/5 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.border-black\/5 {
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.border-black\/10 {
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.border-black\/20 {
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Arbitrary border colours used in footer hairlines */
.border-\[\#d2d2d7\]\/50 {
  border-color: rgba(210, 210, 215, 0.5);
}
.border-\[\#d2d2d7\]\/35 {
  border-color: rgba(210, 210, 215, 0.35);
}

/* ── Border Radius ───────────────────────────────────────────────── */
.rounded-full {
  border-radius: var(--radius-pill);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-\[12px\] {
  border-radius: var(--radius-md);
}
.rounded-\[32px\] {
  border-radius: var(--radius-xl);
}

/* ── Image ───────────────────────────────────────────────────────── */
.object-cover {
  object-fit: cover;
}
.object-center {
  object-position: center;
}
.object-contain {
  object-fit: contain;
}
.opacity-70 {
  opacity: 0.7;
}

/* ── Overflow ────────────────────────────────────────────────────── */
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}

/* ── List & Table ────────────────────────────────────────────────── */
.list-disc {
  list-style-type: disc;
}
.list-decimal {
  list-style-type: decimal;
}
.space-y-0 > * + * {
  margin-top: 0;
}
.space-y-3 > * + * {
  margin-top: 12px;
}
.text-left {
  text-align: left;
}

/* ── Scroll ──────────────────────────────────────────────────────── */
.scroll-mt-24 {
  scroll-margin-top: 96px;
}

/* ── Interaction ─────────────────────────────────────────────────── */
.transition-colors {
  transition: color 0.15s ease;
}
.transition-transform {
  transition: transform 0.2s ease;
}
.duration-200 {
  transition-duration: 0.2s;
}
.active\:scale-95:active {
  transform: scale(0.95);
}

.hover\:text-\[\#1d1d1f\]:hover {
  color: var(--color-ink);
}
.hover\:underline:hover {
  text-decoration: underline;
}
.hover\:bg-black\/5:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.hover\:text-\[var\(--color-ink\)\]:hover {
  color: var(--color-ink);
}

/* ── Text / Font Sizes ───────────────────────────────────────────── */
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[17px\] {
  font-size: 17px;
}
.text-\[19px\] {
  font-size: 19px;
}
.text-\[21px\] {
  font-size: 21px;
}
.text-\[24px\] {
  font-size: 24px;
}
.text-\[32px\] {
  font-size: 32px;
}
.text-\[36px\] {
  font-size: 36px;
}
.text-\[40px\] {
  font-size: 40px;
}
.text-\[48px\] {
  font-size: 48px;
}
.text-\[80px\] {
  font-size: 80px;
}
.text-\[var\(--type-body\)\] {
  font-size: var(--type-body);
}

/* ── Variable Text Colors ────────────────────────────────────────── */
.text-\[var\(--color-action-blue\)\] {
  color: var(--color-action-blue);
}
.text-\[var\(--color-ink\)\] {
  color: var(--color-ink);
}
.text-\[var\(--color-ink-secondary\)\] {
  color: var(--color-ink-secondary);
}
.text-\[var\(--color-ink-tertiary\)\] {
  color: var(--color-ink-tertiary);
}

/* ── Variable Backgrounds ─────────────────────────────────────────── */
.bg-\[var\(--color-action-blue\)\] {
  background-color: var(--color-action-blue);
}
.bg-\[var\(--color-canvas-dark\)\] {
  background-color: var(--color-canvas-dark);
}
.bg-\[var\(--color-canvas-parchment\)\] {
  background-color: var(--color-canvas-parchment);
}
.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ── Duration ─────────────────────────────────────────────────────── */
.duration-200 {
  transition-duration: 0.2s;
}
.duration-300 {
  transition-duration: 0.3s;
}

/* ── Group (parent for group-hover) ───────────────────────────────── */
.group {
}
.group-hover\:translate-x-0\.5:hover .group-hover\:translate-x-0\.5,
.group:hover .group-hover\:translate-x-0\.5 {
  transform: translateX(2px);
}

/* ── Padding extras ───────────────────────────────────────────────── */
.pr-2 {
  padding-right: 8px;
}

/* ── Active transforms ────────────────────────────────────────────── */
.active\:scale-\[0\.95\]:active {
  transform: scale(0.95);
}

/* ── Scroll ───────────────────────────────────────────────────────── */
html.scroll-smooth {
  scroll-behavior: smooth;
}

/* ── Responsive — sm (≥640px) ────────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* ── Responsive — md (≥768px) ────────────────────────────────────── */
@media (min-width: 768px) {
  /* Display */
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }

  /* Flexbox */
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:flex-col {
    flex-direction: column;
  }

  /* Grid */
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Custom 5-col footer template */
  .md\:grid-cols-\[1\.5fr_1fr_1fr_1fr_1fr\] {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  }

  /* Width */
  .md\:w-1\/2 {
    width: 50%;
  }
  .md\:w-auto {
    width: auto;
  }

  /* Column span */
  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  /* Text alignment */
  .md\:text-left {
    text-align: left;
  }

  /* Font sizes */
  .md\:text-\[21px\] {
    font-size: 21px;
  }
  .md\:text-\[32px\] {
    font-size: 32px;
  }
  .md\:text-\[36px\] {
    font-size: 36px;
  }
  .md\:text-\[48px\] {
    font-size: 48px;
  }
  .md\:text-\[56px\] {
    font-size: 56px;
  }
  .md\:text-\[64px\] {
    font-size: 64px;
  }
  .md\:text-\[72px\] {
    font-size: 72px;
  }
  .md\:text-\[80px\] {
    font-size: 80px;
  }
  .md\:text-\[120px\] {
    font-size: 120px;
  }

  /* Padding */
  .md\:p-10 {
    padding: 40px;
  }
  .md\:p-12 {
    padding: 48px;
  }
  .md\:px-6 {
    padding-left: 24px;
    padding-right: 24px;
  }
  .md\:pt-\[160px\] {
    padding-top: 160px;
  }
  .md\:pb-\[80px\] {
    padding-bottom: 80px;
  }
  .md\:py-\[120px\] {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  /* Margin */
  .md\:mb-0 {
    margin-bottom: 0;
  }
  .md\:mb-16 {
    margin-bottom: 64px;
  }
  .md\:mb-20 {
    margin-bottom: 80px;
  }

  /* Gap */
  .md\:gap-6 {
    gap: 24px;
  }
  .md\:gap-12 {
    gap: 48px;
  }
}
