/* Hallmark · v2.0.0 · theme: custom · shape: photo essay · hero: full-width photo with a solid text band below, never text over hands · nav: wordmark and a menu button at every width · footer: dark mast with sections · signature: the photo sequence plus a sticky alert bar */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V5 · weakest: H, the first screen has no form; the sticky bar carries the action from the first second */
/* Hallmark · waive 83 · photographs cover about 43% below the hero · the concept under review is a photo essay; reviewers are comparing exactly this choice */
/* Hallmark · waive 77 · essay body holds a 64rem reading measure · captions and essay lines read as a column, the plates carry the mass */
/* Hallmark · waive 59 · one 96px gap between the essay and the alert band · the alert band is a coloured surface, which already separates it */

.slim { position: relative; z-index: 20; background: var(--c-paper); }
.slim__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 4rem; flex-wrap: wrap; }
.js .slim .menu-toggle { display: inline-flex; align-items: center; }
.slim__nav { flex-basis: 100%; }
.slim__nav ul { list-style: none; margin: 0; padding: 0 0 var(--s-3); display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.slim__nav li { margin: 0; }
.slim__nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-2); font-weight: 700; color: var(--c-ink); text-decoration: none; }
.slim__nav a[aria-current="page"], .slim__nav a:hover { color: var(--c-blue); text-decoration: underline; }
.js .slim__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-paper); box-shadow: 0 16px 32px var(--c-shadow); }
.js .slim__nav.is-open { display: block; }
.js .slim__nav ul { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding-block: var(--s-3) var(--s-5); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--s-5); }
.js .slim__nav a { width: 100%; border-bottom: 1px solid var(--c-rule); font-family: var(--f-display); font-size: var(--t-lg); }

.opening__photo img { width: 100%; height: min(52dvh, 36rem); object-fit: cover; object-position: 50% 55%; }
.opening--page .opening__photo img { height: min(52dvh, 30rem); }
.opening__text { padding-block: var(--s-4) var(--s-6); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-2) var(--s-7); align-items: end; }
.opening__text h1 { font-size: var(--t-4xl); font-stretch: 80%; margin: 0; max-width: 14ch; }
.opening__text .lede { margin: 0; }
.opening__cap { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--c-muted); margin: 0; }

.essay__body { max-width: 64rem; padding-bottom: var(--s-7); }
.essay__line { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; font-stretch: 90%; line-height: 1.15; color: var(--c-blue-ink); max-width: 28ch; margin: var(--s-8) 0 var(--s-6); }
.plate { margin: 0 0 var(--s-6); }
.plate__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); }
.plate--wide .plate__img { aspect-ratio: 16 / 9; }
.plate--square .plate__img { aspect-ratio: 1 / 1; max-width: 40rem; }
.plate--portrait .plate__img { aspect-ratio: 4 / 5; max-width: 26rem; }
.plate figcaption { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-size: var(--t-sm); }
.plate__text { color: var(--c-ink); font-weight: 700; }
.plate__src { color: var(--c-muted); }
.plate-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
.plate-pair .plate__img { aspect-ratio: 4 / 5; }

.alert-end { background: var(--c-blue-soft); }
.alert-end__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.alert-end__grid .status { margin-block: var(--s-3); }
.help-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-5); }
.help-card { display: grid; gap: var(--s-2); text-decoration: none; color: var(--c-ink); }
.help-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); transition: opacity var(--dur) var(--ease); }
.help-card:hover .help-card__img { opacity: 0.88; }
.help-card__title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); color: var(--c-blue); text-decoration: underline; text-underline-offset: 0.18em; }
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); }
.skill-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.skill-block h3 { margin-top: var(--s-3); margin-bottom: var(--s-2); }
.skill-block .skill-noimage { margin-bottom: var(--s-6); }
.roles, .support-ways { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.support-ways { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.roles li, .support-ways li { margin: 0; border-top: 1px solid var(--c-rule); padding-top: var(--s-3); }
.roles h3, .support-ways h3 { font-size: var(--t-lg); margin-bottom: var(--s-1); }
.roles p, .support-ways p { margin: 0; }
.narrow { max-width: 46rem; }

/* Sticky alert bar */
.has-sticky { padding-bottom: 5rem; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--c-blue-deep); color: var(--c-on-blue); box-shadow: 0 -8px 24px var(--c-shadow); }
.sticky__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 4.25rem; padding-block: var(--s-2); }
.sticky__text { margin: 0; font-weight: 700; line-height: 1.25; }
.sticky__label { color: var(--c-on-blue-muted); font-weight: 400; }
.sticky__btn { background: var(--c-paper); color: var(--c-blue-deep); border-color: var(--c-paper); flex: none; }
.sticky__btn:hover { background: var(--c-blue-soft); border-color: var(--c-blue-soft); color: var(--c-blue-deep); }
.sticky :focus-visible { outline-color: var(--c-focus-on-dark); }
.sticky__sheet { border-bottom: 1px solid var(--c-blue); padding-block: var(--s-5) var(--s-3); max-height: 70dvh; overflow-y: auto; }
.sticky__sheet .alert-form { max-width: 30rem; }
.sticky__sheet .field label, .sticky__sheet .choice { color: var(--c-on-blue); }
.sticky__sheet .error-text { color: var(--c-focus-on-dark); }
.sticky__sheet .demo-result.is-ok { background: var(--c-paper); }
.sticky__sheet .btn { background: var(--c-paper); color: var(--c-blue-deep); border-color: var(--c-paper); }

@media (max-width: 52rem) {
  .opening__photo img { height: auto; aspect-ratio: 1 / 1; max-height: 46dvh; }
  .opening--page .opening__photo img { aspect-ratio: 4 / 3; }
  .opening__text, .alert-end__grid, .about { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .essay__line { margin-block: var(--s-7) var(--s-5); }
  .help-row, .skill-blocks { grid-template-columns: minmax(0, 1fr); }
  .support-ways { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .js .slim__nav ul { grid-template-columns: minmax(0, 1fr); }
  .help-card { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); align-items: center; }
  .help-card__img { grid-row: span 2; aspect-ratio: 1 / 1; }
}
@media (max-width: 40rem) {
  .plate-pair { gap: var(--s-2); }
  .support-ways { grid-template-columns: minmax(0, 1fr); }
  .sticky__text { font-size: var(--t-sm); }
  .sticky__btn { padding-inline: var(--s-3); font-size: var(--t-sm); }
  .has-sticky { padding-bottom: 6rem; }
}
