body {
  margin: 0;
  font-family: 'Garamond', 'Times New Roman', serif;
  background: #f5ecd6 url('https://www.transparenttextures.com/patterns/old-mathematics.png');
  color: #4b3a1e;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e2c590;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .logo {
  height: 38px;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.navbar a {
  text-decoration: none;
  color: #4b3a1e;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.navbar a:hover {
  color: #a67c2d;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
  background: linear-gradient(rgba(245,236,214,0.95), rgba(226,197,144,0.85));
  border-bottom: 4px solid #a67c2d;
}
.hero-logo {
  width: 120px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
  letter-spacing: 0.1em;
  font-family: 'Cinzel', 'Garamond', serif;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.cta {
  display: inline-block;
  background: #a67c2d;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.cta:hover {
  background: #4b3a1e;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  background: #f5ecd6 url('https://www.transparenttextures.com/patterns/old-mathematics.png');
}
.feature-card {
  background: #fffbe6;
  border: 2px solid #e2c590;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  width: 220px;
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 18px rgba(166,124,45,0.13);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.7rem;
}
.feature-card h2 {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.3rem 0;
  font-family: 'Cinzel', 'Garamond', serif;
}
.feature-card p {
  font-size: 1rem;
  margin: 0.2rem 0 0 0;
}
.paypal {
  border: 2px solid #ffc439;
}

.downloads-link {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.downloads-main {
  max-width: 700px;
  margin: 2rem auto;
  background: #fffbe6;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  border: 2px solid #e2c590;
}
.downloads-main h1 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.downloads-main a {
  text-decoration: none !important;
  color: #4b3a1e;
  transition: color 0.2s;
}
.downloads-main a:hover {
  text-decoration: none !important;
  color: #a67c2d;
}

footer {
  background: #e2c590;
  color: #4b3a1e;
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  border-top: 4px solid #a67c2d;
  font-size: 1rem;
}
footer a {
  color: #4b3a1e;
  text-decoration: none;
  border-bottom: 1px dotted #a67c2d;
  transition: border-bottom 0.2s;
}
footer a:hover {
  color: #a67c2d;
  text-decoration: underline;
  border-bottom: none;
}

.feature-link {
  text-decoration: none !important;
  color: inherit;
}

.nav-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: 2px;
}

.riddle-columns {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}
.riddle-col {
  flex: 1 1 0;
  background: #fffbe6;
  border: 2px solid #e2c590;
  border-radius: 14px;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.riddle-col h3 {
  margin-top: 0;
  font-family: 'Cinzel', 'Garamond', serif;
  font-size: 1.2rem;
}
@media (max-width: 700px) {
  .riddle-columns {
    flex-direction: column;
    gap: 1.2rem;
  }
}

@media (max-width: 900px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  .feature-card {
    width: 90%;
    margin-bottom: 1.5rem;
  }
  .navbar ul {
    flex-direction: column;
    gap: 0.7rem;
  }
}

.about-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fffbe6;
  border: 2px solid #e2c590;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.about-image {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: contain;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  margin-top: 0;
  font-family: 'Cinzel', 'Garamond', serif;
  font-size: 1.3rem;
  color: #4b3a1e;
}
.about-text ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.about-text li {
  margin: 0.5rem 0;
}
@media (max-width: 700px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }
  .about-image {
    max-width: 100%;
  }
}
