/* Import typeface */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Our default values set as CSS variables */

:root {
  --color-bg: #FFF;
  --color-text-main: #453B38;
  --color-text-subtle: #453B3890;
  --color-primary: #2563eb;
  --color-blockquote-bg: #e3edf2;
  --color-blockquote-text: var(--color-text-main);
  --wrapper-height: 85vh;
  --image-max-width: none;
  --font-family: "Inter";
  --font-family-header: "Inter";
  --content-max-width: 640px;
  --content-padding: 16px;
}

/* Dark theme */
[data-theme="dark"] {
  --color-bg: #111118;
  --color-text-main: #ffffff;
  --color-text-subtle: #FFFFFF90;
  --color-blockquote-bg: #1a1a1f;
  --color-blockquote-text: #ffffff;
}

/* System theme - follows OS preference */
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --color-bg: #111118;
    --color-text-main: #ffffff;
    --color-text-subtle: #FFFFFF90;
    --color-blockquote-bg: #1a1a1f;
    --color-blockquote-text: #ffffff;
  }
}


/* Basic page style resets */
* {
  font-size: 1em;
  line-height: 1.5;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/******************************************************************************
END Glitch hello-app default styles
******************************************************************************/

/* Page structure */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  margin: auto;
  padding: 0 var(--content-padding);
  max-width: var(--content-max-width);
  color: var(--color-text-main);
}

input { 
  caret-color: var(--color-primary);
}

.wrapper {
  min-height: var(--wrapper-height);
  place-items: center;
}
.content {
  display: flex;
  flex-direction: column;
  max-width: var(--content-max-width);
  width: 100%;
  margin: auto;
  padding: 0;
}

/* Ensure all wrapper types use consistent width */
.wrapper {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

.wrapper.home .content,
.wrapper.post > div {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

/* Nav header */
header {
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-content {
  flex: 1;
  min-width: 0;
}

nav li {
  display: inline;
  padding-left: 16px;
}

header a:focus {
  border-bottom: 4px solid #0e6bc2;
}

nav a {
  text-transform: uppercase;
}

img {
  max-width: none;
}

#hero {
  padding-top: 1.3em;
  padding-bottom: 0.5em;
  border-top: 1px solid #00000016;
  border-bottom: 1px solid #00000016;
  margin-bottom: 2em;
}

.subtle {
  color: var(--color-text-subtle);
  font-weight: 500;
}


/* Mailchimp Forms */
#mc_embed_signup {
  border: 1px solid #7c99ce4d;
  border-radius: var(--radius-card-border);
  background: var(--color-bg);
  padding: 16px;
}

#mc_embed_signup h2 {
  font-size: 1.5em;
  margin: 0;
}

#mc_embed_signup .indicates-required {
  font-size: 1em;
  color: var(--color-primary);
}

#mc_embed_signup input {
  border: 2px solid #7c99ce4d;
  background: var(--color-bg);
  color: var(--text-main);
  border-radius: var(--radius-small);
  padding: .5em 1em;
}

#mce-EMAIL .input{
  width: 50%;
} 

#mc_embed_signup .button {
  margin-top: 1em;
  
  
}

/* Thing */

.thing {
  margin-top: 1rem;
  flex-direction: row;
  display: flex;
  background-color: var(--color-bg);
  padding: 1em;
  border: 1px solid #7c99ce4d;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
}

.thing:hover {
  border: #0e6bc2 solid 1px;
}

.thing:focus-within {
  outline-offset: 0px;
  outline: #7c99ce4d solid 5px;
  -moz-outline-radius: 1.3rem;
  border: #0e6bc2 solid 1px;
}

li {
  display: block;
  margin: 0 0 0 0;
}

.thing img {
  height: 2.5em;
  width: 2.5em;
  margin-right: 24px;
  border-radius: var(--radius-small);
}

.thing a {
  z-index: 4;
  position: relative;
}

a.fullcard {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 3;
  /*make the text disappear */
  line-height: 0;
  font-size: 0;
  color: transparent;
}

a:hover.fullcard {
  border-bottom: none;
}

/* Typography */
p {
  margin: 0 0 0.75em 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-main);
}

p .hero {
  margin: 0 0 0 0;
}

.thing p {
  margin: 0 0 0 0;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

h2 {
  font-weight: 600;
}

h3 {
  font-weight: 600;
  margin: 0 0 0 0;
  font-display: capitalize;
}

h3 b {
  font-weight: 600;
}

h4 {
  font-size: 1em;
  font-weight: 400;
  margin: 0 0 0 0;
}

small,
.text_small {
  font-size: 0.8rem;
}

ul > li,
ol > li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

ul {
  list-style-position: inside;
}

ul.no-bullet {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.chip {
  padding: 0px 0.5rem;
  display: inline-block;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-left: 0.5em !important;
}
.warn {
  color: #8B5A5A;
  background-color: #8B5A5A15;
}

.primary {
  color: var(--color-primary);
  background-color: #7c99ce1f;
}

/* Link styles */
a:link,
a:visited {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-primary);
  transition: background 0.2s linear;
}

a:hover {
  border-bottom: 4px solid var(--color-primary);
}

blockquote {
  background-color: var(--color-blockquote-bg);
  color: var(--color-blockquote-text);
  padding: .5em 1em 0.5em 1em;
  border-left: 8px var(--color-primary) solid;
  margin: 1em 0 1.6em 0;
}

blockquote ul {
  margin: 0;
  padding: 0;
}

blockquote li:last-child {
  margin-bottom: 0;
}

blockquote p {
  margin-bottom: 0;
}

.callout blockquote {
    border-left: 4px var(--color-primary) solid;
  /* border-bottom: 4px var(--color-primary) solid; */
  box-shadow: 0 0 0 1px var(--color-primary);
  border-radius: 16px;
}

/* Title style adjustments */
.title-lg {
  color: var(--color-text-main);
  font-family: Inter;
  font-style: normal;
  font-weight: bold;
  /*  line-height: 1.5; */
}
.title-md {
  font-size: 2rem;
}

/* Layout: Home */
.home {
  justify-content: left;
}

/* Post */
.post {
  place-items: normal;
}

.post li {
  display: list-item;
  list-style: circle;
}  

.post ul ul{
  padding-left: 16px;
  padding-top: .5em;
}

.post li li {
  margin-bottom: 0.2em;
}

.hero h2 {
  margin-top: 0 !important;
}

.post h2 {
  font-size: 1.2em;
  margin-top: 2em;
}

.postTitle {
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1.5;
  
}

.controls {
  margin: 3rem 0 2rem;
}

.subheader {
  font-weight: 600;
  margin-left: 0.75em;
  padding-top: 2em;
  text-transform: uppercase;
}

blockquote a {
}

footer {
  margin: 2rem auto;
  font-size: .9em;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

footer .footer-links a:hover {
  border-bottom: none;
  text-decoration: underline;
}

footer .footer-theme {
  display: flex;
  align-items: center;
}

footer .theme-switcher {
  position: relative;
  display: inline-block;
}

footer .theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

footer .theme-toggle:hover {
  color: var(--color-primary);
}

footer .theme-toggle:focus {
  outline-offset: 2px;
}

footer .theme-icon {
  font-size: 1rem;
}

footer .dropdown-arrow {
  font-size: 0.5rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

footer .theme-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

footer .theme-toggle[aria-expanded="true"] {
  color: var(--color-primary);
}

footer .theme-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-text-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

footer .theme-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

footer .theme-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--color-text-main);
  font-family: var(--font-family);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Ensure theme options are visible in light mode */
:root footer .theme-option {
  color: #453B38;
}

/* Ensure theme options are visible in dark mode */
[data-theme="dark"] footer .theme-option {
  color: #ffffff;
}

[data-theme="system"] footer .theme-option {
  color: #453B38;
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] footer .theme-option {
    color: #ffffff;
  }
}

footer .theme-option:hover {
  background: var(--color-text-subtle);
}

footer .theme-option:first-child {
  border-radius: 11px 11px 0 0;
}

footer .theme-option:last-child {
  border-radius: 0 0 11px 11px;
}

footer .theme-option.active {
  background: var(--color-primary);
  color: white;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #00000008;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none !important;
  list-style-type: none !important;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none !important;
  list-style-type: none !important;
}

.breadcrumb-link {
  color: var(--color-text-subtle);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--color-primary);
  border-bottom: none;
}

.breadcrumb-separator {
  color: var(--color-text-subtle);
  opacity: 0.5;
  font-weight: 300;
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: var(--color-text-main);
  font-weight: 600;
}

@media screen and (max-width: 410px) {
  body {
    font-size: 14px;
  }
  
  .header-top {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-controls {
    justify-content: flex-start;
  }
  
  nav li {
    display: block;
    padding-left: 0;
    margin-bottom: 0.5rem;
  }
}

.breadcrumbs li {
  padding-left: 0 !important;
}