:root {
  --page: #d9f7f0;
  --ink: #242424;
  --pen: #1e8542;
  --quiet: #d3dedc;
  --paper: #fff;
  --hand: 'Oleo Script', Georgia, serif;
  --text: 'Gidole', 'Trebuchet MS', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 20px/1.7 var(--text); }
img, svg { display: block; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 3px; }
::selection { background: var(--page); color: var(--ink); }
i[data-lucide] { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; }
.inwords-skip { position: absolute; left: 20px; top: -100px; z-index: 20; background: var(--paper); padding: 12px 20px; border-radius: 6px; }
.inwords-skip:focus { top: 12px; }
.inwords-header { height: 146px; padding: 0 max(40px, calc((100% - 1240px) / 2)); position: relative; background: var(--page); }
.inwords-navigation { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; padding-top: 20px; gap: 16px; }
.inwords-navigation a { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 18px; line-height: 1.3; text-decoration: none; padding: 10px 0; min-height: 44px; }
.inwords-navigation a:nth-child(2) { justify-self: center; }
.inwords-navigation a:last-child { justify-self: end; text-align: right; }
.inwords-navigation svg { width: 20px; height: 20px; flex: 0 0 auto; }
.inwords-navigation a:hover, .inwords-navigation a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.inwords-sweep { position: absolute; width: min(1240px, calc(100% - 80px)); height: 56px; object-fit: fill; top: 57px; pointer-events: none; }
.inwords-wordmark { position: absolute; right: max(40px, calc((100% - 1240px) / 2)); top: 100px; font: 28px/1.1 var(--hand); text-decoration: none; }
.inwords-wordmark:hover { text-decoration: underline; }
.inwords-main { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.inwords-home { width: 100%; }
.inwords-manuscript { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.inwords-opening { position: relative; isolation: isolate; width: 100%; min-height: 680px; display: flex; justify-content: flex-end; align-items: flex-start; padding: 36px max(48px, calc((100% - 1296px) / 2)) 36px; background: var(--page); }
.inwords-hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.inwords-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.inwords-hero-sheet { position: relative; width: min(640px, 46vw); padding: 36px 44px 112px; background: var(--page); border-left: 8px solid var(--pen); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 88px), 57% 100%, 43% 100%, 0 calc(100% - 88px)); }
.inwords-hero-sheet::before, .inwords-hero-sheet::after { content: ''; position: absolute; left: 50%; background: var(--ink); }
.inwords-hero-sheet::before { width: 8px; height: 8px; bottom: 65px; border-radius: 50%; transform: translateX(-3px); }
.inwords-hero-sheet::after { width: 2px; height: 60px; bottom: 6px; }
.inwords-heading { margin-bottom: 28px; }
h1 { font: 400 clamp(62px, 5.1vw, 78px)/1.06 var(--hand); letter-spacing: -.018em; margin: 0; text-wrap: balance; }
.inwords-lead { margin: 0; font-size: 22px; line-height: 1.5; max-width: 610px; }
.inwords-opening-room { height: 142px; }
.inwords-chapter { position: relative; max-width: 620px; margin: 0 0 0 400px; }
.inwords-section { position: relative; }
.inwords-section-mark { position: absolute; left: -142px; top: -14px; width: 100px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--pen); pointer-events: none; }
.inwords-section-mark span { font: 400 80px/1 var(--hand); color: var(--quiet); }
.inwords-section-mark svg { width: 25px; height: 25px; margin-left: 5px; }
.inwords-chapter h2 { font: 400 42px/1.18 var(--hand); margin: 0 0 30px; text-wrap: balance; }
.inwords-paragraph { margin: 0 0 68px; }
.inwords-section + .inwords-section { margin-top: 124px; }
.inwords-routing { margin: 0 0 68px; padding-left: 24px; }
.inwords-routing li { padding-left: 8px; }
.inwords-routing li + li { margin-top: 14px; }
.inwords-routing li::marker { color: var(--pen); }
.inwords-three-spaces { display: grid; grid-template-rows: repeat(3, minmax(90px, auto)); margin: 38px 0 100px -72px; }
.inwords-crossing { grid-row: 1 / span 3; margin: 0; padding-left: 28px; border-left: 5px solid var(--pen); font-size: 24px; line-height: 1.8; }
.inwords-margin-photo { position: absolute; top: 100px; left: -400px; width: 222px; height: 510px; margin: 0; clip-path: polygon(0 0, 100% 0, 100% 82%, 70% 82%, 56% 100%, 44% 100%, 30% 82%, 0 82%); background: var(--page); }
.inwords-margin-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 45%; border-radius: 6px 6px 0 0; }
.inwords-inner-opening { display: grid; grid-template-columns: 300px minmax(0, 700px); column-gap: 100px; margin: 58px 0 58px; }
.inwords-page-marker { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 12px; font-size: 18px; max-width: 245px; }
.inwords-page-marker svg { width: 46px; height: 46px; color: var(--pen); }
.inwords-page-marker i { width: 46px; height: 46px; }
.inwords-page-marker span { padding-left: 16px; border-left: 5px solid var(--pen); }
.inwords-inner-opening .inwords-heading { grid-column: 2; grid-row: 1; margin-bottom: 30px; }
.inwords-inner-opening h1 { font-size: clamp(52px, 4.5vw, 68px); max-width: 700px; }
.inwords-inner-opening .inwords-lead { grid-column: 2; grid-row: 2; }
.inwords-band { margin: 0 0 130px 180px; width: calc(100% - 180px); position: relative; isolation: isolate; }
.inwords-band img { height: 286px; width: 100%; object-fit: cover; border-radius: 6px; }
.inwords-band::before { content: ''; position: absolute; z-index: -1; left: -26px; right: 50px; top: 24px; bottom: -24px; background: var(--page); border-bottom: 7px solid var(--pen); }
.inwords-band::after { content: ''; position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; background: linear-gradient(135deg, var(--quiet) 49%, var(--paper) 50%); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.inwords-trail { margin: 134px 0 104px 400px; max-width: 620px; display: flex; gap: 22px; align-items: center; }
.inwords-trail a { display: inline-flex; align-items: center; gap: 10px; background: var(--page); border-radius: 6px; padding: 16px 20px; text-decoration: none; box-shadow: 5px 6px 0 var(--quiet); transition: box-shadow .16s ease, transform .16s ease; }
.inwords-trail a:hover { transform: translateY(-3px); box-shadow: 5px 9px 0 var(--quiet); text-decoration: underline; }
.inwords-trail a:focus-visible { box-shadow: 5px 6px 0 var(--pen); }
.inwords-trail svg { width: 21px; height: 21px; flex: 0 0 auto; }
.inwords-footer { background: var(--page); border-top: 8px solid var(--pen); padding: 62px max(40px, calc((100vw - 1240px) / 2)) 38px; }
.inwords-footer-top { display: grid; grid-template-columns: 300px minmax(0, 620px); gap: 100px; }
.inwords-footer-brand { font: 42px/1.15 var(--hand); }
.inwords-footer-note { margin: 0; font-size: 20px; max-width: 600px; }
.inwords-footer-links { display: flex; gap: 20px 32px; flex-wrap: wrap; margin: 48px 0 30px 400px; font-size: 18px; }
.inwords-footer-links a { padding: 8px 0; }
.inwords-copyright { margin: 0 0 0 400px; font-size: 16px; }
.inwords-empty { min-height: 42vh; }
/* One photographic settling motion. Text never changes opacity or position. */
@media (prefers-reduced-motion: no-preference) and (min-width: 701px) {
  .inwords-hero-photo img { animation: inwords-settle 1s ease-out both; }
}
@keyframes inwords-settle { from { transform: scale(1.025); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .inwords-trail a:hover { transform: none; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .inwords-opening { min-height: 640px; padding: 32px; }
  .inwords-hero-sheet { width: 54vw; padding: 30px 30px 105px; }
  .inwords-hero-sheet h1 { font-size: clamp(54px, 6vw, 68px); }
  .inwords-hero-sheet .inwords-lead { font-size: 21px; }
  .inwords-inner-opening { grid-template-columns: 24% minmax(0, 1fr); column-gap: 8%; }
  .inwords-chapter, .inwords-trail { margin-left: 32%; }
  .inwords-section-mark { left: -110px; width: 85px; }
  .inwords-section-mark span { font-size: 68px; }
  .inwords-margin-photo { display: none; }
  .inwords-band { margin-left: 12%; width: 88%; }
  .inwords-three-spaces { margin-left: 0; }
  .inwords-footer-top { grid-template-columns: 24% minmax(0, 1fr); gap: 8%; }
  .inwords-footer-brand { font-size: 34px; }
  .inwords-footer-links, .inwords-copyright { margin-left: 32%; }
}
@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.7; }
  .inwords-header { padding: 0 20px; height: 80px; }
  .inwords-navigation { padding-top: 3px; gap: 10px; }
  .inwords-navigation a { font-size: 15px; max-width: 110px; line-height: 1.12; padding: 4px 0; gap: 6px; min-height: 40px; }
  .inwords-navigation a:last-child { max-width: 100px; }
  .inwords-navigation svg, .inwords-navigation i { width: 16px; height: 16px; }
  .inwords-sweep { width: calc(100% - 40px); top: 43px; height: 24px; }
  .inwords-wordmark { right: 20px; top: 61px; font-size: 18px; }
  .inwords-main { width: calc(100% - 40px); }
  .inwords-home { width: 100%; }
  .inwords-manuscript { width: calc(100% - 40px); }
  .inwords-opening { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; width: calc(100% - 40px); min-height: 0; margin: 0 auto; padding: 30px 0 0; background: var(--paper); }
  .inwords-hero-sheet { display: contents; filter: none; border: 0; clip-path: none; }
  .inwords-hero-sheet::before, .inwords-hero-sheet::after { display: none; }
  .inwords-hero-sheet .inwords-heading { grid-column: 1; grid-row: 1; background: var(--page); border-left: 6px solid var(--pen); padding: 22px 22px 26px; margin-bottom: 22px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
  h1 { font-size: clamp(40px, 11.8vw, 60px); line-height: 1.1; letter-spacing: -.015em; }
  .inwords-hero-photo { grid-column: 1; grid-row: 2; position: relative; inset: auto; z-index: 0; height: 150px; width: 100%; margin-bottom: 24px; border-radius: 6px; }
  .inwords-hero-photo img { object-position: 50% 50%; }
  .inwords-hero-sheet .inwords-lead { grid-column: 1; grid-row: 3; font-size: 21px; line-height: 1.5; }
  .inwords-opening-room { height: 110px; }
  .inwords-chapter { max-width: none; margin-left: 0; }
  .inwords-section-mark { position: static; width: auto; flex-direction: row; align-items: center; gap: 18px; margin-bottom: 15px; }
  .inwords-section-mark span { font-size: 56px; }
  .inwords-section-mark svg { margin-left: 0; width: 22px; height: 22px; }
  .inwords-chapter h2 { font-size: 34px; margin-bottom: 24px; }
  .inwords-paragraph, .inwords-routing { margin-bottom: 62px; }
  .inwords-routing { padding-left: 20px; }
  .inwords-routing li { padding-left: 3px; }
  .inwords-section + .inwords-section { margin-top: 100px; }
  .inwords-crossing { font-size: 21px; line-height: 1.8; padding-left: 19px; border-left-width: 4px; }
  .inwords-three-spaces { margin: 28px 0 84px; grid-template-rows: repeat(3, minmax(100px, auto)); }
  .inwords-margin-photo { display: none; }
  .inwords-inner-opening { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 40px 0 36px; }
  .inwords-page-marker { grid-column: 1; grid-row: 1; flex-direction: row; align-items: center; gap: 14px; padding: 0; font-size: 16px; max-width: none; margin-bottom: 28px; }
  .inwords-page-marker svg, .inwords-page-marker i { width: 26px; height: 26px; }
  .inwords-page-marker span { padding-left: 0; border: 0; }
  .inwords-inner-opening .inwords-heading { grid-column: 1; grid-row: 2; margin-bottom: 26px; }
  .inwords-inner-opening h1 { font-size: clamp(40px, 11.2vw, 56px); }
  .inwords-inner-opening .inwords-lead { grid-column: 1; grid-row: 3; font-size: 21px; }
  .inwords-band { margin: 0 0 94px; width: 100%; }
  .inwords-band img { height: 180px; }
  .inwords-band::before { left: 10px; right: 25px; top: 18px; bottom: -16px; border-bottom-width: 5px; }
  .inwords-band::after { width: 30px; height: 30px; }
  .inwords-trail { margin: 100px 0 82px; gap: 20px; flex-wrap: wrap; font-size: 17px; }
  .inwords-trail a { padding: 14px 18px; }
  .inwords-footer { padding: 44px 20px 30px; border-top-width: 6px; }
  .inwords-footer-top { display: block; }
  .inwords-footer-brand { margin-bottom: 26px; font-size: 34px; }
  .inwords-footer-note { font-size: 18px; }
  .inwords-footer-links { margin: 30px 0 22px; gap: 8px 24px; font-size: 16px; }
  .inwords-copyright { margin-left: 0; }
}
