html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  color: #1f1914;
  background:
    radial-gradient(circle at top left, rgba(205, 142, 62, 0.22), transparent 28%),
    linear-gradient(180deg, #f6f1e7 0%, #efe6d6 100%);
}

a {
  color: #7f3200;
}

.index-shell,
.note-page {
  min-height: 100vh;
}

.index-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero,
.note-header {
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid rgba(127, 50, 0, 0.16);
  border-radius: 1.5rem;
  box-shadow: 0 22px 70px rgba(91, 53, 16, 0.12);
}

.hero {
  padding: 2rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #9d6c38;
}

.hero h1,
.note-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.description {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(127, 50, 0, 0.16);
  border-radius: 1.25rem;
  box-shadow: 0 18px 55px rgba(91, 53, 16, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 65px rgba(91, 53, 16, 0.14);
}

.card a {
  display: block;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
}

.card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  line-height: 1.5;
}

.note-page {
  padding: 1.25rem;
}

.note-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.note-main {
  height: calc(100vh - 13rem);
}

.button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #7f3200;
  color: #fffdf8;
  text-decoration: none;
}

.note-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(91, 53, 16, 0.12);
}

.note-fallback {
  padding: 1.5rem;
  background: rgba(255, 252, 247, 0.88);
  border-radius: 1rem;
  border: 1px solid rgba(127, 50, 0, 0.16);
}

@media (max-width: 720px) {
  .index-shell {
    padding: 1.25rem 1rem 2rem;
  }

  .hero,
  .note-header {
    padding: 1.25rem;
  }

  .note-header {
    display: block;
  }

  .note-main {
    height: calc(100vh - 15rem);
  }
}
