body {
  font-family: 'IBM Plex Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
  font-size: 17px;
  background: #f6f5eb;
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5em;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0.8em 0 0.7em 0;
  position: relative;
  border-bottom: 1px solid #f0eddd;
}

.site-title-link {
  font-weight: 700;
  font-size: 1.3em;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #111 !important;
  text-decoration: none;
  transition: background 0.14s;
  padding: 0.12em 0.25em 0.12em 0;
  margin-right: 2em;
}

.site-title-link:hover,
.site-title-link:focus {
  background: #f3efe1;
  color: #111;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2.6em;
  margin: 0;
  padding: 0;
}

.site-nav ul li a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02em;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  padding: 0.1em 0.05em;
}

.site-nav ul li a:hover {
  color: #a15c27;
  text-decoration: underline;
}

.menu-toggle, .menu-toggle-label {
  display: none;
}

/* Main content */
.main-content {
  margin-top: 2.1em;
  margin-bottom: 3em;
  text-align: left;
  display: block;
  font-weight: 400;
  line-height: 1.6;
  /* max-width: 760px; */
  max-width: none;
  width: 100%;
  margin-left: 0;
  /* margin-right: auto; */
  margin-right: 0; 
  padding-left: 0;         
  padding-right: 0;
}

.main-content, .main-content * {
  text-align: left !important;
}

h1 {
  font-family: inherit;
  font-weight: 700;
  font-size: 2.1em;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  line-height: 1.1;
  text-align: left;
}

h2 {
  font-family: inherit;
  font-weight: 600;
  font-size: 1.4em;
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  line-height: 1.2;
  text-align: left;
}

h3, h4, h5 {
  font-family: inherit;
  font-weight: 500;
  margin-top: 1em;
  margin-bottom: 0.4em;
  text-align: left;
}

ul, ol {
  padding-left: 2em;
  margin-top: 0.6em;
  margin-bottom: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

a {
  color: #a15c27;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive menu (no hamburger, just Menu label at top right, matches reference) */
@media (max-width: 900px) {
  .site-container {
    max-width: 99vw;
    padding: 0 0.5em;
  }
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 1em;
    padding-bottom: 0.7em;
  }
  .main-content {
    max-width: 98vw;
    margin-top: 1.6em;
    margin-left: 0.4em;
    margin-right: 0.4em;
  }
  .site-nav ul {
    gap: 1.1em;
  }
}

/* Mobile menu with just "Menu" label (reference style) */
@media (max-width: 700px) {
  .site-header {
    padding-top: 1em;
    padding-bottom: 0.5em;
  }

  .menu-toggle-label {
    display: block;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0;
    user-select: none;
    background: none;
    border: none;
    color: #111;
    padding: 0.1em 0.6em 0.1em 0.3em;
    position: relative;
    z-index: 101;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 20vw;
    max-width: 210px;
    min-width: 150px;
    height: 100vh;
    background: #f6f5eb;
    box-shadow: -2px 0 18px 0 #0001;
    transform: translateX(100%);
    transition: transform 0.2s cubic-bezier(.59,-0.01,.54,1);
    z-index: 100;
    border-left: 1px solid #e5e2d8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 3.5em;
    padding-left: 1.1em;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1.7em;
    width: 90%;
    margin-top: 0;
  }
  .site-nav ul li a {
    font-size: 1.18em;
    font-weight: 700;
    color: #222;
    padding: 0.13em 0;
  }
  .menu-toggle:checked ~ .site-nav {
    transform: translateX(0%);
  }
}

/* Ensure Menu is never cut */
@media (max-width: 430px) {
  .menu-toggle-label {
    font-size: 1.08em;
    padding-right: 0.4em;
  }
}

body.home .site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.home .main-content,
body.home .home-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  text-align: center;
  margin: 0 auto;
}

html, body {
  height: 100%;
}

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

footer {
  width: 100%;
  text-align: center;
  color: #888;
  font-size: 1em;
  font-family: inherit;
  padding-bottom: 1em;
  margin-top: auto;
}

/* Place the mobile footer fix at the end */
@media (max-width: 600px) {
  footer {
    padding-bottom: 1.2em;
    margin-top: 2.5em;
  }
}