:root {
  --font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  --link-color: #0969DA; /* GitHub's dark blue */
  --link-active-color: #0756B6; /* Slightly darker for active */
}

/* Typography Reset */
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #000;
  background: #FFFFE0;
}

.text-base,
p,
ul {
  font-size: 0.75rem;
  color: black;
  line-height: 1.6;
  margin: 1rem 0;
}

ul {
  padding-left: 1.5rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  background: #FFFFFF;
}

header#picbar {
  grid-column: 1 / -1;
  text-align: left;
  background-image: url(images/Tilly_New.JPG);
  background-color: #333;
  min-height: 160px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  padding: 10px 20px;
}

/* Headings */
h1 {
  font-family: Georgia, "Lucida Sans Unicode", lucida, Verdana, sans-serif;
  font-size: 1.5rem;
  color: white;
  text-transform: lowercase;
  position: relative;
  left: 20px;
  top: 10px;
  margin: 0;
}

h2 {
  font-family: "Trebuchet MS", Trebuchet, Arial, Verdana, sans-serif;
  font-size: 1rem;
  color: black;
  font-weight: bold;
}

h2 a:hover {
  color: black;
  text-decoration: none;
}

h4 {
  font-family: Georgia, "Lucida Sans Unicode", lucida, Verdana, sans-serif;
  font-size: 1.5rem;
  color: white;
  text-transform: lowercase;
  font-style: italic;
  margin-left: 20px;
  margin-top: 30px;
  margin-bottom: 0;
}

/* Navigation */
nav {
  grid-column: 1 / 2;
  padding: 20px;
  font-weight: bold;
  background: #FFFFFF;
}

/* Desktop nav links should be black */
nav#menu a {
  color: #000;
}

nav#menu a:link,
nav#menu a:visited,
nav#menu a:active,
nav#menu a:hover {
  color: #000;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1000;
  position: absolute;
  top: 10px;
  right: 15px;
}

.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav-toggle-label.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-label.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-label.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 0.5rem;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-switch a[aria-current="page"] {
  font-weight: bold;
}

.language-switch span {
  margin-right: 5px;
}

/* Main Content */
main {
  grid-column: 2 / -1;
  padding: 5px 20px 4px 30px;
  background: #FFFFFF;
  border-left: medium double #CCCCCC;
}

a:link,
a:visited {
  font-size: 0.75rem;
  color: var(--link-color);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

a:active {
  color: var(--link-active-color);
}

a:hover,
a:focus {
  color: var(--link-color);
  text-decoration: underline;
}

a:focus,
.nav-toggle-label:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

/* Comments - German text should be italicized */
.comment-german {
  font-style: italic;
}

/* Comments - Smaller header for desktop */
.comment-header {
    font-size: 0.9rem; /* Match paragraph size */
    font-weight: bold;
  }

/* Footer */
footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.75rem;
  background: #FFFFFF;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 200px 1fr;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .container {
    display: block; /* Simpler layout on small screens */
    gap: 0;
    padding: 10px;
  }
  
  .comment-header {
    font-weight: bold;
    font-size: 1rem;
  }

  header#picbar {
    min-height: 90px;
    background-size: contain;
    background-position: center;
    padding: 10px;
    position: relative;
  }

  h1 {
    font-size: 1rem;
    left: 10px;
    top: 5px;
    margin: 0;
  }

  h4 {
    font-size: 1rem;
    margin-left: 10px;
    margin-top: 15px;
    margin-bottom: 5px;
  }

  .nav-toggle-label {
    display: flex;
  }

  nav {
    grid-column: 1 / -1;
    padding: 10px;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: #fff;
    padding: 10px;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
  }

  nav.open ul {
    display: block;
  }

  nav li {
    margin: 5px 0;
  }

  nav#menu a {
    font-family: var(--font-family);
    font-size: 1rem;
    display: block;
    padding: 5px;
    text-align: left;
    color: #000;
    line-height: 1.5;
    text-decoration: none;
    transition: text-decoration 0.2s;
  }

  nav#menu a:link,
  nav#menu a:visited,
  nav#menu a:active,
  nav#menu a:hover {
    color: #000;
  }

  nav#menu a:hover {
    text-decoration: underline;
  }

  .language-switch a {
    font-size: 1rem;
    color: #000;
  }

  .language-switch a:link,
  .language-switch a:visited,
  .language-switch a:active,
  .language-switch a:hover {
    color: #000;
  }

  main#content {
    grid-column: 1 / -1;
    padding: 15px;
    border: none;
  }

  main#content a {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--link-color);
    text-decoration: none;
    transition: text-decoration 0.2s;
  }

  main#content a:link,
  main#content a:visited {
    color: var(--link-color);
  }

  main#content a:active {
    color: var(--link-active-color);
  }

  main#content a:hover,
  main#content a:focus {
    text-decoration: underline;
  }

  p,
  ul {
    font-size: 1rem;
    line-height: 1.5;
  }
}
/* END- Responsive */

/* Print Styles */
@media print {
  nav {
    display: none;
  }

  body {
    font-family: var(--font-family);
    font-size: 0.75rem;
    color: #000;
    background: #fff;
  }

  .container {
    display: block;
    padding: 0;
  }

  header#picbar {
    background-image: none;
    background-color: transparent;
    min-height: auto;
    padding: 10px 0;
    text-align: center;
  }

  h1 {
    color: #000;
    position: static;
    font-size: 1rem;
    margin: 0;
  }

  h4 {
    color: #000;
    font-size: 1rem;
    margin: 5px 0 20px;
    text-align: center;
  }

  main {
    padding: 20px 0;
    border: none;
  }

  p,
  ul {
    page-break-inside: avoid;
  }
}
/* END - Print Styles */



