/* ========================================
   ZOE SCHURMAN'S SITE
   Indie / web revival / pixel aesthetic
   ======================================== */

/* --- FONT --- */
/* Drop YosterIsland.ttf into /fonts/ and this just works */
@font-face {
  font-family: "Yoster Island";
  src: url("/fonts/YosterIsland.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS VARIABLES --- */
/* Change these to retheme the whole site */
:root {
  --font-main: "Yoster Island", "Comic Sans MS", cursive, sans-serif;
  --color-bg: #f5f0e8;
  --color-text: #2a2a2a;
  --color-accent: #4a6f8a;
  --color-accent-light: #8aa4b5;
  --color-link: #4a6f8a;
  --color-link-hover: #8aa4b5;
  --color-sidebar-bg: #ede6d8;
  --color-border: #d4c9b8;
  --color-tag-bg: #e8ddd0;
  --color-tag-text: #5a4a3a;
  --color-code-bg: #e8e0d4;
  --sidebar-width: 200px;
  --vine-width: 0px; /* set to image width when you add the vine */
  --content-max-width: 740px;
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- BASE --- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- LAYOUT --- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- TOP NAV --- */
.sidebar {
  width: 100%;
  background: var(--color-sidebar-bg);
  padding: 1rem 1.5rem;
}

.sidebar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.site-title {
  font-size: 1.3rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
  margin-right: auto;
}

.site-title:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.nav-links a {
  display: inline-block;
  padding: 0.15rem 0;
  color: var(--color-text);
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
}

/* --- VINE SEPARATOR ---
   When you have your vine image, set:
     --vine-width: 24px;  (or whatever the image width is)
   and uncomment the background-image line below.
*/
.vine-separator {
  width: var(--vine-width);
  flex-shrink: 0;
  /* background-image: url("/img/vine.png"); */
  /* background-repeat: repeat-y; */
  /* background-size: var(--vine-width) auto; */
}

/* --- MAIN CONTENT --- */
.content {
  flex: 1;
  padding: 2.5rem 2rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

h1:first-child,
h2:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 1em;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1em;
  margin: 1em 0;
  color: #555;
  font-style: italic;
}

code {
  background: var(--color-code-bg);
  padding: 0.15em 0.35em;
  border-radius: 2px;
  font-size: 0.9em;
}

pre {
  background: var(--color-code-bg);
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 2em 0;
}

ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.3em;
}

/* --- POST --- */
.post-header {
  margin-bottom: 2em;
}

.post-header h1 {
  margin-bottom: 0.25em;
}

.post-header time {
  color: #888;
  font-size: 0.9rem;
}

.post-tags {
  margin-top: 0.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.tag {
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  padding: 0.1em 0.5em;
  border-radius: 2px;
  font-size: 0.85rem;
  text-decoration: none;
}

.tag:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  text-decoration: none;
}

/* --- BLOG LIST --- */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 1.2em;
}

.post-list a {
  font-size: 1.05rem;
}

.post-list time {
  display: block;
  color: #888;
  font-size: 0.85rem;
}

.post-list .post-tags {
  margin-top: 0.25em;
}

/* --- TAG LIST PAGE --- */
.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.tag-list li a {
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  padding: 0.2em 0.7em;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.95rem;
}

.tag-list li a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* --- 404 --- */
.four-oh-four {
  text-align: center;
  padding-top: 3rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .sidebar {
    padding: 0.75rem 1rem;
  }

  .sidebar-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .content {
    padding: 1.5rem 1.25rem;
  }
}
