﻿@charset "utf-8";

/* stone head field file
   A hand written ledger theme for stone-head.org.
   One stylesheet, no framework, all names carry the sh981 mark. */

:root {
  --sh981-tint-vellum: #f2edde;
  --sh981-tint-vellum-deep: #e6ddc7;
  --sh981-tint-vellum-pale: #faf7ec;
  --sh981-tint-chalk: #fffdf7;
  --sh981-tint-moss: #5b5d1a;
  --sh981-tint-moss-deep: #3c3e10;
  --sh981-tint-moss-soft: #8b8c45;
  --sh981-tint-graphite: #23231e;
  --sh981-tint-slate: #56564b;
  --sh981-tint-clay: #983a24;
  --sh981-tint-clay-deep: #762a18;
  --sh981-tint-folio: #7d7e36;
  --sh981-tint-rule: #c9c0a8;
  --sh981-tint-rule-dark: #a79d82;
  --sh981-measure: 92rem;
  --sh981-gutter: clamp(1.15rem, 4.2vw, 3.4rem);
  --sh981-font: Arial, Helvetica, "Liberation Sans", sans-serif;
  --sh981-hairline: 1px;
  --sh981-plate-lift: 7px 7px 0 rgba(60, 62, 16, 0.1);
  --sh981-ease: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--sh981-tint-vellum);
  color: var(--sh981-tint-graphite);
  font-family: var(--sh981-font);
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--sh981-tint-moss-deep);
  color: var(--sh981-tint-chalk);
}

a {
  color: var(--sh981-tint-moss-deep);
  text-decoration-line: underline;
  text-decoration-color: var(--sh981-tint-rule-dark);
  text-decoration-thickness: var(--sh981-hairline);
  text-underline-offset: 0.22em;
  transition: color var(--sh981-ease), text-decoration-color var(--sh981-ease);
}

a:hover {
  color: var(--sh981-tint-clay-deep);
  text-decoration-color: var(--sh981-tint-clay);
}

:focus-visible {
  outline: 2px solid var(--sh981-tint-clay);
  outline-offset: 3px;
}

p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sh981-font);
  color: var(--sh981-tint-graphite);
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.3;
  margin: 0 0 0.45rem;
}

strong {
  font-weight: 700;
}

.sh981-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--sh981-tint-moss-deep);
  color: var(--sh981-tint-chalk);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.sh981-skip:focus {
  left: 1rem;
  top: 1rem;
}

.sh981-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* top data rail */

.sh981-rail {
  background: var(--sh981-tint-moss-deep);
  color: var(--sh981-tint-vellum);
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-moss);
}

.sh981-rail__inner {
  max-width: var(--sh981-measure);
  margin: 0 auto;
  padding: 0.42rem var(--sh981-gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sh981-rail__inner p {
  margin: 0;
}

.sh981-rail__inner p:nth-child(2) {
  color: var(--sh981-tint-vellum-deep);
}

/* page frame and crest */

.sh981-frame {
  max-width: var(--sh981-measure);
  margin: 0 auto;
  padding: 0 var(--sh981-gutter);
}

.sh981-crest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: 1.35rem 0 1rem;
  border-bottom: 3px double var(--sh981-tint-rule-dark);
}

.sh981-crest__link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  justify-self: start;
}

.sh981-crest__link:hover {
  color: inherit;
}

.sh981-crest__glyph {
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--sh981-tint-moss-deep);
}

.sh981-crest__word {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--sh981-tint-graphite);
}

.sh981-crest__word span {
  font-weight: 400;
  color: var(--sh981-tint-moss);
}

.sh981-crest__sub {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

.sh981-roster {
  justify-self: end;
}

.sh981-roster__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh981-roster__link {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  color: var(--sh981-tint-graphite);
  font-size: 0.83rem;
  line-height: 1.3;
  text-decoration: none;
}

.sh981-roster__link:hover,
.sh981-roster__link[aria-current="page"] {
  color: var(--sh981-tint-clay-deep);
  border-bottom-color: var(--sh981-tint-clay);
}

.sh981-roster__num {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--sh981-tint-clay);
}

/* shared page pieces */

.sh981-main {
  padding-top: clamp(1.8rem, 4.5vw, 3.6rem);
}

.sh981-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.95rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sh981-tint-clay-deep);
}

.sh981-kicker::before {
  content: "";
  display: block;
  width: 2.1rem;
  height: 2px;
  flex: none;
  background: var(--sh981-tint-clay);
}

.sh981-title {
  max-width: 16ch;
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sh981-title em {
  font-style: normal;
  color: var(--sh981-tint-moss);
}

.sh981-lead {
  max-width: 58ch;
  margin: 0 0 1.25rem;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.62;
  color: var(--sh981-tint-slate);
}

.sh981-prose {
  max-width: 67ch;
}

.sh981-prose p {
  margin: 0 0 1rem;
}

.sh981-prose p:last-child {
  margin-bottom: 0;
}

.sh981-prose--wide {
  max-width: none;
}

.sh981-chapter {
  padding: clamp(2.4rem, 5.5vw, 4.2rem) 0;
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-chapter--tight {
  padding-top: clamp(1.5rem, 3vw, 2.2rem);
}

.sh981-chapter__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 1.3rem;
}

.sh981-chapter__head h2 {
  margin-bottom: 0;
}

.sh981-chapter__mark {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
  text-align: right;
}

.sh981-stamp {
  display: inline-block;
  border: 2px solid var(--sh981-tint-clay);
  padding: 0.28rem 0.5rem;
  color: var(--sh981-tint-clay-deep);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
  transform: rotate(-2.4deg);
}

.sh981-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.sh981-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--sh981-tint-moss-deep);
  border-radius: 0;
  background: var(--sh981-tint-chalk);
  color: var(--sh981-tint-moss-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--sh981-ease), color var(--sh981-ease),
    border-color var(--sh981-ease);
}

.sh981-tab::after {
  content: "\2192";
  font-weight: 400;
}

.sh981-tab:hover {
  background: var(--sh981-tint-moss-deep);
  color: var(--sh981-tint-chalk);
  text-decoration: none;
}

.sh981-tab--solid {
  background: var(--sh981-tint-moss-deep);
  color: var(--sh981-tint-chalk);
}

.sh981-tab--solid:hover {
  background: var(--sh981-tint-clay-deep);
  border-color: var(--sh981-tint-clay-deep);
  color: var(--sh981-tint-chalk);
}

.sh981-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  color: var(--sh981-tint-moss-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sh981-facts li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.sh981-facts li + li::before {
  content: "/";
  color: var(--sh981-tint-rule-dark);
  font-weight: 400;
}

/* opening spread */

.sh981-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: start;
  padding-bottom: clamp(2.4rem, 6vw, 4.6rem);
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-opening__plate {
  position: relative;
  padding: 0.8rem;
  background: var(--sh981-tint-chalk);
  border: 1px solid var(--sh981-tint-rule-dark);
  box-shadow: var(--sh981-plate-lift);
}

.sh981-opening__plate::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--sh981-tint-rule);
  pointer-events: none;
}

.sh981-opening__svg {
  display: block;
  width: 100%;
  height: auto;
}

.sh981-opening__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.2rem 0;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

.sh981-opening__caption .sh981-stamp {
  flex: none;
}

/* ledger index */

.sh981-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-entry {
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-entry__link {
  display: grid;
  grid-template-columns: 3.2rem minmax(9rem, 0.8fr) minmax(0, 1.4fr) 1.8rem;
  grid-template-areas: "num name desc arrow";
  gap: 0.3rem 1rem;
  align-items: start;
  padding: 1.05rem 0.2rem;
  color: inherit;
  text-decoration: none;
  transition: background var(--sh981-ease), padding var(--sh981-ease);
}

.sh981-entry__link:hover {
  padding-left: 0.7rem;
  background: var(--sh981-tint-vellum-pale);
  color: inherit;
}

.sh981-entry__num {
  grid-area: num;
  padding-top: 0.28rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sh981-tint-clay-deep);
}

.sh981-entry__name {
  grid-area: name;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sh981-tint-graphite);
}

.sh981-entry__desc {
  grid-area: desc;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sh981-tint-slate);
}

.sh981-entry__arrow {
  grid-area: arrow;
  justify-self: end;
  color: var(--sh981-tint-moss);
  font-size: 1.05rem;
  line-height: 1.3;
}

.sh981-entry__link:hover .sh981-entry__name {
  color: var(--sh981-tint-clay-deep);
}

/* record grid */

.sh981-record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
  border-left: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-record__item {
  display: grid;
  grid-template-columns: 3.9rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  border-right: var(--sh981-hairline) solid var(--sh981-tint-rule);
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-record__year {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sh981-tint-clay-deep);
}

.sh981-record__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--sh981-tint-slate);
}

.sh981-record__body strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--sh981-tint-graphite);
  font-size: 0.94rem;
  line-height: 1.4;
}

/* principles */

.sh981-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-notes__item {
  padding: 1.15rem 1.2rem 1.2rem 0;
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-notes__item + .sh981-notes__item {
  padding-left: 1.2rem;
  border-left: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-notes__item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sh981-tint-slate);
}

.sh981-notes__num {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sh981-tint-clay-deep);
}

/* closing band */

.sh981-closing {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.2rem) 0;
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-closing--flush {
  padding-bottom: 0;
  border-bottom: 0;
}

.sh981-closing h2 {
  max-width: 26ch;
  margin-bottom: 0.5rem;
}

.sh981-closing p {
  margin: 0;
  color: var(--sh981-tint-slate);
}

/* inner folio */

.sh981-folio {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(2rem, 4.5vw, 3.2rem);
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-folio__index {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--sh981-tint-folio);
}

.sh981-folio__body {
  padding-left: clamp(0.9rem, 2.4vw, 1.8rem);
  border-left: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-folio__body .sh981-title {
  max-width: 20ch;
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

.sh981-folio__body .sh981-lead {
  max-width: 62ch;
  margin-bottom: 0;
}

/* two column spread */

.sh981-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 4vw, 3.8rem);
}

.sh981-spread__aside {
  align-self: start;
  padding-top: 0.2rem;
}

.sh981-spread__aside h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.sh981-spread__aside p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--sh981-tint-slate);
}

/* specimen list */

.sh981-specimen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.2rem 0 0;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
  border-left: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-specimen__pair {
  padding: 0.85rem 0.95rem;
  border-right: var(--sh981-hairline) solid var(--sh981-tint-rule);
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-specimen dt {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

.sh981-specimen dd {
  margin: 0.25rem 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sh981-tint-graphite);
}

/* external shelf */

.sh981-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-shelf__item {
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-shelf__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
  text-decoration: none;
}

.sh981-shelf__link::after {
  content: "off site";
  flex: none;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

.sh981-shelf__link:hover::after {
  color: var(--sh981-tint-clay-deep);
}

.sh981-shelf-caption {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--sh981-tint-slate);
}

/* translation checklist */

.sh981-checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-checklist li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.8rem;
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--sh981-tint-slate);
}

.sh981-checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.05rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 1px solid var(--sh981-tint-clay);
  transform: rotate(45deg);
}

/* talks ledger */

.sh981-talks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-talk {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: 0.4rem 1.3rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-talk__year {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sh981-tint-clay-deep);
  padding-top: 0.15rem;
}

.sh981-talk__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.sh981-talk__place {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--sh981-tint-slate);
}

.sh981-talk__file {
  align-self: center;
}

.sh981-talk__file a {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--sh981-tint-rule-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.sh981-talk__file a:hover {
  border-color: var(--sh981-tint-clay);
  background: var(--sh981-tint-chalk);
}

/* visual studies */

.sh981-studies {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.sh981-study {
  grid-column: span 6;
  margin: 0;
  padding: 0.5rem;
  background: var(--sh981-tint-chalk);
  border: 1px solid var(--sh981-tint-rule-dark);
}

.sh981-study:nth-child(1),
.sh981-study:nth-child(4) {
  grid-column: span 7;
}

.sh981-study:nth-child(2),
.sh981-study:nth-child(3) {
  grid-column: span 5;
}

.sh981-study svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--sh981-tint-vellum-deep);
}

.sh981-study figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.15rem 0.1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

.sh981-study figcaption span:last-child {
  text-align: right;
  color: var(--sh981-tint-clay-deep);
}

/* score plate */

.sh981-score {
  margin: 1.2rem 0 0;
  padding: 1rem;
  background: var(--sh981-tint-chalk);
  border: 1px solid var(--sh981-tint-rule-dark);
  box-shadow: var(--sh981-plate-lift);
}

.sh981-score svg {
  display: block;
  width: 100%;
  height: auto;
}

.sh981-score figcaption {
  padding-top: 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

/* contact form */

.sh981-contact {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
}

.sh981-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
  margin-top: 1.2rem;
}

.sh981-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sh981-field--wide {
  grid-column: 1 / -1;
}

.sh981-field label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sh981-tint-moss-deep);
}

.sh981-field input,
.sh981-field select,
.sh981-field textarea {
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--sh981-tint-rule-dark);
  border-radius: 0;
  background: var(--sh981-tint-chalk);
  color: var(--sh981-tint-graphite);
  font-family: var(--sh981-font);
  font-size: 0.94rem;
  line-height: 1.5;
}

.sh981-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.sh981-field input:focus,
.sh981-field select:focus,
.sh981-field textarea:focus {
  border-color: var(--sh981-tint-clay);
  outline: 2px solid var(--sh981-tint-clay);
  outline-offset: 1px;
}

.sh981-field__hint {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--sh981-tint-slate);
}

.sh981-field__error {
  min-height: 1.1em;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sh981-tint-clay-deep);
}

.sh981-field [aria-invalid="true"] {
  border-color: var(--sh981-tint-clay);
  background: #fdf2ed;
}

.sh981-form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 0.2rem;
}

.sh981-form__status {
  flex: 1 1 18rem;
  min-height: 1.3em;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--sh981-tint-moss-deep);
}

.sh981-form__link {
  font-weight: 700;
}

.sh981-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sh981-form button.sh981-tab {
  cursor: pointer;
  font-family: var(--sh981-font);
}

/* colophon */

.sh981-colophon {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: 1.4rem 0 2.2rem;
  border-top: 3px double var(--sh981-tint-rule-dark);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1.2rem 2.5rem;
}

.sh981-colophon__identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sh981-colophon__glyph {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--sh981-tint-moss);
}

.sh981-colophon__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.sh981-colophon__place {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

.sh981-colophon__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
}

.sh981-colophon__end {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sh981-tint-slate);
}

/* simple bulletin for the 404 file */

.sh981-bulletin {
  max-width: 64ch;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.sh981-bulletin .sh981-title {
  max-width: 20ch;
}

/* left hand dossier layout */

@media (min-width: 1280px) {
  .sh981-frame {
    display: grid;
    grid-template-columns: clamp(15rem, 17vw, 19rem) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
  }

  .sh981-crest {
    position: sticky;
    top: 1.25rem;
    grid-column: 1;
    grid-row: 1;
    display: block;
    align-self: start;
    padding: 2.4rem 1.6rem 2.4rem 0;
    border-right: var(--sh981-hairline) solid var(--sh981-tint-rule);
    border-bottom: 0;
  }

  .sh981-crest__link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    align-items: start;
  }

  .sh981-crest__glyph {
    width: 56px;
    height: 56px;
  }

  .sh981-crest__word {
    font-size: 2rem;
    line-height: 0.9;
  }

  .sh981-crest__sub {
    margin-top: 0.3rem;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

  .sh981-roster {
    margin-top: 2.4rem;
    justify-self: stretch;
  }

  .sh981-roster__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    justify-content: stretch;
    border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
  }

  .sh981-roster__link {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: baseline;
    padding: 0.72rem 0;
    border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
    font-size: 0.92rem;
    transition: padding var(--sh981-ease), background var(--sh981-ease),
      color var(--sh981-ease), border-color var(--sh981-ease);
  }

  .sh981-roster__link:hover {
    padding-left: 0.4rem;
    background: var(--sh981-tint-vellum-pale);
  }

  .sh981-roster__link[aria-current="page"] {
    padding-left: 0.4rem;
    color: var(--sh981-tint-clay-deep);
    border-bottom-color: var(--sh981-tint-clay);
    box-shadow: inset 2px 0 0 var(--sh981-tint-clay);
  }

  .sh981-roster__num {
    padding-top: 0;
    font-size: 0.58rem;
  }

  .sh981-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .sh981-colophon {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }
}

/* width adjustments */

@media (max-width: 960px) {
  .sh981-opening {
    grid-template-columns: 1fr;
  }

  .sh981-opening__plate {
    max-width: 34rem;
    margin: 0 auto;
  }

  .sh981-spread {
    grid-template-columns: 1fr;
  }

  .sh981-spread__aside {
    padding-bottom: 0.4rem;
    border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
  }

  .sh981-notes {
    grid-template-columns: 1fr;
  }

  .sh981-notes__item + .sh981-notes__item {
    padding-left: 0;
    border-left: 0;
  }

  .sh981-colophon {
    grid-template-columns: 1fr;
  }

  .sh981-colophon__links {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .sh981-crest {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    align-items: start;
  }

  .sh981-roster {
    justify-self: stretch;
  }

  .sh981-roster__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0 1.2rem;
    padding-top: 0.55rem;
    border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
  }

  .sh981-roster__link {
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: var(--sh981-hairline) solid var(--sh981-tint-rule);
  }

  .sh981-folio {
    grid-template-columns: 1fr;
  }

  .sh981-folio__body {
    padding-left: 0;
    padding-top: 0.9rem;
    border-left: 0;
    border-top: var(--sh981-hairline) solid var(--sh981-tint-rule);
  }

  .sh981-record {
    grid-template-columns: 1fr;
  }

  .sh981-entry__link {
    grid-template-columns: 2.3rem minmax(0, 1fr) 1.4rem;
    grid-template-areas:
      "num name arrow"
      ". desc desc";
    gap: 0.2rem 0.8rem;
  }

  .sh981-entry__num {
    padding-top: 0.2rem;
  }

  .sh981-entry__desc {
    padding-top: 0.15rem;
    padding-bottom: 0.2rem;
  }

  .sh981-closing {
    grid-template-columns: 1fr;
  }

  .sh981-closing .sh981-actions {
    margin-top: 0;
  }

  .sh981-shelf {
    grid-template-columns: 1fr;
  }

  .sh981-study,
  .sh981-study:nth-child(1),
  .sh981-study:nth-child(2),
  .sh981-study:nth-child(3),
  .sh981-study:nth-child(4) {
    grid-column: span 12;
  }

  .sh981-talk {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.35rem 0.9rem;
  }

  .sh981-talk__file {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.35rem;
  }

  .sh981-form {
    grid-template-columns: 1fr;
  }

  .sh981-field--wide,
  .sh981-form__foot {
    grid-column: 1;
  }
}

@media (max-width: 540px) {
  .sh981-rail__inner {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .sh981-rail__inner p:nth-child(2) {
    display: none;
  }

  .sh981-crest__glyph {
    width: 38px;
    height: 38px;
  }

  .sh981-crest__word {
    font-size: 1.3rem;
  }

  .sh981-title {
    font-size: clamp(2rem, 10.5vw, 2.7rem);
  }

  .sh981-folio__index {
    font-size: 2.2rem;
  }

  .sh981-chapter__head {
    grid-template-columns: 1fr;
  }

  .sh981-chapter__mark {
    text-align: left;
  }

  .sh981-facts {
    display: grid;
    gap: 0.2rem;
  }

  .sh981-facts li {
    gap: 0.6rem;
  }

  .sh981-facts li + li::before {
    display: none;
  }

  .sh981-record__item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .sh981-specimen {
    grid-template-columns: 1fr;
  }

  .sh981-study figcaption {
    display: block;
  }

  .sh981-study figcaption span {
    display: block;
  }

  .sh981-study figcaption span:last-child {
    margin-top: 0.15rem;
    text-align: left;
  }

  .sh981-colophon__end {
    display: block;
  }

  .sh981-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sh981-tab {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .sh981-rail,
  .sh981-roster,
  .sh981-actions,
  .sh981-form,
  .sh981-skip {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .sh981-frame {
    max-width: none;
    padding: 0;
  }

  a {
    color: #000;
  }
}
