/* ============================================================
   Students page
   ============================================================ */

/* ── Header ───────────────────────────────────────────────── */

.stu-header {
  padding: 130px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.stu-scatter {
  position: relative;
  height: 56px;
  margin-bottom: 20px;
}

.stu-frag {
  position: absolute;
  font-family: var(--hand);
  display: block;
}

.sf-kicker {
  font-size: 16px;
  color: var(--faint);
  top: 0;
  left: 2px;
  transform: rotate(-4deg);
}

.sf-free {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  top: 8px;
  left: 52%;
  transform: rotate(3deg);
}

.sf-tag {
  font-size: 18px;
  color: var(--accent);
  top: 28px;
  left: 28%;
  transform: rotate(-2deg);
}

.stu-title {
  font-family: var(--hand);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 24px;
  transform: rotate(-1deg);
  display: inline-block;
}

.stu-sub {
  font-family: var(--hand);
  font-size: 21px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.6;
}

/* ── Resources grid ───────────────────────────────────────── */

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 56px 0 0;
}

/* ── Resource card ────────────────────────────────────────── */

.res-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(36, 24, 10, 0.09);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.res-card:nth-child(1) { transform: rotate(-0.8deg); }
.res-card:nth-child(2) { transform: rotate( 1.2deg); }
.res-card:nth-child(3) { transform: rotate(-1.4deg); }
.res-card:nth-child(4) { transform: rotate( 0.9deg); }

a.res-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 5px 10px 28px rgba(36, 24, 10, 0.11), 3px 3px 0 rgba(36,24,10,0.07);
}

.res-card-inner {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* — top row: icon + badge — */
.res-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.res-icon { font-size: 28px; line-height: 1; }

.res-live {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #2E6E3E;
  background: rgba(46, 110, 62, 0.1);
  border: 1px solid rgba(46, 110, 62, 0.28);
  border-radius: 100px;
  padding: 3px 10px;
}

.res-soon {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(36, 24, 10, 0.05);
  border: 1px dashed var(--line);
  border-radius: 100px;
  padding: 3px 10px;
}

/* — title — */
.res-title {
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.res-tagline {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}

/* — description — */
.res-desc {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* — feature list — */
.res-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
  flex: 1;
}

.res-features li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.res-features li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--faint);
}

/* — CTA — */
.res-cta {
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  width: fit-content;
  margin-top: auto;
  transition: color 0.15s, border-color 0.15s;
}

a.res-card:hover .res-cta {
  color: var(--accent);
  border-color: var(--accent);
}

/* — coming soon card treatment — */
.res-coming {
  opacity: 0.72;
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}

.res-coming .res-title,
.res-coming .res-desc { color: var(--muted); }

.res-coming .res-title { color: var(--text); }

.res-cta-soon {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
  width: fit-content;
  margin-top: auto;
  cursor: not-allowed;
}

/* ── Bottom note ──────────────────────────────────────────── */

.stu-note {
  padding: 48px 0 40px;
  text-align: center;
}

.stu-note p {
  font-family: var(--hand);
  font-size: 19px;
  color: var(--muted);
}

.stu-note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(184, 70, 14, 0.3);
  transition: border-color 0.15s;
}

.stu-note a:hover { border-color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .resources-grid { grid-template-columns: 1fr; }
  .res-card:nth-child(n) { transform: none; }
  a.res-card:hover { transform: translateY(-4px) !important; }
  .stu-scatter { height: 72px; }
  .sf-free { left: auto; right: 0; top: 0; }
  .sf-tag { top: 36px; left: 4px; }
}

@media (max-width: 480px) {
  .stu-header { padding: 110px 0 48px; }
  .stu-title { font-size: 52px; }
  .stu-sub { font-size: 18px; }
  .res-card-inner { padding: 22px 20px 20px; }
}
