@font-face {
  font-family: Barlow;
  src: url(assets/barlow-condensed.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url(assets/source-sans-pro-regular.woff) format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url(assets/source-sans-pro-semibold.woff) format('woff');
  font-weight: 600 800;
  font-display: swap;
}
:root {
  --ink: #271c32;
  --dark: #201631;
  --paper: #eeeaf2;
  --sheet: #faf8f4;
  --muted: #615668;
  --line: #bdb3c3;
  --gold: #f8bf49;
  --berry: #aa2f62;
  --wrap: 1400px;
  --pad: clamp(20px, 5.4vw, 90px);
  font:
    18px/1.45 Source,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  background: none;
  border: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #bd3979;
  outline-offset: 4px;
}
.night a:focus-visible,
.night button:focus-visible {
  outline-color: var(--gold);
}
main:focus {
  outline: 0;
}
.skip {
  position: absolute;
  z-index: 10;
  left: 12px;
  top: -100px;
  padding: 10px;
  background: white;
}
.skip:focus {
  top: 8px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.03;
}
h1,
h2,
h3 {
  font-family: Barlow, 'Arial Narrow', sans-serif;
  font-weight: 600;
}
h1,
h2 {
  letter-spacing: -0.025em;
}
p {
  max-width: 70ch;
}
p + p {
  margin-top: 0.72em;
}
p a {
  font-weight: 600;
}
.wrap {
  max-width: var(--wrap);
  margin: auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: clamp(40px, 5vw, 80px);
}
.night {
  background: var(--dark);
  color: #faf6f6;
}
.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: clamp(435px, 37vw, 610px);
  overflow: hidden;
}
.hero-copy {
  padding: clamp(48px, 5.6vw, 97px) 24px clamp(44px, 5.3vw, 80px)
    max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  align-self: center;
}
.hero h1 {
  font-size: clamp(64px, 6.9vw, 112px);
  line-height: 0.91;
  letter-spacing: -0.035em;
  max-width: 10ch;
}
.hero p {
  color: #e7dfea;
  max-width: 36ch;
  margin: 23px 0;
  font-size: clamp(18px, 1.44vw, 23px);
  line-height: 1.35;
}
.hero-art {
  background: url(assets/jacquard.webp) 50% 52% / cover no-repeat;
  min-height: 100%;
  position: relative;
}
.hero-art:after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: repeating-linear-gradient(
    to bottom,
    #201631 0 2px,
    transparent 2px 5px
  );
  opacity: 0.85;
}
.actions {
  display: flex;
  gap: 14px 24px;
  align-items: center;
  flex-wrap: wrap;
}
.action,
.primary,
.quiet-action {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  min-height: 43px;
  line-height: 1.15;
}
.primary {
  padding: 11px 18px;
  background: var(--gold);
  color: #24162c;
  border: 1px solid transparent;
  border-radius: 2px;
}
.primary:hover {
  background: #ffd77a;
}
.quiet-action,
.action {
  border-bottom: 1px solid currentColor;
  min-height: 36px;
}
.quiet-action:hover,
.action:hover {
  border-bottom-width: 2px;
}
.fiber-icon {
  width: 24px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-title h2,
.section h2 {
  font-size: clamp(39px, 4.2vw, 66px);
}
.section-title p,
.deck {
  color: var(--muted);
  max-width: 60ch;
  font-size: 20px;
}
.section-title p {
  margin-top: 10px;
}
.thread-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(14px, 2vw, 34px);
}
.swatch-link {
  text-decoration: none;
  display: block;
  padding-bottom: 10px;
}
.swatch-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.weave {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(1px 3px 2px #37203f26);
}
.swatch-link .weave {
  aspect-ratio: 2.8;
  height: auto;
  object-fit: fill;
  transition: transform 0.2s ease;
}
.swatch-link:hover .weave {
  transform: translateY(-3px) rotate(-0.5deg);
}
.swatch-link h3 {
  font-size: clamp(23px, 2.1vw, 32px);
  margin: 9px 0 3px;
}
.swatch-link small,
.meta {
  font-size: 16px;
  color: var(--muted);
}
.invitation {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 92px);
}
.book-art {
  display: block;
  background: #dcd6e5 url(assets/ledger.webp) center / cover;
  aspect-ratio: 1.7;
  justify-self: stretch;
}
.invitation h2 {
  font-size: clamp(44px, 5vw, 78px);
}
.invitation p {
  margin: 16px 0 22px;
  font-size: 21px;
  color: var(--muted);
}
.white {
  background: #f8f6f7;
}
.chapter-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.chapter-menu a {
  padding-block: 16px;
  border-top: 2px solid #8d7d98;
  text-decoration: none;
}
.chapter-menu h3 {
  font-size: 32px;
  margin-bottom: 10px;
}
.chapter-menu p {
  color: var(--muted);
}
.theme-example {
  margin-block-end: 22px;
}
.read-head {
  padding-block: 34px 28px;
}
.read-head h1 {
  font-size: clamp(54px, 6vw, 94px);
  max-width: 20ch;
}
.read-head p {
  margin-top: 13px;
}
.reader {
  max-width: 1060px;
  padding-bottom: 65px;
}
.text-heading {
  font-size: clamp(32px, 3vw, 50px);
  margin: 26px 0 12px;
}
.read-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) 1.5fr;
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
}
.sample-board {
  padding: clamp(18px, 2.5vw, 42px);
  background: #dbd5e2;
  align-self: start;
}
.sample-board .weave {
  margin: 12px 0 22px;
}
.sample-board h2 {
  font-size: 30px;
}
.sample-board p {
  color: #52465c;
  margin: 8px 0 16px;
}
.sample-board .actions {
  gap: 8px 18px;
}
.story h2,
.field h3,
.reading-card h3 {
  font-size: clamp(28px, 3vw, 46px);
}
.story h2,
.story h3 {
  margin-bottom: 9px;
}
.story h3 {
  font-size: 26px;
}
.story p,
.field p,
.reading-card p {
  font-size: 20px;
  line-height: 1.48;
}
.story section + section,
.field + .field {
  margin-top: 23px;
}
.stage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-left: 3px solid var(--yarn, #a38369);
}
.stage-list li {
  padding: 0 0 24px 23px;
  position: relative;
}
.stage-list li:last-child {
  padding-bottom: 0;
}
.stage-list li:before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yarn, #a38369);
  position: absolute;
  left: -7px;
  top: 7px;
}
.stage-list h3 {
  font-size: 26px;
}
.source-row,
details.note {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.source-row h3 {
  font-size: 26px;
}
.source-row p {
  font-size: 18px;
  margin: 6px 0 12px;
}
.source-row a,
details.note a {
  font-weight: 600;
}
.page-end {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}
.control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  min-width: 0;
}
.control input,
.control select {
  font:
    400 18px/1.3 Source,
    sans-serif;
  background: #fcfafd;
  color: var(--ink);
  padding: 10px;
  border: 1px solid #877c90;
  border-radius: 2px;
  width: 100%;
  min-height: 44px;
}
.big-select {
  max-width: 620px;
  margin-bottom: 22px;
}
.swatch-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.swatch-nav .weave {
  height: clamp(70px, 9vw, 130px);
  object-fit: fill;
}
.swatch-nav h3 {
  font-size: 29px;
}
.swatch-nav small {
  display: block;
  margin-top: 10px;
}
.watch-title {
  font-size: 32px;
}
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 18px 0;
}
.reading-card {
  background: var(--sheet);
  padding: clamp(18px, 3vw, 36px);
}
.reading-card h3 {
  font-size: 29px;
  margin-bottom: 10px;
}
.reading-card.alternate {
  background: #e2dae8;
  border-left: 4px solid var(--berry);
}
.reading-card .weave {
  height: 52px;
  object-fit: fill;
  width: min(100%, 260px);
  margin-bottom: 14px;
}
.large-quote {
  border-left: 4px solid var(--yarn, var(--gold));
  padding: 2px 0 2px 18px;
  font-size: 23px;
  line-height: 1.35;
  margin: 19px 0;
}
.empty {
  padding: 25px 0;
  color: var(--muted);
}
.plain-list {
  padding-left: 22px;
}
.plain-list li + li {
  margin-top: 12px;
}
.face-back {
  animation: turnover 0.28s ease-out;
}
@keyframes turnover {
  from {
    opacity: 0.55;
    transform: perspective(600px) rotateY(-7deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.source-list {
  padding-left: 20px;
  margin: 10px 0 0;
}
.source-list li {
  margin: 5px 0;
}
.note summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
}
.note p {
  margin: 10px 0;
}
.button-line {
  padding: 6px 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.saved-list {
  list-style: none;
  padding: 0;
}
.saved-list li {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.hint {
  color: var(--muted);
  font-size: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
@media (min-width: 1550px) {
  .hero-copy {
    padding-right: 52px;
  }
  .hero-art {
    background-position: center 55%;
  }
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 50% 50%;
  }
  .thread-shelf {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .read-grid {
    grid-template-columns: 0.8fr 1.35fr;
  }
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 35px var(--pad) 30px;
  }
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(58px, 11vw, 78px);
  }
  .hero p {
    max-width: 44ch;
    margin: 15px 0 18px;
  }
  .hero-art {
    min-height: 0;
    height: clamp(160px, 40vw, 270px);
    background-position: 50% 55%;
  }
  .hero-art:after {
    display: none;
  }
  .thread-shelf,
  .swatch-nav,
  .chapter-menu {
    grid-template-columns: 1fr 1fr;
  }
  .section-title {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .section-title p,
  .deck {
    font-size: 18px;
  }
  .invitation,
  .read-grid,
  .panels {
    grid-template-columns: 1fr;
  }
  .book-art {
    order: 2;
  }
  .sample-board {
    margin-bottom: 8px;
  }
  .sample-board .weave {
    max-width: 300px;
  }
  .read-head {
    padding-top: 24px;
  }
  .chapter-menu a:last-child {
    grid-column: 1/-1;
  }
  .panels {
    gap: 12px;
  }
  .actions {
    gap: 10px 18px;
  }
  .swatch-nav h3 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.weave-study {
  position: relative;
  overflow: hidden;
}
.weave-study.appears {
  padding-right: 12%;
}
.weave-study.appears:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 20%;
  width: 18%;
  height: 3px;
  transform: rotate(-13deg);
  transform-origin: left;
  background: #3564af;
  box-shadow: 0 2px 0 #9bafd0;
}
.weave-study.appears.earlier:after {
  display: none;
}
.weave-study.reframes .weave {
  transform: rotate(-2deg) scale(0.96);
}
.weave-study.reframes.earlier .weave {
  transform: none;
}
.swatch-nav .weave-study {
  margin-bottom: 8px;
}
.sample-board .weave-study {
  margin: 8px 0 14px;
}
.thread-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 28px;
}
.thread-dates a {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-decoration: none;
  border-top: 3px solid var(--yarn);
  padding: 5px 0 0;
  max-width: 155px;
}
.thread-dates b {
  font:
    600 27px Barlow,
    sans-serif;
}
.thread-dates span {
  font-size: 15px;
  line-height: 1.15;
}
.thread-dates a:hover span {
  text-decoration: underline;
}
.read-head .deck {
  max-width: 70ch;
}
@media (prefers-reduced-motion: no-preference) {
  .sample-board .weave[data-face='back'] {
    animation: turnover 0.32s ease-out;
  }
}
