/* Press: a newspaper masthead, the featured course, and a scrapbook of clippings. */

.masthead-wrap { flex: 0 1 auto; max-width: 100%; filter: var(--lift); }
.masthead {
  width: 520px;
  max-width: 100%;
  padding: 12px 30px 16px;
  text-align: center;
  background-color: var(--news);
  transform: rotate(-1deg);
  clip-path: var(--torn-bottom);
}
.masthead .rt {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font: 700 10px var(--font-type);
  letter-spacing: 2px;
}
.masthead h1 { margin: 6px 0 4px; font: 400 66px/1 'Abril Fatface', Georgia, serif; }
.masthead .rb { padding-top: 6px; border-top: 4px double var(--ink); font: italic 13px var(--font-type); }

/* ---- the featured course ---- */
.feat-course { position: relative; display: grid; grid-template-columns: 250px 1fr; gap: 50px; align-items: center; max-width: 920px; margin: 6px 0 64px; }
.feat-course .key { width: 96px; left: 150px; top: -70px; }
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 350px;
  padding: 22px 22px 18px 34px;
  color: var(--ink);
  text-decoration: none;
  background-color: var(--white);
  transform: rotate(-2.5deg);
  filter: var(--lift);
  transition: transform .2s;
}
.cover:hover, .cover:focus-visible { transform: rotate(-1deg) translateY(-4px); }
.cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: rgba(0, 0, 0, .1); }
.cover .band { position: relative; display: block; height: 140px; margin: 12px -22px 16px -34px; overflow: hidden; background-color: var(--sky); }
.cover .band i { position: absolute; height: 26px; border-radius: 40px; background: var(--white); }
.cover .band i::before { content: ''; position: absolute; left: 18%; top: -80%; width: 55%; height: 180%; border-radius: 50%; background: inherit; }
.cover .ct { font: 400 24px/1.05 var(--font-head); }
.cover .pub { font: 700 10px var(--font-type); letter-spacing: 1px; text-transform: uppercase; }
.cover .pub:last-child { margin-top: auto; }
.feat-text { color: var(--cream); }
.feat-text .kick { font: 700 12px var(--font-type); letter-spacing: 1.5px; text-transform: uppercase; }
.feat-text h2 { margin: 8px 0 10px; font: 400 42px/1.05 var(--font-head); color: #fff; }
.feat-text p { max-width: 520px; font-size: 16.5px; line-height: 1.55; }
.feat-text a { display: inline-block; margin-top: 12px; font-weight: 700; color: #fff; }

/* ---- the scrapbook ---- */
.clips { columns: 3; column-gap: 34px; }
.clip {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 40px;
  padding-top: 20px;
  color: inherit;
  text-decoration: none;
  break-inside: avoid;
}
.clip .cw { position: relative; display: block; filter: var(--lift); transform: rotate(var(--r)); transition: transform .2s; }
a.clip:hover .cw, a.clip:focus-visible .cw { transform: rotate(0) translateY(-4px); }
.clip .tape { top: -16px; left: 38%; transform: rotate(-5deg); }
.clip .stamp { bottom: 12px; right: -10px; }
.cut {
  display: block;
  padding: 8px;
  background: #fff;
  clip-path: polygon(1% 2%, 30% 0, 64% 2%, 99% 0, 100% 40%, 98% 99%, 60% 98%, 26% 100%, 0 98%, 1% 50%);
}
.cut img { display: block; width: 100%; height: auto; }
.cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; color: var(--cream); }
.cap b { font: 700 21px/1.05 var(--font-hand); }
.cap span { font: 700 13px var(--font-body); white-space: nowrap; }

.cassette {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.58;
  padding: 14px 16px 0;
  border-radius: 14px;
  background-color: var(--c);
  position: relative;
}
.cassette .lab { display: block; height: 70%; padding: 10px 14px; border-radius: 6px; background-color: var(--cream); }
.cassette .lab small { display: block; font: 700 11px var(--font-type); letter-spacing: 1px; text-transform: uppercase; }
.cassette .lab b { display: block; font: 700 22px/1.05 var(--font-hand); }
.cassette .win {
  position: absolute;
  left: 50%; bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 56%; height: 40px;
  padding: 0 9px;
  border-radius: 20px;
  background: var(--ink);
  transform: translateX(-50%);
}
.cassette .reel { width: 26px; height: 26px; border-radius: 50%; border: 4px solid var(--cream); background: repeating-conic-gradient(var(--cream) 0 30deg, #bfb7a5 30deg 60deg); }
a.clip:hover .reel, a.clip:focus-visible .reel { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cassette .trap { display: block; height: 22px; margin: auto 18% 0; background: rgba(0, 0, 0, .14); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }

.handouts { position: relative; display: block; height: 300px; }
.handouts .s2 { position: absolute; inset: 18px 0 0 22px; background-color: var(--white); transform: rotate(3.5deg); filter: var(--lift); }
.handouts .s1 { position: absolute; inset: 0 22px 18px 0; padding: 26px; background-color: var(--white); transform: rotate(-1deg); filter: var(--lift); }
.handouts .staple { position: absolute; z-index: 3; left: 12px; top: 16px; width: 28px; height: 4px; border-radius: 2px; background: #8f98a0; box-shadow: 0 1px 0 rgba(0, 0, 0, .35); transform: rotate(-40deg); }
.handouts .kick { font: 700 11px var(--font-type); letter-spacing: 1.5px; text-transform: uppercase; color: var(--tomato-ink); }
.handouts h3 { margin: 6px 0 12px; font: 400 24px/1.1 var(--font-head); }
.handouts a { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; }
.handouts a::before { content: ''; flex: 0 0 14px; height: 14px; border: 2px solid var(--ink); border-radius: 2px; transform: rotate(-4deg) translateY(2px); }
.handouts a:hover, .handouts a:focus-visible { text-decoration: underline; }

@media (max-width: 960px) {
  .clips { columns: 2; }
}

@media (max-width: 760px) {
  .masthead { padding: 10px 16px 14px; }
  .masthead h1 { font-size: 48px; }
  .masthead .rt { letter-spacing: 1px; font-size: 9px; }
  .feat-course { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .cover { width: 230px; height: auto; min-height: 330px; margin: 0 auto; }
  .cover .ct { margin-bottom: 14px; }
  .feat-course .key { left: auto; right: 8px; top: -56px; width: 80px; }
  .feat-text h2 { font-size: 32px; }
  .clip .stamp { right: -2px; }
  .clip .cw { transform: rotate(calc(var(--r) * .5)); }
}

@media (max-width: 600px) {
  .clips { columns: 1; }
}
