@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Fraunces:ital,wght@0,300;0,600;1,300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #1a1a1a;
  --paper: #f5f0e8;
  --cream: #ede7d4;
  --accent: #c0392b;
  --green: #2c7a4b;
  --blue: #1a5276;
  --muted: #7a7165;
  --border: #c8bfa8;
  --green-bg: #eaf5ee;
  --yellow-bg: #fef9e7;
  --red-bg: #fdecea;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
body {
  font-family: "DM Mono", monospace;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  color: var(--paper);
  padding: 1rem 3rem 1rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 200, 154, 0.2);
}
header::before {
  content: "LearnWorlds Assist";
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Fraunces", serif;
  font-size: 8rem;
  font-weight: 600;
  color: rgba(232, 200, 154, 0.06);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8c89a, transparent);
}
header h1 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  position: relative;
}
header h1 span {
  color: #e8c89a;
}
header > p {
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-left: 1.5rem;
}
header > p::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #e8c89a;
}

.hero-tagline {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #e8c89a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 1px solid rgba(232, 200, 154, 0.2);
  padding-top: 1rem;
  flex-wrap: wrap;
}
.hero-tagline span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-tagline span::before {
  content: "▶";
  font-size: 0.6rem;
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   CONTAINER
───────────────────────────────────────── */
.container {
  max-width: 1100px;
  width: 95%;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  flex: 1;
}

/* ─────────────────────────────────────────
   SERIES INTRO
───────────────────────────────────────── */
.series-intro {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.series-intro .kicker {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}
.series-intro h2 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.series-intro p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   PRINCIPLE STRIP
───────────────────────────────────────── */
.principle-strip {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.principle-strip::before {
  content: "Simple";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Fraunces", serif;
  font-size: 6rem;
  font-weight: 600;
  color: rgba(232, 200, 154, 0.05);
  pointer-events: none;
  line-height: 1;
}
.ps-quote {
  flex: 1;
  min-width: 220px;
}
.ps-quote blockquote {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--paper);
}
.ps-quote blockquote + blockquote {
  margin-top: 1.2rem;
}
.ps-quote small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   NOTES GRID
───────────────────────────────────────── */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 3rem;
  counter-reset: card;
}

/* NOTE CARD */
.note-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s;
}
.note-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--ink);
}
.note-card:hover .card-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.note-card:hover .card-cta {
  background: var(--ink);
  color: var(--paper);
}

/* Card top colour bands */
.card-band {
  height: 6px;
}
.band-history {
  background: linear-gradient(90deg, #c9a227, #e8c89a, #c0392b);
}
.band-language {
  background: linear-gradient(90deg, #1a5276, #7a5c00, #1a5276);
}
.band-exam {
  background: linear-gradient(90deg, #c0392b, #e8c89a, #c0392b);
}
.band-reasoning {
  background: linear-gradient(90deg, #1a5276, #2c7a4b, #1a5276);
}
.band-mechanism {
  background: linear-gradient(90deg, #2c7a4b, #1a5276, #2c7a4b);
}
.band-management {
  background: linear-gradient(90deg, #1a5276, #c0392b, #1a5276);
}
.band-path {
  background: linear-gradient(90deg, #c0392b, #1a5276, #c0392b);
}

/* Card header */
.card-head {
  background: var(--cream);
  padding: 1.6rem 1.8rem 1.4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  counter-increment: card;
}
.card-head::after {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  right: 1rem;
  bottom: -1rem;
  font-family: "Fraunces", serif;
  font-size: 5rem;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.04);
  pointer-events: none;
  line-height: 1;
}
.card-head h3 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.card-head h3 span {
  color: var(--accent);
}
.card-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Card body */
.card-body {
  font-family: "DM Mono", monospace;
  padding: 1.4rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-description {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.card-link {
  font-family: "DM Mono", monospace;
  font-size: 1rem;
  opacity: 0.5;
  margin-top: 0.25rem;
  display: inline-block;
}

/* Card footer */
.card-footer {
  padding: 1.1rem 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-cta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  transition:
    background 0.2s,
    color 0.2s;
  font-family: "DM Mono", monospace;
}
.card-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition:
    transform 0.2s,
    opacity 0.2s;
  opacity: 0.4;
}

/* Read badge */
.card-read-badge {
  display: none;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #a8d8b8;
  padding: 0.18rem 0.55rem;
  border-radius: 30px;
}
.note-card.visited .card-read-badge {
  display: inline-block;
}
.note-card.visited {
  border-color: #a8d8b8;
}

/* ─────────────────────────────────────────
   COMING SOON
───────────────────────────────────────── */
.coming-soon-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.coming-soon-label .cs-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.coming-soon-label span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.coming-card {
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  opacity: 0.65;
}
.coming-card h4 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.coming-card p {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
}
.coming-badge {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  color: var(--paper);
  padding: 2.5rem 3rem 2rem;
  width: 100%;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(232, 200, 154, 0.2);
}
footer::after {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: 0.5rem;
  font-family: "Fraunces", serif;
  font-size: 4rem;
  font-weight: 600;
  color: rgba(232, 200, 154, 0.03);
  pointer-events: none;
  line-height: 1;
}
footer p {
  color: #999;
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
footer p:first-child {
  margin-bottom: 0.5rem;
  color: #e8c89a;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 750px) {
  header {
    padding: 1rem 1.5rem;
  }
  header h1 {
    font-size: 2.2rem;
  }
  header::before {
    font-size: 4rem;
  }
  .hero-tagline {
    gap: 1rem;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .coming-grid {
    grid-template-columns: 1fr;
  }
  .principle-strip {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .principle-strip::before {
    font-size: 3rem;
  }
  .home-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 0.65rem 1rem;
  }
}
