/* CEO's message to students (/recruit/message/).
 *
 * Written in the CEO's own voice from what he said in a published interview.
 * The page reads as a letter first; where the words came from is credited in
 * the appendix at the very bottom (.msg-appendix), not up front.
 *
 * Loaded after /works/case.css and /interns/intern.css and reuses their tokens
 * (--ink, --ink-soft, --muted, --line, --bg, --bg-soft, --accent, --ease) plus
 * the .itn-* scaffolding: hero, pull quotes, standout band, closing box and
 * related links. Everything new is prefixed .msg* so the intern templates stay
 * untouched.
 */

/* =======================================================================
 * Hero — the message title in place of a name, signed underneath
 * ======================================================================= */

.msg-title {
  line-height: 1.25;
}

.msg-sign {
  margin: 22px 0 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.msg-sign span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =======================================================================
 * Chapters
 * ======================================================================= */

.msg-head {
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}

/* Chapter number and topic on one line, the heading full width below it. */
.msg-topic {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.msg-topic .itn-q__no {
  padding-top: 0;
  letter-spacing: 0.02em;
}

/* Sign-off at the foot of the closing box. Scoped to the box so it outranks
 * `.itn-final__box p`, which would otherwise cap its width at 42rem. */
.itn-final__box .msg-signoff {
  max-width: none;
  margin: clamp(28px, 3vw, 40px) 0 0;
  text-align: right;
  font-weight: 800;
  color: var(--ink);
}

.msg-signoff small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Pointer from a chapter to the note article that covers it in full.
 * Written as `.itn-a > ...` so it outranks `.itn-a > p` in intern.css. */
.itn-a > .msg-notelink {
  max-width: 44rem;
  margin: 26px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.msg-notelink a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c8c8cd;
  transition: text-decoration-color 0.25s var(--ease);
}

.msg-notelink a:hover {
  text-decoration-color: var(--ink);
}

/* =======================================================================
 * The CEO's note articles — one line from each, linking out
 * ======================================================================= */

.msg-notes {
  padding: clamp(8px, 2vw, 20px) 0 clamp(20px, 3vw, 36px);
}

.msg-notes__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.msg-notes h2 {
  margin: 12px 0 0;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.msg-notes__lead {
  max-width: 42rem;
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.msg-notes__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.msg-note {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.msg-note:hover {
  border-color: #c8c8cd;
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.3);
}

.msg-note:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.msg-note__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.msg-note__era {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.msg-note__quote {
  margin-top: 12px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.msg-note__title {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.msg-note__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 800;
}

.msg-note__more svg {
  flex: none;
  transition: transform 0.3s var(--ease);
}

.msg-note:hover .msg-note__more svg {
  transform: translate(2px, -2px);
}

.msg-notes__all {
  margin: 22px 0 0;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 700;
}

.msg-notes__all a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .msg-notes__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg-note,
  .msg-note__more svg {
    transition: none;
  }
  .msg-note:hover {
    transform: none;
  }
}

/* =======================================================================
 * Appendix — source article and other coverage
 * ======================================================================= */

.msg-appendix {
  padding: clamp(36px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.msg-appendix__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.msg-appendix h2 {
  margin: 10px 0 0;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.msg-appendix__note {
  max-width: 44rem;
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.msg-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin: 24px 0 0;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.msg-source__body {
  flex: 1 1 26rem;
  min-width: 0;
}

.msg-source__kind {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.msg-source__title {
  margin: 8px 0 0;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem);
  font-weight: 800;
  line-height: 1.6;
  word-break: auto-phrase;
}

.msg-source__meta {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.msg-btn:hover {
  transform: translateY(-2px);
  background: #27272a;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.5);
}

.msg-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.msg-btn svg {
  flex: none;
  transition: transform 0.3s var(--ease);
}

.msg-btn:hover svg {
  transform: translate(2px, -2px);
}

/* Lighter variant for the secondary coverage rows. */
.msg-btn--ghost {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.msg-btn--ghost:hover {
  background: var(--bg);
  border-color: #c8c8cd;
  box-shadow: none;
}

@media (max-width: 600px) {
  .msg-btn {
    width: 100%;
    justify-content: center;
  }
}
