:root {
  --rest-ground: #F9F6EB;
  --rest-ink: #332A25;
  --rest-berry: #86273F;
  --rest-support: #E0DDD1;
  --rest-surface: #FFFFFF;
  --rest-display: 'Sigmar One', Georgia, serif;
  --rest-reading: 'Slabo 13px', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--rest-ink); background: var(--rest-ground); font: 20px/1.6 var(--rest-reading); }
a { color: var(--rest-berry); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--rest-berry); outline-offset: 5px; background: var(--rest-ground); }
p { margin: 0 0 1em; }
em { font-style: italic; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--rest-display); }
h1 { font-size: clamp(36px, 3.35vw, 49px); line-height: 1.18; letter-spacing: -1.2px; }
h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.5px; }
h3 { font-size: 24px; line-height: 1.3; }
.rest-shell { width: min(1296px, calc(100% - 108px)); margin-inline: auto; }
.rest-skip { position: absolute; z-index: 5; left: 18px; top: -100px; padding: 10px 16px; background: var(--rest-surface); }
.rest-skip:focus { top: 12px; }

/* The complete name sits below the left end of a short, loose net corner. */
.rest-mast { position: relative; height: 148px; }
.rest-name { position: absolute; left: 49%; top: 69px; color: var(--rest-ink); font: 29px/1.25 var(--rest-display); text-decoration: none; }
.rest-name:hover { color: var(--rest-berry); }
.rest-corner { position: absolute; left: 49%; top: 3px; width: 238px; height: 25px; object-fit: fill; }
.rest-links a { position: absolute; min-height: 44px; display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 7px 10px; font-size: 18px; border-bottom: 3px solid transparent; }
.rest-links a:hover, .rest-links a:focus-visible { background: var(--rest-support); border-bottom-color: var(--rest-berry); }
.rest-mots-link { left: calc(49% - 10px); top: 24px; }
.rest-tesa-link { left: calc(49% + 190px); top: 104px; }
.rest-compare-link { right: 0; top: 23px; }
.rest-icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.7; vertical-align: middle; }

/* A photograph fills the opening. The cream notebook leaf has a berry spine
   and a clipped lower corner; the two photo scales remain conspicuously unequal. */
.rest-home-opening { position: relative; isolation: isolate; background: var(--rest-support); }
.rest-cover-ground { position: relative; z-index: 1; padding-block: 34px 174px; min-height: 640px; pointer-events: none; }
.rest-title-leaf { position: relative; width: min(850px, 74%); padding: 26px 48px 34px 32px; background: var(--rest-ground); border-left: 12px solid var(--rest-berry); border-top: 2px solid var(--rest-berry); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), calc(100% - 42px) 100%, 0 100%); pointer-events: auto; }
.rest-title-leaf::after { content: ''; position: absolute; right: 0; bottom: 0; width: 42px; height: 42px; background: var(--rest-support); clip-path: polygon(0 0, 100% 0, 0 100%); }
.rest-home-title { color: var(--rest-berry); font-size: clamp(40px, 3.8vw, 56px); line-height: 1.12; letter-spacing: -1.1px; }
.rest-home-title span { display: block; }
.rest-welcome { margin-top: 24px; max-width: 610px; }
.rest-welcome p { margin-bottom: 16px; font-size: 22px; line-height: 1.45; }
.rest-topic-links { display: flex; gap: 32px; flex-wrap: wrap; }
.rest-topic-links a { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; min-width: 160px; padding: 5px 0; border-bottom: 2px solid var(--rest-berry); font-size: 19px; text-decoration: none; }
.rest-topic-links a:hover, .rest-topic-links a:focus-visible { background: var(--rest-support); }
.rest-photo-ground { position: absolute; inset: 0; z-index: 0; }
.rest-photo-wide, .rest-photo-upright { position: absolute; background-color: var(--rest-support); background-repeat: no-repeat; background-size: cover; }
.rest-photo-wide { inset: 0; background-image: url('home-fold.webp'); background-position: 63% 65%; }
.rest-photo-upright { width: 156px; height: 330px; right: max(54px, calc((100% - 1296px) / 2)); top: 94px; background-image: url('home-shuttle.webp'); background-position: center 65%; border: 8px solid var(--rest-ground); border-radius: 8px; box-shadow: 12px 14px 0 var(--rest-berry); }

/* Each broad argument rests above two unequal notes, leaving the middle empty. */
.rest-spread { padding-block: 92px 42px; }
.rest-spread + .rest-spread { border-top: 2px solid var(--rest-support); }
.rest-argument { max-width: 880px; margin-inline: auto; }
.rest-argument > h2 { position: relative; max-width: 820px; margin-bottom: 28px; }
.rest-argument > p { max-width: 820px; }
.rest-essay-marker { position: absolute; left: -74px; top: 4px; display: grid; place-items: center; width: 46px; height: 46px; color: var(--rest-berry); border-left: 5px solid var(--rest-berry); }
.rest-essay-marker .rest-icon { width: 27px; height: 27px; }
.rest-home-main .rest-spread:first-child .rest-argument > p:first-of-type::first-letter { float: left; font: 66px/.95 var(--rest-display); padding: 6px 8px 0 0; color: var(--rest-berry); }
.rest-footings { display: flex; justify-content: space-between; align-items: flex-start; gap: 20%; margin-top: 46px; min-height: 250px; }
.rest-footing { position: relative; background: var(--rest-surface); border-radius: 8px; border-top: 7px solid var(--rest-berry); padding: 24px 26px; width: 30%; box-shadow: 10px 12px 0 var(--rest-support); }
.rest-footing::before { content: ''; position: absolute; left: 24px; top: -13px; width: 48px; height: 6px; background: var(--rest-berry); }
.rest-footing + .rest-footing { width: 26%; margin-top: 58px; background: var(--rest-support); box-shadow: 10px 12px 0 var(--rest-surface); border-top-width: 3px; }
.rest-spread:nth-of-type(even) .rest-footing:first-child { width: 25%; }
.rest-spread:nth-of-type(even) .rest-footing + .rest-footing { width: 32%; margin-top: 34px; }
.rest-footing h3, .rest-footing h2 { color: var(--rest-berry); font: 24px/1.25 var(--rest-reading); margin-bottom: 12px; }
.rest-footing p { font-size: 18px; line-height: 1.5; margin-bottom: 0; }
.rest-blank { width: 96px; height: 30px; margin: 36px auto 0; }

/* Inner readings use a short selvedge and an off-centre photographic strip. */
.rest-article-head { max-width: 1060px; padding: 12px 0 0 30px; border-left: 8px solid var(--rest-berry); }
.rest-crumb { margin-bottom: 18px; font-size: 16px; }
.rest-article-head h1 { max-width: 1000px; }
.rest-deck { max-width: 750px; margin: 22px 0 0; padding-bottom: 28px; font-size: 23px; line-height: 1.45; }
.rest-photo-band { width: calc(100% - 150px); height: 190px; margin: 32px 0 18px; border-radius: 8px; object-fit: cover; object-position: center; background: var(--rest-support); box-shadow: 18px 18px 0 var(--rest-support); }
.rest-article-photo { margin-top: 44px; }
.rest-article-photo .rest-photo-band { margin-top: 0; }

/* The Oath strip retains its square central reading area and empty net margins.
   It never acquires a purchasing link, clickable card, or promotional animation. */
.rest-selvedge { position: relative; background: var(--rest-support); border-top: 6px solid var(--rest-berry); padding: 22px 88px; margin-top: 8px; }
.rest-selvedge::before, .rest-selvedge::after { content: ''; position: absolute; top: 24px; bottom: 24px; width: 36px; background-image: url('net-corner.svg'); background-repeat: repeat-y; background-size: 80px 36px; opacity: .35; pointer-events: none; }
.rest-selvedge::before { left: 18px; }
.rest-selvedge::after { right: 18px; }
.rest-terms { background: var(--rest-ground); padding: 18px 30px; max-width: 1080px; }
.rest-terms h2 { font: 26px/1.25 var(--rest-reading); margin-bottom: 14px; }
.rest-terms p { font-size: 18px; line-height: 1.4; margin-bottom: 9px; }
.rest-terms .rest-disclosure { font-size: 17px; line-height: 1.4; margin-bottom: 0; }
.rest-code { color: var(--rest-berry); font-weight: 700; }
.rest-card { width: 120px; height: 120px; object-fit: contain; margin-top: 14px; background: var(--rest-surface); }
.rest-promo-faq { max-width: 920px; margin: 22px 0 20px 88px; }
.rest-promo-faq h2 { font: 23px/1.35 var(--rest-reading); margin-bottom: 8px; }
.rest-promo-faq p { font-size: 18px; line-height: 1.5; }
.rest-promo-page .rest-article-head { max-width: none; padding-top: 4px; }
.rest-promo-page .rest-article-head h1 { font-size: 40px; }
.rest-promo-page .rest-deck { margin-block: 12px 0; padding-bottom: 16px; font-size: 20px; }

.rest-sources { padding-top: 44px; }
.rest-source { padding: 24px 0 28px; border-top: 2px solid var(--rest-support); }
.rest-source h3 { font-size: 24px; margin-bottom: 9px; }
.rest-source .rest-credit { font-size: 17px; color: var(--rest-berry); margin-bottom: 12px; }
.rest-source p { font-size: 19px; }
.rest-end { margin-top: 88px; padding-block: 40px 28px; background: var(--rest-support); border-top: 10px solid var(--rest-berry); }
.rest-footer-inner { display: grid; grid-template-columns: minmax(0, 650px) 1fr; column-gap: 90px; }
.rest-footer-note { font-size: 19px; }
.rest-footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; align-content: start; }
.rest-footer-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 18px; }
.rest-copyright { margin-top: 16px; font-size: 16px; }
.rest-not-found { padding-block: 60px 100px; min-height: 55vh; }
.rest-not-found p { max-width: 620px; margin-top: 28px; }

@media (max-width: 1100px) and (min-width: 701px) {
  .rest-shell { width: calc(100% - 72px); }
  .rest-name, .rest-corner { left: 30%; }
  .rest-mots-link { left: calc(30% - 10px); }
  .rest-tesa-link { left: calc(30% + 190px); }
  .rest-cover-ground { padding-block: 30px 140px; min-height: 600px; }
  .rest-title-leaf { width: 76%; padding-inline: 24px; }
  .rest-home-title { font-size: 40px; }
  .rest-welcome p { font-size: 20px; }
  .rest-photo-upright { right: 36px; width: 110px; height: 285px; top: 130px; box-shadow: 8px 10px 0 var(--rest-berry); }
  .rest-essay-marker { position: static; display: inline-grid; margin: 0 16px 12px 0; vertical-align: middle; }
  .rest-selvedge { padding-inline: 58px; }
  .rest-promo-faq { margin-left: 58px; }
  .rest-footing { width: 33%; }
  .rest-footing + .rest-footing { width: 31%; }
  .rest-footings { gap: 18%; }
}

@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.55; }
  .rest-shell { width: calc(100% - 36px); }
  h1 { font-size: 32px; line-height: 1.18; letter-spacing: -.8px; }
  h2 { font-size: 27px; line-height: 1.25; }
  h3 { font-size: 22px; }
  .rest-mast { height: 136px; padding-top: 8px; }
  .rest-name { position: static; display: inline-block; font-size: 23px; line-height: 30px; }
  .rest-corner { width: 24px; height: 24px; left: auto; right: 0; top: 8px; }
  .rest-links { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 44px 44px; margin-top: 2px; max-width: 354px; }
  .rest-links a { position: static; padding: 4px 6px 4px 0; font-size: 17px; width: max-content; min-width: 112px; }
  .rest-mots-link { grid-column: 1; grid-row: 1; }
  .rest-tesa-link { grid-column: 1; grid-row: 2; }
  .rest-compare-link { grid-column: 2; grid-row: 1; }
  .rest-home-opening { background: var(--rest-ground); padding-bottom: 10px; }
  .rest-cover-ground { min-height: 0; padding-block: 10px 24px; }
  .rest-title-leaf { width: 100%; border-left-width: 6px; padding: 16px 14px 28px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
  .rest-title-leaf::after { width: 24px; height: 24px; }
  .rest-home-title { font-size: 32px; line-height: 1.18; letter-spacing: -.8px; }
  .rest-home-title span { display: inline; }
  .rest-welcome { margin-top: 18px; max-width: none; }
  .rest-welcome p { font-size: 19px; line-height: 1.45; margin-bottom: 10px; }
  .rest-topic-links { gap: 18px; }
  .rest-topic-links a { min-width: 0; gap: 12px; font-size: 18px; }
  .rest-photo-ground { position: relative; inset: auto; display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 24px; width: calc(100% - 36px); height: 100px; margin-inline: auto; }
  .rest-photo-wide, .rest-photo-upright { position: static; width: 100%; border-radius: 8px; }
  .rest-photo-wide { height: 70px; background-position: 62% 70%; }
  .rest-photo-upright { height: 100px; border: 0; box-shadow: none; background-position: center 67%; }
  .rest-spread { padding-block: 62px 28px; }
  .rest-argument > h2 { margin-bottom: 22px; padding-top: 16px; border-top: 6px solid var(--rest-berry); }
  .rest-essay-marker { position: static; display: inline-grid; width: 30px; height: 30px; margin-right: 10px; border: 0; vertical-align: middle; }
  .rest-essay-marker .rest-icon { width: 23px; height: 23px; }
  .rest-home-main .rest-spread:first-child .rest-argument > p:first-of-type::first-letter { font-size: 52px; }
  .rest-footings { display: block; margin-top: 34px; min-height: 0; }
  .rest-footing, .rest-footing + .rest-footing, .rest-spread:nth-of-type(even) .rest-footing:first-child, .rest-spread:nth-of-type(even) .rest-footing + .rest-footing { width: 83%; padding: 20px; box-shadow: 6px 8px 0 var(--rest-support); }
  .rest-footing + .rest-footing, .rest-spread:nth-of-type(even) .rest-footing + .rest-footing { margin: 76px 0 0 auto; width: 73%; box-shadow: -6px 8px 0 var(--rest-surface); }
  .rest-footing h3, .rest-footing h2 { font-size: 23px; }
  .rest-footing p { font-size: 17px; }
  .rest-blank { margin-top: 36px; width: 64px; height: 25px; }
  .rest-article-head { padding: 4px 0 0 16px; border-left-width: 5px; }
  .rest-crumb { margin-bottom: 14px; font-size: 16px; }
  .rest-deck { font-size: 20px; margin-block: 18px 0; padding-bottom: 18px; }
  .rest-photo-band { width: calc(100% - 8px); height: 112px; margin-block: 26px 0; box-shadow: 8px 10px 0 var(--rest-support); }
  .rest-promo-page .rest-article-head { border: 0; padding-left: 0; }
  .rest-promo-page .rest-article-head h1 { font-size: 32px; }
  .rest-promo-page .rest-crumb { margin-bottom: 9px; }
  .rest-promo-page .rest-deck { margin-block: 10px 0; padding-bottom: 16px; font-size: 18px; line-height: 1.4; }
  .rest-selvedge { padding: 18px; margin-top: 0; border-top-width: 4px; }
  .rest-selvedge::before, .rest-selvedge::after { content: none; background-image: none; }
  .rest-terms { padding: 0; background: transparent; }
  .rest-terms h2 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
  .rest-terms p { font-size: 16px; line-height: 22px; margin-bottom: 8px; }
  .rest-terms .rest-disclosure { font-size: 16px; line-height: 22px; }
  .rest-card { width: 100px; height: 100px; margin-top: 12px; }
  .rest-promo-faq { margin: 20px 0 0; }
  .rest-promo-faq h2 { font-size: 22px; }
  .rest-promo-faq p { font-size: 17px; }
  .rest-article-photo { margin-top: 32px; }
  .rest-sources { padding-top: 38px; }
  .rest-source { padding-bottom: 28px; }
  .rest-source p { font-size: 18px; }
  .rest-end { margin-top: 62px; padding-top: 26px; border-top-width: 6px; }
  .rest-footer-inner { display: block; }
  .rest-footer-note { font-size: 18px; }
  .rest-footer-nav { gap: 0 24px; margin-top: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .rest-links a { transition: background-color 140ms ease, border-color 140ms ease; }
  .rest-name { transition: color 140ms ease; }
  .rest-topic-links a { transition: background-color 140ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; animation: none; transition: none; }
}
