/*
  v3/read.css - the white sheet after the hall: photos and news, links into the site, and joining.
  Link after dp.css.
*/

/* ---------------------------------------------------------------- the sheet */
.rd { position: relative; z-index: 3; padding: 0 var(--dp-edge); color: var(--rd-text); background: var(--rd-paper);
  box-shadow: 0 -30px 60px -34px color-mix(in oklab, var(--p-shade) 80%, transparent); }
.rd ::selection { background: color-mix(in oklab, var(--rd-plum) 20%, transparent); }
.rd :focus-visible { outline-color: var(--rd-plum); }
.rd :is(h2, h3, p, li, dd, dt) { text-shadow: none; }

/* Give the Ryumin Light headlines a little more weight without changing their spacing. */
.dp-display, .rd :is(h2, h3).serif { -webkit-text-stroke: .01em currentColor; }
/* the hero's small kana and half-width punctuation in vertical type */
.dp-display .kn { font-size: .84em; }
.dp-display .yk { display: inline-block; margin-inline-end: -.45em; }

/* ---------------------------------------------------------------- the first spread: activity photos and news */
.rd-front { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem);
  max-width: var(--rd-max); margin-inline: auto; padding-block: calc(var(--rd-bar) + var(--s-5)) clamp(2.5rem, 4vw, 3.5rem); }
.rd-front > section { display: flex; flex-direction: column; }
.rd-front__head { display: flex; align-items: end; justify-content: space-between; gap: 0 var(--s-3); flex-wrap: wrap;
  min-height: calc(var(--t-rd-h2) * 1.35 + 1.85rem); margin-bottom: var(--s-4); }
.rd-front__head h2, .rd-h2 { font-size: var(--t-rd-h2); line-height: 1.35; letter-spacing: .04em; color: var(--rd-ink); }
.rd-pickup__eyebrow { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-1);
  font-size: var(--t-label); font-weight: 500; letter-spacing: .14em; color: var(--rd-plum); }
.rd-pickup__eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rd-rule); }
.rd-front__link, .rd-link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  font-size: var(--t-body); font-weight: 500; color: var(--rd-plum); }
.rd-pickup { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.rd-pickup li { position: relative; width: 100%; min-height: 8rem; aspect-ratio: 7 / 4; align-self: stretch; }
.rd-pickup__card { position: absolute; inset: 0; isolation: isolate; display: grid; align-content: end;
  overflow: hidden; border-radius: var(--r-md); color: var(--p-cream); background: var(--p-night); }
.rd-pickup__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-pickup li:first-child img { object-position: center 80%; }
.rd-pickup__card span { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 44px; padding: var(--s-4) var(--s-4) var(--s-3); font-size: 1.125rem; font-weight: 700;
  background: linear-gradient(to top, color-mix(in srgb, var(--p-night-deep) 92%, transparent) 25%,
    color-mix(in srgb, var(--p-night-deep) 78%, transparent) 75%, transparent); }
.rd .dp-arrow { flex: none; }
.rd-news { padding-inline-start: var(--s-5); border-inline-start: 1px solid var(--rd-line); }
.rd-front > section { scroll-margin-block-start: calc(var(--rd-bar) + var(--s-5)); }
:is(.rd-pickup li, .rd-guide__topic, .rd-join li) { scroll-margin-block-start: calc(var(--rd-bar) + var(--s-4)); }
.rd-news__list { flex: 1; display: grid; grid-auto-rows: 1fr; border-top: 1px solid var(--rd-line); }
.rd-news__list li { border-bottom: 1px solid var(--rd-line); }
.rd-news__list a { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); align-items: center; gap: var(--s-3);
  min-height: 44px; height: 100%; padding-block: var(--s-2); font-size: var(--t-body); line-height: 1.55; color: var(--rd-ink); }
.rd-news__list time { color: var(--rd-muted); font-size: var(--t-label); font-variant-numeric: tabular-nums; }
.rd-news__tag { padding: .1em .55em; border-radius: 3px; color: var(--rd-paper); background: var(--rd-plum);
  font-size: var(--t-label); line-height: 1.5; }
.rd-front__link:hover, .rd-news__list a:hover span:last-child, .rd-link:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .rd-pickup__card { transition: transform var(--m-lift) var(--m-ease-expo); }
  .rd-pickup__card img { transition: transform var(--m-lift) var(--m-ease-expo); }
  .rd-pickup__card:hover { transform: translateY(-2px); }
  .rd-pickup__card:hover img { transform: scale(1.03); }
}

.rd-guide, .rd-close { max-width: var(--rd-max); margin-inline: auto; padding-block: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rd-line); }

/* ---------------------------------------------------------------- history and tournaments */
.rd-guide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); align-items: start; gap: var(--s-5); }
.rd-guide__topics { border-block: 1px solid var(--rd-line); }
.rd-guide__topic { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 0 var(--s-5); padding-block: var(--s-2); }
.rd-guide__topic + .rd-guide__topic { border-top: 1px solid var(--rd-line); }
.rd-guide__topic h3 { font-family: var(--font-text); font-size: var(--t-rd-h3); font-weight: 700; line-height: 1.4; color: var(--rd-ink); }
.rd-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }

/* ---------------------------------------------------------------- join: the real stage and links to visit or apply */
.rd-close { scroll-margin-block-start: var(--rd-bar); }
.rd-close__head { margin-bottom: var(--s-6); }
.rd-close__photo { width: 100%; }
.rd-join { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: var(--s-4) var(--s-6); margin-top: var(--s-5); }
.rd-cta { display: flex; align-items: center; justify-content: center; gap: var(--s-2); width: fit-content; min-height: 56px; padding-inline: var(--s-6);
  border-radius: var(--r-pill); font-size: 1rem; font-weight: 700; letter-spacing: .08em; color: var(--rd-paper); background: var(--rd-plum); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .rd-cta .dp-arrow { transition: transform var(--m-hover-dp) var(--m-ease-expo); }
  .rd-cta:hover .dp-arrow { transform: translateX(4px); }
}

/* ---------------------------------------------------------------- a full-width footer aligned to the sheet */
.rd-foot { padding: var(--s-6) var(--dp-edge) var(--s-8); font-size: var(--t-label);
  color: var(--rd-footer-muted); background: var(--rd-footer); }
.rd-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6);
  max-width: var(--rd-max); margin-inline: auto; }
.rd-foot ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.rd-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rd-paper); }
.rd-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-foot a:focus-visible { outline-color: var(--rd-paper); }
.rd-foot p { align-self: center; }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 1023px) {
  .rd-front { grid-template-columns: minmax(0, 1fr); }
  .rd-news { border-inline-start: 0; padding-inline-start: 0; }
  .rd-news .rd-front__head { min-height: 44px; }
}
@media (max-width: 760px) {
  .rd-guide { grid-template-columns: minmax(0, 1fr); }
  .rd-guide__topic { flex-direction: column; align-items: start; padding-block: var(--s-3) 0; }
  .rd-close__head { margin-bottom: var(--s-5); }
  .rd-cta { width: 100%; }
}
@media (max-width: 639px) {
  .rd-close__photo { aspect-ratio: 4 / 3; object-fit: cover; object-position: left center; }
}
@media (max-width: 520px) {
  .rd-pickup { grid-template-columns: minmax(0, 1fr); }
  .rd-pickup li { aspect-ratio: 2 / 1; }
  .rd-join .rd-links { width: 100%; display: grid; border-top: 1px solid var(--rd-line); }
  .rd-join .rd-links li { border-bottom: 1px solid var(--rd-line); }
  .rd-join .rd-link { display: flex; justify-content: space-between; }
}
