@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&display=swap");

:root {
  --background: 0 0% 100%;
  --heading: 0 0% 0%;
  --foreground: 0 0% 20%;
  --primary: 0 0% 0%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 90%;
  --secondary-foreground: 0 0% 10%;
  --neutral: 0 0% 95%;
  --accent: 0 0% 85%;
  --accent-foreground: 0 0% 15%;
  --muted: 0 0% 80%;
  --muted-foreground: 240 5% 40%;
  --destructive: 0 80% 40%;
  --destructive-foreground: 0 0% 0%;
  --border: 0 0% 92%;
  --input: 0 0% 20%;
  --ring: 0 0% 15%;
  --chart-1: 12 76% 61%;
  --chart-2: 173 58% 39%;
  --chart-3: 197 37% 24%;
  --chart-4: 43 74% 66%;
  --chart-5: 27 87% 67%;
  --radius: 0.4rem;
  --wrapper-height: 75vh;
  --image-max-width: 320px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

.dark {
  --background: 0 0% 0%;
  --heading: 0 0% 100%;
  --foreground: 0 0% 90%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 10%;
  --secondary-foreground: 0 0% 90%;
  --neutral: 0 0% 10%;
  --accent: 0 0% 15%;
  --accent-foreground: 0 0% 85%;
  --muted: 0 0% 20%;
  --muted-foreground: 240 5% 70%;
  --destructive: 0 80% 40%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 0 0% 85%;
  --chart-1: 220 70% 50%;
  --chart-2: 160 60% 45%;
  --chart-3: 30 80% 55%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 55%;
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

/********************************* Page structure ***********************/

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}
.dark .prose * {
  color: hsl(var(--foreground)) !important;
}

/********************************* Typography ***********************/
p:not(.no-style) {
  margin: 0 0 0.5rem 0;
  line-height: 1.5 !important;
}
h2:not(.no-style),
h3:not(.no-style),
h4,
h5 {
  margin: 1rem 0 0.8rem;
  font-weight: 500;
  line-height: 1.1;
  font-family: "Oswald", sans-serif;
}
h1 {
  color: hsl(var(--heading));
  font-size: 1.75rem;
  font-weight: 600;
  margin: 1rem 0rem;
  display: inline-flex;
  font-family: "Oswald", sans-serif;
}
h2:not(.no-style),
.h2 {
  font-size: 1.35rem;
  font-weight: 600;
}
h3:not(.no-style) {
  font-size: 1.15rem;
  font-weight: 500;
}
h4 {
  font-size: 1.05rem;
}
h5 {
  font-size: 1rem;
}
small,
.text_small {
  font-size: 12px;
}
ul > li,
ol > li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
ul {
  padding: 0 0 0 18px;
  margin: 0;
}
ul.no-bullet {
  list-style-type: none;
}

/********************************* Page styles ***********************/
.page {
  ul {
    li {
      list-style-type: disc;
    }
  }
}

/********************************* Elements ***********************/
button,
.btn {
  padding: 0.5rem 1rem;
  width: fit-content;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
}

.btn-primary,
button:not(.btn-outline),
.btn:not(.btn-outline) {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  &:hover {
    opacity: 0.7;
  }
  a:hover {
    color: var(--secondary);
    background-color: transparent;
  }
}

.btn-outline {
  border: 1px solid hsl(var(--border));
  &:hover {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
  }
  a:hover {
    opacity: 0.6;
  }
}

/* Link styles */
.post a {
  text-decoration: underline;
}

.link a {
  text-decoration: none;
  color: var(--muted-foreground);
  cursor: pointer;
}
.link:hover,
a:hover {
  text-decoration: underline;
}
.links {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.divider-t {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}
.divider-b {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
}

/********************************* Footer/Header Navigation ***********************/
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/********************************* Sections ***********************/
.wrapper {
  min-height: var(--wrapper-height);
}

.breadcrumbs {
  font-size: 10px;
  a {
    font-weight: 600;
  }
}
.section-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  @media screen and (min-width: 768px) {
    flex-direction: row;
  }
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  width: 100%;
}
.card-content {
  padding: 0.25rem 2rem;
  gap: 1rem;
}
.card-img {
  padding: 0.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.card-cta {
  color: hsl(var(--accent-foreground));
  border-radius: var(--radius);
  padding: 1rem 2rem;
  &:hover {
    background-color: hsl(var(--secondary));
  }
}

/********************************* Forms ***********************/
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  .form-input,
  .form-textarea {
    padding: 0.25rem 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
  }

  .form-input::placeholder,
  .form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
  }
}

/********************************* Default styles for Tailwind ***********************/
.oswald {
  font-family: "Oswald", sans-serif;
}

.border {
  border-color: hsl(var(--border));
}
.border-t-dashed {
  border-top: 1px dashed hsl(var(--border));
}
.border-b-dashed {
  border-bottom: 1px dashed hsl(var(--border));
}
.border-primary {
  border-color: hsl(var(--primary));
}
.border-neutral {
  border-color: hsl(var(--border));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-secondary {
  background-color: hsl(var(--secondary));
}
.bg-neutral {
  background-color: hsl(var(--neutral));
}
