/* Frontier Forge — old western storefront for Tebex (RedM / VORP)
   Loaded after shared.css. shared.css keeps the basket, popup, drawer and
   media slider mechanics; everything visual is set here. */

/* ---------- Tokens ---------- */
:root {
  --ff-paper: #ecdfc3;
  --ff-paper-light: #f6eedc;
  --ff-paper-dark: #ddcaa4;
  --ff-ink: #2a2118;
  --ff-ink-soft: #4b3c2c;
  --ff-muted: #6f5d46;
  --ff-rule: #b49d76;
  --ff-rule-soft: rgba(92, 64, 32, 0.22);
  --ff-wax: #7a2f25;
  --ff-wax-light: #8f3a2e;
  --ff-wax-dark: #5c2119;
  --ff-wax-soft: rgba(122, 47, 37, 0.09);
  --ff-brass: #94702f;
  --ff-brass-light: #d9b56a;
  --ff-cream: #ead7ad;
  --ff-green: #3d513f;
  --ff-leather: #2b1d14;
  --ff-leather-2: #3b2a1c;
  --ff-shadow: 2px 3px 0 rgba(92, 64, 32, 0.12);
  --ff-shadow-lift: 4px 7px 0 rgba(92, 64, 32, 0.16), 0 14px 30px rgba(92, 64, 32, 0.14);
  --ff-ease: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --ff-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.12 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --ff-font-display: 'Rye', 'IM Fell English SC', Georgia, serif;
  --ff-font-heading: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --ff-font-fell: 'IM Fell English', Georgia, serif;
  --ff-font-body: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --ff-font-hand: 'Caveat', 'Segoe Script', cursive;

  --ff-gutter: 16px;
  --ff-max: 1240px;

  /* shared.css variables, mapped to the western palette */
  --color-text: var(--ff-ink);
  --color-text-darker: var(--ff-ink-soft);
  --color-text-secondary: var(--ff-muted);
  --color-text-dark: var(--ff-paper-light);
  --color-bg: var(--ff-paper);
  --color-brighter-bg: var(--ff-paper-light);
  --color-primary: var(--ff-wax);
  --color-primary-hover: var(--ff-wax-light);
  --color-primary-text: #f6e9d4;
  --color-primary-text-hover: #fff6e6;
  --color-secondary: var(--ff-paper-dark);
  --color-secondary-hover: #d3bd92;
  --color-secondary-text: var(--ff-ink);
  --color-secondary-text-hover: var(--ff-ink);
  --color-tertiary: transparent;
  --color-tertiary-hover: var(--ff-wax-soft);
  --color-tertiary-text: var(--ff-ink);
  --color-tertiary-text-hover: var(--ff-wax);
  --color-removed: var(--ff-wax);
  --btn-size: 44px;
  --tebex-legal-footer-background-color: var(--ff-leather);
  --tebex-legal-footer-border-color: var(--ff-leather);
  --tebex-legal-footer-text-color: rgba(236, 223, 195, 0.7);
}

@media (width > 600px) {
  :root {
    --ff-gutter: 24px;
  }
}

@media (width > 960px) {
  :root {
    --ff-gutter: 40px;
  }
}

/* ---------- Page ---------- */
html {
  scrollbar-color: rgba(92, 64, 32, 0.45) var(--ff-paper);
}

body.ff-body {
  color: var(--ff-ink);
  background:
    var(--ff-grain),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 250, 235, 0.55), transparent 60%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 55%, rgba(110, 76, 38, 0.22) 100%),
    var(--ff-paper);
  background-attachment: fixed;
  font-family: var(--ff-font-body);
  font-size: 15px;
  line-height: 1.6;
}

::selection {
  color: var(--ff-ink);
  background: rgba(122, 47, 37, 0.22);
}

:focus-visible {
  outline: 2px solid var(--ff-wax);
  outline-offset: 2px;
}

.ff-body .site {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--tebex-footer-height));
  font-size: 15px;
}

.ff-main {
  flex: 1 0 auto;
  padding-bottom: 72px;
}

.ff-wrap {
  width: 100%;
  max-width: calc(var(--ff-max) + var(--ff-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--ff-gutter);
}

.ff-eyebrow {
  margin: 0 0 10px;
  color: var(--ff-brass);
  font-family: var(--ff-font-heading);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ff-chip {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--ff-rule);
  border-radius: 2px;
  background: rgba(246, 238, 220, 0.75);
  color: var(--ff-ink-soft);
  font-family: var(--ff-font-heading);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.ff-chip-link {
  transition: border-color var(--ff-ease), color var(--ff-ease), background-color var(--ff-ease);
}

.ff-chip-link:hover {
  border-color: var(--ff-wax);
  color: var(--ff-wax);
  background: var(--ff-wax-soft);
}

/* Wax seal with a letter or numeral */
.ff-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(0, 0, 0, 0.16) 57%, transparent 62%),
    radial-gradient(circle at 35% 30%, #a24a3b, var(--ff-wax) 55%, var(--ff-wax-dark));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 4px rgba(0, 0, 0, 0.1);
  color: #f3dfc6;
  font-family: var(--ff-font-display);
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.ff-seal-sm {
  width: 46px;
  height: 46px;
  font-size: 16px;
}

/* Double rule with a diamond in the middle */
.ff-ornament {
  display: block;
  position: relative;
  width: min(220px, 60%);
  height: 12px;
  margin: 14px auto 0;
  background:
    linear-gradient(var(--ff-rule), var(--ff-rule)) left 4px / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--ff-rule), var(--ff-rule)) left 8px / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--ff-rule), var(--ff-rule)) right 4px / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--ff-rule), var(--ff-rule)) right 8px / calc(50% - 14px) 1px no-repeat;
}

.ff-ornament::before {
  content: "";
  position: absolute;
  top: 1px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: var(--ff-wax);
  transform: rotate(45deg);
}

/* ---------- Buttons ---------- */
.ff-btn,
.ff-body .btn-primary,
.ff-body .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-size);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--ff-font-heading);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--ff-ease), filter var(--ff-ease), background-color var(--ff-ease), border-color var(--ff-ease), color var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ff-btn svg.ff-fill,
.ff-icon-btn svg.ff-fill {
  fill: currentColor;
  stroke: none;
}

.ff-btn-lg {
  --btn-size: 52px;
  padding: 0 26px;
  font-size: 19px;
}

/* Wax red: the main action */
.ff-btn-wax,
.ff-body .btn-primary {
  color: #f6e9d4;
  background: linear-gradient(180deg, var(--ff-wax-light), var(--ff-wax-dark));
  border-color: var(--ff-wax-dark);
  box-shadow: inset 0 1px 0 rgba(255, 220, 200, 0.25), 0 2px 0 rgba(43, 29, 20, 0.35);
}

/* Brass: second action on dark backgrounds */
.ff-btn-brass,
.ff-body .btn-secondary {
  color: #1f150d;
  background: linear-gradient(180deg, #b48a3e, #8e6a2b);
  border-color: #c79c4f;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.45), 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Paper: quiet action on parchment */
.ff-btn-paper {
  color: var(--ff-ink);
  background: rgba(246, 238, 220, 0.85);
  border-color: var(--ff-ink-soft);
}

/* Ghost: quiet action on leather */
.ff-btn-ghost {
  color: var(--ff-paper);
  background: rgba(236, 223, 195, 0.08);
  border-color: rgba(236, 223, 195, 0.28);
}

.ff-btn-wax:hover,
.ff-btn-brass:hover,
.ff-body .btn-primary:hover,
.ff-body .btn-primary:focus-visible,
.ff-body .btn-secondary:hover,
.ff-body .btn-secondary:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.ff-body .btn-primary:hover,
.ff-body .btn-primary:focus-visible {
  color: #fff6e6;
  background-color: transparent;
}

.ff-body .btn-secondary:hover,
.ff-body .btn-secondary:focus-visible {
  color: #1f150d;
  background-color: transparent;
}

.ff-btn-paper:hover {
  color: var(--ff-wax);
  border-color: var(--ff-wax);
}

.ff-btn-ghost:hover {
  color: var(--ff-paper);
  background: rgba(236, 223, 195, 0.14);
  border-color: var(--ff-brass);
}

.ff-body .btn-primary:disabled,
.ff-body .btn-primary[disabled],
.ff-body .btn-secondary:disabled,
.ff-body .btn-secondary[disabled] {
  transform: none;
  filter: grayscale(0.5);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* main.js toggles [hidden] on purchase buttons; keep it stronger than display above */
.ff-body .btn-primary[hidden],
.ff-body .btn-secondary[hidden],
.ff-body .btn-tertiary[hidden],
.ff-body .actions [hidden],
.ff-btn[hidden] {
  display: none !important;
}

/* Icon buttons from shared.css (gift, remove, +/-) keep their mask icons */
.ff-body .btn-glyph {
  gap: 0;
  padding: 0;
  width: var(--btn-size);
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.ff-body .btn-tertiary {
  border-radius: 3px;
}

.ff-body .btn-tertiary:hover,
.ff-body .btn-tertiary:focus-visible {
  color: var(--ff-wax);
  background-color: var(--ff-wax-soft);
}

.ff-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236, 223, 195, 0.28);
  border-radius: 3px;
  background: rgba(236, 223, 195, 0.08);
  color: var(--ff-paper);
  cursor: pointer;
  transition: background-color var(--ff-ease), border-color var(--ff-ease), color var(--ff-ease);
}

.ff-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.ff-icon-btn:hover {
  border-color: var(--ff-brass);
  background: rgba(236, 223, 195, 0.14);
  color: var(--ff-brass-light);
}

.ff-discord-link:hover {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
}

/* ---------- Header ---------- */
.ff-header {
  position: relative;
  z-index: 20;
  view-transition-name: siteHeader;
}

.ff-topbar {
  position: relative;
  color: var(--ff-paper);
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-leather-2), var(--ff-leather));
  border-bottom: 3px double var(--ff-brass);
  box-shadow: 0 6px 18px rgba(43, 29, 20, 0.28);
}

.ff-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.ff-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ff-cream);
}

.ff-brand-logo {
  flex: none;
  width: auto;
  height: 42px;
  filter: drop-shadow(0 1px 2px rgba(43, 24, 10, 0.45));
}

.ff-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.ff-brand-name {
  overflow: hidden;
  font-family: var(--ff-font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.ff-brand-tagline {
  display: none;
  color: rgba(234, 215, 173, 0.72);
  font-family: var(--ff-font-fell);
  font-size: 14px;
  font-style: italic;
  white-space: nowrap;
}

.ff-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ff-topbar .ff-btn {
  --btn-size: 42px;
  padding: 0 12px;
}

.ff-topbar .ff-btn > span,
.ff-docs-link {
  display: none;
}

.ff-account {
  max-width: 220px;
}

.ff-account-text {
  display: grid;
  overflow: hidden;
}

.ff-account-name,
.ff-account-hover {
  grid-area: 1 / 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--ff-ease);
}

.ff-account-hover {
  opacity: 0;
}

.ff-account:hover .ff-account-name,
.ff-account:focus-visible .ff-account-name {
  opacity: 0;
}

.ff-account:hover .ff-account-hover,
.ff-account:focus-visible .ff-account-hover {
  opacity: 1;
}

.ff-account {
  display: none;
}

/* Phones: Discord stays in the menu so the brand name fits */
@media (width <= 600px) {
  .ff-topbar .ff-discord-link {
    display: none;
  }

  .ff-brand-logo {
    height: 38px;
  }

  .ff-brand-name {
    font-size: 18px;
  }
}

@media (width > 600px) {
  .ff-brand-logo {
    height: 48px;
  }

  .ff-brand-name {
    font-size: 22px;
  }

  .ff-topbar .ff-btn > span {
    display: inline;
  }

  .ff-topbar .ff-btn > .ff-account-text {
    display: grid;
  }

  .ff-account {
    display: inline-flex;
  }
}

@media (width > 960px) {
  .ff-topbar-inner {
    gap: 18px;
    min-height: 78px;
  }

  .toggle-navigation {
    display: none;
  }

  .ff-docs-link {
    display: inline-flex;
  }

  /* The single bar is wider than the page content so the menu fits on one line */
  .ff-topbar .ff-wrap {
    max-width: calc(1640px + var(--ff-gutter) * 2);
  }

  .ff-topbar .ff-brand,
  .ff-topbar-actions {
    flex: none;
  }

  .ff-topbar-actions {
    margin-left: 0;
  }

  /* One bar: Documentation and account become icon buttons to leave room for the menu */
  .ff-topbar .ff-docs-link > span,
  .ff-topbar .ff-account > .ff-account-text {
    display: none;
  }

  .ff-topbar .ff-docs-link,
  .ff-topbar .ff-account {
    width: 42px;
    padding: 0;
  }
}

/* Laptop widths: logo image only, tighter menu */
@media (960px < width <= 1240px) {
  .ff-topbar .ff-brand-text {
    display: none;
  }

  .ff-topbar-inner {
    gap: 12px;
  }

  .ff-topbar .ff-nav .menu > li > a {
    padding: 10px 8px;
    font-size: 17px;
  }
}

@media (width > 1240px) {
  .ff-brand-tagline {
    display: block;
  }
}

@media (width > 1500px) {
  .ff-topbar .ff-docs-link > span {
    display: inline;
  }

  .ff-topbar .ff-account > .ff-account-text {
    display: grid;
  }

  .ff-topbar .ff-docs-link,
  .ff-topbar .ff-account {
    width: auto;
    padding: 0 12px;
  }
}

/* ---------- Navigation ---------- */
@media (width <= 960px) {
  /* Drawer: backdrop and panel from shared.css, recoloured */
  .ff-nav.site-navigation {
    background: rgba(43, 29, 20, 0.55);
  }

  .ff-nav .menu {
    background:
      var(--ff-grain),
      linear-gradient(90deg, rgba(236, 223, 195, 0.98), rgba(221, 202, 164, 0.98));
    border-right: 3px double var(--ff-rule);
    color: var(--ff-ink);
    font-family: var(--ff-font-fell);
    font-size: 19px;
    box-shadow: 10px 0 35px rgba(43, 29, 20, 0.45);
  }

  .ff-nav .menu > li {
    border-bottom: 1px dashed var(--ff-rule-soft);
  }

  .ff-nav .menu > li.ff-nav-drawer-brand {
    position: absolute;
    top: 22px;
    left: var(--widget-padding);
    border: 0;
    width: auto;
    color: var(--ff-wax-dark);
    font-family: var(--ff-font-display);
    font-size: 21px;
    letter-spacing: 0.04em;
  }

  .ff-nav .menu a:hover,
  .ff-nav .menu a.link-active {
    color: var(--ff-wax);
  }

  .ff-nav .menu a.link-active {
    font-weight: 400;
  }

  .ff-nav .menu ul {
    padding-left: 14px;
    border-left: 2px solid var(--ff-rule-soft);
    margin-bottom: 8px;
    font-size: 16px;
  }

  .ff-nav .menu .ff-nav-extra a {
    color: var(--ff-wax-dark);
    font-style: italic;
  }

  .ff-nav .log-out {
    border-bottom: 0 !important;
  }
}

@media (width > 960px) {
  /* No arrow in the desktop bar: a sub-category list (if ever added) still opens on hover */
  .ff-nav .close-navigation,
  .ff-nav .toggle,
  .ff-nav .menu > li.mobile-only,
  .ff-nav .menu > li.ff-nav-page {
    display: none;
  }

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

  .ff-nav .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2px;
  }

  .ff-nav .menu > li {
    position: relative;
    display: flex;
    align-items: center;
  }

  .ff-nav .menu > li > a {
    position: relative;
    display: block;
    padding: 10px;
    color: #e9dcc0;
    font-family: var(--ff-font-heading);
    font-size: 18px;
    white-space: nowrap;
    letter-spacing: 0.05em;
    transition: color var(--ff-ease);
  }

  .ff-nav .menu > li > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 1px;
    background: var(--ff-brass-light);
    transform: scaleX(0);
    transition: transform var(--ff-ease);
  }

  .ff-nav .menu > li > a:hover,
  .ff-nav .menu > li > a.link-active,
  .ff-nav .menu > li.active > a {
    color: var(--ff-brass-light);
  }

  .ff-nav .menu > li > a:hover::after,
  .ff-nav .menu > li > a.link-active::after,
  .ff-nav .menu > li.active > a::after {
    transform: scaleX(1);
  }

  .ff-nav .has-children > a {
    padding-right: 2px;
  }

  .ff-nav .toggle {
    --btn-size: 28px;
    --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg");
    --btn-icon-size: 16px;
    --btn-color-text: #e9dcc0;
    --btn-color-text-hover: var(--ff-brass-light);
    width: 28px;
    height: 28px;
  }

  .ff-nav .toggle:hover,
  .ff-nav .toggle:focus-visible {
    background: transparent;
  }

  .ff-nav .toggle::before {
    transition: rotate var(--ff-ease), background-color var(--ff-ease);
  }

  .ff-nav .has-children:hover > .toggle::before,
  .ff-nav .has-children:focus-within > .toggle::before {
    rotate: 180deg;
  }

  .ff-nav .has-children > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 220px;
    padding: 8px 0;
    border: 1px solid var(--ff-rule);
    border-top: 3px solid var(--ff-wax);
    border-radius: 0 0 3px 3px;
    background:
      var(--ff-grain),
      var(--ff-paper-light);
    box-shadow: 0 14px 30px rgba(43, 29, 20, 0.3);
    transition: opacity var(--ff-ease), translate var(--ff-ease), visibility var(--ff-ease);
  }

  .ff-nav .has-children:not(:hover):not(:focus-within) > ul {
    visibility: hidden;
    opacity: 0;
    translate: 0 -6px;
  }

  .ff-nav .has-children > ul a {
    display: block;
    padding: 8px 18px;
    color: var(--ff-ink);
    font-family: var(--ff-font-fell);
    font-size: 16px;
    white-space: nowrap;
    transition: color var(--ff-ease), background-color var(--ff-ease);
  }

  .ff-nav .has-children > ul a:hover,
  .ff-nav .has-children > ul a.link-active {
    color: var(--ff-wax);
    background: var(--ff-wax-soft);
  }
}

/* ---------- Notice ticker (Notice strip text option) ---------- */
.ff-ticker {
  position: relative;
  overflow: hidden;
  color: #f6e9d4;
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-wax-light), var(--ff-wax-dark));
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
}

.ff-ticker-track {
  display: flex;
  width: max-content;
  padding-right: 48px;
  animation: ffTicker var(--ff-ticker-speed, 40s) linear infinite;
}

.ff-ticker:hover .ff-ticker-track,
.ff-ticker.is-paused .ff-ticker-track {
  animation-play-state: paused;
}

.ff-ticker-group {
  display: flex;
  flex: none;
}

.ff-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 36px 9px 0;
  color: inherit;
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
  white-space: nowrap;
}

a.ff-ticker-item:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ff-ticker-star {
  color: var(--ff-brass-light);
  font-style: normal;
}

@keyframes ffTicker {
  to {
    transform: translateX(-50%);
  }
}

/* Read by screen readers; shown instead of the track when motion is reduced */
.ff-ticker-static {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ff-ticker-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  translate: 0 -50%;
  border: 1px solid rgba(246, 233, 212, 0.35);
  border-radius: 3px;
  background: rgba(43, 29, 20, 0.35);
  color: #f6e9d4;
  opacity: 0;
  transition: opacity var(--ff-ease), background-color var(--ff-ease);
}

.ff-ticker:hover .ff-ticker-toggle,
.ff-ticker.is-paused .ff-ticker-toggle,
.ff-ticker-toggle:focus-visible {
  opacity: 1;
}

.ff-ticker-toggle:hover {
  background: rgba(43, 29, 20, 0.6);
}

.ff-ticker-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ff-ticker-icon-play,
.ff-ticker.is-paused .ff-ticker-icon-pause {
  display: none;
}

.ff-ticker.is-paused .ff-ticker-icon-play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ff-ticker {
    cursor: default;
  }

  .ff-ticker-track,
  .ff-ticker-toggle {
    display: none;
  }

  .ff-ticker-static {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: normal;
    padding: 9px var(--ff-gutter);
    font-family: var(--ff-font-fell);
    font-size: 16px;
    font-style: italic;
    text-align: center;
  }

  .ff-ticker-static a {
    color: inherit;
    text-decoration: underline;
  }
}

/* ---------- Drifting dust ---------- */
.ff-dust {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ff-dust span {
  position: absolute;
  bottom: -6%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(110, 78, 40, 0.5);
  opacity: 0;
  will-change: transform, opacity;
  animation: ffDust 30s linear infinite;
}

.ff-dust span:nth-child(1)  { left: 4%;  animation-duration: 26s; }
.ff-dust span:nth-child(2)  { left: 11%; animation-duration: 32s; animation-delay: 2s; width: 2px; height: 2px; }
.ff-dust span:nth-child(3)  { left: 18%; animation-duration: 29s; animation-delay: 5s; width: 4px; height: 4px; }
.ff-dust span:nth-child(4)  { left: 26%; animation-duration: 35s; animation-delay: 1s; width: 2px; height: 2px; }
.ff-dust span:nth-child(5)  { left: 33%; animation-duration: 27s; animation-delay: 7s; }
.ff-dust span:nth-child(6)  { left: 41%; animation-duration: 33s; animation-delay: 3s; width: 2px; height: 2px; }
.ff-dust span:nth-child(7)  { left: 49%; animation-duration: 30s; animation-delay: 9s; }
.ff-dust span:nth-child(8)  { left: 57%; animation-duration: 37s; animation-delay: 2.5s; width: 2px; height: 2px; }
.ff-dust span:nth-child(9)  { left: 64%; animation-duration: 26s; animation-delay: 6s; width: 4px; height: 4px; }
.ff-dust span:nth-child(10) { left: 71%; animation-duration: 31s; animation-delay: 0.5s; width: 2px; height: 2px; }
.ff-dust span:nth-child(11) { left: 78%; animation-duration: 28s; animation-delay: 10s; }
.ff-dust span:nth-child(12) { left: 85%; animation-duration: 38s; animation-delay: 4s; width: 2px; height: 2px; }
.ff-dust span:nth-child(13) { left: 91%; animation-duration: 27s; animation-delay: 8s; }
.ff-dust span:nth-child(14) { left: 97%; animation-duration: 33s; animation-delay: 1.5s; width: 2px; height: 2px; }

@keyframes ffDust {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.7; }
  50% { transform: translate3d(28px, -55vh, 0); }
  80% { opacity: 0.45; }
  100% { transform: translate3d(-12px, -112vh, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-dust {
    display: none;
  }

  .ff-body *,
  .ff-body *::before,
  .ff-body *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Homepage hero ---------- */
.ff-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--ff-rule-soft);
}

/* Optional background image (theme option). Faint = light wash; Photograph = old sepia print fading into the parchment */
.ff-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-image, none) center / cover no-repeat;
  opacity: 0.16;
  filter: sepia(1);
  pointer-events: none;
}

.ff-hero[data-image-style="photograph"] {
  border-bottom: 0;
}

/* The photo itself fades out at the edges, so the page background shows through with no seam */
.ff-hero[data-image-style="photograph"]::before {
  opacity: 1;
  filter: sepia(0.55) contrast(1.02) brightness(0.9) saturate(0.95);
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 60%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 52%, #000 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 60%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 28%, #000 52%, #000 100%);
  -webkit-mask-composite: source-in;
}

/* Light paper wash behind the text column only */
.ff-hero[data-image-style="photograph"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(236, 223, 195, 0.7) 0%, rgba(236, 223, 195, 0.45) 26%, rgba(236, 223, 195, 0) 50%);
  pointer-events: none;
}

@media (width <= 960px) {
  .ff-hero[data-image-style="photograph"]::before {
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, #000 55%, #000 80%, transparent 100%);
    mask-composite: add;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, #000 55%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-over;
  }

  .ff-hero[data-image-style="photograph"]::after {
    background: linear-gradient(180deg, rgba(236, 223, 195, 0.8) 0%, rgba(236, 223, 195, 0.5) 35%, rgba(236, 223, 195, 0) 60%);
  }
}

.ff-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.ff-hero-copy {
  max-width: 640px;
}

.ff-hero-title {
  margin: 0 0 18px;
  color: var(--ff-ink);
  font-family: var(--ff-font-display);
  font-size: clamp(38px, 8vw, 68px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.ff-hero-accent {
  display: block;
  color: var(--ff-wax);
}

.ff-hero-text {
  max-width: 34em;
  margin: 0 0 26px;
  color: var(--ff-ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.ff-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ff-hero-studio {
  margin: 22px 0 0;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

.ff-hero-studio a {
  color: var(--ff-wax);
  text-decoration: underline;
  text-decoration-color: rgba(122, 47, 37, 0.35);
  text-underline-offset: 3px;
}

.ff-hero-studio a:hover {
  text-decoration-color: var(--ff-wax-dark);
}

.ff-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

/* Sun rays behind the poster */
.ff-hero-art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(148, 112, 47, 0.12) 0deg 5deg, transparent 5deg 12deg);
  mask-image: radial-gradient(circle, #000 18%, transparent 68%);
  pointer-events: none;
}

.ff-hero-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(340px, 100%);
  padding: 34px 28px 26px;
  border: 1px solid var(--ff-ink-soft);
  outline: 1px solid var(--ff-rule);
  outline-offset: -9px;
  border-radius: 2px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, var(--ff-paper-light), #ece0c5);
  box-shadow: 3px 5px 0 rgba(92, 64, 32, 0.16), 0 22px 44px rgba(92, 64, 32, 0.22);
  rotate: -2deg;
  text-align: center;
}

.ff-hero-poster::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.15) 47%, transparent 52%),
    radial-gradient(circle at 35% 30%, #a24a3b, var(--ff-wax) 55%, var(--ff-wax-dark));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.ff-hero-poster-nail {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 12px;
  height: 12px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e6c98a, var(--ff-brass) 60%, #5d4419);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.ff-hero-logo {
  width: min(240px, 80%);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(43, 24, 10, 0.35));
}

.ff-hero-poster-name {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 3px double var(--ff-rule);
  color: var(--ff-ink);
  font-family: var(--ff-font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.ff-hero-poster-tagline {
  color: #2d3a52;
  font-family: var(--ff-font-hand);
  font-size: 22px;
  line-height: 1.2;
}

@media (width > 960px) {
  .ff-hero {
    padding: 72px 0 84px;
  }

  .ff-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* ---------- Sections ---------- */
.ff-section {
  padding-top: 64px;
}

.ff-section-head {
  margin-bottom: 30px;
  text-align: center;
}

.ff-section-title {
  margin: 0;
  color: var(--ff-wax-dark);
  font-family: var(--ff-font-heading);
  font-size: clamp(28px, 4.4vw, 38px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.ff-section-intro {
  max-width: 44em;
  margin: 16px auto 0;
  color: var(--ff-ink-soft);
  font-family: var(--ff-font-fell);
  font-size: 18px;
  font-style: italic;
}

/* How it works: four steps strung along a telegraph wire */
.ff-steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ff-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 22px 24px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.8);
  box-shadow: var(--ff-shadow);
  transition: transform var(--ff-ease), border-color var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-step:hover {
  transform: translateY(-3px);
  border-color: var(--ff-wax);
  box-shadow: var(--ff-shadow-lift);
}

.ff-step-title {
  margin: 0;
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.ff-step-text {
  margin: 0;
  color: var(--ff-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

@media (width > 600px) {
  .ff-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width > 960px) {
  .ff-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding-top: 10px;
  }

  /* The wire the step seals hang from */
  .ff-steps-grid::before {
    content: "";
    position: absolute;
    top: 33px;
    right: 12%;
    left: 12%;
    height: 0;
    border-top: 2px dashed var(--ff-rule);
  }

  .ff-step .ff-seal {
    position: relative;
    z-index: 1;
    margin-top: -33px;
    box-shadow: 0 0 0 6px var(--ff-paper), 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 4px rgba(0, 0, 0, 0.1);
  }
}

/* Trust numbers band */
.ff-stats {
  margin-top: 64px;
  color: var(--ff-paper);
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-leather-2), var(--ff-leather));
  border-top: 3px double var(--ff-brass);
  border-bottom: 3px double var(--ff-brass);
}

.ff-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.ff-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 12px;
  border-bottom: 1px solid rgba(148, 112, 47, 0.35);
  text-align: center;
}

.ff-stat:nth-child(odd) {
  border-right: 1px solid rgba(148, 112, 47, 0.35);
}

.ff-stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ff-stat-value {
  margin: 0;
  color: var(--ff-brass-light);
  font-family: var(--ff-font-display);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.ff-stat-label {
  color: rgba(236, 223, 195, 0.8);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

@media (width > 960px) {
  .ff-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ff-stat {
    padding: 34px 20px;
    border-bottom: 0;
    border-right: 1px solid rgba(148, 112, 47, 0.35);
  }

  .ff-stat:last-child {
    border-right: 0;
  }
}

/* Showcase: video beside quotes */
.ff-showcase-grid {
  display: grid;
  gap: 26px;
  align-items: start;
}

@media (width > 960px) {
  .ff-showcase-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 36px;
  }

  .ff-showcase-grid-quotes {
    grid-template-columns: 1fr;
  }

  .ff-showcase-grid-quotes .ff-quotes {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 960px;
    margin: 0 auto;
  }
}

.ff-showcase-video {
  padding: 10px;
  border: 1px solid var(--ff-ink-soft);
  outline: 1px solid var(--ff-rule);
  outline-offset: -7px;
  border-radius: 2px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, var(--ff-paper-light), #ece0c5);
  box-shadow: var(--ff-shadow-lift);
}

.ff-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #16100a;
  background: var(--ff-leather);
}

.ff-video iframe,
.ff-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ff-video-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.ff-video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(43, 29, 20, 0.15), rgba(43, 29, 20, 0.6));
  transition: opacity var(--ff-ease);
}

.ff-video-poster:hover::before {
  opacity: 0.7;
}

.ff-video-play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(0, 0, 0, 0.16) 57%, transparent 62%),
    radial-gradient(circle at 35% 30%, #a24a3b, var(--ff-wax) 55%, var(--ff-wax-dark));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform var(--ff-ease);
}

.ff-video-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #f3dfc6;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}

.ff-video-poster:hover .ff-video-play {
  transform: scale(1.06);
}

.ff-quotes {
  display: grid;
  gap: 18px;
}

.ff-quote {
  position: relative;
  margin: 0;
  padding: 22px 22px 18px 26px;
  border: 1px solid var(--ff-rule);
  border-left: 4px solid var(--ff-brass);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.8);
  box-shadow: var(--ff-shadow);
}

.ff-quote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 16px;
  color: rgba(148, 112, 47, 0.3);
  font-family: var(--ff-font-display);
  font-size: 64px;
  line-height: 1;
}

.ff-quote-text {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #2d3a52;
  font-family: var(--ff-font-hand);
  font-size: 22px;
  font-style: normal;
  line-height: 1.3;
}

.ff-quote-author {
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.ff-quote-author::before {
  content: "\2014 ";
  color: var(--ff-wax);
}

.ff-quote-role {
  display: block;
  margin-top: 2px;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0;
}

/* The Telegraph: update cards styled as telegram forms */
.ff-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.ff-telegram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 20px;
  border: 1px solid var(--ff-ink-soft);
  border-radius: 2px;
  background:
    var(--ff-grain),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(92, 64, 32, 0.08) 27px 28px),
    linear-gradient(160deg, var(--ff-paper-light), #efe4cb);
  box-shadow: var(--ff-shadow);
  transition: transform var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-telegram:hover {
  transform: translateY(-3px);
  box-shadow: var(--ff-shadow-lift);
}

.ff-telegram-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 10px 18px;
  border-bottom: 3px double var(--ff-rule);
  background: rgba(221, 202, 164, 0.55);
}

.ff-telegram-office {
  overflow: hidden;
  color: var(--ff-wax-dark);
  font-family: var(--ff-font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ff-telegram-date {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--ff-brass);
  border-radius: 2px;
  color: var(--ff-brass);
  font-family: var(--ff-font-heading);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  rotate: -2deg;
}

.ff-telegram-title {
  margin: 0;
  padding: 0 18px;
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.ff-telegram-title a {
  color: inherit;
  transition: color var(--ff-ease);
}

.ff-telegram-title a:hover {
  color: var(--ff-wax);
}

.ff-telegram-text {
  margin: 0;
  padding: 0 18px;
  color: var(--ff-ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.ff-telegram-link {
  margin-top: auto;
  padding: 8px 18px 0;
  color: var(--ff-wax);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

.ff-telegram-link span {
  display: inline-block;
  transition: translate var(--ff-ease);
}

.ff-telegram-link:hover span {
  translate: 4px 0;
}

/* FwB Studio family cards */
.ff-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.ff-family-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 26px 24px;
  border: 1px solid var(--ff-ink-soft);
  outline: 1px solid var(--ff-rule);
  outline-offset: -7px;
  border-radius: 2px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, var(--ff-paper-light), #ece0c5);
  box-shadow: var(--ff-shadow-lift);
  color: var(--ff-ink);
  transition: transform var(--ff-ease), border-color var(--ff-ease);
}

.ff-family-card:hover {
  transform: translateY(-3px);
  border-color: var(--ff-wax);
}

.ff-family-kicker {
  color: var(--ff-brass);
  font-family: var(--ff-font-heading);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ff-family-name {
  font-family: var(--ff-font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.ff-family-text {
  color: var(--ff-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.ff-family-cta {
  margin-top: auto;
  padding-top: 12px;
  color: var(--ff-wax);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

.ff-family-card:hover .ff-family-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category cards (used on a parent category page that has sub-categories) */
.ff-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.ff-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.8);
  box-shadow: var(--ff-shadow);
  text-align: center;
  transition: transform var(--ff-ease), border-color var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-category-card:hover {
  transform: translateY(-3px);
  border-color: var(--ff-wax);
  box-shadow: var(--ff-shadow-lift);
}

@media (width <= 600px) {
  .ff-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ff-category-card {
    padding: 16px 10px 14px;
  }

  .ff-category-card .ff-seal {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .ff-category-title {
    font-size: 19px;
  }

  .ff-category-media {
    min-height: 64px;
  }
}

.ff-category-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
}

.ff-category-media img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(43, 29, 20, 0.25));
}

.ff-category-title {
  margin: 0;
  font-family: var(--ff-font-heading);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.ff-category-title a {
  color: var(--ff-ink);
  transition: color var(--ff-ease);
}

.ff-category-title a:hover {
  color: var(--ff-wax);
}

.ff-category-subs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ff-category-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--ff-wax);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

.ff-category-more span {
  display: inline-block;
  transition: translate var(--ff-ease);
}

.ff-category-more:hover span {
  translate: 4px 0;
}

/* Notice board: Tebex modules */
.ff-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: start;
}

.ff-board .widget + .widget {
  margin-top: 0;
}

/* Letter: homepage text and CMS pages */
.ff-letter {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 56px);
  border: 1px solid var(--ff-rule);
  outline: 1px solid var(--ff-rule-soft);
  outline-offset: -9px;
  border-radius: 2px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, var(--ff-paper-light), #efe4cb);
  box-shadow: var(--ff-shadow-lift);
}

/* Features */
.ff-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.ff-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--ff-rule);
  border-left: 4px solid var(--ff-wax);
  border-radius: 3px;
  background: rgba(246, 238, 220, 0.75);
  box-shadow: var(--ff-shadow);
}

.ff-feature-title {
  margin: 0;
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 22px;
  font-weight: 400;
}

.ff-feature-text {
  margin: 0;
  color: var(--ff-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* Discord band */
.ff-band {
  margin-top: 72px;
  color: var(--ff-paper);
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-leather-2), var(--ff-leather));
  border-top: 3px double var(--ff-brass);
  border-bottom: 3px double var(--ff-brass);
}

.ff-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.ff-band-title {
  margin: 0 0 6px;
  color: var(--ff-cream);
  font-family: var(--ff-font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.ff-band-text {
  margin: 0;
  max-width: 40em;
  color: rgba(236, 223, 195, 0.8);
  font-family: var(--ff-font-fell);
  font-size: 18px;
  font-style: italic;
}

.ff-main:has(> .ff-band:last-child) {
  padding-bottom: 0;
}

/* ---------- Inner page head (category, CMS) ---------- */
.ff-page-head {
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--ff-rule-soft);
  background: linear-gradient(180deg, rgba(221, 202, 164, 0.45), transparent);
}

.ff-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 15px;
  font-style: italic;
}

.ff-breadcrumb a {
  color: var(--ff-wax);
  text-decoration: underline;
  text-decoration-color: rgba(122, 47, 37, 0.35);
  text-underline-offset: 3px;
}

.ff-breadcrumb a:hover {
  text-decoration-color: var(--ff-wax);
}

.ff-page-title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 3px double var(--ff-rule);
  color: var(--ff-ink);
  font-family: var(--ff-font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.ff-page-lead {
  max-width: 52em;
  margin-top: 16px;
  color: var(--ff-ink-soft);
  font-size: 16px;
}

.ff-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.ff-tab {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background: rgba(246, 238, 220, 0.7);
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 17px;
  letter-spacing: 0.03em;
  transition: border-color var(--ff-ease), color var(--ff-ease), background-color var(--ff-ease);
}

.ff-tab:hover {
  border-color: var(--ff-wax);
  color: var(--ff-wax);
}

.ff-tab.is-active {
  border-color: var(--ff-wax-dark);
  color: #f6e9d4;
  background: linear-gradient(180deg, var(--ff-wax-light), var(--ff-wax-dark));
}

.ff-page-body {
  padding-top: 36px;
}

/* Empty state */
.ff-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px;
  border: 1px dashed var(--ff-rule);
  border-radius: 3px;
  background: rgba(246, 238, 220, 0.6);
  text-align: center;
}

.ff-empty-title {
  margin: 0;
  font-family: var(--ff-font-heading);
  font-size: 22px;
}

.ff-empty-text {
  margin: 0 0 6px;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 17px;
  font-style: italic;
}

/* ---------- Product cards ---------- */
.ff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 24px;
}

.ff-body .ff-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.85);
  box-shadow: var(--ff-shadow);
  text-align: left;
  transition: transform var(--ff-ease), border-color var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-body .ff-card:hover {
  transform: translateY(-3px);
  border-color: var(--ff-wax);
  box-shadow: var(--ff-shadow-lift);
}

.ff-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  margin: 10px 10px 0;
  overflow: hidden;
  border: 1px solid var(--ff-ink-soft);
  background: var(--ff-leather);
}

.ff-card-media .image {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ff-card:hover .ff-card-media .image {
  transform: scale(1.04);
}

.ff-card-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    var(--ff-grain),
    radial-gradient(circle, var(--ff-leather-2), var(--ff-leather));
}

.ff-card-media-empty img {
  width: 42%;
  height: auto;
  opacity: 0.85;
}

.ff-card-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 9px;
  border: 1px solid #c79c4f;
  border-radius: 2px;
  background: linear-gradient(180deg, #b48a3e, #8e6a2b);
  color: #1f150d;
  font-family: var(--ff-font-heading);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* Rubber-stamp sale mark */
.ff-stamp {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 2px 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: rgba(246, 238, 220, 0.9);
  color: var(--ff-wax);
  font-family: var(--ff-font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  rotate: 8deg;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ff-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
}

.ff-body .store-product .product-title {
  margin: 0;
  color: var(--ff-ink);
  font-family: var(--ff-font-fell);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.ff-body .store-product .product-title a {
  color: inherit;
}

.ff-body .store-product .product-title a:hover {
  color: var(--ff-wax);
}

.ff-body .store-product .product-title .countdown {
  margin-top: 6px;
  color: var(--ff-wax);
  font-family: var(--ff-font-body);
  font-size: 13px;
}

/* Price and purchase buttons (package-actions.twig) */
.ff-body .store-product .actions {
  gap: 10px;
  margin-top: auto;
  overflow: visible;
}

.ff-body .store-product .price {
  color: var(--ff-ink);
  font-size: 14px;
}

.ff-body .store-product .price strong {
  font-family: var(--ff-font-body);
  font-size: 22px;
  font-weight: 700;
}

.ff-body .store-product .price .discount {
  color: var(--ff-muted);
  font-size: 15px;
  text-decoration-color: var(--ff-wax);
  text-decoration-thickness: 2px;
}

.ff-body .store-product .half {
  flex: 1 1 calc(50% - 5px);
}

.ff-body .store-product .wide {
  flex: 1 1 auto;
}

.ff-body .store-product .gift {
  --btn-icon: url("https://template-assets.tebex.io/images/gift.svg");
  --btn-color-text: #1f150d;
  --btn-color-text-hover: #1f150d;
  flex: none;
  width: var(--btn-size);
  padding: 0;
}

.ff-body .store-product .actions.updating::before {
  background-color: var(--ff-wax);
}

/* Quantity box shown once a package is in the basket */
.ff-body .quantity-field {
  --btn-size: 40px;
  height: 44px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background: var(--ff-paper-light);
  color: var(--ff-ink);
}

.ff-body .quantity-field .open-basket {
  font-family: var(--ff-font-fell);
  font-style: italic;
}

.ff-body .quantity-field .open-basket:hover,
.ff-body .quantity-field .open-basket:focus {
  color: var(--ff-wax);
}

.ff-body .quantity-field input[type=number] {
  color: inherit;
  font-family: var(--ff-font-body);
}

/* ---------- Product page ---------- */
.ff-product-page {
  padding-top: 26px;
}

.ff-body .ff-product {
  display: block;
  padding: 0;
}

.ff-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (width > 960px) {
  .ff-product-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    gap: 36px;
  }

  .ff-product-panel {
    position: sticky;
    top: 20px;
  }
}

.ff-product-media {
  padding: 10px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.85);
  box-shadow: var(--ff-shadow);
}

.ff-product-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ff-ink-soft);
}

.ff-product-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background:
    var(--ff-grain),
    radial-gradient(circle, var(--ff-leather-2), var(--ff-leather));
}

.ff-product-image-empty img {
  width: 34%;
  height: auto;
}

.ff-product-panel {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--ff-ink-soft);
  outline: 1px solid var(--ff-rule);
  outline-offset: -8px;
  border-radius: 2px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, var(--ff-paper-light), #ece0c5);
  box-shadow: 3px 5px 0 rgba(92, 64, 32, 0.16), 0 18px 40px rgba(92, 64, 32, 0.16);
}

.ff-product-panel::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.15) 47%, transparent 52%),
    radial-gradient(circle at 35% 30%, #a24a3b, var(--ff-wax) 55%, var(--ff-wax-dark));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(0, 0, 0, 0.1);
  opacity: 0.92;
}

.ff-product-panel .ff-eyebrow {
  padding-right: 52px;
}

.ff-body .ff-product-panel .product-title {
  margin: 0 0 18px;
  padding: 0 52px 14px 0;
  border-bottom: 3px double var(--ff-rule);
  font-family: var(--ff-font-display);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
}

.ff-body .ff-product-panel .actions {
  position: relative !important;
  bottom: auto;
  z-index: auto;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
}

.ff-body .ff-product-panel .price {
  width: 100%;
  margin: 0 0 6px;
}

.ff-body .ff-product-panel .price strong {
  font-size: 32px;
}

.ff-body .ff-product-panel .half,
.ff-body .ff-product-panel .wide {
  flex: 1 1 auto;
}

.ff-body .ff-product-panel .actions .btn-primary,
.ff-body .ff-product-panel .actions .btn-secondary:not(.gift) {
  --btn-size: 50px;
  font-size: 19px;
}

.ff-body .ff-product-panel .gift {
  --btn-size: 50px;
}

.ff-product-help {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--ff-rule);
}

.ff-product-help a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ff-wax);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

.ff-product-help a:hover {
  color: var(--ff-wax-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ff-product-help svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.ff-product-descr {
  margin-top: 36px;
  padding: 32px clamp(20px, 4vw, 44px);
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.8);
  box-shadow: var(--ff-shadow);
}

.ff-descr-title {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px double var(--ff-rule);
  color: var(--ff-wax-dark);
  font-family: var(--ff-font-heading);
  font-size: 28px;
  font-weight: 400;
}

.ff-body .ff-product .descr {
  max-width: 54em;
  color: var(--ff-ink);
}

/* Media slider */
.ff-body .media-slider .slider {
  border: 1px solid var(--ff-ink-soft);
  background: var(--ff-leather);
}

.ff-body .media-slider .slider::part(container) {
  --swiper-theme-color: var(--ff-cream);
}

.ff-body .media-slider .thumb {
  border: 1px solid var(--ff-rule);
  border-radius: 2px;
  background: var(--ff-paper-dark);
  transition: border-color var(--ff-ease);
}

.ff-body .media-slider .thumb.active {
  border-color: var(--ff-wax);
  box-shadow: 0 0 0 1px var(--ff-wax);
}

.ff-body .media-slider .open-lightbox {
  border-radius: 3px;
  background: rgba(43, 29, 20, 0.55);
  --color-tertiary-text: var(--ff-paper);
  --color-tertiary-text-hover: var(--ff-brass-light);
}

/* ---------- Text from Tebex (descriptions, pages) ---------- */
.ff-body .text-content {
  line-height: 1.75;
}

.ff-body .text-content h1,
.ff-body .text-content h2,
.ff-body .text-content h3,
.ff-body .text-content h4 {
  font-weight: 400;
  line-height: 1.25;
}

.ff-body .text-content h1 {
  font-family: var(--ff-font-display);
  font-size: 32px;
}

.ff-body .text-content h2 {
  margin-top: 1.4em;
  color: var(--ff-wax-dark);
  font-family: var(--ff-font-heading);
  font-size: 26px;
}

.ff-body .text-content h3 {
  margin-top: 1.2em;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--ff-rule);
  font-family: var(--ff-font-fell);
  font-size: 21px;
}

.ff-body .text-content h4 {
  font-family: var(--ff-font-fell);
  font-size: 18px;
  font-style: italic;
}

.ff-body .text-content > :first-child {
  margin-top: 0;
}

.ff-body .text-content h1:not(:last-child),
.ff-body .text-content h2:not(:last-child),
.ff-body .text-content h3:not(:last-child),
.ff-body .text-content h4:not(:last-child) {
  margin-bottom: 14px;
}

.ff-body .text-content p:not(:last-child) {
  margin-bottom: 14px;
}

.ff-body .text-content a:not(.btn-primary):not(.btn-secondary):not(.ff-btn) {
  color: var(--ff-wax);
  text-decoration: underline;
  text-decoration-color: rgba(122, 47, 37, 0.35);
  text-underline-offset: 3px;
}

.ff-body .text-content a:not(.btn-primary):not(.btn-secondary):not(.ff-btn):hover {
  text-decoration-color: var(--ff-wax-dark);
}

.ff-body .text-content ul,
.ff-body .text-content ol {
  margin-left: 1.3em;
}

.ff-body .text-content ul li {
  list-style: none;
  position: relative;
}

.ff-body .text-content ul li::before {
  content: "✦";
  position: absolute;
  left: -1.2em;
  color: var(--ff-brass);
  font-size: 0.8em;
  line-height: 2.2;
}

.ff-body .text-content ol li {
  list-style: decimal;
}

.ff-body .text-content li + li {
  margin-top: 4px;
}

.ff-body .text-content hr {
  height: 14px;
  margin: 24px 0;
  border: 0;
  background:
    linear-gradient(var(--ff-rule), var(--ff-rule)) center 5px / 100% 1px no-repeat,
    linear-gradient(var(--ff-rule), var(--ff-rule)) center 9px / 100% 1px no-repeat;
}

.ff-body .text-content blockquote {
  margin: 0 0 14px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--ff-brass);
  color: var(--ff-ink-soft);
  font-family: var(--ff-font-fell);
  font-size: 17px;
  font-style: italic;
}

.ff-body .text-content code {
  padding: 1px 6px;
  border: 1px solid rgba(122, 47, 37, 0.14);
  border-radius: 3px;
  background: rgba(122, 47, 37, 0.08);
  color: var(--ff-wax-dark);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.ff-body .text-content table {
  width: 100%;
  margin-bottom: 14px;
  border-collapse: collapse;
  border: 1px solid var(--ff-rule);
  background: rgba(246, 238, 220, 0.6);
}

.ff-body .text-content th {
  padding: 8px 12px;
  border-bottom: 3px double var(--ff-rule);
  background: rgba(221, 202, 164, 0.7);
  font-family: var(--ff-font-heading);
  font-weight: 400;
  text-align: left;
}

.ff-body .text-content td {
  padding: 8px 12px;
  border-top: 1px dotted var(--ff-rule);
  vertical-align: top;
}

.ff-body .text-content img {
  border-radius: 2px;
}

.ff-body .text-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  border: 1px solid var(--ff-ink-soft);
}

/* ---------- Login page and popup ---------- */
.ff-login-page {
  padding-top: 56px;
}

.ff-body .ff-login,
.ff-body .login-popup-content {
  text-align: center;
}

.ff-body .ff-login {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 32px 28px;
  border: 1px solid var(--ff-ink-soft);
  outline: 1px solid var(--ff-rule);
  outline-offset: -9px;
  border-radius: 2px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, var(--ff-paper-light), #ece0c5);
  box-shadow: var(--ff-shadow-lift);
}

.ff-body h2.ff-login-title {
  margin: 0 0 10px !important;
  color: var(--ff-ink);
  font-family: var(--ff-font-display);
  font-size: 32px;
}

.ff-body .ff-login-text {
  margin: 0 0 22px !important;
  color: var(--ff-ink-soft);
  font-family: var(--ff-font-fell);
  font-size: 17px;
  font-style: italic;
}

.ff-body .store-form .field .btn-primary {
  width: 100%;
}

/* ---------- Forms ---------- */
.ff-body .store-form input[type=text],
.ff-body .store-form input[type=password],
.ff-body .store-form input[type=email],
.ff-body .store-form input[type=number],
.ff-body .store-form input[type=search],
.ff-body .store-form input[type=url],
.ff-body .store-form input[type=tel],
.ff-body .store-form input[type=date],
.ff-body .store-form select,
.ff-body .store-form textarea,
.ff-body .popup .store-form input[type=text],
.ff-body .popup .store-form input[type=number],
.ff-body .popup .store-form input[type=email],
.ff-body .popup .store-form select,
.ff-body .popup .store-form textarea,
.ff-body .widget-gift-card .gift-card-input,
.ff-body .popup .widget-gift-card .gift-card-input {
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background: #fbf6ea;
  color: var(--ff-ink);
  font-family: var(--ff-font-body);
  font-size: 15px;
  transition: border-color var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-body .store-form input:focus,
.ff-body .store-form select:focus,
.ff-body .store-form textarea:focus,
.ff-body .widget-gift-card .gift-card-input:focus {
  border-color: var(--ff-wax);
  box-shadow: 0 0 0 3px var(--ff-wax-soft);
}

.ff-body ::placeholder {
  color: var(--ff-muted);
  font-style: italic;
}

.ff-body .link-text {
  color: var(--ff-wax);
}

/* ---------- Widgets (Tebex modules) ---------- */
.ff-body .widget {
  padding: 22px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.85);
  box-shadow: var(--ff-shadow);
}

.ff-body .widget-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px double var(--ff-rule);
  color: var(--ff-wax-dark);
  font-family: var(--ff-font-heading);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
}

.ff-body .widget-featured .ff-card {
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

.ff-body .widget-featured .ff-card-media {
  margin: 0;
}

.ff-body .widget-featured .ff-card-body {
  padding: 14px 0 0;
}

.ff-body .widget-community-goal .progress,
.ff-body .widget-goal .progress {
  border: 1px solid var(--ff-rule);
  border-radius: 2px;
  background: var(--ff-paper-dark);
}

.ff-body .widget-top-donator .avatar,
.ff-body .widget-recent .avatar {
  border: 1px solid var(--ff-ink-soft);
}

.ff-body .badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
  color: #f6e9d4;
  font-family: var(--ff-font-heading);
  font-size: 14px;
}

.ff-body .badge-success {
  background: var(--ff-green);
}

.ff-body .badge-danger {
  background: var(--ff-wax);
}

/* ---------- Tiered categories ---------- */
.ff-body .store-category-tiered {
  padding: 0;
}

.ff-body .store-product-tiered {
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.85);
  box-shadow: var(--ff-shadow);
}

.ff-body .store-product-tiered.subscribed {
  border-color: var(--ff-wax);
  box-shadow: 0 0 0 1px var(--ff-wax), var(--ff-shadow);
}

.ff-body .store-product-tiered .product-title {
  font-family: var(--ff-font-heading);
  font-size: 24px;
  text-align: center;
}

.ff-body .store-product-tiered .descr {
  border-color: var(--ff-rule-soft);
  color: var(--ff-ink-soft);
}

/* ---------- Popups ---------- */
.ff-body .popup {
  background-color: rgba(43, 29, 20, 0.7);
  scrollbar-color: rgba(92, 64, 32, 0.45) transparent;
}

.ff-body .popup.may-close {
  background-color: rgba(43, 29, 20, 0.4);
}

.ff-body .popup-content {
  padding: 28px 24px 24px;
  border: 1px solid var(--ff-ink-soft);
  border-radius: 2px;
  background:
    var(--ff-grain),
    linear-gradient(160deg, var(--ff-paper-light), #ece0c5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: var(--ff-ink);
}

.ff-body .popup-close {
  top: 6px;
  right: 6px;
  border-radius: 3px;
  opacity: 0.7;
}

.ff-body .popup-close:hover {
  background-color: var(--ff-wax-soft);
  opacity: 1;
}

.ff-body .popup.popup-loading .popup-content::before {
  background-color: var(--ff-wax);
}

.ff-body .popup-content h2,
.ff-body .popup-content h3 {
  font-family: var(--ff-font-heading);
  font-weight: 400;
}

/* Product opened as a popup */
.ff-body .store-product-popup-content {
  max-width: 980px;
}

.ff-body .store-product-popup-content .ff-product-grid {
  grid-template-columns: 1fr;
}

.ff-body .store-product-popup-content .ff-product-panel {
  position: relative;
  top: auto;
}

/* Lightbox */
.ff-body .popup.popup-media-slider {
  background-color: rgba(28, 19, 12, 0.92);
  --color-text: var(--ff-paper);
}

.ff-body .popup.popup-media-slider .thumb {
  border: 1px solid rgba(236, 223, 195, 0.25);
  border-radius: 2px;
  background: rgba(43, 29, 20, 0.7);
}

/* Gift form popup */
.ff-body .gift-form-popup .popup-content .btn-primary {
  width: 100%;
}

/* ---------- Basket drawer ---------- */
.ff-body .basket-popup-content {
  padding: 0;
  border: 0;
  border-left: 3px double var(--ff-rule);
  border-radius: 0;
  background:
    var(--ff-grain),
    var(--ff-paper);
}

.ff-body .basket .basket-header {
  padding: 40px 24px 22px;
  color: var(--ff-cream);
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-leather-2), var(--ff-leather));
  border-bottom: 3px double var(--ff-brass);
}

.ff-body .basket .basket-title {
  font-family: var(--ff-font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.ff-body .basket .basket-title::before {
  background-color: var(--ff-brass-light);
}

.ff-body .basket-popup-content .popup-close::before {
  background-color: var(--ff-paper);
}

.ff-body .basket-popup-content .popup-close:hover {
  background-color: rgba(236, 223, 195, 0.12);
}

.ff-body .basket .basket-second-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--ff-rule-soft);
  background: rgba(221, 202, 164, 0.6);
  color: var(--ff-ink-soft);
  font-family: var(--ff-font-fell);
  font-style: italic;
}

.ff-body .basket .basket-items {
  gap: 14px;
  padding: 20px 24px;
}

.ff-body .basket .basket-item {
  padding: 16px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background: rgba(246, 238, 220, 0.9);
  box-shadow: var(--ff-shadow);
}

.ff-body .basket .basket-item .title {
  font-family: var(--ff-font-fell);
  font-size: 19px;
  font-weight: 400;
}

.ff-body .basket .basket-item .title a:hover {
  color: var(--ff-wax);
}

.ff-body .basket .basket-item .options {
  color: var(--ff-muted);
  font-size: 13px;
}

.ff-body .basket .basket-item .price {
  color: var(--ff-wax);
}

.ff-body .basket .basket-item .trial {
  border-radius: 2px;
  font-family: var(--ff-font-heading);
  letter-spacing: 0.06em;
}

.ff-body .basket .basket-item .remove {
  --btn-size: 40px;
  --btn-color-text: #1f150d;
  border-radius: 3px;
}

.ff-body .basket .basket-checkout {
  padding: 20px 24px 40px;
  border-top: 3px double var(--ff-rule);
}

.ff-body .basket .basket-checkout h3 {
  font-family: var(--ff-font-heading);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
}

.ff-body .basket .basket-checkout .total {
  color: var(--ff-wax);
  font-family: var(--ff-font-body);
}

.ff-body .basket .basket-checkout .checkout {
  --btn-size: 54px;
  width: 100%;
  font-size: 20px;
}

.ff-body .basket .basket-empty {
  padding: 40px 24px;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 20px;
  font-style: italic;
}

/* ---------- Toasts ---------- */
.ff-body .toast {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-leather-2), var(--ff-leather));
  color: var(--ff-paper);
  font-family: var(--ff-font-fell);
  font-size: 17px;
  box-shadow: 0 10px 24px rgba(43, 29, 20, 0.45);
}

.ff-body .toast.toast-success {
  background: var(--ff-green);
}

.ff-body .toast.toast-error {
  background: var(--ff-wax);
}

.ff-body .toast.toast-warning {
  background: var(--ff-brass);
  color: #1f150d;
}

.ff-body .toast-close {
  border-radius: 3px;
}

.ff-body .toast-close::before {
  background-color: currentColor;
}

/* ---------- Footer ---------- */
.ff-footer {
  color: rgba(236, 223, 195, 0.82);
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-leather-2), var(--ff-leather));
  border-top: 3px double var(--ff-brass);
  view-transition-name: siteFooter;
}

.ff-main:has(> .ff-band:last-child) + .ff-footer {
  border-top: 0;
}

.ff-footer-grid {
  display: grid;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 36px;
}

@media (width > 600px) {
  .ff-footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.ff-footer-text {
  max-width: 30em;
  margin-top: 14px;
  color: rgba(236, 223, 195, 0.7);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}

.ff-footer .ff-brand-tagline {
  display: block;
}

.ff-footer-studio {
  margin-top: 14px;
  color: rgba(236, 223, 195, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.ff-footer-studio a {
  margin-left: 4px;
  color: var(--ff-brass-light);
  text-decoration: underline;
  text-decoration-color: rgba(217, 181, 106, 0.4);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.ff-footer-studio a + a::before {
  content: "·";
  margin-right: 8px;
  color: rgba(236, 223, 195, 0.5);
  text-decoration: none;
}

.ff-footer-studio a:hover {
  text-decoration-color: var(--ff-brass-light);
}

.ff-footer-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(148, 112, 47, 0.55);
  color: var(--ff-brass-light);
  font-family: var(--ff-font-heading);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ff-footer-col ul {
  display: grid;
  gap: 6px;
}

.ff-footer-col a {
  color: rgba(236, 223, 195, 0.85);
  font-size: 14px;
  transition: color var(--ff-ease);
}

.ff-footer-col a:hover {
  color: var(--ff-brass-light);
}

.ff-footer-bottom {
  border-top: 1px solid rgba(148, 112, 47, 0.35);
  background: rgba(0, 0, 0, 0.18);
}

.ff-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.ff-copyright {
  color: rgba(236, 223, 195, 0.6);
  font-size: 12px;
  line-height: 1.6;
}

.ff-we-accept {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ff-we-accept li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--ff-paper-light);
}

.ff-we-accept img {
  max-width: 44px;
  max-height: 20px;
}

/* ---------- Featured resources: hero spot and looping reel (ff.js) ---------- */
.ff-hero-spot {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ff-spot {
  position: relative;
  width: min(100%, 400px);
  padding-top: 18px;
}

.ff-spot-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  translate: -50% 0;
  padding: 6px 16px;
  border: 1px solid #c79c4f;
  border-radius: 3px;
  background: linear-gradient(180deg, #b48a3e, #8e6a2b);
  color: #1f150d;
  font-family: var(--ff-font-heading);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.45), 0 3px 0 rgba(0, 0, 0, 0.3);
  rotate: -2deg;
}

.ff-body .ff-spot .ff-card {
  rotate: -1.5deg;
  border-color: var(--ff-ink-soft);
  outline: 1px solid var(--ff-rule);
  outline-offset: -8px;
  box-shadow: 3px 5px 0 rgba(92, 64, 32, 0.16), 0 22px 44px rgba(92, 64, 32, 0.22);
}

.ff-body .ff-spot .ff-card:hover {
  rotate: 0deg;
}

.ff-body .ff-spot .ff-card .product-title {
  font-family: var(--ff-font-display);
  font-size: 24px;
}

.ff-body .ff-spot .ff-card .price strong {
  font-size: 26px;
}

@media (width > 960px) {
  .ff-spot {
    width: min(100%, 420px);
  }
}

.ff-reel .ff-wrap {
  margin-bottom: 4px;
}

.ff-reel-viewport {
  position: relative;
  overflow: hidden;
  padding: 10px 0 24px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ff-reel-track {
  display: flex;
  width: max-content;
  animation: ffTicker var(--ff-reel-duration, 60s) linear infinite;
}

.ff-reel-viewport:hover .ff-reel-track,
.ff-reel-viewport:focus-within .ff-reel-track {
  animation-play-state: paused;
}

.ff-reel-group {
  display: flex;
  flex: none;
  gap: 20px;
  padding-right: 20px;
}

.ff-reel-group > * {
  flex: 0 0 262px;
}

.ff-body .ff-reel-group .ff-card:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .ff-reel-viewport {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 64, 32, 0.45) transparent;
  }

  .ff-reel-track {
    animation: none;
  }

  .ff-reel-group[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Login: page and popup ---------- */
.ff-body .ff-login,
.ff-body .login-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ff-body .login-popup-content {
  max-width: 500px;
  padding: 40px 32px 28px;
  outline: 1px solid var(--ff-rule);
  outline-offset: -9px;
}

.ff-login-logo {
  width: 104px;
  height: auto;
  margin: 0 0 12px;
  filter: drop-shadow(0 4px 6px rgba(43, 24, 10, 0.35));
}

.ff-body .ff-login-eyebrow {
  margin-bottom: 6px !important;
}

.ff-body .ff-login-field {
  width: 100%;
  margin-bottom: 22px !important;
}

.ff-body .ff-login-btn {
  --btn-size: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 19px;
}

.ff-body .ff-login-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.ff-login-steps {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0 0 18px;
  padding: 16px 0 0;
  border-top: 1px dashed var(--ff-rule);
  list-style: none;
  text-align: left;
}

.ff-body .text-content .ff-login-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ff-ink-soft);
  font-size: 14px;
  line-height: 1.55;
  list-style: none;
}

.ff-body .text-content .ff-login-steps li::before {
  content: none;
}

.ff-seal-xs {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  font-size: 11px;
}

.ff-body .ff-login-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 14px;
  font-style: italic;
}

.ff-login-note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ff-green);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* ---------- Category page: title row, toolbar, pager ---------- */
.ff-page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-bottom: 12px;
  border-bottom: 3px double var(--ff-rule);
}

.ff-page-title-row .ff-page-title {
  padding-bottom: 0;
  border-bottom: 0;
}

.ff-page-total {
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 18px;
  font-style: italic;
}

.ff-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    var(--ff-grain),
    rgba(246, 238, 220, 0.8);
  box-shadow: var(--ff-shadow);
}

@media (width > 700px) {
  .ff-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ff-catalogue-count {
    grid-column: 1 / -1;
  }
}

@media (width > 960px) {
  .ff-toolbar {
    grid-template-columns: minmax(280px, 1fr) auto auto;
    padding: 14px 18px;
  }

  .ff-catalogue-count {
    grid-column: auto;
    justify-self: end;
  }
}

.ff-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ff-search > svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ff-muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.ff-search-input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background: #fbf6ea;
  color: var(--ff-ink);
  font-family: var(--ff-font-body);
  font-size: 15px;
  transition: border-color var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-search-input::-webkit-search-cancel-button {
  display: none;
}

.ff-search-input:focus {
  border-color: var(--ff-wax);
  box-shadow: 0 0 0 3px var(--ff-wax-soft);
}

.ff-search-clear {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  color: var(--ff-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ff-ease), background-color var(--ff-ease);
}

.ff-search-clear:hover {
  color: var(--ff-wax);
  background: var(--ff-wax-soft);
}

.ff-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ff-sort-label {
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

.ff-sort-select {
  height: 46px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5d46' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat,
    #fbf6ea;
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 16px;
  letter-spacing: 0.03em;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--ff-ease), box-shadow var(--ff-ease);
}

.ff-sort-select:focus {
  border-color: var(--ff-wax);
  box-shadow: 0 0 0 3px var(--ff-wax-soft);
}

.ff-catalogue-count {
  margin: 0;
  color: var(--ff-muted);
  font-family: var(--ff-font-fell);
  font-size: 16px;
  font-style: italic;
}

.ff-catalogue-count:empty {
  display: none;
}

.ff-catalogue-grid {
  min-height: 120px;
}

.ff-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--ff-rule);
}

.ff-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ff-rule);
  border-radius: 3px;
  background: rgba(246, 238, 220, 0.8);
  color: var(--ff-ink);
  font-family: var(--ff-font-heading);
  font-size: 17px;
  cursor: pointer;
  transition: border-color var(--ff-ease), color var(--ff-ease), background-color var(--ff-ease);
}

.ff-pager-btn:hover:not(:disabled) {
  border-color: var(--ff-wax);
  color: var(--ff-wax);
}

.ff-pager-btn[aria-current="page"] {
  border-color: var(--ff-wax-dark);
  background: linear-gradient(180deg, var(--ff-wax-light), var(--ff-wax-dark));
  color: #f6e9d4;
  cursor: default;
}

.ff-pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ff-pager-arrow {
  font-size: 22px;
  line-height: 1;
}

.ff-pager-gap {
  display: inline-flex;
  align-items: flex-end;
  padding: 0 4px 8px;
  color: var(--ff-muted);
}

/* ---------- Sale countdown (Tebex package.countdownEnds, ticked by main.js) ---------- */
.ff-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f6e9d4;
  background:
    var(--ff-grain),
    linear-gradient(180deg, var(--ff-wax-light), var(--ff-wax-dark));
  font-family: var(--ff-font-heading);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.ff-countdown svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ff-brass-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ff-countdown-label {
  color: rgba(246, 233, 212, 0.85);
}

.ff-countdown .countdown {
  margin: 0;
  color: #fff6e6;
  font-family: var(--ff-font-body);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* On a card: strip across the bottom of the image */
.ff-countdown-card {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  justify-content: center;
  padding: 8px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.35);
}

/* On the product page: a tag above the price */
.ff-countdown-panel {
  margin: -6px 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--ff-wax-dark);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 200, 0.2), 0 2px 0 rgba(43, 29, 20, 0.3);
}

.ff-body .text-content .ff-countdown-panel {
  margin-bottom: 16px;
}

/* ---------- Documentation as the last menu link ---------- */
.ff-nav-ext {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8em;
  opacity: 0.7;
}

@media (width > 960px) {
  .ff-nav .menu > li.ff-nav-docs {
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(217, 181, 106, 0.35);
  }

  .ff-nav .menu > li.ff-nav-docs > a {
    color: var(--ff-brass-light);
    font-family: var(--ff-font-fell);
    font-style: italic;
    letter-spacing: 0.02em;
  }

  .ff-nav .menu > li.ff-nav-docs > a:hover {
    color: var(--ff-cream);
  }
}

