/* Research Peptides US: a generous reading table with cyan book edges. */
:root {
  --rp-paper: #FFFFFF;
  --rp-ink: #22272B;
  --rp-cyan: #087994;
  --rp-stone: #DCE3E5;
  --rp-display: "Odibee Sans", Impact, sans-serif;
  --rp-reading: "Slabo 27px", Georgia, serif;
  --rp-masthead-height: 260px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 32px; }
body { margin: 0; background: var(--rp-paper); color: var(--rp-ink); font-family: var(--rp-reading); font-size: 22px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: var(--rp-cyan); text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-skip-ink: auto; }
a:hover { color: var(--rp-ink); text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--rp-cyan); outline-offset: 6px; }
::selection { background: var(--rp-cyan); color: var(--rp-paper); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--rp-display); font-weight: 400; }
p + p { margin-top: 1.1em; }
svg { flex-shrink: 0; }
i[data-lucide] { display: inline-block; flex-shrink: 0; }
.rp-columns { display: grid; grid-template-columns: minmax(0, 288px) minmax(0, 1fr) minmax(0, 224px); column-gap: 32px; width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
.rp-columns > * { min-width: 0; }
.rp-skip { position: absolute; top: 12px; left: 40px; padding: 10px 18px; background: var(--rp-paper); z-index: 5; transform: translateY(-180%); }
.rp-skip:focus { transform: translateY(0); }

/* The masthead is a reading directory in three substantial columns. */
.rp-masthead { height: var(--rp-masthead-height); padding-block: 28px; border-bottom: 3px solid var(--rp-ink); align-items: start; }
.rp-name { font-family: var(--rp-display); font-size: 80px; line-height: .84; text-decoration: none; color: var(--rp-ink); width: fit-content; }
.rp-name:hover { color: var(--rp-cyan); }
.rp-topic-directory { display: grid; align-content: start; gap: 26px; padding-top: 3px; }
.rp-topic-directory a { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(100%, 330px); font-family: var(--rp-display); font-size: 58px; line-height: 1; }
.rp-topic-directory svg, .rp-topic-directory i { width: 28px; height: 28px; }
.rp-context-directory { display: grid; gap: 28px; padding-top: 8px; }
.rp-context-directory a { font-family: var(--rp-display); font-size: 29px; line-height: 1.05; }
.rp-context-directory a > span { display: flex; align-items: center; gap: 10px; }
.rp-context-directory svg, .rp-context-directory i { width: 22px; height: 22px; }
.rp-context-directory small { display: block; color: var(--rp-ink); font-family: var(--rp-reading); font-size: 17px; line-height: 1.35; margin-top: 10px; }

/* A complete white first screen. The photograph is the next beat in flow. */
.rp-opening { min-height: calc(100svh - var(--rp-masthead-height)); padding-block: 50px 58px; row-gap: 25px; align-content: center; }
.rp-opening-account { grid-column: 2 / 4; }
.rp-home h1 { font-size: clamp(80px, 8.45vw, 122px); line-height: .94; letter-spacing: -.012em; max-width: 20ch; }
.rp-title-publication { color: var(--rp-cyan); }
.rp-lead { font-size: 26px; line-height: 1.38; max-width: 62ch; margin-top: 26px; }
.rp-book-edge { grid-column: 1; grid-row: 1 / 3; width: 280px; height: auto; align-self: center; }
.rp-first-link { grid-column: 2 / 4; position: relative; display: flex; gap: 16px; align-items: center; width: fit-content; font-size: 22px; margin-left: 44px; }
.rp-first-link svg, .rp-first-link i { width: 23px; height: 23px; }
.rp-first-link::before, .rp-onward::before { content: ""; position: absolute; width: 28px; height: 27px; background: linear-gradient(to bottom, var(--rp-cyan) 0 7px, transparent 7px 10px, var(--rp-cyan) 10px 17px, transparent 17px 20px, var(--rp-cyan) 20px 27px); clip-path: polygon(0 0, 86% 0, 86% 37%, 100% 37%, 100% 63%, 78% 63%, 78% 100%, 0 100%); }
.rp-first-link::before { left: -44px; top: 4px; }

/* The full first column stays empty alongside every photographic band. */
.rp-photo-ground { margin-block: 0 112px; }
.rp-second-beat, .rp-photo-band { grid-column: 2 / 4; }
.rp-second-beat img { width: 100%; height: auto; aspect-ratio: 13 / 8; object-fit: cover; background: var(--rp-stone); }
.rp-photo-band img { width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; background: var(--rp-stone); }
figcaption { display: block; margin-top: 18px; max-width: 70ch; font-size: 18px; line-height: 1.45; }

.rp-inner-opening { padding-block: 43px 55px; align-items: end; }
.rp-inner-edges { grid-column: 1; grid-row: 1; display: block; width: 164px; height: 172px; margin-bottom: 3px; background: linear-gradient(to bottom, var(--rp-cyan) 0 44px, transparent 44px 56px, var(--rp-cyan) 56px 102px, transparent 102px 114px, var(--rp-cyan) 114px 172px); clip-path: polygon(0 0, 86% 0, 86% 33%, 100% 33%, 100% 59%, 75% 59%, 75% 100%, 0 100%); }
.rp-inner h1 { font-size: clamp(58px, 6.1vw, 88px); line-height: 1; max-width: 25ch; }
.rp-inner .rp-lead { font-size: 25px; }
.rp-trail { display: flex; flex-wrap: wrap; column-gap: 9px; font-size: 18px; line-height: 1.4; margin-bottom: 26px; }
.rp-inner .rp-photo-ground { margin-bottom: 78px; }

/* The nouns hang back while the account and its onward links stay together. */
.rp-register { padding-bottom: 80px; }
.rp-register-entry { padding-top: 0; padding-bottom: 94px; align-items: start; }
.rp-subject { position: sticky; top: 32px; display: grid; gap: 20px; padding-top: 28px; font-size: 60px; line-height: 1; max-width: 9ch; overflow-wrap: anywhere; }
.rp-subject svg, .rp-subject i { width: 32px; height: 32px; color: var(--rp-cyan); }
.rp-account { max-width: 44rem; border-top: 2px solid var(--rp-ink); padding-top: 24px; }
.rp-account > p:first-child { font-size: 27px; line-height: 1.42; margin-left: -20px; }
.rp-home .rp-register-entry:first-child .rp-account > p:first-child::first-letter { float: left; font-family: var(--rp-display); font-size: 88px; line-height: .76; padding: 7px 10px 0 0; color: var(--rp-cyan); }
.rp-account h3 { font-size: 37px; line-height: 1.13; margin-bottom: 22px; }
.rp-account p + h3 { margin-top: 46px; }
.rp-onward { position: relative; display: grid; gap: 28px; align-content: start; font-size: 21px; line-height: 1.4; padding-top: 28px; }
.rp-onward::before { left: -30px; top: 32px; width: 21px; }
.rp-onward a { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; width: fit-content; }
.rp-onward svg, .rp-onward i { width: 20px; height: 20px; margin-top: 4px; }
.rp-source-notes { list-style: none; margin: 38px 0 0; padding: 0; }
.rp-source-notes li + li { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rp-stone); }
.rp-source-notes li > a { font-size: 25px; line-height: 1.3; }
.rp-source-notes li p { margin-top: 10px; font-size: 20px; line-height: 1.5; }

.rp-colophon { border-top: 3px solid var(--rp-ink); padding-block: 34px 56px; font-size: 18px; }
.rp-footer-name { font-family: var(--rp-display); font-size: 54px; line-height: .97; max-width: 9ch; color: var(--rp-cyan); }
.rp-footer-account { max-width: 55ch; }
.rp-colophon nav { display: grid; align-content: start; gap: 15px; }

@media (max-width: 1100px) {
  :root { --rp-masthead-height: 236px; }
  .rp-columns { width: calc(100% - 48px); grid-template-columns: minmax(0, 21%) minmax(0, 1fr) minmax(0, 20%); column-gap: 26px; }
  .rp-name { font-size: 66px; }
  .rp-topic-directory a { font-size: 49px; gap: 20px; }
  .rp-context-directory a { font-size: 25px; }
  .rp-context-directory small { font-size: 16px; }
  .rp-context-directory svg, .rp-context-directory i { width: 19px; height: 19px; }
  .rp-home h1 { font-size: clamp(70px, 9vw, 96px); }
  .rp-book-edge { width: 100%; }
  .rp-lead { font-size: 24px; }
  .rp-subject { font-size: 46px; }
  .rp-account > p:first-child { font-size: 25px; }
  .rp-onward { font-size: 19px; }
  .rp-inner-edges { width: 80%; height: 150px; }
}

@media (max-width: 720px) {
  :root { --rp-masthead-height: 216px; }
  body { font-size: 20px; line-height: 1.5; }
  html { scroll-padding-top: 20px; }
  .rp-columns { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .rp-skip { left: 20px; }
  .rp-masthead { height: var(--rp-masthead-height); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 10px; padding-top: 18px; padding-bottom: 17px; align-content: start; }
  .rp-name { grid-column: 1 / 3; font-size: clamp(35px, 10.7vw, 50px); line-height: 1; white-space: nowrap; }
  .rp-name-break { display: none; }
  .rp-topic-directory, .rp-context-directory { display: contents; }
  .rp-topic-directory a { font-size: 34px; line-height: 1.15; gap: 10px; width: fit-content; align-self: start; }
  .rp-topic-directory svg, .rp-topic-directory i { width: 20px; height: 20px; }
  .rp-context-directory a { font-size: 25px; line-height: 1.08; }
  .rp-context-directory a > span { gap: 8px; }
  .rp-context-directory svg, .rp-context-directory i { display: none; }
  .rp-context-directory small { font-size: 16px; line-height: 1.3; margin-top: 6px; }
  .rp-opening { padding-top: 22px; padding-bottom: 22px; row-gap: 12px; align-content: center; }
  .rp-opening-account, .rp-first-link, .rp-book-edge { grid-column: 1; }
  .rp-home h1 { font-size: clamp(43px, 12.3vw, 64px); line-height: .98; letter-spacing: 0; max-width: none; }
  .rp-lead, .rp-inner .rp-lead { margin-top: 20px; font-size: 21px; line-height: 1.37; }
  .rp-home .rp-lead { margin-top: 18px; font-size: 20px; line-height: 1.3; }
  .rp-book-edge { grid-row: 2; width: 104px; height: 23px; object-fit: fill; margin-top: 2px; }
  .rp-first-link { grid-row: 3; margin-left: 0; gap: 14px; font-size: 20px; }
  .rp-first-link::before { display: none; }
  .rp-photo-ground { width: 100%; margin-bottom: 64px; }
  .rp-second-beat, .rp-photo-band { grid-column: 1; }
  .rp-second-beat img { aspect-ratio: 13 / 8; }
  .rp-photo-band img { aspect-ratio: 7 / 3; }
  figcaption { font-size: 16px; margin: 14px 20px 0; }
  .rp-inner-opening { padding-top: 30px; padding-bottom: 34px; }
  .rp-inner h1 { font-size: 53px; line-height: 1; overflow-wrap: anywhere; }
  .rp-inner-edges { grid-column: 1; grid-row: 2; width: 74px; height: 23px; margin: 22px 0 0; background: linear-gradient(to bottom, var(--rp-cyan) 0 6px, transparent 6px 9px, var(--rp-cyan) 9px 15px, transparent 15px 18px, var(--rp-cyan) 18px 23px); }
  .rp-trail { font-size: 16px; margin-bottom: 22px; }
  .rp-inner .rp-photo-ground { margin-bottom: 48px; }
  .rp-register { padding-bottom: 18px; }
  .rp-register-entry { padding-top: 0; padding-bottom: 60px; row-gap: 22px; }
  .rp-subject { position: static; display: flex; align-items: center; gap: 16px; padding-top: 0; font-size: 46px; max-width: none; overflow-wrap: normal; }
  .rp-subject svg, .rp-subject i { width: 27px; height: 27px; }
  .rp-account { max-width: none; padding-top: 20px; }
  .rp-account > p:first-child { font-size: 24px; line-height: 1.4; margin-left: 0; padding-left: 0; }
  .rp-home .rp-register-entry:first-child .rp-account > p:first-child::first-letter { font-size: 73px; padding-top: 6px; }
  .rp-account h3 { font-size: 33px; }
  .rp-onward { padding-left: 39px; padding-top: 0; margin-top: 1px; gap: 19px; font-size: 20px; }
  .rp-onward::before { left: 0; top: 3px; width: 23px; }
  .rp-onward a { gap: 12px; }
  .rp-source-notes li > a { font-size: 23px; }
  .rp-source-notes li p { font-size: 19px; }
  .rp-colophon { gap: 25px; padding-top: 28px; padding-bottom: 40px; }
  .rp-footer-name { font-size: 43px; max-width: none; }
  .rp-colophon nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
