/* The page's last two sections in the redesign's language: FAQ as a type index on paper
   (one entry in full ink, the rest faint, its answer beside it), Contact as giant type on warm black. */

/* ------------------------------------------------------------------ FAQ */
#faq.rd-faq {
    display: block !important; min-height: 0; isolation: isolate;
    padding: 16vh var(--rd-gutter) 18vh !important;
    background: var(--rd-paper); color: var(--rd-paper-ink);
}
.rd-faq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 5vh; }
.rd-faq-head h2 { margin: 0; font: 400 clamp(34px, 3.6vw, 60px)/1 var(--rd-serif); letter-spacing: -.03em; color: inherit; text-transform: none; }
.rd-faq-head h2 em { font-style: italic; }
.rd-faq-count { font: 500 11px/1 var(--rd-mono); letter-spacing: .08em; display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rd-faq-count i { width: 34px; height: 1px; background: currentColor; opacity: .35; }
.rd-faq-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(21, 20, 18, .14); }
.rd-faq-item { position: relative; border-bottom: 1px solid rgba(21, 20, 18, .14); }
.rd-faq-item h3 { margin: 0; font: inherit; }
.rd-faq-item button {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: grid; grid-template-columns: 4.2rem 1fr; align-items: baseline;
    width: 100%; padding: 20px 0 22px;
    color: rgba(21, 20, 18, .2);
    transition: color .45s var(--rd-ease);
}
.rd-faq-item button:focus-visible { outline: 1px solid var(--rd-accent); outline-offset: 4px; }
.rd-faq-n { font: 500 11px/1 var(--rd-mono); letter-spacing: .08em; }
.rd-faq-t { font: 400 clamp(26px, 7vw, 38px)/1.06 var(--rd-serif); letter-spacing: -.03em; text-wrap: balance; }
.rd-faq-item.is-active button { color: var(--rd-paper-ink); }
.rd-faq-item.is-active .rd-faq-n { color: var(--rd-accent); }
.rd-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--rd-ease); }
.rd-faq-a > div { overflow: hidden; min-height: 0; padding-left: 4.2rem; }
.rd-faq-item.is-active .rd-faq-a { grid-template-rows: 1fr; }
.rd-faq-sig { display: block; font: 500 10px/1.3 var(--rd-mono); letter-spacing: .1em; color: rgba(21, 20, 18, .5); }
.rd-faq-a p { margin: 12px 0 26px; max-width: 46ch; font: 400 16px/1.6 var(--rd-sans); color: rgba(21, 20, 18, .82); }
.rd-faq-a a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (min-width: 900px) {
    .rd-faq-list { padding-bottom: 0; }
    .rd-faq-item button { width: 62%; padding: 24px 0 26px; }
    .rd-faq-t { font-size: clamp(34px, 4.1vw, 74px); line-height: 1.02; }
    @media (hover: hover) { .rd-faq-item:not(.is-active) button:hover { color: rgba(21, 20, 18, .5); } }
    /* the answer sits beside its entry, in the column the faint entries leave empty */
    .rd-faq-a {
        display: block; position: absolute; z-index: 2; left: 66%; right: 0; top: 30px;
        opacity: 0; transform: translateY(18px); pointer-events: none;
        transition: opacity .35s var(--rd-ease), transform .7s var(--rd-ease);
    }
    .rd-faq-a > div { overflow: visible; padding-left: 0; }
    .rd-faq-item.is-active .rd-faq-a { opacity: 1; transform: none; pointer-events: auto; transition-delay: .08s; }
    .rd-faq-a p { margin: 14px 0 0; font-size: clamp(16px, 1.25vw, 19px); }
}

/* ------------------------------------------------------------------ Contact */
#contact.rd-contact {
    display: block !important; min-height: 0; isolation: isolate;
    padding: 13vh var(--rd-gutter) 7vh !important;
    background: var(--rd-bg); color: var(--rd-ink);
}
.rd-ct-top { display: flex; justify-content: space-between; gap: 20px; font: 500 11px/1.3 var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-dim); }
.rd-ct-title { margin: 6vh 0 0; font: 400 clamp(64px, 16.4vw, 320px)/.86 var(--rd-serif); letter-spacing: -.055em; color: inherit; text-transform: none; }
.rd-ct-l { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.rd-ct-l + .rd-ct-l { padding-left: 13vw; }
.rd-ct-l > * { display: block; font-style: normal; transform: translateY(112%); transition: transform 1.3s var(--rd-ease); }
.rd-ct-l em { font-style: italic; }
.rd-ct-l + .rd-ct-l > * { transition-delay: .12s; }
.rd-ct-lead { margin: 6vh 0 0 auto; max-width: 36ch; font: 400 clamp(16px, 1.3vw, 20px)/1.5 var(--rd-sans); color: var(--rd-dim); opacity: 0; transition: opacity 1s var(--rd-ease) .5s; }
.rd-ct-links { list-style: none; margin: 8vh 0 0; padding: 0; border-top: 1px solid var(--rd-faint); }
.rd-ct-links li { overflow: hidden; border-bottom: 1px solid var(--rd-faint); }
.rd-ct-links a {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k ar" "v ar"; align-items: center; gap: 6px 16px;
    padding: 18px 0; color: inherit; text-decoration: none;
    transform: translateY(105%); transition: transform 1s var(--rd-ease) var(--d, 0s), opacity .4s var(--rd-ease);
}
.rd-ct-k { grid-area: k; font: 500 11px/1 var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-dim); }
.rd-ct-v { grid-area: v; font: 400 clamp(24px, 3.3vw, 54px)/1.1 var(--rd-serif); letter-spacing: -.03em; overflow-wrap: anywhere; transition: transform .6s var(--rd-ease); }
.rd-ct-ar { grid-area: ar; font: 400 clamp(20px, 2vw, 32px)/1 var(--rd-sans); transition: transform .6s var(--rd-ease), color .3s; }
.rd-ct-links li:nth-child(2) a { --d: .06s; } .rd-ct-links li:nth-child(3) a { --d: .12s; }
.rd-ct-links li:nth-child(4) a { --d: .18s; } .rd-ct-links li:nth-child(5) a { --d: .24s; } .rd-ct-links li:nth-child(6) a { --d: .3s; }
.rd-ct-foot { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; margin: 7vh 0 0; font: 500 11px/1.4 var(--rd-mono); letter-spacing: .08em; text-transform: uppercase; }
.rd-ct-foot dt { color: var(--rd-dim); margin-bottom: 6px; }
.rd-ct-foot dd { margin: 0; }
.rd-contact.is-in .rd-ct-l > *, .rd-ct-links.is-in a { transform: none; }
.rd-contact.is-in .rd-ct-lead { opacity: 1; }

@media (min-width: 900px) {
    .rd-ct-links a { grid-template-columns: 24% 1fr auto; grid-template-areas: "k v ar"; padding: 22px 0; }
    .rd-ct-foot { grid-template-columns: repeat(4, 1fr); }
    @media (hover: hover) {
        .rd-ct-links:hover a { opacity: .28; }
        .rd-ct-links a:hover { opacity: 1; }
        .rd-ct-links a:hover .rd-ct-v { transform: translateX(18px); }
        .rd-ct-links a:hover .rd-ct-ar { transform: translateX(-6px) rotate(-45deg); color: var(--rd-accent); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .rd-ct-l > *, .rd-ct-links a { transform: none; transition: none; }
    .rd-ct-lead { opacity: 1; transition: none; }
    .rd-faq-a, .rd-faq-item button { transition: none; }
}

/* ------------------------------------------------------------------ Footer: the last line of the page at display size */
#footer.footer-tribute { background: var(--rd-bg); padding: 14vh var(--rd-gutter) 13vh; }
#footer .tribute-content { max-width: none; width: 100%; margin: auto 0; }
#footer .tribute-quote { margin-bottom: 5vh; }
#footer .tribute-line { font-family: var(--rd-serif); font-size: clamp(34px, 7.4vw, 148px); line-height: 1; letter-spacing: -.045em; color: var(--rd-ink); text-wrap: balance; }
#footer .tribute-line.accent { color: var(--rd-accent); font-weight: 400; margin-top: .12em; }
