:root {
  --accent: rgba(158, 86, 54, 0.63);
  --sidebar-width: 15rem;
  --sidebar-link: #fff;
  --text: #111;
  --bg: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  display: flex;
  height: 100vh;
  overflow: visible;
}

/* Sidebar */
.sidebar {
  width: max(128px, var(--sidebar-width));
  max-height: 1400px;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}

.logo {
  width: clamp(128px, 13rem, var(--sidebar-width));
  height: auto;
  border-radius: 4px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-self: stretch; /* Allows nav to take full width */
  text-align: left; /* Ensures text is left-aligned */
}

nav a {
  text-decoration: none;
  color: var(--sidebar-link);
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
  padding-left: 1rem; /* For breathing space */
}

nav a:hover {
  opacity: 0.7;
}

/* Main content */
main {
  flex: 1;
  width: calc(100vw - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 6rem;
  position: relative;
  max-height: 950px; /* sensible cap for layout balance */
  height: 100vh;
  background: var(--bg);
}

p {
  margin-bottom: 1.5rem;
}

.title-block {
  margin-top: 2rem;
}

.title {
  font-family: "Crimson Pro", serif;
  font-size: 6em;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text);
}

.subtitle {
  font-size: 1.4em;
  color: var(--text);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.accent {
  color: var(--accent);
}

.body-text {
  font-size: 1.2em;
  color: var(--text);
  max-width: 700px;
  line-height: 1.1;
  margin-top: 2em;
}

.body-text ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

.body-text li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  body { 
    flex-direction: column;
    height: auto;
    overflow: visible;
    font-size: clamp(.95em, 4vw, 1.2em);
  }
  .sidebar {
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 1rem;
    position: relative;
    overflow: visible;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    font-size: clamp(1em, 5vw, 1.2em);
  }
  main {
    width: 100vw;
    margin-left: 0;
    padding: 2rem;
    max-height: none;
  }
  .title {
    font-size: clamp(1.3em, 14vw, 4em);
  }
  .subtitle {
    font-size: clamp(1em, 5vw, 1.2em);
  }
  .body-text {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}