@font-face {
  font-family: "Americanus Italics";
  src: url("../fonts/americanus-italics.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: rgba(255, 255, 255, 0.9);
  font-family: Inter, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  border: 0;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

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

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 15px 20px 10px;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
}

.mark img {
  display: block;
  width: 24px;
  height: 34px;
  object-fit: contain;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.store:hover {
  background: rgba(255, 255, 255, 0.22);
}

.store.stroke {
  background: transparent;
  border-color: transparent;
  box-shadow: inset 0 0 0 0.5px #ede9e2;
}

.store.stroke:hover {
  background: rgba(255, 255, 255, 0.15);
}

.store svg {
  display: block;
  width: 15px;
  height: 18px;
  flex: none;
}

.bar-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.bar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}

.bar-link:hover,
.bar-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
}

.library {
  width: min(1000px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 112px 20px 64px;
}

.library h1 {
  max-width: 640px;
  margin: 0 0 20px;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
}

.works {
  max-width: 640px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.works li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 4px;
  align-items: baseline;
  min-height: 44px;
  padding: 16px 0;
  text-align: left;
  text-decoration: none;
}

.work-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.work:hover .work-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-author,
.work-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 20px;
}

.work-author {
  text-align: right;
  white-space: nowrap;
}

.work-note {
  grid-column: 1 / -1;
}

.policy {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 112px 20px 64px;
}

.policy h1 {
  max-width: 640px;
  margin: 0 0 8px;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
}

.policy .meta {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 20px;
}

.policy-body {
  max-width: 640px;
}

.policy-body h2 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.policy-body p,
.policy-body li {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 24px;
}

.policy-body ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.policy-body strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.policy-body a {
  color: rgba(255, 255, 255, 0.9);
}

.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.home .hero {
  flex: 1;
  min-height: 0;
  padding-top: 72px;
}

.home .hero-copy {
  padding: 0 20px;
}

.home .hero-text {
  min-height: 0;
}

.home .site-footer {
  padding-top: 24px;
  padding-bottom: 8px;
}

.home .footer-main {
  gap: 16px;
  padding-bottom: 4px;
}

.hero-short {
  min-height: 75vh;
}

.lightray {
  position: absolute;
  top: 0;
  left: 0;
  width: 779px;
  height: 485px;
  overflow: hidden;
  pointer-events: none;
}

.lightray svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1000px, 100%);
  padding: 170px 20px 60px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  width: 100%;
  text-align: center;
}

h1 {
  margin: 0;
  max-width: 730px;
  font-family: "Americanus Italics", "Times New Roman", serif;
  font-size: 60px;
  font-weight: 400;
  font-style: normal;
  line-height: 72px;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.9);
}

.lede {
  max-width: 540px;
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.6);
}

.redirect {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-size: 62px;
  line-height: 72px;
}

.hero-copy-app {
  gap: 35px;
  padding: 80px 20px 60px;
}

.site-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding: 40px 0 10px;
}

.footer-main {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-bottom: 40px;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-copy {
  width: 320px;
  flex: none;
}

.newsletter-copy h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-copy p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.only-narrow {
  display: none;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  width: 400px;
  flex: none;
}

.newsletter-fields {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field {
  flex: 1 1 auto;
  min-width: 0;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font: 400 14px/1.2 Inter, sans-serif;
}

.field input::placeholder {
  color: #999;
}

.newsletter-form button {
  flex: none;
  min-width: 100px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #272727;
  color: rgba(255, 255, 255, 0.9);
  font: 500 14px/20px Inter, sans-serif;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #333;
}

.newsletter-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.newsletter-status {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1199px) {
  .hero {
    min-height: 0;
  }

  .hero-copy {
    min-height: 100vh;
    padding: 140px 20px 80px;
  }

  .hero-text {
    gap: 32px;
  }

  h1 {
    line-height: 60px;
  }

  .lede {
    font-size: 18px;
    line-height: 26px;
  }

  .hero-short {
    min-height: 0;
  }

  .hero-copy-app {
    min-height: 100vh;
    padding: 140px 20px 80px;
  }

  .redirect {
    font-size: 53px;
    line-height: 60px;
  }

  .newsletter-form {
    width: 350px;
  }
}

@media (max-width: 809px) {
  .bar-inner {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
  }

  .home .site-footer {
    padding-bottom: 28px;
  }

  .bar-actions,
  .footer-row {
    display: none;
  }

  .store {
    gap: 8px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .store svg {
    width: 13px;
    height: 16px;
  }

  .bar-link {
    padding: 6px 8px;
    font-size: 13px;
  }

  .library,
  .policy {
    padding: 96px 12px 48px;
  }

  .work {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .work-author {
    grid-column: 1;
    text-align: left;
  }

  .lightray {
    width: 285px;
    height: 323px;
  }

  .hero-copy {
    min-height: 0;
    padding: 140px 24px 40px;
  }

  .hero-text {
    justify-content: center;
    min-height: 50vh;
    gap: 32px;
  }

  h1 {
    font-size: 60px;
    line-height: 1.05;
  }

  .lede {
    font-size: 15px;
    line-height: 22px;
  }

  .hero-copy-app {
    min-height: 0;
    gap: 30px;
    padding: 100px 24px 80px;
  }

  .redirect {
    font-size: 40px;
    line-height: 1.15;
  }

  .site-footer {
    padding: 40px 20px 10px;
  }

  .footer-main {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-main {
    gap: 40px;
  }

  .newsletter {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .newsletter-copy {
    width: 100%;
  }

  .only-wide {
    display: none;
  }

  .only-narrow {
    display: block;
  }

  .newsletter-form {
    width: 100%;
  }

  .field input {
    font-size: 16px;
  }

  .newsletter-status {
    text-align: center;
  }

  .footer-row {
    justify-content: center;
    gap: 14px;
  }

  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-row p,
  .footer-links a {
    font-size: 11px;
  }

  .footer-row,
  .footer-links {
    gap: 8px;
  }
}
