:root {
  font-size: 1.125em;
  font-family: Courier, monospace;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #1A3636;
  color: antiquewhite;
  -webkit-font-smoothing: none;
  -moz-font-smoothing: greyscale;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Layout */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography */
h1, h2, h3 {
  color: aquamarine;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5em;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

p {
  font-family: Georgia, serif;
  line-height: 1.6;
}

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid aquamarine;
  background-color: rgba(127, 255, 212, 0.08);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

/* Links */
a {
  color: salmon;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
  color: pink;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px dotted aquamarine;
  margin-bottom: 40px;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: bold;
  color: aquamarine;
}

.nav-brand:hover {
  color: pink;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: antiquewhite;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: aquamarine;
  color: #1A3636;
  text-decoration: none;
}

/* Hamburger Menu */
.hamburger-menu {
  position: relative;
}

.hamburger-btn {
  background: none;
  border: 2px solid aquamarine;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hamburger-btn:hover {
  background-color: rgba(127, 255, 212, 0.1);
  border-color: pink;
}

.hamburger-btn svg {
  stroke: aquamarine;
  transition: stroke 0.15s ease;
}

.hamburger-btn:hover svg {
  stroke: pink;
}

.hamburger-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background-color: #1A3636;
  border: 2px solid aquamarine;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 100;
}

.hamburger-menu.open .hamburger-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-dropdown a {
  display: block;
  padding: 10px 20px;
  color: antiquewhite;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hamburger-dropdown a:hover,
.hamburger-dropdown a.active {
  background-color: aquamarine;
  color: #1A3636;
}

/* Hero Section */
.hero {
  margin-bottom: 60px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  border: 2px dotted aquamarine;
  border-radius: 8px;
}

.profile-img {
  width: 180px;
  height: auto;
  border-radius: 8px;
}

.hero-text h1 {
  margin-top: 0;
}

/* Content Sections */
.content-section {
  padding: 20px;
  border: 2px dotted aquamarine;
  border-radius: 8px;
}

.section-intro {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: antiquewhite;
  opacity: 0.9;
}

/* About Content */
.about-content ul {
  list-style-type: square;
  padding-left: 20px;
}

.about-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Blog */
.blog-preview h2 {
  margin-top: 0;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.blog-card {
  padding: 20px;
  border: 1px solid aquamarine;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.blog-card:hover {
  border-color: pink;
}

.blog-date {
  font-size: 0.85rem;
  color: salmon;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card h3 {
  margin-top: 10px;
}

.view-all {
  display: inline-block;
  margin-top: 10px;
}

/* Contact Form */
.contact-form {
  max-width: 500px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: aquamarine;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-family: Courier, monospace;
  font-size: 1rem;
  background-color: #243636;
  border: 1px solid aquamarine;
  border-radius: 4px;
  color: antiquewhite;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: pink;
}

.submit-btn {
  padding: 12px 24px;
  font-family: Courier, monospace;
  font-size: 1rem;
  background-color: aquamarine;
  color: #1A3636;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.submit-btn:hover {
  background-color: pink;
}

.form-note {
  margin-top: 30px;
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

/* Projects */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-item {
  padding: 15px;
  border: 1px solid aquamarine;
  border-radius: 8px;
}

.project-item h3 {
  margin-top: 0;
}

/* Footer */
footer {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px dotted aquamarine;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Lists */
ul {
  list-style-type: square;
}

/* Under Construction */
.under-construction {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
  border: 2px dashed aquamarine;
  border-radius: 8px;
}

.under-construction h1 {
  margin-top: 0;
}

.under-construction p {
  margin-bottom: 0;
  opacity: 0.9;
}

/* Feed (homepage) */
.feed {
  margin-bottom: 60px;
}

.feed h2 {
  margin-top: 0;
}

.feed-intro {
  margin-bottom: 20px;
  opacity: 0.9;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feed-item {
  padding: 20px;
  border: 1px solid aquamarine;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.feed-item:hover {
  border-color: pink;
}

.feed-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  border-radius: 3px;
  margin-right: 10px;
}

.feed-tag.devlog {
  background-color: aquamarine;
  color: #1A3636;
}

.feed-tag.blog {
  background-color: salmon;
  color: #1A3636;
}

.feed-tag.reflection {
  background-color: mediumpurple;
  color: #1A3636;
}

.feed-tag.books {
  background-color: sandybrown;
  color: #1A3636;
}

.feed-tag.games {
  background-color: steelblue;
  color: antiquewhite;
}

.feed-date {
  font-size: 0.85rem;
  color: antiquewhite;
  opacity: 0.7;
}

.feed-item h3 {
  margin-top: 10px;
  margin-bottom: 8px;
}

/* Post Grid - Masonry/Pinterest style */
.post-grid {
  columns: 3;
  column-gap: 20px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .post-grid {
    columns: 2;
  }
}

@media (max-width: 500px) {
  .post-grid {
    columns: 1;
  }
}

.post-tile {
  display: block;
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 0;
  border: 2px solid aquamarine;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.2s ease;
}

.post-tile:hover {
  border-color: pink;
  background-color: rgba(127, 255, 212, 0.05);
  transform: translateY(-2px);
  text-decoration: none;
}

.post-tile-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-tile-content {
  padding: 15px;
}

.post-tile-tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  width: fit-content;
}

.post-tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.post-tile-tag.devlog {
  background-color: aquamarine;
  color: #1A3636;
}

.post-tile-tag.blog {
  background-color: salmon;
  color: #1A3636;
}

.post-tile-tag.reflection {
  background-color: mediumpurple;
  color: #1A3636;
}

.post-tile-tag.books {
  background-color: sandybrown;
  color: #1A3636;
}

.post-tile-tag.games {
  background-color: steelblue;
  color: antiquewhite;
}

/* Tag Filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag-filter {
  padding: 8px 16px;
  font-family: Courier, monospace;
  font-size: 0.9rem;
  background-color: transparent;
  border: 2px solid aquamarine;
  border-radius: 4px;
  color: antiquewhite;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag-filter:hover {
  background-color: rgba(127, 255, 212, 0.1);
  border-color: pink;
}

.tag-filter.active {
  background-color: aquamarine;
  color: #1A3636;
}

.post-tile h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: aquamarine;
}

.post-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: antiquewhite;
  opacity: 0.9;
}

.post-tile-date {
  margin-top: 12px;
  font-size: 0.8rem;
  color: antiquewhite;
  opacity: 0.6;
  display: block;
}

/* About Teaser (homepage) */
.about-teaser {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px dotted aquamarine;
}

.about-teaser-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-teaser .profile-img {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.about-teaser-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.about-teaser-text p {
  margin-bottom: 15px;
}

.about-link {
  color: salmon;
}

/* Garden Map (homepage) */
.garden-map h2 {
  margin-top: 0;
}

.garden-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.garden-link {
  display: block;
  padding: 20px;
  border: 2px dotted aquamarine;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.garden-link:hover {
  border-color: pink;
  background-color: rgba(127, 255, 212, 0.1);
  text-decoration: none;
}

.garden-link h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.garden-link p {
  margin: 0;
  font-size: 0.9rem;
  color: antiquewhite;
  opacity: 0.9;
}

/* Post lists (section pages) */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  padding: 20px;
  border: 1px solid aquamarine;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.post-card:hover {
  border-color: pink;
}

.post-date {
  font-size: 0.85rem;
  color: salmon;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-card h3 {
  margin-top: 10px;
  margin-bottom: 8px;
}

/* Individual post pages */
.post .post-header {
  margin-bottom: 30px;
}

.post .post-header h1 {
  margin-top: 10px;
}

.post-content {
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2em;
}

.post-content ul,
.post-content ol {
  padding-left: 25px;
  margin: 1em 0;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content code {
  background-color: #243636;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-content pre {
  background-color: #243636;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

.post-content pre code {
  padding: 0;
  background: none;
}

.post-footer {
  display: grid;
  gap: 5px;
  margin-bottom: 15px;
}

/* Book Reflection Layout */
.book-reflection {
  display: block;
}

.book-header {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.book-cover-image {
  width: 150px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.book-info h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.book-author {
  font-size: 1.1rem;
  color: antiquewhite;
  opacity: 0.9;
  margin: 0 0 15px 0;
  font-style: italic;
}

.book-rating {
  margin-bottom: 15px;
}

.book-rating .rating-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: sandybrown;
}

.book-rating .rating-max {
  font-size: 1rem;
  color: antiquewhite;
  opacity: 0.6;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.book-finished {
  color: antiquewhite;
  opacity: 0.8;
}

.book-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  color: antiquewhite;
  border-radius: 3px;
  text-transform: lowercase;
}

.format-icon {
  font-size: 1.1em;
}

.book-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: transparent;
  border: 2px solid aquamarine;
  border-radius: 4px;
  color: aquamarine;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.book-link:hover {
  background-color: aquamarine;
  color: #1A3636;
  text-decoration: none;
}

.book-content h2 {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px dotted aquamarine;
}

.book-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Book Badges */
.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  font-weight: bold;
}

.book-badge svg {
  flex-shrink: 0;
}

.book-badge.first-read {
  background-color: mediumpurple;
  color: #1A3636;
}

.book-badge.first-read svg {
  stroke: #1A3636;
}

.book-badge.reread {
  background-color: aquamarine;
  color: #1A3636;
}

.book-badge.reread svg {
  stroke: #1A3636;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    padding: 5px 8px;
    font-size: 0.9rem;
  }

  .about-teaser-content {
    flex-direction: column;
    text-align: center;
  }

  .book-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover-image {
    width: 120px;
  }

  .book-info h1 {
    font-size: 1.3rem;
  }

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