* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none !important;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;  /* Prevent iOS font scaling */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9));
  padding: 6rem 2rem;
  text-align: center;
  border-bottom: 2px solid #640000;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,0,0,0.3);
}

.hero p {
  font-size: 1.5rem;
  color: #cccccc;
}

p.smaller {
  font-size: 0.9rem;
}

.circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.circle-section {
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #3a3a3a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ccc;
}

.circle-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255,0,0,0.2);
}

.circle-header {
  background: #640000;
  padding: 1.5rem;
  border-bottom: 1px solid #800000;
}

.circle-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.circle-header .cantos {
  font-size: 0.9rem;
  color: #cccccc;
}

.circle-content {
  padding: 1.5rem;
}

.circle-content h3 {
  color: #960000;
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

.circle-content h3:first-child {
  margin-top: 0;
}

.circle-content p {
  margin-bottom: 1rem;
}

.spirits {
  list-style: none;
  margin-left: 1rem;
}

.spirits li {
  position: relative;
  margin-bottom: 0.5rem;
}

.spirits li::before {
  content: '•';
  position: absolute;
  left: -1rem;
  color: #640000;
}


.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  margin: 2rem 0;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  min-width: 1000px;
}

.text-content {
  padding-right: 2rem;
  border-right: 1px solid #3a3a3a;
  min-width: 450px;
}
.text-content p {
  margin-bottom: 1rem;
  text-align: center;
}
.text-content h3 {
  color: #960000;
  margin: 1rem auto;
  text-align: center;
}
.text-content span.highlight {
  color: #960000;
  font-weight: bold;
}

.commentary {
  min-width: 450px;
}

aside {
  font-style: italic;
  margin: 1.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid #640000;
  color: #cccccc;
}

.note {
  margin: 1rem 0;
  padding: 1rem;
  background: #222222;  
  border-radius: 4px;
  position: absolute;
  width: 450px;
}

.note-header {
  color: #960000;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.has-note {
  color: #960000;
}

/* Basic styling for modal */
dialog {
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin: auto;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
#noteInput {
  width: 100%;
  margin-bottom: 10px;
  min-height: 4em;
}
nav.menu {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.menu li {
  display: inline;
  margin: 0 1rem;
}
.menu a {
  text-decoration: underline !important;
  color:#960000;
}