:root {
  --black: #0b0a08;
  --coal: #14120e;
  --gold: #c9a227;
  --gold-bright: #e8c766;
  --gold-dim: #8a7322;
  --ivory: #f3ead3;
  --muted: #9a917d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--black);
  color: var(--ivory);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.gold-text {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold-bright) 45%, var(--gold) 70%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rule { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1.5rem auto; }
.page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; text-align: center; }
.crest { width: 220px; max-width: 60vw; height: auto; margin-bottom: 2rem; }
.tagline { font-size: clamp(1.3rem, 3.4vw, 1.9rem); letter-spacing: .35em; text-transform: uppercase; font-weight: 300; }
.sub { color: var(--muted); margin-top: 1rem; max-width: 34rem; line-height: 1.7; font-size: .95rem; }
.enquiry { margin-top: 3rem; width: 100%; max-width: 26rem; text-align: left; }
.enquiry h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.4rem; letter-spacing: .12em; text-align: center; margin-bottom: 1.4rem; color: var(--ivory); }
.field { margin-bottom: 1.1rem; }
label { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
input, textarea {
  width: 100%; background: var(--coal); border: 1px solid #2a261c; color: var(--ivory);
  padding: .8rem 1rem; font-size: .95rem; font-family: inherit; border-radius: 2px;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold-dim); }
textarea { resize: vertical; min-height: 110px; }
.btn {
  display: block; width: 100%; padding: .95rem; margin-top: 1.6rem; cursor: pointer;
  background: transparent; border: 1px solid var(--gold); color: var(--gold-bright);
  letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; font-weight: 400;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--gold); color: var(--black); }
.notice { margin-top: 1.6rem; color: var(--gold-bright); font-size: .9rem; text-align: center; }
.error { color: #d98c7a; font-size: .8rem; margin-top: .35rem; }
footer { padding: 2rem; text-align: center; color: #5c5545; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
/* admin */
.admin { width: 100%; max-width: 62rem; margin: 0 auto; padding: 3rem 1.5rem; }
.admin table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: .88rem; }
.admin th { text-align: left; color: var(--muted); font-weight: 400; letter-spacing: .15em; text-transform: uppercase; font-size: .68rem; padding: .7rem .8rem; border-bottom: 1px solid #2a261c; }
.admin td { padding: .8rem; border-bottom: 1px solid #1c1913; vertical-align: top; line-height: 1.5; }
.admin a { color: var(--gold-bright); }
/* LMS */
.card-link { text-decoration: none; color: inherit; }
.course-card { border: 1px solid #2a261c; background: var(--coal); padding: 1.6rem 1.8rem; margin-top: 1.4rem; transition: border-color .25s; text-align: left; }
.course-card:hover { border-color: var(--gold-dim); }
.course-card h2 { font-weight: 500; font-size: 1.35rem; letter-spacing: .06em; }
.course-card p { color: var(--muted); margin-top: .5rem; line-height: 1.6; font-size: .9rem; }
.meta { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; display: inline-block; margin-top: .8rem; }
.module-block { margin-top: 2.6rem; text-align: left; }
.module-block h2 { font-weight: 500; font-size: 1.3rem; letter-spacing: .08em; color: var(--ivory); }
.lesson-list { list-style: none; margin-top: 1rem; }
.lesson-list li a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid #1c1913; margin-bottom: .5rem; color: var(--ivory); text-decoration: none; font-size: .92rem; transition: border-color .2s; }
.lesson-list li a:hover { border-color: var(--gold-dim); }
.lesson-state { color: var(--gold-bright); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lesson-body { margin-top: 1.8rem; line-height: 1.8; color: #cfc7b4; font-size: .98rem; }
.lesson-body h2, .lesson-body h3 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--ivory); margin: 1.6rem 0 .6rem; font-weight: 500; }
.lesson-body p { margin-bottom: 1rem; }
.lesson-body ul, .lesson-body ol { margin: 0 0 1rem 1.4rem; }
