/* WHY AM I TORTURING MYSELF TO MAKE IT ALL PRETTYYYYYYYYY */

@import url("/minireset.css");
@import url("/fonts/lexend.css");
@import url("/fonts/berkeley.css");


/* ---------- ROOT / THEME ---------- */
:root {
  --peach: #efc4df;
  --strawberry: #e5a0a0;
  --cantaloupe: #f9b28c;
  --banana: #f0cf9f;
  --watermelon: #b0d2b0;
  --mint: #95fecc;
  --water: #80bbdb;
  --ube: #a99dbd;
  --tapioca: #c1c1c1;
  --celeste: #7b539b;

  --dark: #282828;
  --light: #eee;

  --accent: var(--watermelon);
  --foreground: var(--dark);
  --background: var(--light);

  font-family: "Lexend", sans-serif;
}

/* ---------- GLOBAL ---------- */
body {
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  margin: 0;
}

code {
  font-family: "Berkeley Mono", monospace;
}

a {
  color: inherit;
  text-decoration: var(--accent) underline 2px;
  transition: text-decoration 0.2s ease-in-out;
}

a:hover {
  text-decoration: currentColor underline 2px;
}

p {
  line-height: 1.7;
}

em {
  color: #1f1f1f;
  background-color: #ffd8ed; 
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

/* ---------- CONTAINER ---------- */
#container {
  max-width: 900px;
  margin: 6em auto 4em auto;
  padding: 0 2em;
}

/* ---------- HEADER / NAV ---------- */
#header {
  margin-bottom: 3em;
}

#header ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
}

#header li {
  font-size: 0.95em;
}

#header li a {
  text-decoration: none;
}

#header li a:hover {
  text-decoration: currentColor underline 2px;
}

/* ---------- POST TITLES ---------- */
h1 {
  font-size: 2.4em;
  margin-bottom: 0.15em;
  border-bottom: var(--accent) solid 3px;
  padding-bottom: 0.15em;
}

#postDate {
  font-size: 0.85em;
  opacity: 0.75;
  margin-bottom: 2em;
}

/* ---------- POST LISTS ---------- */
#postlistdiv ul,
#recentpostlistdiv ul {
  list-style: none;
  padding: 0;
}

#postlistdiv li,
#recentpostlistdiv li {
  margin-bottom: 0.6em;
}

/* ---------- NEXT / PREV ---------- */
#nextprev {
  text-align: center;
  margin-top: 3em;
  font-size: 0.9em;
}

/* ---------- IMAGES ---------- */
img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

.caption {
  font-size: 0.85em;
  opacity: 0.8;
}

/* ---------- FOOTER ---------- */
#footer {
  margin-top: 4em;
  font-size: 0.8em;
  opacity: 0.75;
}

/* ---------- DARK MODE ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --foreground: var(--light);
    --background: var(--dark);
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 700px) {
  #container {
    margin-top: 4em;
    padding: 0 1.2em;
  }

  h1 {
    font-size: 2em;
  }

  #header ul {
    justify-content: center;
  }
}
