@import "tailwindcss"; @import "tw-animate-css"; @import "shadcn/tailwind.css"; @custom-variant dark (&:is(.dark *)); /* AUT Open Education — shadcn/ui theme only Brand identity via CSS variables (primary / accent / muted). No ds-* or --brand-*. */ @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --font-sans: var(--font-vazirmatn); --font-heading: var(--font-vazirmatn); --color-sidebar-ring: var(--sidebar-ring); --color-sidebar-border: var(--sidebar-border); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-accent: var(--sidebar-accent); --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --color-sidebar-primary: var(--sidebar-primary); --color-sidebar-foreground: var(--sidebar-foreground); --color-sidebar: var(--sidebar); --color-chart-5: var(--chart-5); --color-chart-4: var(--chart-4); --color-chart-3: var(--chart-3); --color-chart-2: var(--chart-2); --color-chart-1: var(--chart-1); --color-ring: var(--ring); --color-input: var(--input); --color-border: var(--border); --color-destructive: var(--destructive); --color-accent-foreground: var(--accent-foreground); --color-accent: var(--accent); --color-muted-foreground: var(--muted-foreground); --color-muted: var(--muted); --color-secondary-foreground: var(--secondary-foreground); --color-secondary: var(--secondary); --color-primary-foreground: var(--primary-foreground); --color-primary: var(--primary); --color-popover-foreground: var(--popover-foreground); --color-popover: var(--popover); --color-card-foreground: var(--card-foreground); --color-card: var(--card); --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 0.875rem; --radius-xl: 1.125rem; --radius-2xl: 1.25rem; --radius-3xl: 1.5rem; --radius-4xl: 1.75rem; } :root { /* AUT Open Education — pixel palette (navy + white + cool gray) primary #1E3358 · accent #0C2461 · bg #F5F6F8 · surface #FFF · border #E3E7EE · soft #EEF2F8 Map surface → card; surface-soft → secondary/muted. No --surface* parallel tokens. */ --background: #f5f6f8; --foreground: #1e3358; --card: #ffffff; --card-foreground: #1e3358; --popover: #ffffff; --popover-foreground: #1e3358; --primary: #1e3358; --primary-foreground: #ffffff; --secondary: #eef2f8; --secondary-foreground: #1e3358; --muted: #eef2f8; --muted-foreground: #5c677a; --accent: #0c2461; --accent-foreground: #ffffff; --destructive: oklch(0.577 0.245 27.325); --border: #e3e7ee; --input: #e3e7ee; --ring: #0c2461; --radius: 0.625rem; --chart-1: #0c2461; --chart-2: #1e3358; --chart-3: #1e3358; --chart-4: #5c677a; --chart-5: #9aa3b2; --sidebar: #ffffff; --sidebar-foreground: #1e3358; --sidebar-primary: #1e3358; --sidebar-primary-foreground: #ffffff; --sidebar-accent: #eef2f8; --sidebar-accent-foreground: #1e3358; --sidebar-border: #e3e7ee; --sidebar-ring: #0c2461; } .dark { --background: #0c2461; --foreground: #f5f6f8; --card: #1e3358; --card-foreground: #f5f6f8; --popover: #1e3358; --popover-foreground: #f5f6f8; --primary: #eef2f8; --primary-foreground: #1e3358; --secondary: #243a5c; --secondary-foreground: #f5f6f8; --muted: #243a5c; --muted-foreground: #9aa3b2; --accent: #e3e7ee; --accent-foreground: #0c2461; --border: #2a4060; --input: #2a4060; --ring: #eef2f8; --chart-1: #eef2f8; --chart-2: #1e3358; --chart-3: #0c2461; --chart-4: #9aa3b2; --chart-5: #5c677a; --sidebar: #1e3358; --sidebar-foreground: #f5f6f8; --sidebar-primary: #eef2f8; --sidebar-primary-foreground: #1e3358; --sidebar-accent: #243a5c; --sidebar-accent-foreground: #f5f6f8; --sidebar-border: #2a4060; --sidebar-ring: #eef2f8; } @layer base { * { @apply border-border outline-ring/50; } html { @apply font-sans scroll-smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } body { @apply bg-background text-foreground antialiased; /* Vazirmatn reads best ~16px with a slightly open Persian line-height */ font-size: 1rem; line-height: 1.75; text-align: start; } h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading), var(--font-sans), ui-sans-serif, system-ui, sans-serif; } html, body { width: 100%; max-width: 100%; overflow-x: clip; } /* Flex/grid children must be allowed to shrink below intrinsic content width */ #__next, main, [data-slot="page-shell"] { min-width: 0; max-width: 100%; } a { color: inherit; text-decoration: none; } img, video, canvas, iframe { max-width: 100%; } video, iframe { height: auto; } } /* Metamorph field: static on purpose (animations removed for mobile perf). Legacy keyframes kept only so reduced-motion rules stay harmless. */ .page-hero::after, .home-hero::after { position: absolute; inset-inline: 0; bottom: 0; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.5; } .site-header::before { position: absolute; inset-inline: 0; top: 0; height: 2px; content: ""; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); } .site-header nav a { position: relative; } .site-header nav a::after { position: absolute; inset-inline-start: 50%; bottom: 0.15rem; width: 0.3rem; height: 0.3rem; border-radius: 999px; content: ""; background: var(--accent); opacity: 0; transform: translateX(50%) scale(0); transition: opacity 200ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1); } .site-header nav a:hover::after, .site-header nav a:focus-visible::after { opacity: 1; transform: translateX(50%) scale(1); } .motion-section[data-tone="muted"] { background-image: radial-gradient(color-mix(in oklab, var(--foreground) 9%, transparent) 0.7px, transparent 0.7px); background-size: 22px 22px; } .motion-section[data-tone="dark"] { background-image: radial-gradient(circle at 10% 20%, color-mix(in oklab, var(--primary-foreground) 12%, transparent), transparent 28%), radial-gradient(circle at 90% 80%, color-mix(in oklab, var(--secondary) 18%, transparent), transparent 25%); } .motion-section[data-tone="accent"] { background-image: radial-gradient(circle at 85% 15%, color-mix(in oklab, var(--accent-foreground) 10%, transparent), transparent 30%); } /* Scroll-driven reveals: desktop only — expensive while scrolling on phones */ @media (min-width: 768px) and (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) { @keyframes section-reveal { from { opacity: 0.35; transform: translateY(0.6rem); } to { opacity: 1; transform: translateY(0); } } .motion-section { animation: section-reveal both cubic-bezier(0.22, 1, 0.36, 1); animation-timeline: view(); /* Finish early so section padding never reads as an empty page */ animation-range: entry 0% cover 12%; } } } @media (hover: hover) and (prefers-reduced-motion: no-preference) { [data-slot="card"] img { transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); } [data-slot="card"]:hover img { transform: scale(1.025); } } @media (max-width: 767px) { .motion-section[data-tone="muted"], .motion-section[data-tone="dark"] { background-image: none; } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } .motion-section { animation: none !important; } }