/* Froynd, a board game café in Leipzig. One stylesheet for every page.
   Smoke blue ground, white type, lemon only for underlines, the today row and one
   stroke in the drawing. Didone speaks, the sans explains, mono annotates. */

:root {
  --ground: #44596A;
  --side: #3B4F5F;
  --text: #FFFFFF;
  --muted: #C9D4DC;
  --line: #7A8FA0;
  --accent: #F2E34B;

  --display: Didot, "Bodoni 72", "Bodoni MT", "Noto Serif Display", "Big Caslon", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --side-w: 280px;
  --gap: 72px;
  --right: 120px;
  --air: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.3rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}

p, li, dd, td {
  text-wrap: pretty;
}

ul, ol {
  padding: 0;
  list-style: none;
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ground);
}

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

.fy-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--ground);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
}

.fy-skip:focus {
  top: 12px;
}

.fy-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Text links: a 2px lemon underline that draws left to right on hover and focus. */
.fy-main p a,
.fy-main li a,
.fy-main dd a,
.fy-main td a,
.fy-link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0 2px, 100% 1px;
  padding-bottom: 2px;
  transition: background-size 220ms var(--ease);
}

.fy-main p a:hover,
.fy-main p a:focus-visible,
.fy-main li a:hover,
.fy-main li a:focus-visible,
.fy-main dd a:hover,
.fy-main dd a:focus-visible,
.fy-main td a:hover,
.fy-main td a:focus-visible,
.fy-link:hover,
.fy-link:focus-visible {
  background-size: 100% 2px, 100% 1px;
}

/* ---------- Shell: sidebar on wide screens, top bar on phones ---------- */

.fy-side {
  position: relative;
  z-index: 40;
  background: var(--side);
  border-bottom: 1px solid var(--line);
}

.fy-side-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 20px;
}

.fy-word {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.fy-side-nav,
.fy-side-today,
.fy-side-foot {
  display: none;
}

.fy-side-list li + li {
  border-top: 1px solid var(--line);
}

.fy-side-link {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: baseline;
  padding: 12px 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 200ms ease;
}

.fy-side-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.fy-side-label {
  justify-self: start;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  padding-bottom: 3px;
  transition: background-size 220ms var(--ease);
}

.fy-side-link:hover,
.fy-side-link[aria-current="page"] {
  color: var(--text);
}

.fy-side-link:hover .fy-side-label,
.fy-side-link:focus-visible .fy-side-label,
.fy-side-link[aria-current="page"] .fy-side-label {
  background-size: 100% 2px;
}

/* Phone menu on details and summary. */
.fy-menu {
  position: static;
}

.fy-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.fy-menu-btn::-webkit-details-marker {
  display: none;
}

.fy-menu-btn::marker {
  content: "";
}

.fy-menu-bars {
  position: relative;
  width: 18px;
  height: 8px;
}

.fy-menu-bars::before,
.fy-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms var(--ease), top 180ms var(--ease);
}

.fy-menu-bars::before {
  top: 0;
}

.fy-menu-bars::after {
  top: 6.5px;
}

.fy-menu[open]:not(.is-closing) .fy-menu-bars::before {
  top: 3.25px;
  transform: rotate(45deg);
}

.fy-menu[open]:not(.is-closing) .fy-menu-bars::after {
  top: 3.25px;
  transform: rotate(-45deg);
}

.fy-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 8px 20px 22px;
  background: var(--side);
  border-bottom: 1px solid var(--line);
}

.fy-menu-panel::before {
  content: "";
  display: block;
  height: 2px;
  margin-bottom: 8px;
  background: var(--accent);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .fy-menu[open] .fy-menu-panel {
    animation: fy-menu-in 180ms var(--ease) both;
  }

  .fy-menu[open] .fy-menu-panel::before {
    animation: fy-rule-in 180ms var(--ease) both;
  }

  .fy-menu.is-closing .fy-menu-panel {
    animation: fy-menu-out 180ms var(--ease) both;
  }
}

@keyframes fy-menu-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes fy-menu-out {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 100% 0); }
}

@keyframes fy-rule-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.fy-menu-list li + li {
  border-top: 1px solid var(--line);
}

.fy-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
}

.fy-menu-link[aria-current="page"] {
  color: var(--muted);
}

.fy-menu-mail {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.fy-chev {
  flex: none;
  width: 0.55em;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1000px) {
  .fy-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--side-w);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }

  .fy-side-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 100%;
    padding: 40px 32px 32px;
  }

  .fy-word {
    font-size: 2.6rem;
    margin-bottom: 8px;
  }

  .fy-side-tag {
    display: block;
    margin-bottom: 48px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
  }

  .fy-side-nav {
    display: block;
  }

  .fy-side-list {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .fy-side-today {
    display: block;
    margin-top: 32px;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--muted);
  }

  .fy-side-today strong {
    display: block;
    color: var(--text);
    font-weight: 400;
  }

  .fy-side-foot {
    display: block;
    margin-top: auto;
    padding-top: 32px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
  }

  .fy-side-foot a {
    color: var(--text);
  }

  .fy-menu {
    display: none;
  }

  .fy-page {
    margin-left: var(--side-w);
  }
}

@media (max-width: 999px) {
  .fy-side-tag {
    display: none;
  }
}

/* ---------- Content column ---------- */

.fy-main,
.fy-foot-inner {
  padding: 0 20px;
}

@media (min-width: 1000px) {
  .fy-main,
  .fy-foot-inner {
    padding: 0 var(--right) 0 var(--gap);
  }
}

.fy-section {
  padding-top: var(--air);
}

.fy-kicker,
.fy-mono,
.fy-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fy-cap {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.fy-h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  padding-bottom: 14px;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.05;
}

/* The lemon rule under each heading. Drawn at rest; the script only replays it. */
.fy-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
}

.fy-js .fy-h2.is-waiting::after {
  transform: scaleX(0);
}

.fy-h2.is-drawn::after {
  transition: transform 520ms var(--ease);
}

.fy-h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.fy-lead {
  max-width: 34em;
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  line-height: 1.45;
}

.fy-prose > p {
  max-width: 34em;
}

.fy-prose > * + * {
  margin-top: 1em;
}

/* ---------- Hero ---------- */

.fy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
}

.fy-hero-statement {
  margin: 18px 0 28px;
  font-size: clamp(3.4rem, 7.6vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.fy-hero-line {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.fy-hero-fig {
  min-width: 0;
}

@media (min-width: 1000px) {
  .fy-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 48px;
    min-height: calc(100vh - 40px);
    min-height: calc(100svh - 40px);
    padding-top: 56px;
  }

  .fy-hero-statement {
    font-size: clamp(3.4rem, 6vw, 7.5rem);
  }

  .fy-hero-fig svg {
    max-height: calc(100svh - 120px);
    margin-inline: auto;
  }
}

/* ---------- Inner page opening ---------- */

.fy-opening {
  padding-top: clamp(40px, 6vw, 96px);
}

.fy-page-title {
  margin: 16px 0 24px;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.98;
}

/* ---------- The drawing ---------- */

.fy-draw .fy-ln {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.fy-draw .fy-ln--lemon {
  stroke: var(--accent);
  stroke-width: 1.5;
}

.fy-draw .fy-ln--dash {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.fy-draw .fy-ln--fine {
  stroke: var(--muted);
  stroke-width: 0.75;
}

.fy-draw .fy-leader {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.fy-draw .fy-dot {
  fill: var(--muted);
}

.fy-draw .fy-label {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.fy-draw .fy-label-n {
  fill: var(--muted);
}

.fy-draw .fy-chip {
  display: none;
}

.fy-draw .fy-chip circle {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.fy-draw .fy-chip text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 22px;
  text-anchor: middle;
  dominant-baseline: central;
}

.fy-legend {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.fy-legend b {
  color: var(--text);
  font-weight: 400;
  margin-right: 6px;
}

@media (max-width: 719px) {
  .fy-draw .fy-callout-label {
    display: none;
  }

  .fy-draw .fy-chip {
    display: inline;
  }

  .fy-legend {
    display: grid;
  }

  .fy-hero-fig svg {
    max-height: 420px;
    margin-inline: auto;
  }
}

/* ---------- The three questions ---------- */

.fy-qs {
  border-top: 1px solid var(--line);
}

.fy-q {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 36px 0 34px;
  border-bottom: 1px solid var(--line);
}

.fy-q-num {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 4px;
}

.fy-js .fy-q-num.is-waiting {
  background-size: 0 2px;
}

.fy-q-num.is-drawn {
  transition: background-size 420ms var(--ease);
}

.fy-q-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.fy-q-answer {
  max-width: 30em;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.45;
}

@media (min-width: 1100px) {
  .fy-q {
    grid-template-columns: 4rem minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 32px;
    align-items: baseline;
  }

  .fy-q-num {
    grid-row: 1 / span 2;
  }

  .fy-q-answer,
  .fy-q .fy-cap {
    grid-column: 3;
  }

  .fy-q-title {
    grid-row: 1 / span 2;
  }
}

/* ---------- Numbered steps ---------- */

.fy-steps {
  counter-reset: fy-step;
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.fy-step {
  counter-increment: fy-step;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 4px 20px;
  padding: 22px 0 21px;
  border-bottom: 1px solid var(--line);
}

.fy-step::before {
  content: counter(fy-step, decimal-leading-zero);
  grid-row: 1 / span 3;
  padding-top: 0.6em;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
}

.fy-step-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.1;
}

.fy-step p {
  max-width: 34em;
}

/* The count on the library page: numbers draw an underline in sequence. */
.fy-count .fy-step::before {
  justify-self: start;
  height: max-content;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 4px;
}

.fy-js .fy-count .fy-step.is-waiting::before {
  background-size: 0 2px;
}

.fy-count .fy-step.is-drawn::before {
  transition: background-size 420ms var(--ease);
}

/* ---------- Ruled lists ---------- */

.fy-rule-list {
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.fy-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 28px;
  padding: 18px 0 17px;
  border-bottom: 1px solid var(--line);
}

.fy-rule-k {
  min-width: 0;
}

.fy-rule-v {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.fy-rule-row .fy-cap {
  grid-column: 1 / -1;
  margin-top: 0;
}

.fy-plain-list {
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.fy-plain-list li {
  position: relative;
  padding: 16px 0 15px 28px;
  border-bottom: 1px solid var(--line);
}

.fy-plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3em;
  width: 14px;
  height: 1px;
  background: var(--muted);
}

/* ---------- Nights ---------- */

.fy-nights {
  border-top: 1px solid var(--line);
  max-width: 60rem;
}

.fy-night {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 28px;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.fy-night-name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.fy-night-meta {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .fy-night {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
  }
}

.fy-night-block + .fy-night-block {
  margin-top: var(--air);
}

/* ---------- Hours ---------- */

.fy-hours {
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.fy-hours-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 0 13px 18px;
  border-bottom: 1px solid var(--line);
}

.fy-hours-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: transparent;
}

.fy-hours-row.is-today::before {
  background: var(--accent);
}

.fy-hours-day {
  min-width: 0;
}

.fy-hours-time {
  font-family: var(--mono);
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
}

.fy-hours-today {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Mira's note ---------- */

.fy-note {
  max-width: 44rem;
  padding: 28px 0 0 28px;
  border-left: 2px solid var(--accent);
}

.fy-note p + p {
  margin-top: 0.9em;
}

.fy-sign {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.fy-voice {
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  line-height: 1.6;
  max-width: 36em;
}

/* ---------- Shelf map ---------- */

.fy-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.fy-filter {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.fy-filter:hover,
.fy-filter[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
}

.fy-shelf-wrap {
  max-width: 64rem;
  overflow-x: auto;
}

.fy-shelf {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.fy-shelf th {
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}

.fy-shelf td {
  padding: 14px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.fy-shelf td:first-child {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.fy-shelf .fy-shelf-n {
  font-family: var(--mono);
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.fy-shelf th.fy-shelf-n {
  text-align: right;
}

.fy-shelf tr[hidden] {
  display: none;
}

@media (max-width: 719px) {
  .fy-shelf thead {
    display: none;
  }

  .fy-shelf tr {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 14px 0 13px;
    border-bottom: 1px solid var(--line);
  }

  .fy-shelf td {
    padding: 0;
    border: 0;
  }

  .fy-shelf td:first-child {
    grid-row: 1 / span 3;
  }

  .fy-shelf .fy-shelf-what {
    grid-column: 2;
  }

  .fy-shelf .fy-shelf-players,
  .fy-shelf .fy-shelf-length {
    grid-column: 2;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
  }

  .fy-shelf .fy-shelf-n {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ---------- Count section with the large drawing ---------- */

.fy-count-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 1200px) {
  .fy-count-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .fy-count-fig {
    position: sticky;
    top: 40px;
  }
}

/* ---------- Contact ---------- */

.fy-mail {
  display: inline-block;
  max-width: 100%;
  margin: 12px 0 20px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0 3px, 100% 1px;
  padding-bottom: 8px;
  transition: background-size 320ms var(--ease);
}

.fy-mail:hover,
.fy-mail:focus-visible {
  background-size: 100% 3px, 100% 1px;
}

/* ---------- Next block ---------- */

.fy-next {
  padding-top: var(--air);
}

.fy-next-list {
  border-top: 1px solid var(--line);
  max-width: 60rem;
}

.fy-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 25px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}

.fy-next-text {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  padding-bottom: 4px;
  transition: background-size 220ms var(--ease);
}

.fy-next-link:hover .fy-next-text,
.fy-next-link:focus-visible .fy-next-text {
  background-size: 100% 2px;
}

.fy-next-link .fy-chev {
  width: 0.7rem;
  transition: transform 220ms var(--ease);
}

.fy-next-link:hover .fy-chev {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */

.fy-gap {
  margin-top: 32px;
}

.fy-foot-line {
  margin-top: 12px;
}


.fy-foot {
  margin-top: var(--air);
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
}

.fy-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.fy-foot-head {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fy-foot-list a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text);
  font-size: 1.05rem;
  text-decoration: none;
}

.fy-foot-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.fy-foot-list a[aria-current="page"] {
  color: var(--muted);
}

.fy-foot p {
  font-size: 1.05rem;
  color: var(--muted);
}

.fy-foot-mail {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
}

.fy-foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .fy-foot-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Reduced motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .fy-js .fy-h2.is-waiting::after {
    transform: none;
  }

  .fy-js .fy-q-num.is-waiting,
  .fy-js .fy-count .fy-step.is-waiting::before {
    background-size: 100% 2px;
  }
}

@media print {
  .fy-side,
  .fy-next {
    display: none !important;
  }

  .fy-page {
    margin-left: 0;
  }
}
