/* Direction 2 — 邊註: an annotated study. Type leads, watercolour objects sit like specimens,
   Lester's originals live in the margin next to the line that uses them. */
.site-head { border-bottom: 1px solid var(--rule); margin: 0 56px; padding: 26px 0; }
.sec { font-size: 30px; letter-spacing: .06em; }
.label { font-family: var(--sans); font-weight: 500; font-size: 12.5px; letter-spacing: .14em; color: var(--moss); display: block; margin-bottom: 8px; }
.sh { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
main { padding: 0 56px; }

/* home intro */
.intro { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 7fr 4fr; align-items: center; gap: 40px; padding: 88px 0 64px; }
.intro .num { font-size: 18px; }
.intro .num::after { width: 72px; }
.intro h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.45; letter-spacing: .04em; margin: 34px 0 44px; }
.intro .iv { width: 100%; max-width: 470px; justify-self: end; margin: -40px -20px 0 0; }
.start { display: inline-flex; align-items: center; gap: 22px; font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: .1em; color: var(--moss); padding: 14px 0; border-bottom: 1px solid var(--moss); min-width: 260px; justify-content: space-between; transition: gap .6s var(--ease); }
.start i { font-family: var(--latin); font-style: normal; font-size: 22px; }
.start:hover { gap: 36px; }

.index, .ledger { max-width: 1240px; margin: 0 auto; }
.index { margin-top: 40px; }
.irow { display: grid; grid-template-columns: 110px 200px 1fr 70px 150px; align-items: center; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); transition: background .6s var(--ease), padding .6s var(--ease); }
.irow:hover { background: rgba(220, 227, 208, .35); padding-left: 14px; }
.inum { font-family: var(--latin); font-style: italic; font-size: 64px; line-height: 1; color: var(--moss); letter-spacing: -.01em; }
.irow h3 { font-size: 30px; }
.irow p { margin: 0; font-size: 16.5px; line-height: 1.8; color: var(--ink-2); max-width: 26em; }
.irow img { width: 150px; height: 150px; object-fit: cover; margin: -18px 0; }

.ledger { margin-top: 120px; }
.ledger ul, .related ul { list-style: none; padding: 0; margin: 0; }
.ledger li a { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger .ld { font-style: italic; font-size: 18px; color: var(--ink-3); }
.ledger .lt { display: flex; flex-direction: column; gap: 4px; }
.ledger .rt { font-size: 23px; font-weight: 700; letter-spacing: .03em; transition: color .5s var(--ease); }
.ledger li a:hover .rt { color: var(--moss); }

/* article: rail | text | margin */
.article { display: grid; grid-template-columns: 200px minmax(0, var(--measure)) 270px; gap: 0 56px; justify-content: center; padding: 0 56px; }
.article .main { grid-column: 2; position: relative; }
.rail { grid-column: 1; padding-top: 72px; }
.rail .toc { position: sticky; top: 32px; }
.toc ol { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 14px; line-height: 1.6; letter-spacing: .04em; color: var(--ink-3); }
.toc li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.toc li .latin { font-style: italic; width: 20px; flex: none; }
.toc li.on { color: var(--ink); }
.toc li.on .latin { color: var(--moss); }
.a-head { padding: 72px 0 0; }
.a-head h1 { font-size: 46px; line-height: 1.42; margin: 18px 0 34px; }
.summary { position: relative; padding: 4px 0 4px 26px; border-left: 3px solid var(--moss); margin-bottom: 56px; }
.prose { max-width: none; }
/* sidenotes float into the right column */
.side { float: right; clear: right; width: 270px; margin: .3em calc(-270px - 56px) 1.2em 0; padding-top: 14px; border-top: 1px solid var(--moss); }
.side .src-quote { font-size: 15.5px; }
.faqs, .related { margin-top: 80px; clear: both; }
.deep-wrap { margin-top: 72px; clear: both; }
.deep-wrap .anno { margin-bottom: 10px; }
.deep { display: grid; grid-template-columns: 1fr 200px; align-items: stretch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.deep-txt { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 4px; }
.deep h3 { font-size: 24px; }
.deep-img { overflow: hidden; order: 2; }
.deep-img img { width: 100%; height: 100%; object-fit: cover; }
.deep-go { display: none; }
.end { margin-top: 64px; }
.related li a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.related .rt { font-weight: 700; font-size: 18px; }
.related .sec, .faqs .sec { font-size: 22px; margin-bottom: 16px; }
.video-block { margin: 0 0 24px; }

/* note: same grid, the rail carries the note's date like a diary margin */
.note .rail { display: flex; flex-direction: column; gap: 10px; }
.note .rail .inum { font-family: var(--ming); font-style: normal; font-weight: 700; font-size: 26px; letter-spacing: .2em; }
.note .a-head h1 { font-size: 36px; }

/* OG */
.og-page { width: 1200px; height: 630px; overflow: hidden; }
.og2 { position: relative; width: 1200px; height: 630px; padding: 70px 80px; display: flex; flex-direction: column; }
.og2 h1 { font-size: 58px; line-height: 1.38; max-width: 11em; margin: 40px 0 auto; }
.og2 .tag { font-size: 19px; }
.og2 .vig { position: absolute; right: 40px; bottom: 20px; width: 360px; }

@media (max-width: 1180px) {
  .article { grid-template-columns: minmax(0, var(--measure)); }
  .rail { display: none; }
  .article .main { grid-column: 1; }
  .side { float: none; width: auto; margin: 0 0 1.6em; padding: 14px 0 0; }
  .note .rail { display: none; }
  .note .prose { display: flex; flex-direction: column; }
  .note .prose .side { order: 9; }
}
@media (max-width: 720px) {
  .site-head { margin: 0 22px; padding: 18px 0; }
  main, .article { padding: 0 22px; }
  .intro { grid-template-columns: 1fr; padding: 40px 0 30px; gap: 0; }
  .intro h1 { font-size: 24px; margin: 24px 0 30px; }
  .intro .iv { width: 190px; justify-self: end; margin: -10px -6px 0 0; order: -1; }
  .sec { font-size: 24px; }
  .irow { grid-template-columns: 54px 1fr 84px; gap: 4px 14px; padding: 18px 0; }
  .inum { font-size: 40px; grid-row: span 2; align-self: start; }
  .irow h3 { font-size: 22px; }
  .irow p { grid-column: 2; font-size: 14.5px; }
  .irow .tag { display: none; }
  .irow img { grid-column: 3; grid-row: 1 / span 2; width: 84px; height: 84px; margin: 0; }
  .ledger { margin-top: 80px; }
  .ledger li a { grid-template-columns: 1fr; gap: 2px; }
  .ledger .ld { font-size: 15px; }
  .ledger .rt { font-size: 19px; }
  .a-head { padding-top: 34px; }
  .a-head h1, .note .a-head h1 { font-size: 30px; }
  .summary { padding-left: 18px; }
  .deep { grid-template-columns: 1fr 110px; }
  .deep h3 { font-size: 18px; }
}
