/* Linda's words (website chat, November 18, 2026): the list of word cards and the page of one word.
   Loaded after styles.css on these pages only. Spacing keeps to the Modulor values of styles.css.
   The card sits in the narrow column, as the 4:5 pictures of the home page do (.latest-item.is-left);
   the line then takes the left page margin (data-line="margin"). */

/* the list */
.word-list { margin: 113px 0 0; padding: 0; list-style: none; }
.word-item { align-items: center; }
.word-item + .word-item { margin-top: 113px; }
.word-card { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 296px); line-height: 0; }
.word-card img { width: 100%; height: auto; }
.word-item .word-text { grid-column: 2; grid-row: 1; max-width: 24em; }
.word-name { margin-top: 10px; font-size: 43px; line-height: 53px; }
.word-name a { color: var(--ink); text-decoration: none; }
.word-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.word-item .standfirst { margin-top: 10px; }

/* one word */
.word-head .page-title { font-size: 70px; line-height: 86px; }
.word-body { margin-top: 70px; align-items: start; }
.word-body .word-figure { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 366px); position: sticky; top: 86px; }
.word-body .word-figure img { width: 100%; height: auto; }
.word-body .col-text { grid-row: 1; }
.word-body .col-text p { margin: 0 0 20px; max-width: 33em; }
.word-body .col-text p:last-child { margin-bottom: 0; }
.word-nav { margin-top: 86px; }
.word-nav .col-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 43px; padding-top: 27px; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 13px; line-height: 20px; }
.word-nav a { text-decoration: none; }
.word-nav a:hover { text-decoration: underline; }
.word-nav .muted { color: var(--muted); }

@media (max-width: 720px) {
  .word-list { margin-top: 70px; }
  .word-item + .word-item { margin-top: 86px; }
  .word-card { justify-self: center; width: min(100%, 296px); }
  .word-item .word-text { grid-column: 1; grid-row: 2; margin-top: 20px; }
  .word-name { font-size: 33px; line-height: 43px; }
  .word-head .page-title { font-size: 43px; line-height: 53px; }
  .word-body { margin-top: 43px; }
  .word-body .word-figure { grid-column: 1; grid-row: 1; justify-self: start; width: min(100%, 366px); position: static; margin-bottom: 33px; }
  .word-body .col-text { grid-row: 2; }
  .word-nav { margin-top: 53px; }
}

/* a hyphenated word (UN-COUNTRIED) stays on one line */
.nobr { white-space: nowrap; }

/* the cards on the home page (Nov 18, 2026): in the middle of the page, label above, arrows below; one card at a time, a slow move of its own */
.home .word-reel { display: flex; flex-direction: column; align-items: center; margin-top: 113px; text-align: center; padding-left: max(0px, calc(var(--mr) - var(--ml))); }   /* centred on the window, not on the text area */
.reel-side { display: contents; }
.reel-side .label { order: 1; margin-bottom: 20px; }
.reel-view { order: 2; width: min(100%, 366px); overflow: hidden; }
.reel-ctrl { order: 3; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 16px; }
.reel-side .reel-more { order: 4; }
.reel-track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .7s cubic-bezier(.45, 0, .2, 1); }
.reel-slide { flex: 0 0 100%; line-height: 0; }
.reel-slide a { display: block; }
.reel-slide img { width: 100%; height: auto; }
.reel-btn { width: 43px; height: 43px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font: 20px/1 var(--serif); cursor: pointer; }
.reel-btn:hover { background: var(--ink); color: var(--paper, #fff); }
.reel-btn:focus-visible, .reel-slide a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 720px) {
  .home .word-reel { margin-top: 86px; }
  .reel-view { width: min(100%, 296px); }
}
@media (prefers-reduced-motion: reduce) { .reel-track { transition: none; } }
