.mathweek {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 5rem) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mathweek h1 { font-size: clamp(2.8rem, 5vw, 5.5rem); margin: 1rem 0; }
.mathweek h1 em { color: var(--maroon); }
.mathweek-intro { color: var(--ink-muted); max-width: 46ch; }
.mathweek-riddle { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--maroon); background: var(--paper); }
.mathweek-riddle p { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.5; }
.mathweek-form { display: grid; gap: .6rem; max-width: 34rem; }
.mathweek-form label { font-weight: 600; margin-top: .5rem; }
.mathweek-form input, .mathweek-form textarea { width: 100%; padding: .8rem 1rem; font: inherit; color: var(--ink); border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.mathweek-form textarea { resize: vertical; min-height: 5rem; }
.mathweek-form input[readonly], .mathweek-form textarea:disabled { background: var(--paper-deep); }
.mathweek-lookup-status { margin: 0; min-height: 1.6em; }
.mathweek-form .btn { justify-self: start; margin-top: .6rem; cursor: pointer; font: inherit; }
.mathweek-form .btn:disabled { opacity: .6; cursor: not-allowed; }
.mathweek-status { min-height: 1.6em; color: var(--maroon); font-weight: 500; }
.mathweek-note { font-size: .82rem; color: var(--ink-muted); }
.mathweek-poster { margin: 0; justify-self: center; max-width: 410px; }
.mathweek-poster img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 10px 10px 0 var(--paper-deep); }
.mathweek-poster figcaption { margin-top: 1rem; font-size: .8rem; color: var(--ink-muted); }
@media (max-width: 760px) {
  .mathweek { grid-template-columns: 1fr; }
  .mathweek-poster { max-width: 360px; }
}
.mathweek .mathweek-riddle-label { font-size: .75rem; font-family: inherit; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: .35rem; }
.mathweek-answer-reveal { margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); background: var(--paper); max-width: 34rem; }
.mathweek-answer-value { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--maroon); margin: .2rem 0 .5rem; }
.mathweek-closed { display: grid; gap: .6rem; max-width: 34rem; }
.mathweek-next { margin-top: .4rem; padding: .8rem 1rem; background: var(--paper-deep); border-radius: var(--radius); }
.mathweek-joke { margin: 1.75rem 0 0; padding: 1rem 1.25rem; max-width: 34rem; background: var(--paper-deep); border-radius: var(--radius); }
.mathweek-joke p:last-child { margin: 0; }
.mathweek-recap { margin-top: 1.25rem; max-width: 34rem; padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--paper); }
.mathweek-recap summary { cursor: pointer; font-weight: 600; }
.mathweek-recap p { margin: .6rem 0 0; }
.mathweek-recap .mathweek-answer-value { font-size: 1.6rem; }
