:root {
  --wfh-paper: #f7f0df;
  --wfh-paper-light: #fffdf7;
  --wfh-paper-deep: #eee1ca;
  --wfh-ink: #191d1c;
  --wfh-muted: #665f55;
  --wfh-line: #d8cdbb;
  --wfh-coral: #ef6f68;
  --wfh-teal: #35a7a3;
  --wfh-teal-dark: #207e7b;
  --wfh-mustard: #e4a62d;
  --wfh-purple: #6267a5;
  --wfh-pencil: #403a33;
  --wfh-shadow: rgba(58, 45, 29, .16);
}

body.wfh-home,
body.wfh-about,
body.wfh-tool {
  color: var(--wfh-ink) !important;
  background-color: var(--wfh-paper) !important;
  background-image:
    radial-gradient(circle at 14% 12%, rgba(228, 166, 45, .12) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 28%, rgba(239, 111, 104, .09) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, .28), transparent 36%, rgba(255, 255, 255, .2));
  background-size: 24px 24px, 31px 31px, 100% 100%;
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Yu Gothic", sans-serif !important;
}

body.wfh-home::before,
body.wfh-about::before,
body.wfh-tool::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .38;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(77, 61, 41, .018) 5px 6px);
}

body.wfh-home ::selection,
body.wfh-about ::selection,
body.wfh-tool ::selection {
  color: var(--wfh-ink);
  background: rgba(228, 166, 45, .46);
}

/* Shared inkboard headers */
body.wfh-home .site-header,
body.wfh-about .site-header,
body.wfh-tool > header {
  position: relative;
  z-index: 50;
  color: var(--wfh-paper-light) !important;
  background: var(--wfh-ink) !important;
  border: 0 !important;
  border-bottom: 4px solid var(--wfh-teal) !important;
  box-shadow: 0 5px 0 rgba(25, 29, 28, .13) !important;
}

body.wfh-home .site-header::after,
body.wfh-about .site-header::after,
body.wfh-tool > header::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 1px;
  content: "";
  border-bottom: 1px dashed rgba(255, 253, 247, .46);
  pointer-events: none;
}

body.wfh-home .brand-mark,
body.wfh-about .brand-mark,
body.wfh-tool > header a:first-child > span:first-child {
  overflow: hidden;
  color: transparent !important;
  text-indent: -9999px;
  background-color: #000 !important;
  background-image: url("/assets/logo-mark.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 112% !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  filter: invert(1);
  mix-blend-mode: screen;
  box-shadow: none !important;
}

body.wfh-home .brand-name,
body.wfh-about .brand-name,
body.wfh-home .header-link,
body.wfh-about .header-link,
body.wfh-home .footer-about,
body.wfh-tool > header .text-white,
body.wfh-tool > header .text-zinc-300 {
  color: var(--wfh-paper-light) !important;
}

body.wfh-home .brand-tagline,
body.wfh-about .brand-tagline,
body.wfh-tool > header .text-zinc-500,
body.wfh-tool > header .text-zinc-600 {
  color: #cfc5b3 !important;
}

body.wfh-home .header-link,
body.wfh-about .header-link,
body.wfh-tool > header a:last-child {
  border: 1px dashed rgba(255, 253, 247, .5) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  background: rgba(255, 255, 255, .06) !important;
  transition: color .18s ease, border-color .18s ease, transform .18s ease !important;
}

body.wfh-home .header-link:hover,
body.wfh-about .header-link:hover,
body.wfh-tool > header a:last-child:hover {
  color: #fff !important;
  border-color: var(--wfh-mustard) !important;
  transform: rotate(-1deg);
}

.wfh-brandbar {
  position: relative;
  z-index: 51;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(16px, calc((100vw - 1280px) / 2));
  color: var(--wfh-paper-light);
  background: var(--wfh-ink);
  border-bottom: 1px dashed rgba(255, 253, 247, .38);
}

.wfh-brandbar__brand,
.wfh-brandbar__link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.wfh-brandbar__brand { gap: 11px; }

.wfh-brandbar__mark {
  width: 42px;
  height: 42px;
  background: #000 url("/assets/logo-mark.png") center / 112% no-repeat;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  filter: invert(1);
  mix-blend-mode: screen;
}

.wfh-brandbar__link {
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed rgba(255, 253, 247, .5);
  border-radius: 999px;
  font-size: 13px;
}
/* Home */
body.wfh-home main {
  padding-top: 58px;
}

body.wfh-home .hero {
  position: relative;
  max-width: none;
  overflow: hidden;
  margin-bottom: 56px;
  padding: clamp(34px, 7vw, 74px);
  background: rgba(255, 253, 247, .9);
  border: 2px solid var(--wfh-ink);
  border-radius: 26px 34px 25px 38px;
  box-shadow: 9px 10px 0 rgba(53, 167, 163, .24), 0 20px 48px var(--wfh-shadow);
}

body.wfh-home .hero::before {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 72px;
  height: 72px;
  content: "✦";
  color: var(--wfh-mustard);
  font-size: 62px;
  line-height: 1;
  transform: rotate(12deg);
}

body.wfh-home .hero::after {
  position: absolute;
  right: 7%;
  bottom: -44px;
  width: 190px;
  height: 190px;
  content: "";
  opacity: .055;
  background: url("/assets/logo-mark.png") center / contain no-repeat;
  mix-blend-mode: multiply;
  transform: rotate(8deg);
}

body.wfh-home .eyebrow,
body.wfh-about .eyebrow {
  width: fit-content;
  padding: 7px 13px;
  color: var(--wfh-ink) !important;
  background: var(--wfh-mustard);
  border: 1.5px solid var(--wfh-ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--wfh-ink);
  transform: rotate(-1.5deg);
}

body.wfh-home .eyebrow::before,
body.wfh-about .eyebrow::before {
  background: var(--wfh-coral);
  box-shadow: none;
}

body.wfh-home h1,
body.wfh-about h1 {
  position: relative;
  z-index: 1;
  color: var(--wfh-ink);
  font-weight: 900;
  text-shadow: 3px 3px 0 rgba(239, 111, 104, .2);
}

body.wfh-home .hero-copy,
body.wfh-home .tool-description,
body.wfh-about .hero-copy,
body.wfh-about .lead,
body.wfh-about .value-card p,
body.wfh-about .note-panel li {
  color: var(--wfh-muted);
}

body.wfh-home .section-heading h2,
body.wfh-about h2 {
  text-decoration: underline;
  text-decoration-color: rgba(53, 167, 163, .48);
  text-decoration-thickness: 7px;
  text-underline-offset: -3px;
  text-decoration-skip-ink: none;
}

body.wfh-home .section-heading p {
  color: var(--wfh-muted);
}

body.wfh-home .tool-grid {
  gap: 28px;
}

body.wfh-home .tool-card {
  isolation: isolate;
  background: rgba(255, 253, 247, .96);
  border: 2px solid var(--wfh-ink);
  border-radius: 18px 25px 20px 27px;
  box-shadow: 7px 8px 0 var(--wfh-shadow);
  transform: rotate(-.35deg);
}

body.wfh-home .tool-card:nth-child(even) {
  transform: rotate(.4deg);
}

body.wfh-home .tool-card::before {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: -1;
  width: 92px;
  height: 25px;
  content: "";
  opacity: .84;
  background: rgba(228, 166, 45, .62);
  border-right: 1px dashed rgba(25, 29, 28, .28);
  border-left: 1px dashed rgba(25, 29, 28, .28);
  transform: translateX(-50%) rotate(-2deg);
}

body.wfh-home .tool-card:nth-child(2n)::before { background: rgba(53, 167, 163, .48); transform: translateX(-50%) rotate(2deg); }
body.wfh-home .tool-card:nth-child(3n)::before { background: rgba(239, 111, 104, .48); }

body.wfh-home .tool-card:hover {
  border-color: var(--wfh-ink);
  box-shadow: 11px 13px 0 rgba(53, 167, 163, .22), 0 20px 38px var(--wfh-shadow);
  transform: translateY(-5px) rotate(0);
}

body.wfh-home .tool-icon {
  border: 2px solid var(--wfh-ink);
  border-radius: 50% 44% 48% 42%;
  box-shadow: 3px 4px 0 rgba(25, 29, 28, .2);
}

body.wfh-home .status {
  color: var(--wfh-ink);
  background: #dff4e6;
  border: 1px dashed var(--wfh-teal-dark);
}

body.wfh-home .tool-meta span {
  color: var(--wfh-muted);
  background: #fff9ec;
  border-color: var(--wfh-line);
  border-style: dashed;
}

body.wfh-home .card-action {
  color: var(--wfh-teal-dark);
}

body.wfh-home .card-action::after {
  color: var(--wfh-paper-light);
  background: var(--wfh-teal);
  border: 1.5px solid var(--wfh-ink);
  box-shadow: 2px 2px 0 var(--wfh-ink);
}

body.wfh-home .coming-next {
  color: var(--wfh-muted);
  background: rgba(255, 253, 247, .6);
  border: 2px dashed var(--wfh-teal);
  transform: rotate(-.15deg);
}

body.wfh-home .plus-mark {
  color: var(--wfh-ink);
  background: var(--wfh-mustard);
  border: 1px solid var(--wfh-ink);
}

/* About */
body.wfh-about .hero,
body.wfh-about .value-card,
body.wfh-about .note-panel {
  background: rgba(255, 253, 247, .94);
  border: 2px solid var(--wfh-ink);
  box-shadow: 7px 8px 0 var(--wfh-shadow);
}

body.wfh-about .hero {
  border-radius: 25px 35px 26px 38px;
  box-shadow: 10px 11px 0 rgba(239, 111, 104, .2), 0 22px 45px var(--wfh-shadow);
}

body.wfh-about .hero::after {
  color: transparent;
  opacity: .07;
  background: url("/assets/logo-mark.png") center / contain no-repeat;
  mix-blend-mode: multiply;
}

body.wfh-about .value-card:nth-child(1) { transform: rotate(-.6deg); }
body.wfh-about .value-card:nth-child(2) { transform: rotate(.5deg); }
body.wfh-about .value-card:nth-child(3) { transform: rotate(-.25deg); }

body.wfh-about .value-number {
  color: var(--wfh-ink);
  background: var(--wfh-mustard);
  border: 1.5px solid var(--wfh-ink);
  box-shadow: 2px 2px 0 var(--wfh-ink);
}

body.wfh-about .section-label {
  color: var(--wfh-teal-dark);
}

body.wfh-about .note-panel li::before {
  color: var(--wfh-teal-dark);
}

body.wfh-about .section-link,
body.wfh-about .cta {
  background: var(--wfh-ink);
}

body.wfh-about .section-link {
  border: 2px solid var(--wfh-ink);
  box-shadow: 4px 4px 0 var(--wfh-coral);
}

body.wfh-about .cta {
  border: 2px solid var(--wfh-ink);
  border-radius: 18px 27px 20px 25px;
  box-shadow: 8px 9px 0 rgba(53, 167, 163, .34);
  transform: rotate(.15deg);
}

/* Tool pages */
body.wfh-tool {
  min-height: 100vh;
}

body.wfh-tool .glass {
  background: rgba(255, 253, 247, .94) !important;
  border-color: var(--wfh-line) !important;
}

body.wfh-tool .noise {
  opacity: .16 !important;
  mix-blend-mode: multiply;
}
body.wfh-tool > main {
  position: relative;
}

body.wfh-tool > main::before {
  position: absolute;
  top: 18px;
  right: max(20px, calc((100vw - 1280px) / 2));
  z-index: -1;
  content: "✦";
  color: var(--wfh-mustard);
  font-size: 52px;
  transform: rotate(10deg);
}

body.wfh-tool h1,
body.wfh-tool h2,
body.wfh-tool h3,
body.wfh-tool .text-white,
body.wfh-tool .text-zinc-100,
body.wfh-tool .text-zinc-200,
body.wfh-tool .text-zinc-300 {
  color: var(--wfh-ink) !important;
}

body.wfh-tool .bg-acid,
body.wfh-tool [class*="bg-acid/"] {
  background-color: var(--wfh-teal) !important;
}

body.wfh-tool h1 {
  font-weight: 900 !important;
  text-shadow: 3px 3px 0 rgba(239, 111, 104, .18);
}

body.wfh-tool .text-zinc-400,
body.wfh-tool .text-zinc-500,
body.wfh-tool .text-zinc-600 {
  color: var(--wfh-muted) !important;
}

body.wfh-tool .text-lime-300,
body.wfh-tool .text-lime-400,
body.wfh-tool .text-violet-300,
body.wfh-tool .text-violet-400,
body.wfh-tool .text-acid {
  color: var(--wfh-teal-dark) !important;
}

body.wfh-tool .bg-zinc-950,
body.wfh-tool [class*="bg-zinc-950/"] {
  background-color: rgba(247, 240, 223, .72) !important;
}

body.wfh-tool .bg-zinc-900,
body.wfh-tool [class*="bg-zinc-900/"] {
  background-color: rgba(255, 253, 247, .94) !important;
}

body.wfh-tool .bg-zinc-800,
body.wfh-tool [class*="bg-zinc-800/"] {
  background-color: #f2e8d6 !important;
}

body.wfh-tool .border-zinc-700,
body.wfh-tool .border-zinc-800,
body.wfh-tool [class*="border-zinc-700/"],
body.wfh-tool [class*="border-zinc-800/"] {
  border-color: var(--wfh-line) !important;
}

body.wfh-tool .bg-lime-400,
body.wfh-tool [class*="bg-lime-400/"] {
  background-color: var(--wfh-teal) !important;
}

body.wfh-tool .bg-violet-500,
body.wfh-tool [class*="bg-violet-500/"] {
  background-color: var(--wfh-purple) !important;
}

body.wfh-tool main section[class*="rounded-"],
body.wfh-tool main article[class*="rounded-"],
body.wfh-tool main div[class*="rounded-3xl"][class*="border"] {
  border-color: var(--wfh-line) !important;
  box-shadow: 6px 7px 0 rgba(58, 45, 29, .11) !important;
}

body.wfh-tool main section[class*="rounded-3xl"],
body.wfh-tool main article[class*="rounded-2xl"] {
  border-width: 2px !important;
}

body.wfh-tool main > section:first-child p:first-child,
body.wfh-tool main > div:first-child + section p:first-child {
  width: fit-content;
  color: var(--wfh-ink) !important;
  background: var(--wfh-mustard) !important;
  border: 1.5px solid var(--wfh-ink) !important;
  box-shadow: 3px 3px 0 var(--wfh-ink);
  transform: rotate(-1deg);
}

body.wfh-tool input:not([type="range"]):not([type="checkbox"]):not([type="file"]),
body.wfh-tool textarea,
body.wfh-tool select {
  color: var(--wfh-ink) !important;
  background-color: var(--wfh-paper-light) !important;
  border-color: #bcae98 !important;
  box-shadow: inset 0 -1px 0 rgba(53, 167, 163, .12);
}

body.wfh-tool input::placeholder,
body.wfh-tool textarea::placeholder {
  color: #948a7b !important;
}

body.wfh-tool button,
body.wfh-tool a[class*="rounded-xl"] {
  border-color: var(--wfh-line);
}

body.wfh-tool button[class*="bg-lime-400"],
body.wfh-tool a[class*="bg-lime-400"] {
  color: #071c1b !important;
  background: var(--wfh-teal) !important;
  border: 1.5px solid var(--wfh-ink) !important;
  box-shadow: 3px 3px 0 var(--wfh-ink) !important;
}

body.wfh-tool button[class*="bg-lime-400"]:hover,
body.wfh-tool a[class*="bg-lime-400"]:hover {
  background: #55bbb7 !important;
  transform: translateY(-1px);
}

body.wfh-tool details,
body.wfh-tool aside {
  color: var(--wfh-ink);
}

body.wfh-tool footer {
  position: relative;
  color: #d8cfbf !important;
  background: var(--wfh-ink) !important;
  border-top: 4px solid var(--wfh-coral) !important;
}

body.wfh-tool footer::before {
  display: block;
  width: 42px;
  height: 42px;
  margin: 18px auto -8px;
  content: "";
  background: #000 url("/assets/logo-mark.png") center / 112% no-repeat;
  border-radius: 12px;
  filter: invert(1);
  mix-blend-mode: screen;
}

body.wfh-tool footer .text-zinc-600,
body.wfh-tool footer .text-zinc-500 {
  color: #c5bcad !important;
}

body.wfh-home .site-footer,
body.wfh-about .site-footer {
  color: #d8cfbf;
  background: var(--wfh-ink);
  border-top: 4px solid var(--wfh-coral);
}

body.wfh-home .footer-inner,
body.wfh-about .footer-inner,
body.wfh-home .footer-about {
  color: #d8cfbf;
}

@media (max-width: 760px) {
  body.wfh-home .hero::before,
  body.wfh-tool > main::before {
    opacity: .55;
  }

  body.wfh-home .tool-card,
  body.wfh-home .tool-card:nth-child(even),
  body.wfh-about .value-card:nth-child(n),
  body.wfh-about .cta {
    transform: none;
  }

  body.wfh-home .tool-card:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  body.wfh-home .site-header::after,
  body.wfh-about .site-header::after,
  body.wfh-tool > header::after {
    right: 8px;
    left: 8px;
  }

  body.wfh-home .hero {
    padding: 30px 23px 40px;
    border-radius: 20px 25px 20px 28px;
  }

  body.wfh-home .hero::before {
    top: 14px;
    right: 12px;
    font-size: 38px;
  }

  body.wfh-home .hero::after {
    right: -20px;
    width: 140px;
    height: 140px;
  }

  body.wfh-home .tool-grid {
    gap: 22px;
  }

  body.wfh-tool main section[class*="rounded-"],
  body.wfh-tool main article[class*="rounded-"] {
    box-shadow: 4px 5px 0 rgba(58, 45, 29, .1) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wfh-home *,
  body.wfh-about *,
  body.wfh-tool * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Interactive states keep the paper palette readable. */
body.wfh-tool .segment-btn,
body.wfh-tool .choice-btn,
body.wfh-tool .main-tab,
body.wfh-tool .preset-btn,
body.wfh-tool .fps-btn,
body.wfh-tool .resolution-btn,
body.wfh-tool .platform-btn,
body.wfh-tool .variant-btn {
  color: var(--wfh-muted) !important;
  background: rgba(255, 253, 247, .8) !important;
  border-color: var(--wfh-line) !important;
}

body.wfh-tool .segment-btn.active,
body.wfh-tool .main-tab.active,
body.wfh-tool .resolution-btn.active {
  color: #071c1b !important;
  background: var(--wfh-teal) !important;
  border-color: var(--wfh-ink) !important;
  box-shadow: 3px 3px 0 var(--wfh-ink) !important;
}

body.wfh-tool .choice-btn.active,
body.wfh-tool .preset-btn.active,
body.wfh-tool .fps-btn.active,
body.wfh-tool .platform-btn.active,
body.wfh-tool .variant-btn.active {
  color: #145f5c !important;
  background: #dff4ee !important;
  border-color: var(--wfh-teal) !important;
}

body.wfh-tool .status-card {
  color: var(--wfh-ink) !important;
  background: rgba(255, 253, 247, .88) !important;
  border-color: var(--wfh-line) !important;
}

body.wfh-tool .status-card.pass {
  background: #e7f4df !important;
  border-color: #83aa70 !important;
}

body.wfh-tool .status-card.pass .status-icon {
  color: var(--wfh-ink) !important;
  background: #a9cf89 !important;
}

body.wfh-tool .status-card.fail,
body.wfh-tool .chapter-row.warning,
body.wfh-tool .counter-card.over {
  background: #fff0eb !important;
  border-color: var(--wfh-coral) !important;
}

body.wfh-tool .tap-btn.pressed {
  background: #72c8c3 !important;
}

body.wfh-tool input[type="range"] {
  accent-color: var(--wfh-teal) !important;
}
