/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Mulish:wght@300;400;600&display=swap");

/* Variables */
:root {
  --color-bg: #FCFBF8;
  --color-card: #ffffff;
  --color-primary: #2C423F; 
  --color-accent: #CE714B;  
  --color-secondary: #4A635F;
  --color-text: #2F2A26;
  --color-muted: #857D75;
  --color-border: #E8E3DF;
  --color-white: #ffffff;
  --color-error: #D9534F;
  --color-success: #28A745;
  --color-dialog-success: #10B981; 
  --color-dialog-error: #EF4444;   

  --font-heading: "Merriweather", serif;
  --font-body: "Mulish", sans-serif;
  --font-accent: "Merriweather", serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  --max-width: 72rem;
  --radius: 0.75rem;
  --transition: 1.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Reset */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}

/* Global Reset */

html {
  font-size: 100%; /* 16px base, accessible default */
}

@media (max-width: 48rem) {
  html {
    font-size: 93.75%; /* 15px base for smaller screens */
  }
}

/* Base */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

main {
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}
p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}
a {
  color: inherit;
  text-decoration: none;
}
.strong {
  font-weight: 600;
  color: var(--color-secondary);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Animation */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
