:root {
  --ff-walnut: #231c18;
  --ff-oak: #c27a3a;
  --ff-lime: #d5d1c7;
  --ff-paper: #ece8e2;
  --ff-ink: #2a211c;
  --ff-mute: #5c534c;
  --ff-line: #b8aea3;
  --ff-radius: 15px;
  --ff-measure: 52rem;
  --ff-deck: 80rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ff-page {
  margin: 0;
  color: var(--ff-ink);
  background-color: var(--ff-lime);
  background-image:
    linear-gradient(45deg, rgba(35, 28, 24, 0.055) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(35, 28, 24, 0.055) 1px, transparent 1px),
    repeating-linear-gradient(
      180deg,
      transparent 0 92px,
      rgba(35, 28, 24, 0.045) 92px 93px
    );
  background-size: 26px 26px, 26px 26px, 100% 93px;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ff-walnut);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ff-oak);
}

h1,
h2,
h3,
.ff-block-title {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ff-walnut);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

h2,
.ff-block-title {
  font-size: 1.42rem;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

p {
  margin: 0 0 1rem;
}

.ff-skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ff-paper);
  padding: 0.4rem 0.7rem;
  z-index: 9;
}

.ff-skip:focus {
  left: 0.5rem;
}

.ff-rail {
  background: var(--ff-walnut);
  color: var(--ff-lime);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid var(--ff-oak);
}

.ff-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ff-lime);
}

.ff-brand:hover {
  color: var(--ff-oak);
}

.ff-brand-name {
  display: block;
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.2rem;
}

.ff-brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4bab0;
}

.ff-menu-btn {
  display: none;
  border: 1px solid var(--ff-lime);
  background: transparent;
  color: var(--ff-lime);
  border-radius: var(--ff-radius);
  padding: 0.35rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.ff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(236, 232, 226, 0.92);
  border-bottom: 1px solid var(--ff-line);
}

.ff-nav-link {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ff-mute);
  padding: 0.25rem 0.5rem 0.25rem 0;
  position: relative;
}

.ff-nav-link:hover,
.ff-nav-on {
  color: var(--ff-walnut);
}

.ff-nav-on::after {
  content: "";
  position: absolute;
  right: -0.35rem;
  top: 50%;
  width: 0.55rem;
  height: 2px;
  background: var(--ff-oak);
  transform: translateY(-50%);
}

.ff-rail,
.ff-nav,
.ff-main,
.ff-floor {
  position: relative;
  z-index: 1;
}

.ff-main {
  padding: 2.25rem clamp(1.25rem, 6vw, 5.5rem) 3.5rem;
  max-width: var(--ff-deck);
  margin: 0 auto;
  width: 100%;
}

.ff-edge {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.ff-edge-west {
  left: 0.7vw;
  top: 18vh;
  width: 4.6rem;
  height: 64vh;
}

.ff-edge-east {
  right: 1.2vw;
  top: 22vh;
  width: min(18rem, 20vw);
  height: auto;
  opacity: 0.72;
}

.ff-edge-south {
  left: 50%;
  bottom: 7.5rem;
  width: min(22rem, 28vw);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.55;
}

.ff-draw {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: ff-draw-line 2.2s ease forwards;
}

.ff-draw-slow {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: ff-draw-line 3.1s 0.25s ease forwards;
}

.ff-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: ff-pulse 2.4s 1.4s ease-in-out infinite;
}

@keyframes ff-draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ff-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.ff-open {
  margin-bottom: 3rem;
  max-width: 58rem;
}

.ff-open-brand {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ff-mute);
  margin-bottom: 0.5rem;
}

.ff-plan-strip {
  margin: 0.35rem 0 1.4rem;
  width: min(100%, 52rem);
}

.ff-plan-strip svg {
  width: 100%;
  height: auto;
  display: block;
}

.ff-lead {
  font-size: 1.08rem;
  color: var(--ff-mute);
}

.ff-note {
  font-size: 0.95rem;
  color: var(--ff-mute);
  border-left: 3px solid var(--ff-oak);
  padding-left: 0.85rem;
}

.ff-warn,
.ff-floor-warn {
  font-size: 0.92rem;
  color: var(--ff-mute);
}

.ff-cta {
  display: inline-block;
  background: var(--ff-oak);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--ff-radius);
  border: 2px solid var(--ff-oak);
  font-weight: 600;
  margin-top: 0.5rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
}

.ff-cta:hover {
  background: var(--ff-walnut);
  border-color: var(--ff-walnut);
  color: #fff;
}

.ff-cta-ghost {
  background: transparent;
  color: var(--ff-walnut);
}

.ff-cta-ghost:hover {
  background: var(--ff-walnut);
  color: #fff;
}

section.ff-cta {
  display: block;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
}

.ff-faq {
  margin-bottom: 3rem;
}

.ff-page-home .ff-faq {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.15rem;
  align-items: start;
}

.ff-page-home .ff-faq .ff-block-title {
  grid-column: 1 / -1;
}

.ff-faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--ff-line);
}

.ff-page-home .ff-faq-item {
  margin-bottom: 0;
  padding: 1rem 1rem 1.05rem;
  background: rgba(236, 232, 226, 0.62);
  border: 1px solid var(--ff-line);
  border-bottom-style: solid;
}

.ff-page-home .ff-faq-item:nth-child(3) {
  margin-top: 1.6rem;
}

.ff-page-home .ff-faq-item:nth-child(4) {
  margin-top: 0.55rem;
}

.ff-faq-item h2,
.ff-faq-item h3 {
  font-size: 1.05rem;
}

.ff-features {
  margin-bottom: 3rem;
}

.ff-block-lead {
  color: var(--ff-mute);
  margin-bottom: 1.25rem;
}

.ff-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ff-feature-grid-stack {
  grid-template-columns: 1fr;
}

.ff-feature-card {
  position: relative;
  background: var(--ff-paper);
  padding: 1.1rem 1rem 1rem 1.15rem;
  border: 1px solid var(--ff-line);
}

.ff-feature-card:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 58%;
  justify-self: start;
  margin-left: 8%;
}

.ff-feature-card:nth-child(6) {
  grid-column: 1 / -1;
  max-width: 58%;
  justify-self: end;
  margin-right: 6%;
}

.ff-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--ff-oak);
  border-left: 2px solid var(--ff-oak);
  animation: ff-corner-draw 0.6s ease forwards;
  opacity: 0;
}

@keyframes ff-corner-draw {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ff-feature-meta {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ff-mute);
  margin-bottom: 0.35rem;
}

.ff-feature-card h2,
.ff-feature-card h3 {
  margin-bottom: 0.35rem;
}

.ff-feature-card a {
  text-decoration: none;
}

.ff-marks {
  margin-bottom: 3rem;
}

.ff-mark-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
  counter-reset: ffmark;
}

.ff-mark-rail li {
  background: var(--ff-paper);
  border: 1px solid var(--ff-line);
  padding: 0.85rem;
  font-size: 0.92rem;
  position: relative;
  padding-top: 1.6rem;
}

.ff-mark-rail li::before {
  counter-increment: ffmark;
  content: counter(ffmark);
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ff-oak);
  letter-spacing: 0.08em;
}

.ff-text-link {
  font-weight: 600;
}

.ff-chit-spot {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: rgba(236, 232, 226, 0.7);
  border: 1px solid var(--ff-line);
}

.ff-page-home .ff-chit-spot {
  width: min(38rem, 100%);
  margin-left: auto;
  margin-right: 4%;
}

.ff-page-home section.ff-cta {
  margin-bottom: 0.5rem;
  padding: 1.4rem 1.5rem 1.55rem;
  background: rgba(236, 232, 226, 0.78);
  border: 1px solid var(--ff-line);
  border-top: 3px solid var(--ff-walnut);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 0.4rem 2rem;
  align-items: start;
}

.ff-page-home section.ff-cta .ff-block-title,
.ff-page-home section.ff-cta > p:first-of-type {
  grid-column: 1;
}

.ff-page-home section.ff-cta .ff-cta-ghost {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: start;
}

a.ff-cta {
  margin-bottom: 2rem;
}

.ff-sheet {
  max-width: var(--ff-measure);
}

.ff-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.ff-list-ordered {
  list-style: decimal;
}

.ff-plate {
  margin: 0 0 1.5rem;
}

.ff-plate-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ff-line);
}

.ff-plate-row dt {
  font-weight: 600;
  color: var(--ff-mute);
}

.ff-plate-row dd {
  margin: 0;
}

.ff-meta {
  font-size: 0.9rem;
  color: var(--ff-mute);
}

.ff-chit-card {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--ff-line);
}

.ff-desk-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
  margin: 1.5rem 0;
}

.ff-desk-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.ff-desk-form input,
.ff-desk-form textarea {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--ff-line);
  border-radius: 8px;
  background: #fff;
}

.ff-form-note {
  font-size: 0.9rem;
  color: var(--ff-mute);
}

.ff-floor {
  background: var(--ff-paper);
  border-top: 3px solid var(--ff-walnut);
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}

.ff-floor-name {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 600;
}

.ff-floor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 1rem 0;
}

.ff-floor-links a {
  text-decoration: none;
  font-size: 0.92rem;
}

.ff-floor-copy {
  font-size: 0.85rem;
  color: var(--ff-mute);
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .ff-edge {
    display: none;
  }
}

@media (max-width: 820px) {
  .ff-feature-grid {
    grid-template-columns: 1fr;
  }

  .ff-feature-card:nth-child(3),
  .ff-feature-card:nth-child(6) {
    max-width: none;
    margin: 0;
  }

  .ff-page-home .ff-faq {
    grid-template-columns: 1fr;
  }

  .ff-page-home .ff-faq-item:nth-child(3),
  .ff-page-home .ff-faq-item:nth-child(4) {
    margin-top: 0;
  }

  .ff-page-home section.ff-cta {
    grid-template-columns: 1fr;
  }

  .ff-page-home section.ff-cta .ff-cta-ghost {
    grid-column: auto;
    grid-row: auto;
  }

  .ff-page-home .ff-chit-spot {
    margin-right: 0;
  }

  .ff-mark-rail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ff-menu-btn {
    display: inline-block;
  }

  .ff-nav {
    display: none;
    flex-direction: column;
    padding-top: 0;
  }

  .ff-nav.ff-nav-open {
    display: flex;
  }

  .ff-mark-rail {
    grid-template-columns: 1fr;
  }

  .ff-plate-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-draw,
  .ff-draw-slow,
  .ff-pulse,
  .ff-corner {
    animation: none;
  }

  .ff-draw,
  .ff-draw-slow {
    stroke-dashoffset: 0;
  }
}
