:root {
  --paper-sky: #DDEDF8;
  --reader-ink: #2A2A2A;
  --rib-green: #1F8944;
  --fold-grey: #D3DADE;
  --clean-paper: #FFFFFF;
  --fold-blue: #B4D5EB;
  --reading-face: 'Happy Monkey', 'Trebuchet MS', sans-serif;
  --big-face: 'Chicle', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--reader-ink); background: var(--paper-sky); font-family: var(--reading-face); font-size: 18px; line-height: 1.75; }
a { color: var(--reader-ink); text-decoration-thickness: 2px; text-decoration-color: var(--rib-green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 3px; text-underline-offset: .34em; }
a:focus-visible { outline: 3px solid var(--reader-ink); outline-offset: 6px; }
img { display: block; max-width: 100%; color: var(--reader-ink); font-size: 16px; }
svg { max-width: 100%; }
p { margin: 0 0 1.3em; }
h1, h2, h3 { font-family: var(--big-face); font-weight: 400; line-height: 1.06; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(3.3rem, 5.7vw, 5.35rem); }
h2 { font-size: clamp(2rem, 3vw, 2.85rem); }
h3 { font-size: 1.8rem; }
::selection { background: var(--fold-blue); color: var(--reader-ink); }
.read-first { position: fixed; z-index: 20; left: 20px; top: -100px; background: var(--clean-paper); padding: 12px 20px; border: 3px solid var(--reader-ink); }
.read-first:focus { top: 16px; }
.fanwidth { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.ribmast { padding-top: 20px; padding-bottom: 12px; }
.name-edge { display: block; width: fit-content; margin-inline: auto; font: 400 clamp(2.8rem, 4.9vw, 4.4rem)/1.04 var(--big-face); white-space: nowrap; text-decoration: none; }
.name-edge:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.ribnav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; min-height: 88px; max-width: 1040px; margin: 4px auto 0; align-items: start; background: url('/medsnad-paper-40f05a76e600/mast-ribs.svg') center top / 100% 88px no-repeat; }
.ribnav a { display: flex; width: fit-content; min-height: 44px; max-width: 180px; justify-self: center; align-items: start; gap: 9px; padding: 0 8px; margin-top: 32px; text-decoration: none; white-space: nowrap; font-size: 17px; }
.ribnav a:nth-child(2) { margin-top: 20px; }
.ribnav a:nth-child(3) { margin-top: 44px; }
.ribnav a:hover, .ribnav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 3px; }
.ribnav i, .ribnav svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 5px; stroke-width: 1.75; }
/* The photograph is the entire opening. The cut paper beneath the type is opaque. */
.unfold-opening { position: relative; isolation: isolate; overflow: hidden; background: var(--fold-grey); border-bottom: 10px solid var(--rib-green); }
.sector-photo { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; background-image: url('/medsnad-paper-40f05a76e600/fans-after-painting.webp'); background-size: cover; background-position: 60% 43%; }
.opening-plane { display: flex; flex-direction: column; justify-content: end; align-items: start; min-height: 670px; padding-top: 155px; }
.opening-statement { position: relative; width: min(690px, 60%); background: var(--paper-sky); padding: 36px 57px 36px 32px; border-left: 10px solid var(--rib-green); clip-path: polygon(0 0, 82% 0, 88% 20px, 92% 20px, 97% 42px, 100% 42px, 100% 100%, 0 100%); }
.opening-plane h1 { font-size: clamp(3.4rem, 5.2vw, 4.7rem); line-height: 1.02; max-width: 14ch; }
.opening-lead { position: relative; width: 100%; font-size: 20px; line-height: 1.65; margin: 0; padding: 25px 34px 27px; background: var(--paper-sky); border-top: 3px solid var(--reader-ink); }
.unfold-reading { background: var(--clean-paper); }
.owner-entry { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10%; padding-block: 70px 40px; }
.owner-entry p { max-width: 40ch; font-size: 20px; margin: 0; border-left: 9px solid var(--rib-green); padding-left: 25px; }
.owner-entry img { width: 370px; height: auto; justify-self: end; margin-right: 6%; }
.open-account { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; align-items: start; padding-block: 70px 120px; }
.upright-blade { position: relative; padding: 22px 23px 30px; background: var(--clean-paper); border: 2px solid var(--reader-ink); border-top: 7px solid var(--rib-green); box-shadow: 8px 10px 0 var(--fold-blue), 10px 12px 0 var(--reader-ink); }
.upright-blade:nth-child(even) { background: var(--paper-sky); }
.upright-blade:nth-child(2) { margin-top: 64px; }
.upright-blade:nth-child(3) { margin-top: 128px; }
.upright-blade:nth-child(4) { margin-top: 192px; }
.upright-blade::before { content: ''; position: absolute; right: 16px; top: -23px; width: 51px; height: 16px; background: var(--rib-green); clip-path: polygon(0 0, 74% 0, 100% 100%, 0 100%); }
.blade-rib { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: -64px; margin-bottom: 28px; }
.blade-number { display: block; font: 400 5.3rem/.85 var(--big-face); background: var(--paper-sky); padding: 8px 10px 0; border: 2px solid var(--reader-ink); border-bottom: 0; }
.blade-rib i, .blade-rib svg { width: 30px; height: 30px; margin-bottom: 7px; stroke-width: 1.75; }
.upright-blade h2 { font-size: clamp(1.95rem, 2.65vw, 2.55rem); margin-bottom: 24px; }
.upright-blade p { font-size: 16px; line-height: 1.85; }
.upright-blade p:last-child { margin-bottom: 0; }
.route-return { position: relative; background: var(--paper-sky); border-top: 14px solid var(--rib-green); padding-block: 72px; }
.route-return .return-layout { display: grid; grid-template-columns: 31% 1fr; gap: 9%; }
.route-return h2 { font-size: clamp(3rem, 4.8vw, 4.7rem); padding-bottom: 40px; background: url('/medsnad-paper-40f05a76e600/open-ribs.svg') left bottom / 150px 45px no-repeat; }
.return-body { max-width: 75ch; font-size: 19px; }
.return-body p:last-child { margin-bottom: 0; }
.page-turns { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 30px; padding-top: 22px; border-top: 3px solid var(--reader-ink); }
.page-turns a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.page-turns i, .page-turns svg { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 1.75; }
.inside-opening { position: relative; padding-block: 28px 42px; border-top: 4px solid var(--rib-green); }
.crumb-path { font-size: 16px; margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.crumb-path span[aria-hidden] { padding-inline: 2px; }
.inside-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 48px; align-items: end; }
.inside-title-row h1 { font-size: clamp(3.1rem, 5.3vw, 4.8rem); max-width: 21ch; }
.page-rib-mark { width: 130px; height: 80px; }
.inside-lead { max-width: 85ch; font-size: 20px; line-height: 1.75; margin-block: 28px 0; }
.band-frame { width: min(1280px, calc(100% - 96px)); margin: 0 auto; padding-bottom: 12px; background: var(--rib-green); clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 60px, 100% 100%, 0 100%); }
.paper-band { width: 100%; height: 270px; object-fit: cover; object-position: center 48%; }
.reader-body { background: var(--clean-paper); padding-block: 70px 90px; }
.reader-columns { display: grid; grid-template-columns: 210px minmax(0, 760px); column-gap: clamp(65px, 8vw, 130px); justify-content: center; }
.contents-ribs { position: sticky; top: 28px; align-self: start; font-size: 16px; padding: 24px 20px 20px; margin-top: -24px; border-left: 8px solid var(--rib-green); background: var(--paper-sky); box-shadow: 6px 8px 0 var(--fold-grey); }
.contents-ribs p { margin-bottom: 22px; font-family: var(--big-face); font-size: 31px; line-height: 1.15; }
.contents-ribs ol { padding: 0; margin: 0; list-style: none; }
.contents-ribs li { margin-bottom: 15px; padding-left: 10px; border-left: 4px solid var(--rib-green); }
.contents-ribs li:last-child { margin-bottom: 0; }
.contents-ribs a { display: block; text-decoration: none; padding-block: 3px; }
.contents-ribs a:hover { text-decoration: underline; }
.reading-sections { min-width: 0; }
.reading-section { scroll-margin-top: 30px; }
.reading-section + .reading-section { margin-top: 58px; padding-top: 38px; border-top: 3px solid var(--fold-grey); }
.reading-section h2 { position: relative; max-width: 25ch; margin-bottom: 25px; }
.section-marker { position: absolute; left: -45px; top: 7px; width: 27px; height: 27px; stroke-width: 1.75; }
.reading-section p { max-width: 70ch; font-size: 18px; line-height: 1.85; }
.reader-contact { margin: 0; }
.reader-contact dt { font-family: var(--big-face); font-size: 28px; margin: 24px 0 12px; }
.reader-contact dd { margin: 0; }
.source-leaves { margin: 0 0 22px; padding: 0; list-style: none; }
.source-leaves li { border-left: 7px solid var(--rib-green); padding: 2px 0 2px 25px; margin-block: 0 34px; }
.source-leaves .source-by { font-size: 16px; margin-bottom: 8px; }
.source-leaves .source-title { font-family: var(--big-face); font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.source-leaves li p:last-child { margin-bottom: 0; }
.reading-footer { padding-block: 44px 28px; border-top: 6px solid var(--rib-green); }
.footer-upper { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12%; }
.footer-note { max-width: 56ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 25px; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { font-size: 16px; margin: 24px 0 0; }
.lost-page { padding-block: 65px 110px; min-height: 62vh; }
.lost-page h1 { max-width: 16ch; }
.lost-page p { font-size: 20px; max-width: 55ch; margin-block: 28px; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .sector-photo { animation: paper-settle 850ms ease-out both; }
  @keyframes paper-settle { from { transform: scale(1.035); } to { transform: scale(1); } }
}
@media (min-width: 1800px) {
  .fanwidth, .band-frame { max-width: 1420px; }
  .opening-plane { min-height: 760px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .fanwidth, .band-frame { width: calc(100% - 64px); }
  .open-account { gap: 15px; }
  .upright-blade { padding-inline: 15px; box-shadow: 4px 7px 0 var(--fold-blue); }
  .upright-blade h2 { font-size: 29px; }
  .blade-number { font-size: 72px; }
  .opening-plane { min-height: 640px; padding-top: 150px; }
  .opening-statement { width: 72%; padding-right: 50px; }
  .opening-plane h1 { font-size: 62px; }
  .opening-lead { font-size: 18px; }
  .reader-columns { grid-template-columns: 180px minmax(0, 1fr); gap: 60px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .fanwidth { width: calc(100% - 40px); }
  .ribmast { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 18px; }
  .name-edge { order: 2; font-size: clamp(1.8rem, 8.3vw, 3.3rem); margin-top: 12px; }
  .ribnav { order: 1; width: 100%; max-width: 100%; min-height: 76px; margin: 0; gap: 8px; align-items: start; background: none; }
  .ribnav a { max-width: 92px; width: 100%; justify-self: center; display: flex; flex-direction: column; align-items: center; font-size: 16px; line-height: 1.3; min-height: 44px; padding: 2px 0 0; margin: 0; gap: 0; }
  .ribnav i, .ribnav svg { display: none; }
  .ribnav a::after { content: ''; width: 6px; background: var(--rib-green); border-radius: 3px; margin-top: 10px; flex-shrink: 0; }
  .ribnav a:nth-child(1)::after { height: 6px; }
  .ribnav a:nth-child(2) { padding-top: 8px; margin-top: 0; }
  .ribnav a:nth-child(2)::after { height: 12px; }
  .ribnav a:nth-child(3) { padding-top: 14px; margin-top: 0; }
  .ribnav a:nth-child(3)::after { height: 18px; }
  .unfold-opening { border-bottom-width: 7px; }
  .opening-plane { width: 100%; min-height: 0; padding: 25px 20px 0; align-items: stretch; }
  .opening-plane::after { content: ''; display: block; height: 175px; flex-shrink: 0; }
  .opening-statement { width: 100%; padding: 32px 22px 25px; border-left-width: 6px; clip-path: polygon(0 0, 79% 0, 88% 16px, 94% 16px, 100% 32px, 100% 100%, 0 100%); }
  .opening-plane h1 { max-width: 14ch; font-size: clamp(2.6rem, 12.3vw, 4.2rem); line-height: 1.03; }
  .opening-lead { font-size: 17px; line-height: 1.75; padding: 22px 24px 26px; border-top-width: 2px; }
  .sector-photo { background-size: 100% auto; background-position: center bottom; background-repeat: no-repeat; background-color: var(--paper-sky); }
  .owner-entry { display: block; padding-block: 42px 42px; }
  .owner-entry p { max-width: none; font-size: 18px; padding-left: 18px; border-left-width: 6px; }
  .owner-entry img { width: 210px; margin: 30px 0 0 auto; }
  .open-account { display: block; padding-block: 37px 56px; }
  .upright-blade { margin: 0 0 70px; padding: 22px 23px 28px; box-shadow: 5px 7px 0 var(--fold-blue), 7px 9px 0 var(--reader-ink); }
  .upright-blade:nth-child(n) { margin-top: 0; }
  .upright-blade:last-child { margin-bottom: 0; }
  .upright-blade h2 { font-size: 36px; max-width: 16ch; margin-bottom: 20px; }
  .upright-blade p { font-size: 17px; }
  .blade-rib { margin-top: -58px; margin-bottom: 23px; }
  .blade-number { font-size: 76px; }
  .route-return { padding-block: 42px; border-top-width: 9px; }
  .route-return .return-layout { display: block; }
  .route-return h2 { font-size: 44px; max-width: 15ch; margin-bottom: 28px; }
  .return-body { font-size: 18px; }
  .page-turns { gap: 8px 20px; }
  .inside-opening { padding-block: 23px 30px; }
  .crumb-path { font-size: 16px; margin-bottom: 23px; gap: 6px; }
  .inside-title-row { display: block; }
  .inside-title-row h1 { font-size: clamp(2.6rem, 11.55vw, 3.3rem); max-width: 18ch; }
  .page-rib-mark { display: none; }
  .inside-lead { font-size: 18px; margin-top: 24px; }
  .band-frame { width: calc(100% - 40px); padding-bottom: 8px; clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 32px, 100% 100%, 0 100%); }
  .paper-band { height: 175px; }
  .reader-body { padding-block: 38px 50px; }
  .reader-columns { display: block; }
  .contents-ribs { position: static; padding: 20px 18px 22px; margin: 0 0 38px; box-shadow: 4px 6px 0 var(--fold-grey); }
  .contents-ribs p { margin-bottom: 15px; }
  .contents-ribs ol { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .contents-ribs li { margin: 0; border: 0; padding: 0; }
  .contents-ribs a { text-decoration: underline; font-size: 16px; }
  .reading-section h2 { font-size: 35px; margin-bottom: 21px; padding-left: 36px; }
  .section-marker { left: 0; top: 5px; width: 24px; height: 24px; }
  .reading-section p { font-size: 17px; }
  .reading-section + .reading-section { margin-top: 36px; padding-top: 28px; }
  .source-leaves li { padding-left: 17px; }
  .source-leaves .source-title { font-size: 27px; }
  .footer-upper { display: block; }
  .footer-links { margin-top: 15px; gap: 6px 24px; }
  .reading-footer { padding-block: 32px 24px; }
  .copyright { margin-top: 23px; }
  .lost-page { padding-block: 40px 70px; }
  .lost-page h1 { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
