@font-face {
  font-family: "Styrene A Web";
  src: url("assets/fonts/StyreneAWeb-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Styrene A Web";
  src: url("assets/fonts/StyreneAWeb-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Styrene A Web";
  src: url("assets/fonts/StyreneAWeb-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --page: #f8f8f8;
  --ink: #000000;
  --cloud-hover: #a9cfa3;
  --platform-hover: #a58672;
  --amazon-hover: #1d345d;
  --litres-hover: #f26a2e;
  --scale: 1;
  --yscale: 1;
  --font: "Styrene A Web", Styrene, Graphik, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 1px 1px;
}

a:hover,
a:focus-visible {
  color: rgba(0, 0, 0, 0.78);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.book-rail {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1;
  width: calc(410px * var(--scale));
  height: 100vh;
  pointer-events: none;
}

.book-cover {
  position: fixed;
  top: calc(129px * var(--scale));
  left: calc(123px * var(--scale));
  width: calc(286px * var(--scale));
  height: calc(395px * var(--scale));
  display: block;
}

.reading-time {
  position: fixed;
  left: calc(123px * var(--scale));
  bottom: calc(53px * var(--scale));
  margin: 0;
  font-size: calc(10px * var(--scale));
  line-height: calc(12px * var(--scale));
  font-weight: 400;
  letter-spacing: 0;
}

.content {
  position: relative;
  z-index: 2;
  width: calc(464px * var(--scale));
  margin-left: calc(522px * var(--scale));
  padding-top: calc(29px * var(--scale));
  padding-bottom: calc(170px * var(--yscale));
}

.intro {
  min-height: calc(144px * var(--yscale));
}

.intro p {
  margin: 0;
  font-size: calc(18px * var(--scale));
  line-height: calc(24px * var(--scale));
  font-weight: 400;
  letter-spacing: 0;
}

.section {
  margin: 0;
}

.download-section {
  margin-top: calc(47px * var(--yscale));
}

h1,
h2 {
  margin: 0;
  font-size: calc(18px * var(--scale));
  line-height: calc(24px * var(--scale));
  font-weight: 700;
  letter-spacing: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: calc(142px * var(--scale)) calc(252px * var(--scale));
  column-gap: calc(40px * var(--scale));
  margin-top: calc(10px * var(--yscale));
}

.label {
  margin: 0 0 calc(5px * var(--yscale));
  font-size: calc(10px * var(--scale));
  line-height: calc(12px * var(--yscale));
  font-weight: 400;
  letter-spacing: 0;
}

.buttons {
  display: flex;
  gap: calc(8px * var(--scale));
  align-items: flex-start;
}

.site-button {
  width: calc(66px * var(--scale));
  height: calc(39px * var(--yscale));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: calc(2px * var(--scale)) solid var(--ink);
  border-radius: calc(5px * var(--scale));
  background: transparent;
  background-image: none;
  color: var(--ink);
  font-size: calc(10px * var(--scale));
  line-height: 1;
  font-weight: 400;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.platform-button {
  width: calc(80px * var(--scale));
}

.litres-button {
  width: calc(77px * var(--scale));
}

.file-button:hover,
.file-button:focus-visible {
  border-color: var(--cloud-hover);
  background-color: var(--cloud-hover);
  color: #ffffff;
}

.platform-button:hover,
.platform-button:focus-visible {
  border-color: var(--platform-hover);
  background-color: var(--platform-hover);
  color: #ffffff;
}

.amazon-button:hover,
.amazon-button:focus-visible {
  border-color: var(--amazon-hover);
  background-color: var(--amazon-hover);
}

.litres-button:hover,
.litres-button:focus-visible {
  border-color: var(--litres-hover);
  background-color: var(--litres-hover);
}

.support-section {
  margin-top: calc(49px * var(--yscale));
  width: calc(349px * var(--scale));
}

.support-section p,
.contact-section p {
  margin: calc(13px * var(--yscale)) 0 0;
  font-size: calc(10px * var(--scale));
  line-height: calc(12px * var(--yscale));
  font-weight: 400;
  letter-spacing: 0;
}

.contact-section {
  margin-top: calc(51px * var(--yscale));
  width: calc(349px * var(--scale));
}

.strong-link {
  font-weight: 700;
}

@media (max-width: 760px) {
  :root {
    --scale: 1;
    --yscale: 1;
  }

  body {
    min-height: 100vh;
  }

  .book-rail {
    position: static;
    width: auto;
    height: auto;
    padding: 34px 28px 0;
    pointer-events: auto;
  }

  .book-cover {
    position: static;
    width: min(100%, 286px);
    height: auto;
  }

  .reading-time {
    position: static;
    margin-top: 28px;
    font-size: 14px;
    line-height: 18px;
  }

  .content {
    width: auto;
    max-width: 520px;
    margin: 42px 28px 0;
    padding: 0 0 64px;
  }

  .intro {
    min-height: 0;
  }

  .intro p {
    font-size: 25px;
    line-height: 31px;
  }

  .download-section {
    margin-top: 56px;
  }

  h1,
  h2 {
    font-size: 28px;
    line-height: 33px;
  }

  .download-grid {
    display: block;
    margin-top: 24px;
  }

  .button-group + .button-group {
    margin-top: 28px;
  }

  .label,
  .support-section p,
  .contact-section p {
    font-size: 17px;
    line-height: 22px;
  }

  .label {
    margin-bottom: 9px;
  }

  .buttons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-button,
  .platform-button,
  .litres-button {
    width: 112px;
    height: 66px;
    border-width: 3px;
    border-radius: 12px;
    font-size: 25px;
  }

  .platform-button {
    width: 136px;
  }

  .support-section,
  .contact-section {
    width: auto;
    margin-top: 64px;
  }

  .support-section p,
  .contact-section p {
    margin-top: 24px;
  }
}

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