:root {
  --ink: #16171a;
  --ink-2: #3f4148;
  --muted: #6b6e76;
  --paper: #fbfaf7;
  --tint: #f2efe8;
  --rule: #e2ded4;
  --brand: #b3261e;
  --brand-dark: #8c1d17;
  --night: #15171c;
  --radius: 10px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.8rem;
  background: #fff;
  border-radius: 6px;
}
.skip:focus {
  top: 1rem;
}
:focus-visible {
  outline: 2px solid #2459c7;
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.btn--small {
  min-height: 2.3rem;
  padding: 0.35rem 1rem;
  font-size: 0.92rem;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-dark);
}
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn--light {
  background: #fff;
  color: var(--night);
}
.btn--outline-light {
  border-color: rgb(255 255 255 / 0.6);
  color: #fff;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(251 250 247 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
}
.brand__thin {
  font-weight: 400;
  margin-left: 0.15rem;
}
.top__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top__nav a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
}
.top__nav a:not(.btn):hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem);
  letter-spacing: -0.015em;
}
.lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.hero__art {
  position: relative;
  height: 24rem;
}
.sheet {
  position: absolute;
  width: 15rem;
  height: 22rem;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.08), 0 24px 48px rgb(0 0 0 / 0.14);
}
.sheet--back {
  right: 1rem;
  top: 0;
  transform: rotate(6deg);
  background: var(--tint);
}
.sheet--front {
  right: 5rem;
  top: 1.5rem;
  transform: rotate(-4deg);
  padding: 1.1rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.sheet__mast {
  height: 1.6rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) 0 38%, var(--brand) 38% 75%, var(--ink) 75%);
}
.sheet__rule {
  height: 2px;
  background: var(--ink);
}
.sheet__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.sheet__cols span {
  height: 4.5rem;
  background: repeating-linear-gradient(var(--rule) 0 3px, transparent 3px 7px);
}
.sheet__cols--short span {
  height: 2.6rem;
}
.sheet__photo {
  height: 5rem;
  border-radius: 2px;
  background: linear-gradient(135deg, #d8d2c4, #b9b1a0);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.section--tint {
  background: var(--tint);
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  margin-bottom: 2rem;
}
.section__intro {
  margin: -1rem 0 1.5rem;
  color: var(--muted);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  border-top: 3px solid var(--brand);
}
.features h3 {
  font-size: 1.05rem;
}
.features p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding-top: 3.25rem;
}
.steps__n {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
}

/* Directory */
.papers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paper a {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
}
.paper__cover {
  aspect-ratio: 5 / 8;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--tint);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 20px rgb(0 0 0 / 0.08);
  transition: transform 0.15s;
}
.paper__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.paper__cover--empty {
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: var(--serif);
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}
.paper a:hover .paper__cover {
  transform: translateY(-3px);
}
.paper__name {
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}
.paper__meta {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Call to action and footer */
.cta {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--night);
  color: #fff;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem);
}
.cta p {
  color: rgb(255 255 255 / 0.75);
}
.foot {
  background: var(--night);
  color: rgb(255 255 255 / 0.7);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.88rem;
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.foot p {
  margin: 0;
}
.foot a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__art {
    display: none;
  }
  .top__nav a:not(.btn) {
    display: none;
  }
}
