@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}


:root {

  --clr-primary: #000000;
  --clr-secondary: #ceb3b3;
  --clr-accent: #8B0000;
  --clr-neutral: mintcream;
  --clr-background: rgb(253, 253, 253);
  --clr-grey: #808080;

  --ff-primary: "Montserrat", sans-serif;
  --ff-secondary: "Poppins",  sans-serif;;

  --fs-body: 1.312rem;
  --lh-body: 1.5;
  --fw-normal: 300;
  --fw-semibold: 500;
  --fw-bold: 700;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 65ch;
}

header,
footer,
main {
  container-type: inline-size;
}



/* Set up the body */
body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  min-height: 100vh;
  background-color: var(--clr-neutral);
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Make form elements easier to work with */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* WebKit Browsers */
::-webkit-scrollbar {
  width: 1em;
}

::-webkit-scrollbar-track {
  background: var(--clr-secondary);
  border-radius: 100vw;
  margin-block: 0.5em;
}

::-webkit-scrollbar-thumb {
  background: var(--clr-primary);
  border: 0.25em solid var(--clr-accent);
  border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-secondary) !important;
  border: 0.25em solid var(--clr-primary) !important;
}

/* Firefox */
@supports (scrollbar-color: red blue) {
  * {
    scrollbar-color: var(--clr-accent) var(--clr-primary);
    scrollbar-width: thin;
  }
}

/* Typography */

h1,
h2,
h3 {
  font-family: var(--ff-secondary);
  font-weight: var(--fw-bold);
  font-size: clamp(25px, 4vw, 40px);
}


h4,
h5,
h6 {
  font-family: var(--ff-secondary);
  font-weight: var(--fw-semibold);
  font-size: clamp(20px, 2vw, 30px);
}

p,
li,
figcaption {
  font-family: var(--ff-primary);
  font-weight: 300;
  line-height: 1.3;
  font-size: clamp(18px, 2vw, 18px);
}

/* Utility Classes */
/* Padding */

.p-1 {
  padding: 1rem;
}

.p-2 {
  padding: 2rem;
}

.p-3 {
  padding: 3rem;
}

/* Margin */

.m-1 {
  margin: 1rem;
}

.m-2 {
  margin: 2rem;
}

.m-3 {
  margin: 3rem;
}

/* Text Alignment */

.text-center {
  text-align: center;
}

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

.text-left {
  text-align: left;
}

/* Display */

.d-flex {
  display: flex;
}

.d-flex-row {
  display: flex;
  flex-direction: row;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

/* Flexbox */

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

/* Responsive Design */
/* Breakpoints */

@media (max-width: 1200px) {
  :root {
    --fs-body: 1.2rem;
  }
}

@media (max-width: 992px) {
  :root {
    --fs-body: 1.1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-body: 1rem;
  }
}

@media (max-width: 576px) {
  :root {
    --fs-body: 0.9rem;
  }
}

/* Form Styles */
input,
textarea,
select,
button {
  padding: 0.5rem;
  border: 1px solid var(--clr-primary);
  border-radius: 5px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

button {
  background-color: var(--clr-accent);
  color: var(--clr-secondary);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--clr-primary);
}

/* Additional Reset Styles */
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
}

/* Container Class */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Accessibility Enhancements */
:focus {
  outline: 2px dashed var(--clr-accent);
  outline-offset: 4px;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px dashed var(--clr-accent);
  outline-offset: 4px;
}
