/**
 * Base Styles
 *
 * CSS custom properties, resets, and typography.
 *
 * @package    Factoria Child
 * @subpackage Styles
 * @since      1.0.0
 */

/* --------------------------------------------------------
   Custom Properties (Light — default)
   -------------------------------------------------------- */
:root {
  --background: 80 25% 97%;
  --foreground: 150 25% 8%;
  --card: 0 0% 100%;
  --card-foreground: 150 25% 8%;
  --popover: 0 0% 100%;
  --popover-foreground: 150 25% 8%;
  --primary: 152 55% 30%;
  --primary-foreground: 80 40% 98%;
  --secondary: 80 20% 92%;
  --secondary-foreground: 150 25% 15%;
  --muted: 80 15% 93%;
  --muted-foreground: 150 10% 45%;
  --accent: 42 85% 55%;
  --accent-foreground: 42 60% 12%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 98%;
  --border: 80 15% 88%;
  --input: 80 15% 88%;
  --ring: 152 55% 30%;
  --radius: 0.75rem;
}

/* --------------------------------------------------------
   Custom Properties (Dark)
   -------------------------------------------------------- */
.dark {
  --background: 150 25% 6%;
  --foreground: 80 20% 95%;
  --card: 150 20% 10%;
  --card-foreground: 80 20% 95%;
  --popover: 150 20% 10%;
  --popover-foreground: 80 20% 95%;
  --primary: 152 50% 45%;
  --primary-foreground: 150 25% 6%;
  --secondary: 150 15% 15%;
  --secondary-foreground: 80 20% 95%;
  --muted: 150 15% 15%;
  --muted-foreground: 80 10% 55%;
  --accent: 42 75% 50%;
  --accent-foreground: 42 60% 95%;
  --destructive: 0 62% 30%;
  --destructive-foreground: 0 0% 98%;
  --border: 150 15% 18%;
  --input: 150 15% 18%;
  --ring: 152 50% 45%;
}

/* --------------------------------------------------------
   Reset & Base
   -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* --------------------------------------------------------
   Container
   -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

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