:root {
  --ink: #1c1c1c;
  --paper: #f5f5f0;
  --card: #ffffff;
  --muted: #8a8a8a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.15rem;
}

header {
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid #fff;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1rem;
  font-family: "Oranienbaum", Georgia, serif;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  border-bottom-color: #fff;
}

.hero {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 3.6rem 1.25rem 3.2rem;
  border-bottom: 1px solid #fff;
}

.hero .star {
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-family: "Oranienbaum", Georgia, serif;
  font-weight: 400;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero .motto {
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  color: #d8d8d8;
  font-size: 1.25rem;
}

.hero .verse {
  max-width: 680px;
  margin: 1.8rem auto 0;
  font-size: 1.2rem;
  font-style: italic;
  color: #e6e6e6;
  border-top: 1px solid #555;
  padding-top: 1.4rem;
}

.hero .verse small {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #bdbdbd;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.6rem 1.25rem 4rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-family: "Oranienbaum", Georgia, serif;
  font-weight: 400;
  font-size: 2.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ink);
}

h3 {
  font-family: "Oranienbaum", Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  margin: 1.2rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p {
  margin: 0.6rem 0;
}

.seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.season {
  background: var(--card);
  padding: 1.3rem;
}

.season h3 {
  margin-top: 0;
}

.season .months {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.topic-list {
  list-style: none;
}

.topic-list li {
  margin: 0.5rem 0;
  padding: 0.65rem 0;
  border-top: 1px solid #e2e2dc;
  font-size: 1.1rem;
}

.topic-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.topic-list a:hover {
  text-decoration: underline;
}

.topic-list li.later {
  color: var(--muted);
  font-style: italic;
}

.cta {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  font-family: "Oranienbaum", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: #fff;
  color: var(--ink);
}

.btn.invert {
  background: #fff;
  color: var(--ink);
}

.btn.invert:hover {
  background: var(--ink);
  color: #fff;
}

.verse-block {
  background: var(--card);
  border-left: 4px solid var(--ink);
  padding: 1.3rem 1.5rem;
  font-style: italic;
  font-size: 1.25rem;
}

.verse-block small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-style: normal;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.card {
  background: var(--card);
  padding: 1.2rem 1.3rem;
  border-top: 3px solid var(--ink);
}

.card h3 {
  margin-top: 0;
}

.card .num {
  font-weight: 700;
  margin-right: 0.4rem;
}

.key-points {
  list-style: none;
  margin: 1rem 0;
}

.key-points li {
  padding-left: 1.5rem;
  margin: 0.7rem 0;
  font-size: 1.15rem;
  position: relative;
}

.key-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.homework {
  background: var(--card);
  padding: 1.8rem 1.8rem 2.2rem;
  margin: 1.4rem 0;
}

.homework h2 {
  margin-top: 0;
}

.rule {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.9rem 0;
  margin: 1rem 0;
  font-size: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1.05rem;
}

th,
td {
  border: 1px solid #d0cec6;
  padding: 0.6rem 0.8rem;
  text-align: center;
}

th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td.day {
  font-weight: 700;
  width: 3.2rem;
}

td.blank {
  height: 2.4rem;
}

.signature {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.signature div {
  flex: 1;
  min-width: 220px;
  border-bottom: 1px solid #999;
  padding-bottom: 0.3rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.signature-last {
  margin-bottom: 2.5rem;
}

.question {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.3rem 0;
  margin-top: 1.5rem;
}

.fridge-card {
  margin: 1.2rem 0;
  text-align: center;
}

.fridge-card img {
  max-width: 100%;
  height: auto;
}

@media print {
  .fridge-card img {
    max-width: 70%;
  }
}

.question h3 {
  margin-top: 0;
}

.question .answer-space {
  border-bottom: 1px dashed #999;
  min-height: 5rem;
  margin-top: 0.9rem;
}

footer {
  background: var(--ink);
  color: #bdbdbd;
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

footer .star {
  color: #fff;
}

@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    padding: 0;
  }
}
