:root {
  --rm-ink: #1a2822;
  --rm-leaf: #7a9a3c;
  --rm-mist: #e2e6da;
  --rm-paper: #f3f5ee;
  --rm-mute: #4e5a52;
  --rm-line: #c5ccb8;
  --rm-radius: 14px;
  --rm-card: 6px;
  --rm-measure: 140rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.rm-body {
  margin: 0;
  min-height: 100vh;
  color: var(--rm-ink);
  background-color: var(--rm-mist);
  background-image:
    repeating-linear-gradient(60deg, transparent 0 18px, rgba(26, 40, 34, 0.035) 18px 19px),
    repeating-linear-gradient(-60deg, transparent 0 18px, rgba(122, 154, 60, 0.04) 18px 19px);
  font-family: Karla, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.62;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rm-ink);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--rm-leaf);
}

h1,
h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  line-height: 1.16;
  color: var(--rm-ink);
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: 1.32rem;
  margin: 1.4rem 0 0.55rem;
}

p {
  margin: 0 0 0.95rem;
}

.rm-skip {
  position: absolute;
  left: 0.6rem;
  top: -3rem;
  background: var(--rm-ink);
  color: var(--rm-mist);
  padding: 0.4rem 0.7rem;
  z-index: 8;
}

.rm-skip:focus {
  top: 0.6rem;
}

.rm-mast {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.8rem 1.2rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 3px solid var(--rm-leaf);
  background: var(--rm-paper);
}

.rm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  justify-self: start;
}

.rm-links a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rm-links a.rm-on {
  box-shadow: inset 0 -3px 0 var(--rm-leaf);
}

.rm-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  justify-self: end;
}

.rm-mark-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.rm-brand {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.15rem;
}

.rm-chip,
.rm-chip-line {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-mute);
}

.rm-fold {
  display: none;
  border: 1px solid var(--rm-ink);
  background: var(--rm-mist);
  color: var(--rm-ink);
  border-radius: var(--rm-card);
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-weight: 600;
}

.rm-paper {
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.25rem 2rem;
  flex: 1;
}

.rm-slat,
.rm-plate,
.rm-bench,
.rm-news,
.rm-knocker {
  background: var(--rm-paper);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-card);
  border-left: 4px solid var(--rm-leaf);
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 0 0 1.15rem;
  box-shadow: none;
}

.rm-slat {
  animation: rm-settle 0.7s ease-out both;
}

.rm-plate {
  animation: rm-settle 0.85s ease-out 0.08s both;
}

.rm-kicker,
.rm-brand-line,
.rm-tag {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rm-mute);
  margin-bottom: 0.45rem;
}

.rm-slat-list,
.rm-bench-list,
.rm-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-slat-row {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rm-line);
}

.rm-slat-row:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

@media (min-width: 900px) {
  .rm-slat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 1.8rem;
  }

  .rm-slat-row:nth-child(4) {
    border-top: 0;
    padding-top: 0.15rem;
  }
}

.rm-slat-row a {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.22rem;
  text-decoration: none;
}

.rm-slat-row p {
  margin: 0.25rem 0 0;
  color: var(--rm-mute);
}

.rm-bound {
  border-top: 1px solid var(--rm-line);
  padding-top: 0.75rem;
  color: var(--rm-mute);
}

.rm-btn,
.rm-btn-line {
  display: inline-block;
  padding: 0.55rem 1.05rem;
  border-radius: var(--rm-radius);
  text-decoration: none;
  font-weight: 600;
  margin: 0.25rem 0.55rem 0.25rem 0;
}

.rm-btn {
  background: var(--rm-leaf);
  color: #122016;
  border: 1px solid var(--rm-ink);
}

.rm-btn:hover {
  color: #122016;
  filter: brightness(1.05);
}

.rm-btn-line,
button.rm-btn {
  font: inherit;
  cursor: pointer;
}

.rm-btn-line {
  background: transparent;
  color: var(--rm-ink);
  border: 1px solid var(--rm-ink);
}

.rm-text {
  font-weight: 600;
  margin-right: 0.9rem;
}

.rm-rake-svg {
  width: min(100%, 36rem);
  height: auto;
  color: var(--rm-leaf);
  margin: 0.2rem 0 1rem;
}

.rm-draw {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: rm-draw 1.1s ease forwards;
}

.rm-draw-slow {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: rm-draw 1.5s ease 0.15s forwards;
}

.rm-pulse {
  transform-origin: center;
  animation: rm-pulse 2.2s ease-in-out 0.8s infinite;
}

.rm-bench-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.6rem;
  padding: 0.45rem 0;
}

.rm-bench-list span {
  font-family: Newsreader, Georgia, serif;
  color: var(--rm-leaf);
}

.rm-ticks li {
  padding: 0.28rem 0 0.28rem 0.9rem;
  position: relative;
}

.rm-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--rm-leaf);
  transform: rotate(45deg);
}

.rm-fields {
  margin: 0 0 1rem;
}

.rm-fields div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rm-line);
}

.rm-fields dt {
  font-weight: 600;
}

.rm-fields dd {
  margin: 0;
}

.rm-tack {
  border-top: 1px solid var(--rm-line);
  padding: 0.75rem 0 0.2rem;
}

.rm-form {
  display: grid;
  gap: 0.75rem;
  max-width: min(40rem, 100%);
}

.rm-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.rm-form input,
.rm-form textarea {
  font: inherit;
  border: 1px solid var(--rm-ink);
  border-radius: var(--rm-card);
  padding: 0.45rem 0.55rem;
  background: #fff;
  color: var(--rm-ink);
}

.rm-kept {
  color: var(--rm-mute);
}

.rm-stretcher {
  color: var(--rm-leaf);
  height: 36px;
  overflow: hidden;
  border-top: 1px solid var(--rm-line);
}

.rm-stretcher-svg {
  width: 100%;
  height: 36px;
  display: block;
}

.rm-footer {
  background: var(--rm-ink);
  color: var(--rm-mist);
  padding: 1.6rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 1.3rem 1.8rem;
  border-top: 2px solid var(--rm-leaf);
}

.rm-footer a {
  color: var(--rm-mist);
}

.rm-footer-name {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.rm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

@keyframes rm-settle {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rm-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rm-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 820px) {
  .rm-footer {
    grid-template-columns: 1fr;
  }

  .rm-fields div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rm-mast {
    grid-template-columns: 1fr auto;
  }

  .rm-fold {
    display: inline-block;
    justify-self: end;
  }

  .rm-mark {
    order: -1;
    justify-self: start;
  }

  .rm-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
  }

  .rm-mast.rm-open .rm-links {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-slat,
  .rm-plate,
  .rm-draw,
  .rm-draw-slow,
  .rm-pulse {
    animation: none;
  }

  .rm-draw,
  .rm-draw-slow {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
